From 978456e39de8886bd57751f4b7fd954b264386a0 Mon Sep 17 00:00:00 2001 From: Colton Willey Date: Thu, 11 Jul 2024 14:51:38 -0700 Subject: [PATCH] Remove get cipher bytes from header --- src/ssl.c | 1 + tests/api.c | 1 + wolfssl/ssl.h | 1 - 3 files changed, 2 insertions(+), 1 deletion(-) diff --git a/src/ssl.c b/src/ssl.c index d1d7189520..9ba891d629 100644 --- a/src/ssl.c +++ b/src/ssl.c @@ -1641,6 +1641,7 @@ int wolfSSL_get_ciphers(char* buf, int len) return WOLFSSL_SUCCESS; } + #ifndef NO_ERROR_STRINGS /* places a list of all supported cipher suites in TLS_* format into "buf" * return WOLFSSL_SUCCESS on success */ diff --git a/tests/api.c b/tests/api.c index 700293ba6c..4a896533ac 100644 --- a/tests/api.c +++ b/tests/api.c @@ -1730,6 +1730,7 @@ static int test_wolfSSL_CTX_set_cipher_list_bytes(void) return EXPECT_RESULT(); } + static int test_wolfSSL_CTX_use_certificate_file(void) { EXPECT_DECLS; diff --git a/wolfssl/ssl.h b/wolfssl/ssl.h index 51b90a706b..d1a88bd5df 100644 --- a/wolfssl/ssl.h +++ b/wolfssl/ssl.h @@ -1169,7 +1169,6 @@ WOLFSSL_API char* wolfSSL_get_cipher_list(int priority); WOLFSSL_API char* wolfSSL_get_cipher_list_ex(WOLFSSL* ssl, int priority); WOLFSSL_API int wolfSSL_get_ciphers(char* buf, int len); WOLFSSL_API int wolfSSL_get_ciphers_iana(char* buf, int len); -WOLFSSL_API int wolfSSL_get_cipher_list_bytes(byte* buf, int *len); WOLFSSL_API const char* wolfSSL_get_cipher_name(WOLFSSL* ssl); WOLFSSL_API const char* wolfSSL_get_cipher_name_from_suite( unsigned char cipherSuite0, unsigned char cipherSuite);