@@ -153,7 +153,7 @@ template int SSLWrap<TLSWrap>::SelectALPNCallback(
153153#endif // TLSEXT_TYPE_application_layer_protocol_negotiation
154154
155155
156- static int PasswordCallback (char * buf, int size, int rwflag, void * u) {
156+ static int PasswordCallback (char * buf, int size, int rwflag, void * u) {
157157if (u) {
158158size_t buflen = static_cast <size_t >(size);
159159size_t len = strlen (static_cast <const char *>(u));
@@ -206,7 +206,7 @@ static ENGINE* LoadEngineById(const char* engine_id, char (*errmsg)[1024]) {
206206// for the OpenSSL CLI, but works poorly for Node.js because it involves
207207// synchronous interaction with the controlling terminal, something we never
208208// want, and use this function to avoid it.
209- static int NoPasswordCallback (char * buf, int size, int rwflag, void * u) {
209+ static int NoPasswordCallback (char * buf, int size, int rwflag, void * u) {
210210return 0 ;
211211}
212212
@@ -726,7 +726,7 @@ static X509_STORE* NewRootCertStore() {
726726if (root_certs_vector.empty ()) {
727727for (size_t i = 0 ; i < arraysize (root_certs); i++) {
728728BIO * bp = NodeBIO::NewFixed (root_certs[i], strlen (root_certs[i]));
729- X509 * x509 = PEM_read_bio_X509 (bp, nullptr , NoPasswordCallback, nullptr );
729+ X509 * x509 = PEM_read_bio_X509 (bp, nullptr , NoPasswordCallback, nullptr );
730730BIO_free (bp);
731731
732732// Parse errors from the built-in roots are fatal.
@@ -743,7 +743,7 @@ static X509_STORE* NewRootCertStore() {
743743if (ssl_openssl_cert_store) {
744744X509_STORE_set_default_paths (store);
745745 } else {
746- for (X509 * cert : root_certs_vector) {
746+ for (X509 * cert : root_certs_vector) {
747747X509_up_ref (cert);
748748X509_STORE_add_cert (store, cert);
749749 }
@@ -1994,7 +1994,7 @@ void SSLWrap<Base>::GetTLSTicket(const FunctionCallbackInfo<Value>& args) {
19941994if (sess == nullptr )
19951995return ;
19961996
1997- const unsigned char * ticket;
1997+ const unsigned char * ticket;
19981998size_t length;
19991999SSL_SESSION_get0_ticket (sess, &ticket, &length);
20002000
@@ -2771,7 +2771,7 @@ static bool IsValidGCMTagLength(unsigned int tag_len) {
27712771return tag_len == 4 || tag_len == 8 || (tag_len >= 12 && tag_len <= 16 );
27722772}
27732773
2774- bool CipherBase::InitAuthenticated (const char * cipher_type, int iv_len,
2774+ bool CipherBase::InitAuthenticated (const char * cipher_type, int iv_len,
27752775unsigned int auth_tag_len) {
27762776CHECK (IsAuthenticatedMode ());
27772777
@@ -3085,7 +3085,7 @@ void CipherBase::SetAutoPadding(const FunctionCallbackInfo<Value>& args) {
30853085}
30863086
30873087
3088- bool CipherBase::Final (unsigned char ** out, int * out_len) {
3088+ bool CipherBase::Final (unsigned char ** out, int * out_len) {
30893089if (!ctx_)
30903090return false ;
30913091
0 commit comments