diff options
| author | Moryakhin Stas <[email protected]> | 2026-07-30 14:14:22 +0200 |
|---|---|---|
| committer | Andrew Dinh <[email protected]> | 2026-08-01 05:01:50 +0200 |
| commit | e3387d3a5af5feee25c33ea33d0c7916c1b9120d (patch) | |
| tree | d69d621aade1535ef86cf0f9073ce7fa885e3654 /apps | |
| parent | Add entry about Elbrus2000 support into NEWS.md and CHANGES.md (diff) | |
| download | openssl-e3387d3a5af5feee25c33ea33d0c7916c1b9120d.tar.gz openssl-e3387d3a5af5feee25c33ea33d0c7916c1b9120d.zip | |
Fix encrypt decrypt fetch for cms from privoder side
For algorithms without NID (without registration via the engine), cms_enc attempts to fetch via OBJ_obj2txt.
passing cipher instead of NULL in EVP_PKEY_CTX_ctrl in apps/cms.c
Reviewed-by: Jakub Zelenka <[email protected]>
Reviewed-by: Paul Dale <[email protected]>
Reviewed-by: Andrew Dinh <[email protected]>
MergeDate: Sat Aug 1 03:02:06 2026
(Merged from https://github.com/openssl/openssl/pull/31512)
Diffstat (limited to 'apps')
| -rw-r--r-- | apps/cms.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/apps/cms.c b/apps/cms.c index 5e32ab55aff..b7f33945719 100644 --- a/apps/cms.c +++ b/apps/cms.c @@ -1148,7 +1148,7 @@ int cms_main(int argc, char **argv) res = EVP_PKEY_CTX_ctrl(pctx, -1, -1, EVP_PKEY_CTRL_CIPHER, - EVP_CIPHER_get_nid(cipher), NULL); + EVP_CIPHER_get_nid(cipher), cipher); if (res <= 0 && res != -2) goto end; |
