Make the input parameters for SSL_SESSION_set1_master_key const
[openssl.git] / ssl / ssl_lib.c
index db14e223504a749895d2019a23bea843df647507..f9c7b4451b14c10dba7d2c700afc76adb1a91506 100644 (file)
@@ -3725,7 +3725,7 @@ size_t SSL_SESSION_get_master_key(const SSL_SESSION *session,
     return outlen;
 }
 
-int SSL_SESSION_set1_master_key(SSL_SESSION *sess, unsigned char *in,
+int SSL_SESSION_set1_master_key(SSL_SESSION *sess, const unsigned char *in,
                                 size_t len)
 {
     if (len > sizeof(sess->master_key))