1
0
mirror of https://github.com/samba-team/samba.git synced 2024-12-22 13:34:15 +03:00

waf: Add check for gnutls_x509_crt_set_subject_unique_id()

This is used by the GnuTLS backupkey implementation.

Signed-off-by: Andreas Schneider <asn@samba.org>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
This commit is contained in:
Andreas Schneider 2019-04-29 11:05:07 +02:00 committed by Andrew Bartlett
parent 324a2eec86
commit e35a8598c6
3 changed files with 5 additions and 2 deletions

View File

@ -119,7 +119,7 @@ bld.SAMBA_MODULE('dcerpc_lsarpc',
)
if bld.CONFIG_SET('HAVE_GNUTLS_3_4_7'):
if bld.CONFIG_SET('HAVE_GNUTLS_X509_CRT_SET_SUBJECT_UNIQUE_ID'):
bld.SAMBA_MODULE('dcerpc_backupkey',
source='backupkey/dcesrv_backupkey.c ',
autoproto='backupkey/proto.h',

View File

@ -83,7 +83,7 @@ bld.SAMBA_SUBSYSTEM('IREMOTEWINSPOOL_COMMON',
torture_rpc_backupkey = ''
if bld.AD_DC_BUILD_IS_ENABLED():
if bld.CONFIG_SET('HAVE_GNUTLS_3_4_7'):
if bld.CONFIG_SET('HAVE_GNUTLS_X509_CRT_SET_SUBJECT_UNIQUE_ID'):
torture_rpc_backupkey = 'rpc/backupkey.c'
else:
torture_rpc_backupkey = 'rpc/backupkey_heimdal.c'

View File

@ -20,6 +20,9 @@ conf.CHECK_CFG(package='gnutls',
# Define gnutls as a system library
conf.SET_TARGET_TYPE('gnutls', 'SYSLIB')
# 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')