]> source.dussan.org Git - rspamd.git/commitdiff
[Minor] Another fight with OpenSSL so called "consistency"
authorVsevolod Stakhov <vsevolod@rspamd.com>
Wed, 7 Aug 2024 18:54:19 +0000 (19:54 +0100)
committerVsevolod Stakhov <vsevolod@rspamd.com>
Wed, 7 Aug 2024 18:54:19 +0000 (19:54 +0100)
src/libcryptobox/cryptobox.c

index 05b1bce72830240d6a5b88e24a30f61dee02434a..d5ab0ca3561d6bc7885a72ac68fffc53f32fbe10 100644 (file)
@@ -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);