Browse Source

src: lint after OCSP commits

v0.11.13-release
Fedor Indutny 11 years ago
parent
commit
afaff70a9b
  1. 2
      lib/_tls_legacy.js
  2. 2
      lib/_tls_wrap.js
  3. 4
      src/node_crypto.cc
  4. 2
      src/node_crypto.h

2
lib/_tls_legacy.js

@ -381,7 +381,7 @@ CryptoStream.prototype.__defineGetter__('bytesWritten', function() {
CryptoStream.prototype.getPeerCertificate = function(detailed) { CryptoStream.prototype.getPeerCertificate = function(detailed) {
if (this.pair.ssl) { if (this.pair.ssl) {
return common.translatePeerCertificate( return common.translatePeerCertificate(
this.pair.ssl.getPeerCertificate(detailed)); this.pair.ssl.getPeerCertificate(detailed));
} }
return null; return null;

2
lib/_tls_wrap.js

@ -476,7 +476,7 @@ TLSSocket.prototype.setSession = function(session) {
TLSSocket.prototype.getPeerCertificate = function(detailed) { TLSSocket.prototype.getPeerCertificate = function(detailed) {
if (this.ssl) { if (this.ssl) {
return common.translatePeerCertificate( return common.translatePeerCertificate(
this.ssl.getPeerCertificate(detailed)); this.ssl.getPeerCertificate(detailed));
} }
return null; return null;

4
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); ret = X509_STORE_CTX_get1_issuer(issuer, &store_ctx, cert);
X509_STORE_CTX_cleanup(&store_ctx); X509_STORE_CTX_cleanup(&store_ctx);
end: end:
return ret; return ret;
} }
@ -1339,7 +1339,7 @@ void SSLWrap<Base>::GetPeerCertificate(
CHECK_NE(cert, NULL); CHECK_NE(cert, NULL);
X509_free(cert); X509_free(cert);
done: done:
if (peer_certs != NULL) if (peer_certs != NULL)
sk_X509_pop_free(peer_certs, X509_free); sk_X509_pop_free(peer_certs, X509_free);
if (result.IsEmpty()) if (result.IsEmpty())

2
src/node_crypto.h

@ -175,7 +175,7 @@ class SSLWrap {
#endif #endif
#ifdef NODE__HAVE_TLSEXT_STATUS_CB #ifdef NODE__HAVE_TLSEXT_STATUS_CB
ocsp_response_.Reset(); ocsp_response_.Reset();
#endif // NODE__HAVE_TLSEXT_STATUS_CB #endif // NODE__HAVE_TLSEXT_STATUS_CB
} }
inline SSL* ssl() const { return ssl_; } inline SSL* ssl() const { return ssl_; }

Loading…
Cancel
Save