krb5: Detect support for krb5_const_pac type
authorJoseph Sutton <josephsutton@catalyst.net.nz>
Wed, 2 Nov 2022 01:56:34 +0000 (14:56 +1300)
committerAndrew Bartlett <abartlet@samba.org>
Tue, 8 Nov 2022 02:39:37 +0000 (02:39 +0000)
commit7d3416e8cb686453ecbedbc085073af95835001e
tree9439514760d794fba0a5edc6a30334d38c45ce95
parent6fe6992258d2c59dfc8cb979deb25ba6020a1c06
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>
lib/krb5_wrap/krb5_samba.h
lib/krb5_wrap/wscript_configure [new file with mode: 0644]
third_party/heimdal_build/wscript_configure
wscript