openssl/SOURCES/0056-strcasecmp.patch

54 lines
2.4 KiB
Diff
Raw Permalink Normal View History

2023-03-28 09:20:51 +00:00
diff -up openssl-3.0.3/util/libcrypto.num.locale openssl-3.0.3/util/libcrypto.num
--- openssl-3.0.3/util/libcrypto.num.locale 2022-06-01 12:35:52.667498724 +0200
+++ openssl-3.0.3/util/libcrypto.num 2022-06-01 12:36:08.112633093 +0200
2024-09-30 15:08:11 +00:00
@@ -5425,5 +5425,7 @@ ASN1_item_d2i_ex
X509_STORE_CTX_set_current_reasons 5664 3_2_0 EXIST::FUNCTION:
OSSL_STORE_delete 5665 3_2_0 EXIST::FUNCTION:
BIO_ADDR_copy 5666 3_2_0 EXIST::FUNCTION:SOCK
2023-03-28 09:20:51 +00:00
+OPENSSL_strcasecmp ? 3_0_1 EXIST::FUNCTION:
+OPENSSL_strncasecmp ? 3_0_1 EXIST::FUNCTION:
ossl_ctx_legacy_digest_signatures_allowed ? 3_0_1 EXIST::FUNCTION:
ossl_ctx_legacy_digest_signatures_allowed_set ? 3_0_1 EXIST::FUNCTION:
diff -up openssl-3.0.7/crypto/o_str.c.cmp openssl-3.0.7/crypto/o_str.c
--- openssl-3.0.7/crypto/o_str.c.cmp 2022-11-25 12:50:22.449760653 +0100
+++ openssl-3.0.7/crypto/o_str.c 2022-11-25 12:51:19.416350584 +0100
@@ -342,7 +342,12 @@ int openssl_strerror_r(int errnum, char
2022-09-27 14:29:34 +00:00
#endif
}
2023-03-28 09:20:51 +00:00
-int OPENSSL_strcasecmp(const char *s1, const char *s2)
+int
2024-03-28 11:18:36 +00:00
+#if !defined(FIPS_MODULE) && !defined(OPENSSL_SYS_UEFI)
2023-03-28 09:20:51 +00:00
+__attribute__ ((symver ("OPENSSL_strcasecmp@@OPENSSL_3.0.3"),
+ symver ("OPENSSL_strcasecmp@OPENSSL_3.0.1")))
2022-09-27 14:29:34 +00:00
+#endif
2023-03-28 09:20:51 +00:00
+OPENSSL_strcasecmp(const char *s1, const char *s2)
2022-09-27 14:29:34 +00:00
{
2023-03-28 09:20:51 +00:00
int t;
2022-09-27 14:29:34 +00:00
2023-03-28 09:20:51 +00:00
@@ -352,7 +354,12 @@ int OPENSSL_strcasecmp(const char *s1, c
return t;
2022-09-27 14:29:34 +00:00
}
2023-03-28 09:20:51 +00:00
-int OPENSSL_strncasecmp(const char *s1, const char *s2, size_t n)
+int
2024-03-28 11:18:36 +00:00
+#if !defined(FIPS_MODULE) && !defined(OPENSSL_SYS_UEFI)
2023-03-28 09:20:51 +00:00
+__attribute__ ((symver ("OPENSSL_strncasecmp@@OPENSSL_3.0.3"),
+ symver ("OPENSSL_strncasecmp@OPENSSL_3.0.1")))
2022-09-27 14:29:34 +00:00
+#endif
2023-03-28 09:20:51 +00:00
+OPENSSL_strncasecmp(const char *s1, const char *s2, size_t n)
2022-09-27 14:29:34 +00:00
{
2023-03-28 09:20:51 +00:00
int t;
2022-09-27 14:29:34 +00:00
size_t i;
2023-03-28 09:20:51 +00:00
diff -up openssl-3.0.7/test/recipes/01-test_symbol_presence.t.cmp openssl-3.0.7/test/recipes/01-test_symbol_presence.t
--- openssl-3.0.7/test/recipes/01-test_symbol_presence.t.cmp 2022-11-25 18:19:05.669769076 +0100
+++ openssl-3.0.7/test/recipes/01-test_symbol_presence.t 2022-11-25 18:31:20.993392678 +0100
@@ -77,6 +80,7 @@ foreach my $libname (@libnames) {
2024-09-30 15:08:11 +00:00
s| .*||;
# Drop OpenSSL dynamic version information if there is any
s|\@\@.+$||;
+ s|\@.+$||;
# Return the result
$_
}