diff --git a/src/node_crypto.cc b/src/node_crypto.cc index a27f97dc7407fe..0d88828bec1885 100644 --- a/src/node_crypto.cc +++ b/src/node_crypto.cc @@ -5370,7 +5370,7 @@ void GetSSLCiphers(const FunctionCallbackInfo& args) { STACK_OF(SSL_CIPHER)* ciphers = SSL_get_ciphers(ssl); for (int i = 0; i < sk_SSL_CIPHER_num(ciphers); ++i) { - SSL_CIPHER* cipher = sk_SSL_CIPHER_value(ciphers, i); + const SSL_CIPHER* cipher = sk_SSL_CIPHER_value(ciphers, i); arr->Set(i, OneByteString(args.GetIsolate(), SSL_CIPHER_get_name(cipher))); }