-
Notifications
You must be signed in to change notification settings - Fork 717
Expand file tree
/
Copy pathindex.js
More file actions
58 lines (56 loc) · 1.03 KB
/
index.js
File metadata and controls
58 lines (56 loc) · 1.03 KB
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
52
53
54
55
56
57
58
'use strict';
const {
AgentProtocol,
BaseAgent,
createAgent,
CygwinAgent,
OpenSSHAgent,
PageantAgent,
} = require('./agent.js');
const {
SSHTTPAgent: HTTPAgent,
SSHTTPSAgent: HTTPSAgent,
} = require('./http-agents.js');
const { parseKey } = require('./protocol/keyParser.js');
const {
flagsToString,
OPEN_MODE,
STATUS_CODE,
stringToFlags,
} = require('./protocol/SFTP.js');
const {
SUPPORTED_KEX,
SUPPORTED_SERVER_HOST_KEY,
SUPPORTED_CIPHER,
SUPPORTED_MAC,
SUPPORTED_COMPRESSION,
} = require('./protocol/constants');
module.exports = {
AgentProtocol,
BaseAgent,
createAgent,
Client: require('./client.js'),
constants: {
SUPPORTED_KEX,
SUPPORTED_SERVER_HOST_KEY,
SUPPORTED_CIPHER,
SUPPORTED_MAC,
SUPPORTED_COMPRESSION,
},
CygwinAgent,
HTTPAgent,
HTTPSAgent,
OpenSSHAgent,
PageantAgent,
Server: require('./server.js'),
utils: {
parseKey,
...require('./keygen.js'),
sftp: {
flagsToString,
OPEN_MODE,
STATUS_CODE,
stringToFlags,
},
},
};