Commit 68b90853ee for openssl.org
commit 68b90853eef734f39b3157a5fdf7b1db0a9e268a
Author: Pauli <paul.dale@oracle.com>
Date: Fri Sep 4 10:24:56 2026 +1000
ec: accept duplicate instances of the point format parameter
The first value is kept. This is done for compatibility with
old FIPS providers from <=4.0 branches. They export two point
format parameters with different values.
Reviewed-by: Viktor Dukhovni <viktor@openssl.org>
Reviewed-by: Eugene Syromiatnikov <esyr@openssl.org>
Reviewed-by: Tomas Mraz <tomas@openssl.foundation>
Merge-date: Mon Sep 7 18:14:55 2026
Merged-from: https://github.com/openssl/openssl/pull/32675
diff --git a/include/crypto/ec_params.h.in b/include/crypto/ec_params.h.in
index 008da96400..700fa8bae8 100644
--- a/include/crypto/ec_params.h.in
+++ b/include/crypto/ec_params.h.in
@@ -31,7 +31,7 @@ our @EC_ENCODING_TYPES = (
);
our @EC_POINT_FORMAT_TYPES = (
- ['OSSL_PKEY_PARAM_EC_POINT_CONVERSION_FORMAT', 'pt_format', 'utf8_string'],
+ ['OSSL_PKEY_PARAM_EC_POINT_CONVERSION_FORMAT', 'pt_format', 'utf8_string', 'duplicate: first'],
);
our @EC_FIELD_TYPE_TYPES = (