Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 329782 Details for
Bug 421463
net-nds/openldap[gnutls] fails to build with net-libs/gnutls-3
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
update after reading manpages
openldap-2.4.33-gnutls.patch (text/plain), 1.02 KB, created by
Ikujam
on 2012-11-18 00:42:04 UTC
(
hide
)
Description:
update after reading manpages
Filename:
MIME Type:
Creator:
Ikujam
Created:
2012-11-18 00:42:04 UTC
Size:
1.02 KB
patch
obsolete
>diff -Naur openldap-2.4.33-1/libraries/libldap/tls_g.c openldap-2.4.33/libraries/libldap/tls_g.c >--- openldap-2.4.33-1/libraries/libldap/tls_g.c 2012-10-10 12:18:49.000000000 +0000 >+++ openldap-2.4.33/libraries/libldap/tls_g.c 2012-11-18 00:23:20.000000000 +0000 >@@ -369,6 +369,7 @@ > */ > if ( max == 1 && !gnutls_x509_crt_check_issuer( certs[0], certs[0] )) { > gnutls_x509_crt_t *cas; >+#if GNUTLS_VERSION_MAJOR == 2 > unsigned int i, j, ncas; > > gnutls_certificate_get_x509_cas( ctx->cred, &cas, &ncas ); >@@ -387,6 +388,18 @@ > if ( j == ncas ) > break; > } >+#elif GNUTLS_VERSION_MAJOR == 3 >+ gnutls_x509_crt_t ca; >+ unsigned int i; >+ for ( i = 1; i<VERIFY_DEPTH; i++ ) { >+ rc= gnutls_certificate_get_issuer( ctx->cred, certs[i-1], &ca, 0 ); >+ if ( rc ) return -1; >+ certs[i] = ca; >+ /* If this CA is self-signed, we're done */ >+ if ( gnutls_x509_crt_check_issuer( ca, ca )) >+ break; >+ } >+#endif > } > rc = gnutls_certificate_set_x509_key( ctx->cred, certs, max, key ); > if ( rc ) return -1;
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 421463
:
329746
|
329748
| 329782 |
333892