libcli:auth: Use GnuTLS MD5 in encode_wkssvc_join_password_buffer()
[bbaumbach/samba-autobuild/.git] / wscript_configure_system_gnutls
index 85b1277d2ee56299832bb7350bd75a4c7593830c..cc9a2b035a2f99feb163eb13f444393b4afd83f9 100644 (file)
@@ -20,11 +20,19 @@ conf.CHECK_CFG(package='gnutls',
 # Define gnutls as a system library
 conf.SET_TARGET_TYPE('gnutls', 'SYSLIB')
 
+# Check for gnutls_privkey_export_x509 (>= 3.4.0) required by backupkey
+conf.CHECK_FUNCS_IN('gnutls_privkey_export_x509', 'gnutls')
+
 # Check for gnutls_x509_crt_set_subject_unique_id (>= 3.4.7) required by backupkey
 conf.CHECK_FUNCS_IN('gnutls_x509_crt_set_subject_unique_id', 'gnutls')
 
 # Check for gnutls_pkcs7_get_embedded_data_oid (>= 3.5.5) required by libmscat
 conf.CHECK_FUNCS_IN('gnutls_pkcs7_get_embedded_data_oid', 'gnutls')
 
-conf.DEFINE('HAVE_GNUTLS3', 1)
-conf.DEFINE('ENABLE_GNUTLS', 1)
+# Check for gnutls_aead_cipher_init (>= 3.4.0) used by encrypted_secrets
+if conf.CHECK_FUNCS_IN('gnutls_aead_cipher_init',
+                       'gnutls',
+                       headers='gnutls/gnutls.h'):
+    conf.DEFINE('HAVE_GNUTLS_AEAD', '1')
+else:
+    Logs.warn('No gnutls support for AEAD encryption')