-
Notifications
You must be signed in to change notification settings - Fork 582
/
tls.ts
51 lines (49 loc) · 1.18 KB
/
tls.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
// Copyright 2018-2022 the Deno authors. All rights reserved. MIT license.
// Copyright Joyent and Node contributors. All rights reserved. MIT license.
import { notImplemented } from "./_utils.ts";
import { Socket } from "./net.ts";
export class CryptoStream {}
export class SecurePair {}
export class Server {}
export class TLSSocket extends Socket {
// Note: Mock authorized property for now
authorized = true;
}
export function checkServerIdentity() {
notImplemented();
}
export function connect() {
notImplemented();
}
export function createSecureContext() {
notImplemented();
}
export function createSecurePair() {
notImplemented();
}
export function createServer() {
notImplemented();
}
export function getCiphers() {
notImplemented();
}
export const rootCertificates = undefined;
export const DEFAULT_ECDH_CURVE = undefined;
export const DEFAULT_MAX_VERSION = undefined;
export const DEFAULT_MIN_VERSION = undefined;
export default {
CryptoStream,
SecurePair,
Server,
TLSSocket,
checkServerIdentity,
connect,
createSecureContext,
createSecurePair,
createServer,
getCiphers,
rootCertificates,
DEFAULT_ECDH_CURVE,
DEFAULT_MAX_VERSION,
DEFAULT_MIN_VERSION,
};