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 c1307e56fc
commit 4d97ae3330

View File

@ -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 )