From: Vsevolod Stakhov Date: Wed, 7 Aug 2024 18:54:19 +0000 (+0100) Subject: [Minor] Another fight with OpenSSL so called "consistency" X-Git-Tag: 3.10.0~47 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=6ba735f30722a324bc206418e344ff145c3387a4;p=thirdparty%2Frspamd.git [Minor] Another fight with OpenSSL so called "consistency" --- diff --git a/src/libcryptobox/cryptobox.c b/src/libcryptobox/cryptobox.c index 05b1bce728..d5ab0ca356 100644 --- a/src/libcryptobox/cryptobox.c +++ b/src/libcryptobox/cryptobox.c @@ -549,7 +549,7 @@ void rspamd_cryptobox_nm(rspamd_nm_t nm, param[2] = OSSL_PARAM_construct_end(); g_assert(EVP_PKEY_fromdata_init(pctx) == 1); - g_assert(EVP_PKEY_fromdata(pctx, &sec_pkey, EVP_PKEY_PRIVATE_KEY, param) == 1); + g_assert(EVP_PKEY_fromdata(pctx, &sec_pkey, EVP_PKEY_KEYPAIR, param) == 1); EVP_PKEY_CTX_free(pctx); pctx = EVP_PKEY_CTX_new_from_pkey(libctx, sec_pkey, NULL);