diff options
author | Vsevolod Stakhov <vsevolod@rspamd.com> | 2024-08-07 19:54:19 +0100 |
---|---|---|
committer | Vsevolod Stakhov <vsevolod@rspamd.com> | 2024-08-07 19:54:19 +0100 |
commit | 6ba735f30722a324bc206418e344ff145c3387a4 (patch) | |
tree | f7b6fafacfc0c6a76430bee61adf1fee079224b6 /src | |
parent | 8b162254e75ed08c01c70f2c644dcca6a43a5eca (diff) | |
download | rspamd-6ba735f30722a324bc206418e344ff145c3387a4.tar.gz rspamd-6ba735f30722a324bc206418e344ff145c3387a4.zip |
[Minor] Another fight with OpenSSL so called "consistency"
Diffstat (limited to 'src')
-rw-r--r-- | src/libcryptobox/cryptobox.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libcryptobox/cryptobox.c b/src/libcryptobox/cryptobox.c index 05b1bce72..d5ab0ca35 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); |