mirror of
https://git.openldap.org/openldap/openldap.git
synced 2025-12-25 00:59:45 -05:00
ITS#6053 must use gnutls_x509_privkey_init()
This commit is contained in:
parent
6fc4af8a18
commit
e223d0b124
1 changed files with 3 additions and 0 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in a new issue