slontis d4d1003f94 Fix EVP_PKEY_CTX_dup() so that it copies the keymanager.
A call to EVP_PKEY_CTX_new() creates a keymgmt pointer internally,
but EVP_PKEY_CTX_dup() does not copy this field.

Calling EVP_PKEY_derive_set_peer_ex() after EVP_PKEY_CTX_dup() resulted
in a segfault because it tried to access this pointer.

EVP_PKEY_CTX_dup() has been updated to copy the keymanager (and upref it).

Reported by Eamon ODea (Oracle).

Reviewed-by: Tomas Mraz <tomas@openssl.org>
Reviewed-by: Paul Dale <ppzgs1@gmail.com>
(Merged from https://github.com/openssl/openssl/pull/27304)

(cherry picked from commit 3c22da73465f5dd211299e64f0de8786dcaf86c3)
2025-04-15 15:46:44 +01:00
..
2025-04-08 13:07:23 +00:00
2025-04-08 13:07:23 +00:00
2024-09-05 09:35:49 +02:00
2023-09-07 09:59:15 +01:00
2024-07-31 09:04:17 +10:00
2025-03-12 13:35:59 +00:00
2025-03-20 12:20:58 +01:00
2023-09-07 09:59:15 +01:00
2025-03-12 13:35:59 +00:00
2025-03-12 13:35:59 +00:00
2024-09-05 09:35:49 +02:00
2025-04-08 13:07:23 +00:00
2025-03-12 13:35:59 +00:00
2025-03-12 13:35:59 +00:00
2025-03-01 14:46:03 -05:00
2024-09-05 09:35:49 +02:00
2025-03-12 13:35:59 +00:00
2025-03-12 13:35:59 +00:00
2024-09-05 09:35:49 +02:00
2024-04-09 13:43:26 +02:00
2025-03-12 13:35:59 +00:00
2025-03-12 13:35:59 +00:00
2025-03-12 13:35:59 +00:00
2025-03-12 13:35:59 +00:00
2025-03-12 13:35:59 +00:00
2025-03-12 13:35:59 +00:00
2025-03-12 13:35:59 +00:00
2025-03-12 13:35:59 +00:00
2025-03-12 13:35:59 +00:00
2023-09-07 09:59:15 +01:00
2023-09-07 09:59:15 +01:00
2023-09-07 09:59:15 +01:00
2025-03-12 13:35:59 +00:00
2025-03-12 13:35:59 +00:00
2025-03-12 13:35:59 +00:00
2024-04-09 13:43:26 +02:00
2025-03-12 13:35:59 +00:00
2025-03-12 13:35:59 +00:00
2023-09-07 09:59:15 +01:00
2024-09-05 09:35:49 +02:00
2025-03-12 13:35:59 +00:00
2024-04-09 13:43:26 +02:00
2025-04-08 13:07:23 +00:00
2025-03-01 14:46:03 -05:00
2025-03-12 13:35:59 +00:00
2025-03-12 13:35:59 +00:00
2025-03-12 13:35:59 +00:00
2023-09-07 09:59:15 +01:00
2023-09-07 09:59:15 +01:00
2025-04-08 13:07:23 +00:00
2025-04-08 13:07:23 +00:00
2024-09-05 09:35:49 +02:00
2024-07-11 08:29:43 +10:00
2025-03-12 13:35:59 +00:00
2025-03-12 13:35:59 +00:00
2023-09-07 09:59:15 +01:00
2023-09-07 09:59:15 +01:00
2023-09-07 09:59:15 +01:00
2024-09-05 09:35:49 +02:00
2024-09-05 09:35:49 +02:00
2023-09-07 09:59:15 +01:00
2023-12-29 10:21:10 +01:00
2025-03-12 13:35:59 +00:00
2024-09-05 09:35:49 +02:00
2023-09-07 09:59:15 +01:00
2025-03-12 13:35:59 +00:00
2025-03-12 13:35:59 +00:00
2025-03-12 13:35:59 +00:00
2023-09-07 09:59:15 +01:00
2024-04-09 13:43:26 +02:00
2024-09-05 09:35:49 +02:00
2025-03-12 13:35:59 +00:00
2024-09-05 09:35:49 +02:00
2024-09-05 09:35:49 +02:00
2024-09-05 09:35:49 +02:00
2025-03-01 14:46:03 -05:00
2025-03-01 14:46:03 -05:00
2024-11-19 08:36:19 -05:00
2023-09-07 09:59:15 +01:00