@@ -40,11 +40,12 @@ cdef class Option:
40
40
return self .__str__ ()
41
41
42
42
43
+ # grep SSH_OPTIONS libssh/include/libssh/libssh.h | tr -d , | sed -E 's/SSH_OPTIONS_([A-Z0-9_]+)/\1 = Option.from_option(ssh_options_e.\0)/'
43
44
HOST = Option.from_option(ssh_options_e.SSH_OPTIONS_HOST)
44
- USER = Option.from_option(ssh_options_e.SSH_OPTIONS_USER)
45
45
PORT = Option.from_option(ssh_options_e.SSH_OPTIONS_PORT)
46
46
PORT_STR = Option.from_option(ssh_options_e.SSH_OPTIONS_PORT_STR)
47
47
FD = Option.from_option(ssh_options_e.SSH_OPTIONS_FD)
48
+ USER = Option.from_option(ssh_options_e.SSH_OPTIONS_USER)
48
49
SSH_DIR = Option.from_option(ssh_options_e.SSH_OPTIONS_SSH_DIR)
49
50
IDENTITY = Option.from_option(ssh_options_e.SSH_OPTIONS_IDENTITY)
50
51
ADD_IDENTITY = Option.from_option(ssh_options_e.SSH_OPTIONS_ADD_IDENTITY)
@@ -54,33 +55,30 @@ TIMEOUT_USEC = Option.from_option(ssh_options_e.SSH_OPTIONS_TIMEOUT_USEC)
54
55
SSH1 = Option.from_option(ssh_options_e.SSH_OPTIONS_SSH1)
55
56
SSH2 = Option.from_option(ssh_options_e.SSH_OPTIONS_SSH2)
56
57
LOG_VERBOSITY = Option.from_option(ssh_options_e.SSH_OPTIONS_LOG_VERBOSITY)
57
- LOG_VERBOSITY_STR = Option.from_option(
58
- ssh_options_e.SSH_OPTIONS_LOG_VERBOSITY_STR)
58
+ LOG_VERBOSITY_STR = Option.from_option(ssh_options_e.SSH_OPTIONS_LOG_VERBOSITY_STR)
59
59
CIPHERS_C_S = Option.from_option(ssh_options_e.SSH_OPTIONS_CIPHERS_C_S)
60
60
CIPHERS_S_C = Option.from_option(ssh_options_e.SSH_OPTIONS_CIPHERS_S_C)
61
61
COMPRESSION_C_S = Option.from_option(ssh_options_e.SSH_OPTIONS_COMPRESSION_C_S)
62
62
COMPRESSION_S_C = Option.from_option(ssh_options_e.SSH_OPTIONS_COMPRESSION_S_C)
63
63
PROXYCOMMAND = Option.from_option(ssh_options_e.SSH_OPTIONS_PROXYCOMMAND)
64
64
BINDADDR = Option.from_option(ssh_options_e.SSH_OPTIONS_BINDADDR)
65
- STRICTHOSTKEYCHECK = Option.from_option(
66
- ssh_options_e.SSH_OPTIONS_STRICTHOSTKEYCHECK)
65
+ STRICTHOSTKEYCHECK = Option.from_option(ssh_options_e.SSH_OPTIONS_STRICTHOSTKEYCHECK)
67
66
COMPRESSION = Option.from_option(ssh_options_e.SSH_OPTIONS_COMPRESSION)
68
- COMPRESSION_LEVEL = Option.from_option(
69
- ssh_options_e.SSH_OPTIONS_COMPRESSION_LEVEL)
67
+ COMPRESSION_LEVEL = Option.from_option(ssh_options_e.SSH_OPTIONS_COMPRESSION_LEVEL)
70
68
KEY_EXCHANGE = Option.from_option(ssh_options_e.SSH_OPTIONS_KEY_EXCHANGE)
71
69
HOSTKEYS = Option.from_option(ssh_options_e.SSH_OPTIONS_HOSTKEYS)
72
- GSSAPI_SERVER_IDENTITY = Option.from_option(
73
- ssh_options_e.SSH_OPTIONS_GSSAPI_SERVER_IDENTITY)
74
- GSSAPI_CLIENT_IDENTITY = Option.from_option(
75
- ssh_options_e.SSH_OPTIONS_GSSAPI_CLIENT_IDENTITY)
76
- GSSAPI_DELEGATE_CREDENTIALS = Option.from_option(
77
- ssh_options_e.SSH_OPTIONS_GSSAPI_DELEGATE_CREDENTIALS)
70
+ GSSAPI_SERVER_IDENTITY = Option.from_option(ssh_options_e.SSH_OPTIONS_GSSAPI_SERVER_IDENTITY)
71
+ GSSAPI_CLIENT_IDENTITY = Option.from_option(ssh_options_e.SSH_OPTIONS_GSSAPI_CLIENT_IDENTITY)
72
+ GSSAPI_DELEGATE_CREDENTIALS = Option.from_option(ssh_options_e.SSH_OPTIONS_GSSAPI_DELEGATE_CREDENTIALS)
78
73
HMAC_C_S = Option.from_option(ssh_options_e.SSH_OPTIONS_HMAC_C_S)
79
74
HMAC_S_C = Option.from_option(ssh_options_e.SSH_OPTIONS_HMAC_S_C)
80
75
PASSWORD_AUTH = Option.from_option(ssh_options_e.SSH_OPTIONS_PASSWORD_AUTH)
81
76
PUBKEY_AUTH = Option.from_option(ssh_options_e.SSH_OPTIONS_PUBKEY_AUTH)
82
77
KBDINT_AUTH = Option.from_option(ssh_options_e.SSH_OPTIONS_KBDINT_AUTH)
83
78
GSSAPI_AUTH = Option.from_option(ssh_options_e.SSH_OPTIONS_GSSAPI_AUTH)
84
- GLOBAL_KNOWNHOSTS = Option.from_option(
85
- ssh_options_e.SSH_OPTIONS_GLOBAL_KNOWNHOSTS)
79
+ GLOBAL_KNOWNHOSTS = Option.from_option(ssh_options_e.SSH_OPTIONS_GLOBAL_KNOWNHOSTS)
86
80
NODELAY = Option.from_option(ssh_options_e.SSH_OPTIONS_NODELAY)
81
+ PUBLICKEY_ACCEPTED_TYPES = Option.from_option(ssh_options_e.SSH_OPTIONS_PUBLICKEY_ACCEPTED_TYPES)
82
+ PROCESS_CONFIG = Option.from_option(ssh_options_e.SSH_OPTIONS_PROCESS_CONFIG)
83
+ REKEY_DATA = Option.from_option(ssh_options_e.SSH_OPTIONS_REKEY_DATA)
84
+ REKEY_TIME = Option.from_option(ssh_options_e.SSH_OPTIONS_REKEY_TIME)
0 commit comments