Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
View | Details | Raw Unified | Return to bug 421463 | Differences between
and this patch

Collapse All | Expand All

(-)openldap-2.4.33-1/libraries/libldap/tls_g.c (+4 lines)
Lines 371-377 Link Here
371
			gnutls_x509_crt_t *cas;
371
			gnutls_x509_crt_t *cas;
372
			unsigned int i, j, ncas;
372
			unsigned int i, j, ncas;
373
373
374
#if GNUTLS_VERSION_MAJOR == 2
374
			gnutls_certificate_get_x509_cas( ctx->cred, &cas, &ncas );
375
			gnutls_certificate_get_x509_cas( ctx->cred, &cas, &ncas );
376
#elif GNUTLS_VERSION_MAJOR == 3
377
			gnutls_certificate_get_issuer( ctx->cred, &cas, &ncas, 0 );
378
#endif
375
			for ( i = 1; i<VERIFY_DEPTH; i++ ) {
379
			for ( i = 1; i<VERIFY_DEPTH; i++ ) {
376
				for ( j = 0; j<ncas; j++ ) {
380
				for ( j = 0; j<ncas; j++ ) {
377
					if ( gnutls_x509_crt_check_issuer( certs[i-1], cas[j] )) {
381
					if ( gnutls_x509_crt_check_issuer( certs[i-1], cas[j] )) {

Return to bug 421463