File indexing completed on 2024-05-19 04:42:04

0001 /*
0002     SPDX-FileCopyrightText: 2014 Denis Steckelmacher <steckdenis@yahoo.fr>
0003 
0004     SPDX-License-Identifier: GPL-2.0-only OR GPL-3.0-only OR LicenseRef-KDE-Accepted-GPL
0005 */
0006 
0007 var event = require("event");
0008 
0009 exports.getCiphers = function () { return []; };
0010 exports.getCiphers();
0011 
0012 exports.createServer = function (options, secureConnectionListener) { return new Server(); };
0013 exports.createServer(new Object(), function(){});
0014 
0015 exports.SLAB_BUFFER_SIZE = 1;
0016 
0017 exports.connect = function (options, callback) { return new CleartextStream(); };
0018 exports.connect(new Object(), function(){});
0019 
0020 exports.createSecurePair = function (credentials, isServer, requestCert, rejectUnauthorized) { return new SecurePair(); };
0021 exports.createSecurePair(new Object(), true, true, true);
0022 
0023 /*
0024  * exports.SecurePair
0025  */
0026 function SecurePair() { return ; }
0027 exports.SecurePair = SecurePair;
0028 exports.SecurePair.prototype = event.EventEmitter;
0029 
0030 
0031 /*
0032  * exports.Server
0033  */
0034 function Server() { return ; }
0035 exports.Server = Server;
0036 exports.Server.prototype = event.EventEmitter;
0037 
0038 exports.Server.prototype.listen = function (port, host, callback) { return ; };
0039 exports.Server.prototype.listen(1, "", function(){});
0040 
0041 exports.Server.prototype.close = function () { return ; };
0042 exports.Server.prototype.close();
0043 
0044 exports.Server.prototype.address = function () { return {port: 1, family: "", address: ""}; };
0045 exports.Server.prototype.address();
0046 
0047 exports.Server.prototype.addContext = function (hostname, credentials) { return ; };
0048 exports.Server.prototype.addContext("", new Object());
0049 
0050 exports.Server.prototype.maxConnections = 1;
0051 
0052 exports.Server.prototype.connections = 1;
0053 
0054 
0055 /*
0056  * exports.CryptoStream
0057  */
0058 function CryptoStream() { return ; }
0059 exports.CryptoStream = CryptoStream;
0060 
0061 exports.CryptoStream.prototype.bytesWritten = 1;
0062 
0063 
0064 /*
0065  * exports.CleartextStream
0066  */
0067 function CleartextStream() { return ; }
0068 exports.CleartextStream = CleartextStream;
0069 exports.CleartextStream.prototype = event.EventEmitter;
0070 
0071 exports.CleartextStream.prototype.authorized = true;
0072 
0073 exports.CleartextStream.prototype.authorizationError = "";
0074 
0075 exports.CleartextStream.prototype.getPeerCertificate = function () { return {
0076     subject: {C: "", ST: "", L: "", O: "", OU: "", CN: ""},
0077     issuer: {C: "", ST: "", L: "", O: "", OU: "", CN: ""},
0078     valid_from: "",
0079     valid_to: "",
0080     fingerprint: ""}; };
0081 exports.CleartextStream.prototype.getPeerCertificate();
0082 
0083 exports.CleartextStream.prototype.getCipher = function () { return {name: "", version: ""}; };
0084 exports.CleartextStream.prototype.getCipher();
0085 
0086 exports.CleartextStream.prototype.address = function () { return {port: 1, family: "", address: ""}; };
0087 exports.CleartextStream.prototype.address();
0088 
0089 exports.CleartextStream.prototype.remoteAddress = "";
0090 
0091 exports.CleartextStream.prototype.remotePort = 1;
0092 
0093