From 345173e928c00eb4256f32d4e4df7d274ca06bb4 Mon Sep 17 00:00:00 2001 From: Quanah Gibson-Mount Date: Tue, 22 Jul 2014 13:46:20 -0500 Subject: [PATCH] ITS#7877 assume gnutls is at least 2.12.0 --- libraries/libldap/tls_g.c | 22 ---------------------- 1 file changed, 22 deletions(-) diff --git a/libraries/libldap/tls_g.c b/libraries/libldap/tls_g.c index 690d4ad837..82a9316e13 100644 --- a/libraries/libldap/tls_g.c +++ b/libraries/libldap/tls_g.c @@ -272,7 +272,6 @@ tlsg_ctx_init( struct ldapoptions *lo, struct ldaptls *lt, int is_server ) * then we have to build the cert chain. */ if ( max == 1 && !gnutls_x509_crt_check_issuer( certs[0], certs[0] )) { -#if GNUTLS_VERSION_NUMBER >= 0x020c00 unsigned int i; for ( i = 1; icred, certs[i-1], &certs[i], 0 )) @@ -282,27 +281,6 @@ tlsg_ctx_init( struct ldapoptions *lo, struct ldaptls *lt, int is_server ) if ( gnutls_x509_crt_check_issuer( certs[i], certs[i] )) break; } -#else - gnutls_x509_crt_t *cas; - unsigned int i, j, ncas; - - gnutls_certificate_get_x509_cas( ctx->cred, &cas, &ncas ); - for ( i = 1; icred, certs, max, key ); if ( rc ) return -1; -- 2.39.5