From 597cb069410192f79825a7dcfa37fbb0b381ad95 Mon Sep 17 00:00:00 2001 From: James M Snell Date: Mon, 19 Dec 2022 13:35:38 -0800 Subject: [PATCH] fixup! src: add GetCurrentCipherName/Version to crypto_common --- src/crypto/crypto_common.cc | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/src/crypto/crypto_common.cc b/src/crypto/crypto_common.cc index 2e56a07c9ec65c..59acdd82096fc8 100644 --- a/src/crypto/crypto_common.cc +++ b/src/crypto/crypto_common.cc @@ -545,15 +545,13 @@ MaybeLocal GetKeyUsage(Environment* env, X509* cert) { return Undefined(env->isolate()); } -MaybeLocal GetCurrentCipherName( - Environment* env, - const SSLPointer& ssl) { +MaybeLocal GetCurrentCipherName(Environment* env, + const SSLPointer& ssl) { return GetCipherName(env, SSL_get_current_cipher(ssl.get())); } -MaybeLocal GetCurrentCipherVersion( - Environment* env, - const SSLPointer& ssl) { +MaybeLocal GetCurrentCipherVersion(Environment* env, + const SSLPointer& ssl) { return GetCipherVersion(env, SSL_get_current_cipher(ssl.get())); }