Skip to content

Commit

Permalink
crypto: guard with OPENSSL_NO_GOST
Browse files Browse the repository at this point in the history
PR-URL: #30050
Reviewed-By: Tobias Nießen <[email protected]>
Reviewed-By: Richard Lau <[email protected]>
Reviewed-By: David Carlier <[email protected]>
Reviewed-By: Ben Noordhuis <[email protected]>
  • Loading branch information
codebytere authored and targos committed Oct 24, 2019
1 parent 5ba842b commit 8b75aab
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/node_crypto.cc
Original file line number Diff line number Diff line change
Expand Up @@ -2735,7 +2735,7 @@ void SSLWrap<Base>::GetSharedSigalgs(const FunctionCallbackInfo<Value>& args) {
case NID_ED448:
sig_with_md = "Ed448+";
break;

#ifndef OPENSSL_NO_GOST
case NID_id_GostR3410_2001:
sig_with_md = "gost2001+";
break;
Expand All @@ -2747,7 +2747,7 @@ void SSLWrap<Base>::GetSharedSigalgs(const FunctionCallbackInfo<Value>& args) {
case NID_id_GostR3410_2012_512:
sig_with_md = "gost2012_512+";
break;

#endif // !OPENSSL_NO_GOST
default:
const char* sn = OBJ_nid2sn(sign_nid);

Expand Down

0 comments on commit 8b75aab

Please sign in to comment.