mirror of
https://git.openldap.org/openldap/openldap.git
synced 2025-12-24 00:29:35 -05:00
ITS#10124 libldap: fix dhparam init with OpenSSL 3.x
This commit is contained in:
parent
2939df1a1d
commit
f196fa17dc
1 changed files with 1 additions and 1 deletions
|
|
@ -563,7 +563,7 @@ tlso_ctx_init( struct ldapoptions *lo, struct ldaptls *lt, int is_server, char *
|
|||
if ( is_server && lo->ldo_tls_dhfile ) {
|
||||
#if OPENSSL_VERSION_MAJOR >= 3
|
||||
EVP_PKEY *dh;
|
||||
#define bio_params( bio, dh ) dh = PEM_read_bio_Parameters( bio, &dh )
|
||||
#define bio_params( bio, dh ) dh = PEM_read_bio_Parameters( bio, NULL )
|
||||
#else
|
||||
DH *dh;
|
||||
#define bio_params( bio, dh ) dh = PEM_read_bio_DHparams( bio, NULL, NULL, NULL )
|
||||
|
|
|
|||
Loading…
Reference in a new issue