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
parent 2939df1a1d
commit f196fa17dc

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 )