File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -91,14 +91,14 @@ exports.SecureContext = SecureContext;
9191exports . createSecureContext = function createSecureContext ( options ) {
9292if ( ! options ) options = { } ;
9393
94- var secureOptions = options . secureOptions ;
94+ let secureOptions = options . secureOptions ;
9595if ( options . honorCipherOrder )
9696secureOptions |= SSL_OP_CIPHER_SERVER_PREFERENCE ;
9797
9898const c = new SecureContext ( options . secureProtocol , secureOptions ,
9999options . minVersion , options . maxVersion ) ;
100- var i ;
101- var val ;
100+ let i ;
101+ let val ;
102102
103103// Add CA before the cert to be able to load cert's issuer in C++ code.
104104const { ca } = options ;
@@ -313,7 +313,7 @@ exports.translatePeerCertificate = function translatePeerCertificate(c) {
313313}
314314if ( c . subject != null ) c . subject = parseCertString ( c . subject ) ;
315315if ( c . infoAccess != null ) {
316- var info = c . infoAccess ;
316+ const info = c . infoAccess ;
317317c . infoAccess = Object . create ( null ) ;
318318
319319// XXX: More key validation?
You can’t perform that action at this time.
0 commit comments