From e223d0b1246c3479713d6af56edc7b2810f52f50 Mon Sep 17 00:00:00 2001 From: Howard Chu Date: Sat, 11 Apr 2009 03:53:26 +0000 Subject: [PATCH] ITS#6053 must use gnutls_x509_privkey_init() --- libraries/libldap/tls_g.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/libraries/libldap/tls_g.c b/libraries/libldap/tls_g.c index 738fb36fc3..e3c82bbc6f 100644 --- a/libraries/libldap/tls_g.c +++ b/libraries/libldap/tls_g.c @@ -354,6 +354,9 @@ tlsg_ctx_init( struct ldapoptions *lo, struct ldaptls *lt, int is_server ) gnutls_x509_crt_t certs[VERIFY_DEPTH]; unsigned int max = VERIFY_DEPTH; + rc = gnutls_x509_privkey_init( &key ); + if ( rc ) return -1; + /* OpenSSL builds the cert chain for us, but GnuTLS * expects it to be present in the certfile. If it's * not, we have to build it ourselves. So we have to -- 2.39.5