Skip to content

Commit 6fcb9cf

Browse files
committed
Use spaces rather than tabs
1 parent 8542ee8 commit 6fcb9cf

File tree

1 file changed

+14
-14
lines changed

1 file changed

+14
-14
lines changed

src/components/ssl-observatory.js

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -245,29 +245,29 @@ SSLObservatory.prototype = {
245245
if (certchain) {
246246
var chainEnum = certchain.getChain();
247247
var chainArray = [];
248-
var chainArrayFpStr = '';
249-
var fps = [];
248+
var chainArrayFpStr = '';
249+
var fps = [];
250250
for(var i = 0; i < chainEnum.length; i++) {
251251
var cert = chainEnum.queryElementAt(i, Ci.nsIX509Cert);
252252
chainArray.push(cert);
253-
var fp = (cert.md5Fingerprint+cert.sha1Fingerprint).replace(":", "", "g");
254-
fps.push(fp);
255-
chainArrayFpStr = chainArrayFpStr + fp;
253+
var fp = (cert.md5Fingerprint+cert.sha1Fingerprint).replace(":", "", "g");
254+
fps.push(fp);
255+
chainArrayFpStr = chainArrayFpStr + fp;
256256
}
257-
var chain_hash = sha256_digest(chainArrayFpStr).toUpperCase();
258-
this.log(INFO, "SHA-256 hash of cert chain for "+new String(subject.URI.host)+" is "+ chain_hash);
257+
var chain_hash = sha256_digest(chainArrayFpStr).toUpperCase();
258+
this.log(INFO, "SHA-256 hash of cert chain for "+new String(subject.URI.host)+" is "+ chain_hash);
259259

260-
if (this.isChainWhitelisted(chain_hash)) {
261-
this.log(INFO, "This cert chain is whitelisted. Not submitting.");
262-
return;
263-
}
264-
this.log(INFO, "Cert chain is NOT whitelisted. Proceeding with submission.");
260+
if (this.isChainWhitelisted(chain_hash)) {
261+
this.log(INFO, "This cert chain is whitelisted. Not submitting.");
262+
return;
263+
}
264+
this.log(INFO, "Cert chain is NOT whitelisted. Proceeding with submission.");
265265

266266

267267
if (subject.URI.port == -1) {
268-
this.submitChain(chainArray, fps, new String(subject.URI.host), subject);
268+
this.submitChain(chainArray, fps, new String(subject.URI.host), subject);
269269
} else {
270-
this.submitChain(chainArray, fps, subject.URI.host+":"+subject.URI.port, subject);
270+
this.submitChain(chainArray, fps, subject.URI.host+":"+subject.URI.port, subject);
271271
}
272272
}
273273
}

0 commit comments

Comments
 (0)