File tree Expand file tree Collapse file tree 3 files changed +3
-23
lines changed Expand file tree Collapse file tree 3 files changed +3
-23
lines changed Original file line number Diff line number Diff line change @@ -113,7 +113,6 @@ DataPointer DataPointer::Alloc(size_t len) {
113
113
114
114
DataPointer DataPointer::SecureAlloc (size_t len) {
115
115
#ifndef OPENSSL_IS_BORINGSSL
116
- printf (" ... %zu\n " , len);
117
116
auto ptr = OPENSSL_secure_zalloc (len);
118
117
if (ptr == nullptr ) return {};
119
118
return DataPointer (ptr, len, true );
Original file line number Diff line number Diff line change @@ -117,7 +117,7 @@ bool HKDFTraits::DeriveBits(
117
117
params.length );
118
118
if (!dp) return false ;
119
119
120
- DCHECK (!data .isSecure ());
120
+ DCHECK (!dp .isSecure ());
121
121
*out = ByteSource::Allocated (dp.release ());
122
122
return true ;
123
123
}
Original file line number Diff line number Diff line change 14
14
15
15
#include " ncrypto.h"
16
16
17
- #include < openssl/dsa.h>
18
- #include < openssl/ec.h>
19
- #include < openssl/err.h>
20
- #include < openssl/evp.h>
21
- #include < openssl/hmac.h>
22
- #include < openssl/kdf.h>
23
- #include < openssl/rsa.h>
24
- #include < openssl/ssl.h>
25
-
26
- // The FIPS-related functions are only available
27
- // when the OpenSSL itself was compiled with FIPS support.
28
- #if defined(OPENSSL_FIPS) && OPENSSL_VERSION_MAJOR < 3
29
- # include < openssl/fips.h>
30
- #endif // OPENSSL_FIPS
31
-
32
17
#include < algorithm>
33
18
#include < climits>
34
19
#include < cstdio>
37
22
#include < string>
38
23
#include < vector>
39
24
40
- namespace node {
41
-
42
- namespace crypto {
25
+ namespace node ::crypto {
43
26
// Currently known sizes of commonly used OpenSSL struct sizes.
44
27
// OpenSSL considers it's various structs to be opaque and the
45
28
// sizes may change from one version of OpenSSL to another, so
@@ -665,9 +648,7 @@ namespace Util {
665
648
void Initialize (Environment* env, v8::Local<v8::Object> target);
666
649
void RegisterExternalReferences (ExternalReferenceRegistry* registry);
667
650
} // namespace Util
668
-
669
- } // namespace crypto
670
- } // namespace node
651
+ } // namespace node::crypto
671
652
672
653
#endif // defined(NODE_WANT_INTERNALS) && NODE_WANT_INTERNALS
673
654
#endif // SRC_CRYPTO_CRYPTO_UTIL_H_
You can’t perform that action at this time.
0 commit comments