mirror of
https://github.com/nodejs/node.git
synced 2026-10-28 10:15:07 +08:00
src: remove unnecessary static qualifier in crypto_dh.cc
ZeroPadDiffieHellmanSecret() is in an anonymous namespace, so it has static linkage already. Signed-off-by: Darshan Sen <raisinten@gmail.com> PR-URL: https://github.com/nodejs/node/pull/42492 Refs: https://github.com/nodejs/node/pull/39941 Reviewed-By: Tobias Nießen <tniessen@tnie.de> Reviewed-By: Anna Henningsen <anna@addaleax.net>
This commit is contained in:
1 parent
87a76d9de8
commit
11c0da67f9
1 file changed
+3
-3
@@ -37,9 +37,9 @@ using v8::Value;
|
||||
|
||||
namespace crypto {
|
||||
namespace {
|
||||
static void ZeroPadDiffieHellmanSecret(size_t remainder_size,
|
||||
char* data,
|
||||
size_t length) {
|
||||
void ZeroPadDiffieHellmanSecret(size_t remainder_size,
|
||||
char* data,
|
||||
size_t length) {
|
||||
// DH_size returns number of bytes in a prime number.
|
||||
// DH_compute_key returns number of bytes in a remainder of exponent, which
|
||||
// may have less bytes than a prime number. Therefore add 0-padding to the
|
||||
|
||||
Reference in new issue
Block a user