Files
Adel-Ayoub 05b65fcb22 crypto/pkcs12/p12_decr.c: fix EVP_CIPHER_CTX_ctrl error checks
EVP_CIPHER_CTX_ctrl() reports failure of the EVP_CTRL_AEAD_TLS1_AAD
and EVP_CTRL_AEAD_SET_TAG controls as 0, not as a negative value,
so the "< 0" checks on the cipher-with-MAC path cannot detect any
failure.  A return of 0 means a failed or unsupported control, or
for EVP_CTRL_AEAD_TLS1_AAD a zero MAC length, none of which is
usable here.

Change both checks to "<= 0", matching the EVP_CTRL_AEAD_GET_TAG
check fixed by commit 674c23d265 in this function.

Follow-up to https://github.com/openssl/openssl/pull/30923.

Fixes: ea0add4a82 "New GOST PKCS12 standard support"

CLA: trivial

Reviewed-by: Dmitry Belyavskiy <beldmit@gmail.com>
Reviewed-by: Andrew Dinh <andrewd@openssl.org>
Reviewed-by: Jakub Zelenka <jakub.zelenka@openssl.foundation>
MergeDate: Mon Jul 27 10:21:13 2026
(Merged from https://github.com/openssl/openssl/pull/31848)
2026-07-27 12:21:09 +02:00
..
2025-12-09 00:28:19 -07:00
2026-07-23 10:24:01 +02:00
2025-12-09 00:28:19 -07:00
2025-12-09 00:28:19 -07:00
2026-05-06 13:35:41 +02:00
2026-03-10 14:37:52 +00:00
2019-11-12 13:30:35 +01:00
2026-06-03 09:46:03 +02:00
2026-07-08 12:45:09 +02:00
2025-12-09 00:28:19 -07:00
2025-12-09 00:28:19 -07:00
2026-07-08 12:07:53 +02:00
2025-12-09 00:28:19 -07:00
2025-12-09 00:28:19 -07:00
2026-06-25 09:26:55 +02:00
2025-12-09 00:28:19 -07:00
2025-09-02 13:05:45 +00:00
2026-05-10 11:53:33 +02:00
2025-12-09 00:28:19 -07:00
2025-12-09 00:28:19 -07:00
2025-09-02 13:05:45 +00:00
2025-12-09 00:28:19 -07:00
2025-12-09 00:28:19 -07:00
2025-12-09 00:28:19 -07:00
2026-07-10 07:46:53 -04:00
2025-12-09 00:28:19 -07:00
2025-12-09 00:28:19 -07:00
2025-12-09 00:28:19 -07:00
2025-12-09 00:28:19 -07:00
2026-03-10 14:37:52 +00:00
2026-06-25 09:26:55 +02:00
2025-09-02 13:05:45 +00:00
2025-12-09 00:28:19 -07:00
2026-05-10 11:53:33 +02:00
2025-12-19 12:06:38 -05:00
2025-03-12 13:35:59 +00:00
2026-05-10 11:53:33 +02:00
2025-12-09 00:28:19 -07:00
2025-12-09 00:28:19 -07:00
2025-12-09 00:28:19 -07:00
2026-06-25 09:26:55 +02:00
2026-06-25 09:26:55 +02:00
2025-12-09 00:28:19 -07:00
2022-05-03 13:34:51 +01:00
2026-06-25 09:26:55 +02:00
2025-12-09 00:28:19 -07:00
2025-12-09 00:28:19 -07:00
2026-03-10 14:37:52 +00:00
2025-12-09 00:28:19 -07:00
2025-09-02 13:05:45 +00:00
2025-12-09 00:28:19 -07:00
2025-09-02 13:05:45 +00:00
2025-12-09 00:28:19 -07:00
2025-12-09 00:28:19 -07:00
2025-12-09 00:28:19 -07:00
2026-03-10 14:37:52 +00:00
2025-12-09 00:28:19 -07:00
2026-05-10 11:53:33 +02:00
2025-12-09 00:28:19 -07:00
2025-12-09 00:28:19 -07:00
2025-12-09 00:28:19 -07:00
2025-12-09 00:28:19 -07:00
2026-06-09 14:02:45 -04:00
2025-12-09 00:28:19 -07:00
2025-12-09 00:28:19 -07:00
2025-12-09 00:28:19 -07:00