diff --git a/src/node_crypto.cc b/src/node_crypto.cc index c6f8fad4ed6754..053e6970c377cb 100644 --- a/src/node_crypto.cc +++ b/src/node_crypto.cc @@ -5177,7 +5177,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))); }