From: Howard Chu Date: Sat, 11 Apr 2009 03:53:26 +0000 (+0000) Subject: ITS#6053 must use gnutls_x509_privkey_init() X-Git-Tag: ACLCHECK_0~639 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=e223d0b1246c3479713d6af56edc7b2810f52f50;p=openldap ITS#6053 must use gnutls_x509_privkey_init() --- 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