diff options
Diffstat (limited to 'source3/wscript')
-rw-r--r-- | source3/wscript | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/source3/wscript b/source3/wscript index c447e750f0..bedd89be68 100644 --- a/source3/wscript +++ b/source3/wscript @@ -649,6 +649,31 @@ return 0; else: conf.DEFINE('KRB5_VERIFY_CHECKSUM_ARGS', '6') + conf.CHECK_CODE(''' +krb5_enctype enctype; +enctype = ENCTYPE_ARCFOUR_HMAC_MD5; +''', + '_HAVE_ENCTYPE_ARCFOUR_HMAC_MD5', + headers='krb5.h', lib='krb5', + msg="Checking whether the ENCTYPE_ARCFOUR_HMAC_MD5 key type definition is available"); + conf.CHECK_CODE(''' +krb5_keytype keytype; +keytype = KEYTYPE_ARCFOUR_56; +''', + '_HAVE_KEYTYPE_ARCFOUR_56', + headers='krb5.h', lib='krb5', + msg="Checking whether the HAVE_KEYTYPE_ARCFOUR_56 key type definition is available"); + if conf.CONFIG_SET('_HAVE_ENCTYPE_ARCFOUR_HMAC_MD5') and conf.CONFIG_SET('_HAVE_KEYTYPE_ARCFOUR_56'): + conf.DEFINE('HAVE_ENCTYPE_ARCFOUR_HMAC_MD5', '1') + + conf.CHECK_CODE(''' +krb5_enctype enctype; +enctype = ENCTYPE_ARCFOUR_HMAC; +''', + 'HAVE_ENCTYPE_ARCFOUR_HMAC', + headers='krb5.h', lib='krb5', + msg="Checking whether the ENCTYPE_ARCFOUR_HMAC key type definition is available"); + conf.DEFINE('HAVE_KRB5', '1') else: |