From 23e65561e28f705f8f59128470aaf89bdbdb84fa Mon Sep 17 00:00:00 2001 From: slontis Date: Tue, 31 Jan 2023 10:50:22 +1000 Subject: Add more punycode tests and remove ossl_a2ucompare() The unused and untested internal function ossl_a2ucompare() has been removed. Reviewed-by: Paul Dale Reviewed-by: Dmitry Belyavskiy (Merged from https://github.com/openssl/openssl/pull/20177) --- crypto/punycode.c | 19 ------------------- 1 file changed, 19 deletions(-) (limited to 'crypto/punycode.c') diff --git a/crypto/punycode.c b/crypto/punycode.c index ad88495f6c..332817763d 100644 --- a/crypto/punycode.c +++ b/crypto/punycode.c @@ -310,22 +310,3 @@ int ossl_a2ulabel(const char *in, char *out, size_t outlen) WPACKET_cleanup(&pkt); return result; } - -/*- - * a MUST be A-label - * u MUST be U-label - * Returns 0 if compared values are equal - * 1 if not - * -1 in case of errors - */ - -int ossl_a2ucompare(const char *a, const char *u) -{ - char a_ulabel[LABEL_BUF_SIZE + 1]; - size_t a_size = sizeof(a_ulabel); - - if (ossl_a2ulabel(a, a_ulabel, a_size) <= 0) - return -1; - - return strcmp(a_ulabel, u) != 0; -} -- cgit v1.2.1