Rename ssl3_choose_cipher.
We don't support SSL 3.0 anymore. It's also file-local, so it can be
choose_cipher.
Change-Id: Idab96496eda69c7fd906aa788ac26e8d30c317d5
Reviewed-on: https://boringssl-review.googlesource.com/c/boringssl/+/39984
Reviewed-by: Adam Langley <agl@google.com>
diff --git a/ssl/handshake_server.cc b/ssl/handshake_server.cc
index ec9e6ea..386ed6a 100644
--- a/ssl/handshake_server.cc
+++ b/ssl/handshake_server.cc
@@ -325,7 +325,7 @@
*out_mask_a = mask_a;
}
-static const SSL_CIPHER *ssl3_choose_cipher(
+static const SSL_CIPHER *choose_cipher(
SSL_HANDSHAKE *hs, const SSL_CLIENT_HELLO *client_hello,
const SSLCipherPreferenceList *server_pref) {
SSL *const ssl = hs->ssl;
@@ -699,7 +699,7 @@
SSLCipherPreferenceList *prefs = hs->config->cipher_list
? hs->config->cipher_list.get()
: ssl->ctx->cipher_list.get();
- hs->new_cipher = ssl3_choose_cipher(hs, &client_hello, prefs);
+ hs->new_cipher = choose_cipher(hs, &client_hello, prefs);
if (hs->new_cipher == NULL) {
OPENSSL_PUT_ERROR(SSL, SSL_R_NO_SHARED_CIPHER);
ssl_send_alert(ssl, SSL3_AL_FATAL, SSL_AD_HANDSHAKE_FAILURE);