summaryrefslogtreecommitdiff
path: root/source3
diff options
context:
space:
mode:
authorGünther Deschner <gd@samba.org>2010-12-01 23:07:41 +0100
committerGünther Deschner <gd@samba.org>2010-12-03 13:07:53 +0100
commit704f138b8e553de846e9d3d022d5ea26429a8e37 (patch)
treeb66b2fe8a9778941bf6829d25ce3ab318f813c8b /source3
parent5676acbb73270edb7ef6d7e0e64c2bc35b4ffd45 (diff)
downloadsamba-704f138b8e553de846e9d3d022d5ea26429a8e37.tar.gz
samba-704f138b8e553de846e9d3d022d5ea26429a8e37.tar.bz2
samba-704f138b8e553de846e9d3d022d5ea26429a8e37.zip
s3-waf: add krb5 configure checks for enctype 23.
Guenther
Diffstat (limited to 'source3')
-rw-r--r--source3/wscript25
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: