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:
parent
324a2eec86
commit
e35a8598c6
@ -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',
|
||||
|
@ -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'
|
||||
|
@ -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')
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user