summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTheo Buehler <tb@cvs.openbsd.org>2024-03-01 03:47:33 +0000
committerTheo Buehler <tb@cvs.openbsd.org>2024-03-01 03:47:33 +0000
commitb9d0dd9e642b1f201852df68a915ad81e36571fb (patch)
treeb5bee2abb80cfd6ac3835445fb8d1725dded270f
parent6a550a58fb3f0f7084451dfe6e92d9986b7f7b26 (diff)
Remove the ciphers_by_values_test()
-rw-r--r--regress/lib/libssl/ciphers/cipherstest.c56
1 files changed, 0 insertions, 56 deletions
diff --git a/regress/lib/libssl/ciphers/cipherstest.c b/regress/lib/libssl/ciphers/cipherstest.c
index c43939d4d54..e1411d6825c 100644
--- a/regress/lib/libssl/ciphers/cipherstest.c
+++ b/regress/lib/libssl/ciphers/cipherstest.c
@@ -129,61 +129,6 @@ cipher_find_test(void)
return (ret);
}
-static int
-cipher_get_by_value_tests(void)
-{
- STACK_OF(SSL_CIPHER) *ciphers;
- const SSL_CIPHER *cipher;
- SSL_CTX *ssl_ctx = NULL;
- SSL *ssl = NULL;
- unsigned long id;
- uint16_t value;
- int ret = 1;
- int i;
-
- if ((ssl_ctx = SSL_CTX_new(SSLv23_method())) == NULL) {
- fprintf(stderr, "SSL_CTX_new() returned NULL\n");
- goto failure;
- }
- if ((ssl = SSL_new(ssl_ctx)) == NULL) {
- fprintf(stderr, "SSL_new() returned NULL\n");
- goto failure;
- }
-
- if ((ciphers = SSL_get_ciphers(ssl)) == NULL) {
- fprintf(stderr, "no ciphers\n");
- goto failure;
- }
-
- for (i = 0; i < sk_SSL_CIPHER_num(ciphers); i++) {
- cipher = sk_SSL_CIPHER_value(ciphers, i);
-
- id = SSL_CIPHER_get_id(cipher);
- if (SSL_CIPHER_get_by_id(id) == NULL) {
- fprintf(stderr, "SSL_CIPHER_get_by_id() failed "
- "for %s (0x%lx)\n", SSL_CIPHER_get_name(cipher),
- id);
- goto failure;
- }
-
- value = SSL_CIPHER_get_value(cipher);
- if (SSL_CIPHER_get_by_value(value) == NULL) {
- fprintf(stderr, "SSL_CIPHER_get_by_value() failed "
- "for %s (0x%04hx)\n", SSL_CIPHER_get_name(cipher),
- value);
- goto failure;
- }
- }
-
- ret = 0;
-
- failure:
- SSL_CTX_free(ssl_ctx);
- SSL_free(ssl);
-
- return (ret);
-}
-
struct parse_ciphersuites_test {
const char *str;
const int want;
@@ -522,7 +467,6 @@ main(int argc, char **argv)
failed |= check_cipher_order();
failed |= cipher_find_test();
- failed |= cipher_get_by_value_tests();
failed |= parse_ciphersuites_test();
failed |= cipher_set_test();