MCPcopy Create free account
hub / github.com/Moddable-OpenSource/moddable / stopTrace

Method stopTrace

modules/crypt/ssl/session_419.js:294–330  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

292 this.traceLevel++;
293 }
294 stopTrace() {
295 if (this.alert) {
296 trace("ALERT! (" + this.alert.level + ", " + this.alert.description + "\n");
297 return;
298 }
299 if (undefined === this.traceLevel)
300 return;
301
302 let algo = "";
303 switch (this.chosenCipher.keyExchangeAlgorithm) {
304 case RSA: algo = "RSA"; break;
305 case DHE_DSS: algo = "DHE_DSS"; break;
306 case DHE_RSA: algo = "DHE_RSA"; break;
307 case ECDHE_RSA: algo = "ECDHE_RSA"; break;
308 }
309 let enc = "";
310 switch (this.chosenCipher.cipherAlgorithm) {
311 case AES: enc = "AES"; break;
312 case DES: enc = "DES"; break;
313 case TDES: enc = "TDES"; break;
314 case RC4: enc = "RC4"; break;
315 }
316 let mode = "";
317 switch (this.chosenCipher.encryptionMode) {
318 case CBC: mode = "CBC"; break;
319 case GCM: mode = "GCM"; break;
320 case NONE: mode = "NONE"; break;
321 }
322 let hash = "";
323 switch (this.chosenCipher.hashAlgorithm) {
324 case SHA1: hash = "SHA1"; break;
325 case MD5: hash = "MD5"; break;
326 case SHA256: hash = "SHA256"; break;
327 case SHA384: hash = "SHA384"; break;
328 }
329 trace("FINISHED: " + algo + "-" + enc + "-" + mode + "-" + hash + "\n");
330 }
331}
332
333export default SSLSession;

Callers 1

handshakeMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected