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

Method stopTrace

modules/crypt/ssl/session_original.js:292–328  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

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

Callers 1

handshakeMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected