diff --git a/lib/_tls_legacy.js b/lib/_tls_legacy.js index 8ba661a710..c6ba34a4f4 100644 --- a/lib/_tls_legacy.js +++ b/lib/_tls_legacy.js @@ -381,7 +381,7 @@ CryptoStream.prototype.__defineGetter__('bytesWritten', function() { CryptoStream.prototype.getPeerCertificate = function(detailed) { if (this.pair.ssl) { return common.translatePeerCertificate( - this.pair.ssl.getPeerCertificate(detailed)); + this.pair.ssl.getPeerCertificate(detailed)); } return null; diff --git a/lib/_tls_wrap.js b/lib/_tls_wrap.js index 183c97112f..8f44da18ab 100644 --- a/lib/_tls_wrap.js +++ b/lib/_tls_wrap.js @@ -476,7 +476,7 @@ TLSSocket.prototype.setSession = function(session) { TLSSocket.prototype.getPeerCertificate = function(detailed) { if (this.ssl) { return common.translatePeerCertificate( - this.ssl.getPeerCertificate(detailed)); + this.ssl.getPeerCertificate(detailed)); } return null; diff --git a/src/node_crypto.cc b/src/node_crypto.cc index e29948520c..76d5a5fb55 100644 --- a/src/node_crypto.cc +++ b/src/node_crypto.cc @@ -485,7 +485,7 @@ int SSL_CTX_get_issuer(SSL_CTX* ctx, X509* cert, X509** issuer) { ret = X509_STORE_CTX_get1_issuer(issuer, &store_ctx, cert); X509_STORE_CTX_cleanup(&store_ctx); -end: + end: return ret; } @@ -1339,7 +1339,7 @@ void SSLWrap::GetPeerCertificate( CHECK_NE(cert, NULL); X509_free(cert); -done: + done: if (peer_certs != NULL) sk_X509_pop_free(peer_certs, X509_free); if (result.IsEmpty()) diff --git a/src/node_crypto.h b/src/node_crypto.h index 7645eb281a..530f8e8848 100644 --- a/src/node_crypto.h +++ b/src/node_crypto.h @@ -175,7 +175,7 @@ class SSLWrap { #endif #ifdef NODE__HAVE_TLSEXT_STATUS_CB ocsp_response_.Reset(); -#endif // NODE__HAVE_TLSEXT_STATUS_CB +#endif // NODE__HAVE_TLSEXT_STATUS_CB } inline SSL* ssl() const { return ssl_; }