Skip to content

Commit 987b5d1

Browse files
RaisinTenjuanarbol
authored andcommitted
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 <[email protected]> PR-URL: #42492 Refs: #39941 Reviewed-By: Tobias Nießen <[email protected]> Reviewed-By: Anna Henningsen <[email protected]>
1 parent cf1543e commit 987b5d1

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/crypto/crypto_dh.cc

+3-3
Original file line numberDiff line numberDiff line change
@@ -37,9 +37,9 @@ using v8::Value;
3737

3838
namespace crypto {
3939
namespace {
40-
static void ZeroPadDiffieHellmanSecret(size_t remainder_size,
41-
char* data,
42-
size_t length) {
40+
void ZeroPadDiffieHellmanSecret(size_t remainder_size,
41+
char* data,
42+
size_t length) {
4343
// DH_size returns number of bytes in a prime number.
4444
// DH_compute_key returns number of bytes in a remainder of exponent, which
4545
// may have less bytes than a prime number. Therefore add 0-padding to the

0 commit comments

Comments
 (0)