Always ensure that session->cipher is set
[openssl.git] / ssl / ssl_ciph.c
index d4145ba5da05b592b5c5fbaad18f03143ffbafc3..88b99cca142fea7ef7cfe6a3bcc8d931eb27b57f 100644 (file)
@@ -2018,14 +2018,3 @@ int ssl_cipher_get_overhead(const SSL_CIPHER *c, size_t *mac_overhead,
 
     return 1;
 }
-
-const EVP_MD *ssl_cipher_get_handshake_md(int cipher_id)
-{
-    const SSL_CIPHER *cipher = ssl3_get_cipher_by_id(cipher_id);
-    if (cipher == NULL) {
-        /* Don't recognise this cipher */
-        return NULL;
-    }
-
-    return ssl_md(cipher->algorithm2);
-}