Skip to content

Commit

Permalink
Removes unsed function: ssl_bad_method()
Browse files Browse the repository at this point in the history
  • Loading branch information
fwh-dc committed Jan 15, 2024
1 parent afd8e29 commit 45ba92d
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 8 deletions.
1 change: 0 additions & 1 deletion include/openssl/sslerr_legacy.h
Original file line number Diff line number Diff line change
Expand Up @@ -143,7 +143,6 @@ OSSL_DEPRECATEDIN_3_0 int ERR_load_SSL_strings(void);
# define SSL_F_SSL_ADD_SERVERHELLO_RENEGOTIATE_EXT 0
# define SSL_F_SSL_ADD_SERVERHELLO_TLSEXT 0
# define SSL_F_SSL_ADD_SERVERHELLO_USE_SRTP_EXT 0
# define SSL_F_SSL_BAD_METHOD 0
# define SSL_F_SSL_BUILD_CERT_CHAIN 0
# define SSL_F_SSL_BYTES_TO_CIPHER_LIST 0
# define SSL_F_SSL_CACHE_CIPHERLIST 0
Expand Down
6 changes: 0 additions & 6 deletions ssl/ssl_lib.c
Original file line number Diff line number Diff line change
Expand Up @@ -4804,12 +4804,6 @@ int ssl_undefined_const_function(const SSL *s)
return 0;
}

const SSL_METHOD *ssl_bad_method(int ver)
{
ERR_raise(ERR_LIB_SSL, ERR_R_SHOULD_NOT_HAVE_BEEN_CALLED);
return NULL;
}

const char *ssl_protocol_to_string(int version)
{
switch (version)
Expand Down
1 change: 0 additions & 1 deletion ssl/ssl_local.h
Original file line number Diff line number Diff line change
Expand Up @@ -2235,7 +2235,6 @@ extern const unsigned char tls12downgrade[8];

extern SSL3_ENC_METHOD ssl3_undef_enc_method;

__owur const SSL_METHOD *ssl_bad_method(int ver);
__owur const SSL_METHOD *sslv3_method(void);
__owur const SSL_METHOD *sslv3_server_method(void);
__owur const SSL_METHOD *sslv3_client_method(void);
Expand Down

0 comments on commit 45ba92d

Please sign in to comment.