diff options
author | Stefan Metzmacher <metze@samba.org> | 2021-07-05 10:57:12 +0200 |
---|---|---|
committer | Wireshark GitLab Utility <gerald+gitlab-utility@wireshark.org> | 2021-07-15 04:52:30 +0000 |
commit | 94ac641efabc9830bc91db1c793bf0ba42f1e46c (patch) | |
tree | 0e5878657135782f485f14748e4ad8714456f8eb /cmake/modules | |
parent | 8cd877fc4d88e20bc3aaa4a4d53c35846bbcede5 (diff) |
packet-kerberos: implement PAC Ticket checksum verification
We use some private functions from MIT kerberos:
- krb5_free_enc_tkt_part()
- decode_krb5_enc_tkt_part()
- encode_krb5_enc_tkt_part()
but we already do that for krb5int_c_mandatory_cksumtype(),
which is newer than the above functions.
We use all of them only under HAVE_KRB5_PAC_VERIFY,
so we don't seem to need additional configure tests.
Signed-off-by: Stefan Metzmacher <metze@samba.org>
Diffstat (limited to 'cmake/modules')
-rw-r--r-- | cmake/modules/FindKERBEROS.cmake | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/cmake/modules/FindKERBEROS.cmake b/cmake/modules/FindKERBEROS.cmake index 322d72ae8b..38cd55a3ab 100644 --- a/cmake/modules/FindKERBEROS.cmake +++ b/cmake/modules/FindKERBEROS.cmake @@ -92,6 +92,8 @@ if(KERBEROS_FOUND) check_symbol_exists("krb5_pac_verify" "krb5.h" HAVE_KRB5_PAC_VERIFY) # see also HAVE_KRB5_C_FX_CF2_SIMPLE in cmakeconfig.h.in check_symbol_exists("krb5_c_fx_cf2_simple" "krb5.h" HAVE_KRB5_C_FX_CF2_SIMPLE) + check_function_exists(decode_krb5_enc_tkt_part HAVE_DECODE_KRB5_ENC_TKT_PART) + check_function_exists(encode_krb5_enc_tkt_part HAVE_ENCODE_KRB5_ENC_TKT_PART) set(CMAKE_REQUIRED_INCLUDES) set(CMAKE_REQUIRED_LIBRARIES) if(NOT HAVE_HEIMDAL_KERBEROS) |