diff options
author | slontis <shane.lontis@oracle.com> | 2023-01-31 10:50:22 +1000 |
---|---|---|
committer | Tomas Mraz <tomas@openssl.org> | 2023-02-08 16:17:37 +0100 |
commit | 23e65561e28f705f8f59128470aaf89bdbdb84fa (patch) | |
tree | 95611ad9a10999cb84cd443174b6392ce52b8aad /crypto/punycode.c | |
parent | 2b9e2afc382490592078cdb69d06f54f0fefd4c6 (diff) | |
download | openssl-new-23e65561e28f705f8f59128470aaf89bdbdb84fa.tar.gz |
Add more punycode tests and remove ossl_a2ucompare()
The unused and untested internal function ossl_a2ucompare() has been
removed.
Reviewed-by: Paul Dale <pauli@openssl.org>
Reviewed-by: Dmitry Belyavskiy <beldmit@gmail.com>
(Merged from https://github.com/openssl/openssl/pull/20177)
Diffstat (limited to 'crypto/punycode.c')
-rw-r--r-- | crypto/punycode.c | 19 |
1 files changed, 0 insertions, 19 deletions
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; -} |