ITS#10124 libldap: fix dhparam init with OpenSSL 3.x

This commit is contained in:
Howard Chu 2023-11-06 09:08:43 +00:00 committed by Quanah Gibson-Mount
parent f0a2a42aa1
commit 3e1130cd5e

View file

@ -539,7 +539,7 @@ tlso_ctx_init( struct ldapoptions *lo, struct ldaptls *lt, int is_server )
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 )