summaryrefslogtreecommitdiff
path: root/third_party
diff options
context:
space:
mode:
authorJoseph Sutton <josephsutton@catalyst.net.nz>2022-11-02 14:56:34 +1300
committerAndrew Bartlett <abartlet@samba.org>2022-11-08 02:39:37 +0000
commit7d3416e8cb686453ecbedbc085073af95835001e (patch)
tree9439514760d794fba0a5edc6a30334d38c45ce95 /third_party
parent6fe6992258d2c59dfc8cb979deb25ba6020a1c06 (diff)
downloadsamba-7d3416e8cb686453ecbedbc085073af95835001e.tar.gz
krb5: Detect support for krb5_const_pac type
We can't unconditionally assume (as we did in third_party/heimdal_build/wscript_configure) that Heimdal has this type, since we may have an older system Heimdal that lacks it. We must also check whether krb5_pac_get_buffer() is usable with krb5_const_pac, and declare krb5_const_pac as a non-const typedef if not. Signed-off-by: Joseph Sutton <josephsutton@catalyst.net.nz> Reviewed-by: Andrew Bartlett <abartlet@samba.org>
Diffstat (limited to 'third_party')
-rw-r--r--third_party/heimdal_build/wscript_configure3
1 files changed, 2 insertions, 1 deletions
diff --git a/third_party/heimdal_build/wscript_configure b/third_party/heimdal_build/wscript_configure
index ee58f7c2182..a97a1b9baa8 100644
--- a/third_party/heimdal_build/wscript_configure
+++ b/third_party/heimdal_build/wscript_configure
@@ -131,7 +131,6 @@ conf.define('HAVE_CHECKSUM_IN_KRB5_CHECKSUM', 1)
conf.define('HAVE_DECL_KRB5_AUTH_CON_SET_REQ_CKSUMTYPE', 0)
conf.define('HAVE_DECL_KRB5_GET_CREDENTIALS_FOR_USER', 0)
conf.define('HAVE_E_DATA_POINTER_IN_KRB5_ERROR', 1)
-conf.define('HAVE_KRB5_CONST_PAC', 1)
conf.define('HAVE_INITIALIZE_KRB5_ERROR_TABLE', 1)
conf.define('HAVE_KRB5_ADDRESSES', 1)
conf.define('HAVE_KRB5_AUTH_CON_SETKEY', 1)
@@ -206,6 +205,8 @@ conf.define('HAVE_KRB5_PROMPT_TYPE', 1)
if conf.CONFIG_SET('USING_EMBEDDED_HEIMDAL'):
conf.define('HAVE_KRB5_ADDLOG_FUNC_NEED_CONTEXT', 1)
+ conf.define('HAVE_KRB5_CONST_PAC', 1)
+ conf.define('KRB5_CONST_PAC_GET_BUFFER', 1)
else:
pass # TODO