Skip to content

Commit

Permalink
fixup! src: add GetCurrentCipherName/Version to crypto_common
Browse files Browse the repository at this point in the history
  • Loading branch information
jasnell committed Dec 19, 2022
1 parent 088c5f0 commit 597cb06
Showing 1 changed file with 4 additions and 6 deletions.
10 changes: 4 additions & 6 deletions src/crypto/crypto_common.cc
Original file line number Diff line number Diff line change
Expand Up @@ -545,15 +545,13 @@ MaybeLocal<Value> GetKeyUsage(Environment* env, X509* cert) {
return Undefined(env->isolate());
}

MaybeLocal<Value> GetCurrentCipherName(
Environment* env,
const SSLPointer& ssl) {
MaybeLocal<Value> GetCurrentCipherName(Environment* env,
const SSLPointer& ssl) {
return GetCipherName(env, SSL_get_current_cipher(ssl.get()));
}

MaybeLocal<Value> GetCurrentCipherVersion(
Environment* env,
const SSLPointer& ssl) {
MaybeLocal<Value> GetCurrentCipherVersion(Environment* env,
const SSLPointer& ssl) {
return GetCipherVersion(env, SSL_get_current_cipher(ssl.get()));
}

Expand Down

0 comments on commit 597cb06

Please sign in to comment.