]> git.ipfire.org Git - thirdparty/openldap.git/commitdiff
ITS#10124 libldap: fix dhparam init with OpenSSL 3.x
authorHoward Chu <hyc@openldap.org>
Mon, 6 Nov 2023 09:08:43 +0000 (09:08 +0000)
committerQuanah Gibson-Mount <quanah@openldap.org>
Tue, 16 Jan 2024 18:21:05 +0000 (18:21 +0000)
libraries/libldap/tls_o.c

index 4123a9b91a728a3fc9d3117807edb9691bffaea0..055d14025bc2f4a3939f20fd85e6c9d7bf1f8345 100644 (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 )