8a03afa
diff -up openssl-3.0.3/util/libcrypto.num.locale openssl-3.0.3/util/libcrypto.num
8a03afa
--- openssl-3.0.3/util/libcrypto.num.locale	2022-06-01 12:35:52.667498724 +0200
8a03afa
+++ openssl-3.0.3/util/libcrypto.num	2022-06-01 12:36:08.112633093 +0200
106fe89
@@ -5425,6 +5425,8 @@ ASN1_item_d2i_ex
8a03afa
 EVP_PKEY_CTX_get0_provider              5555	3_0_0	EXIST::FUNCTION:
106fe89
 OPENSSL_strcasecmp                      5556	3_0_3	EXIST::FUNCTION:
106fe89
 OPENSSL_strncasecmp                     5557	3_0_3	EXIST::FUNCTION:
106fe89
+OPENSSL_strcasecmp                      ?	3_0_1	EXIST::FUNCTION:
106fe89
+OPENSSL_strncasecmp                     ? 	3_0_1	EXIST::FUNCTION:
8a03afa
 ossl_safe_getenv                        ?	3_0_0	EXIST::FUNCTION:
8a03afa
 ossl_ctx_legacy_digest_signatures_allowed ?	3_0_1	EXIST::FUNCTION:
8a03afa
 ossl_ctx_legacy_digest_signatures_allowed_set ?	3_0_1	EXIST::FUNCTION:
106fe89
diff -up openssl-3.0.7/crypto/o_str.c.cmp openssl-3.0.7/crypto/o_str.c
106fe89
--- openssl-3.0.7/crypto/o_str.c.cmp	2022-11-25 12:50:22.449760653 +0100
106fe89
+++ openssl-3.0.7/crypto/o_str.c	2022-11-25 12:51:19.416350584 +0100
106fe89
@@ -342,7 +342,12 @@ int openssl_strerror_r(int errnum, char
106fe89
 #endif
106fe89
 }
106fe89
 
106fe89
-int OPENSSL_strcasecmp(const char *s1, const char *s2)
106fe89
+int
106fe89
+#ifndef FIPS_MODULE
106fe89
+__attribute__ ((symver ("OPENSSL_strcasecmp@@OPENSSL_3.0.3"),
106fe89
+                    symver ("OPENSSL_strcasecmp@OPENSSL_3.0.1")))
106fe89
+#endif
106fe89
+OPENSSL_strcasecmp(const char *s1, const char *s2)
106fe89
 {
106fe89
     int t;
106fe89
 
106fe89
@@ -352,7 +354,12 @@ int OPENSSL_strcasecmp(const char *s1, c
106fe89
     return t;
106fe89
 }
106fe89
 
106fe89
-int OPENSSL_strncasecmp(const char *s1, const char *s2, size_t n)
106fe89
+int
106fe89
+#ifndef FIPS_MODULE
106fe89
+__attribute__ ((symver ("OPENSSL_strncasecmp@@OPENSSL_3.0.3"),
106fe89
+                    symver ("OPENSSL_strncasecmp@OPENSSL_3.0.1")))
106fe89
+#endif
106fe89
+OPENSSL_strncasecmp(const char *s1, const char *s2, size_t n)
106fe89
 {
106fe89
     int t;
106fe89
     size_t i;
106fe89
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
106fe89
--- openssl-3.0.7/test/recipes/01-test_symbol_presence.t.cmp	2022-11-25 18:19:05.669769076 +0100
106fe89
+++ openssl-3.0.7/test/recipes/01-test_symbol_presence.t	2022-11-25 18:31:20.993392678 +0100
106fe89
@@ -77,6 +80,7 @@ foreach my $libname (@libnames) {
106fe89
                 s| .*||;
106fe89
                 # Drop OpenSSL dynamic version information if there is any
106fe89
                 s|\@\@.+$||;
106fe89
+                s|\@.+$||;
106fe89
                 # Return the result
106fe89
                 $_
106fe89
             }