Mercurial > dropbear
comparison ssh.h @ 1683:41bf8f216644
merge rsa-sha256
author | Matt Johnston <matt@ucc.asn.au> |
---|---|
date | Tue, 26 May 2020 00:24:02 +0800 |
parents | d5cdc60db08e |
children | 333688ec53d0 |
comparison
equal
deleted
inserted
replaced
1673:e0871128e61f | 1683:41bf8f216644 |
---|---|
30 #define SSH_MSG_IGNORE 2 | 30 #define SSH_MSG_IGNORE 2 |
31 #define SSH_MSG_UNIMPLEMENTED 3 | 31 #define SSH_MSG_UNIMPLEMENTED 3 |
32 #define SSH_MSG_DEBUG 4 | 32 #define SSH_MSG_DEBUG 4 |
33 #define SSH_MSG_SERVICE_REQUEST 5 | 33 #define SSH_MSG_SERVICE_REQUEST 5 |
34 #define SSH_MSG_SERVICE_ACCEPT 6 | 34 #define SSH_MSG_SERVICE_ACCEPT 6 |
35 #define SSH_MSG_EXT_INFO 7 | |
35 #define SSH_MSG_KEXINIT 20 | 36 #define SSH_MSG_KEXINIT 20 |
36 #define SSH_MSG_NEWKEYS 21 | 37 #define SSH_MSG_NEWKEYS 21 |
37 #define SSH_MSG_KEXDH_INIT 30 | 38 #define SSH_MSG_KEXDH_INIT 30 |
38 #define SSH_MSG_KEXDH_REPLY 31 | 39 #define SSH_MSG_KEXDH_REPLY 31 |
39 | 40 |
92 #define SSH_DISCONNECT_TOO_MANY_CONNECTIONS 12 | 93 #define SSH_DISCONNECT_TOO_MANY_CONNECTIONS 12 |
93 #define SSH_DISCONNECT_AUTH_CANCELLED_BY_USER 13 | 94 #define SSH_DISCONNECT_AUTH_CANCELLED_BY_USER 13 |
94 #define SSH_DISCONNECT_NO_MORE_AUTH_METHODS_AVAILABLE 14 | 95 #define SSH_DISCONNECT_NO_MORE_AUTH_METHODS_AVAILABLE 14 |
95 #define SSH_DISCONNECT_ILLEGAL_USER_NAME 15 | 96 #define SSH_DISCONNECT_ILLEGAL_USER_NAME 15 |
96 | 97 |
98 /* rfc8308 */ | |
99 #define SSH_EXT_INFO_S "ext-info-s" | |
100 #define SSH_EXT_INFO_C "ext-info-c" | |
101 #define SSH_SERVER_SIG_ALGS "server-sig-algs" | |
102 | |
97 /* service types */ | 103 /* service types */ |
98 #define SSH_SERVICE_USERAUTH "ssh-userauth" | 104 #define SSH_SERVICE_USERAUTH "ssh-userauth" |
99 #define SSH_SERVICE_USERAUTH_LEN 12 | 105 #define SSH_SERVICE_USERAUTH_LEN 12 |
100 #define SSH_SERVICE_CONNECTION "ssh-connection" | 106 #define SSH_SERVICE_CONNECTION "ssh-connection" |
101 #define SSH_SERVICE_CONNECTION_LEN 14 | 107 #define SSH_SERVICE_CONNECTION_LEN 14 |
102 | 108 |
103 /* public key types */ | 109 /* public/signature key types */ |
104 #define SSH_SIGNKEY_DSS "ssh-dss" | 110 #define SSH_SIGNKEY_DSS "ssh-dss" |
105 #define SSH_SIGNKEY_DSS_LEN 7 | 111 #define SSH_SIGNKEY_DSS_LEN 7 |
106 #define SSH_SIGNKEY_RSA "ssh-rsa" | 112 #define SSH_SIGNKEY_RSA "ssh-rsa" |
107 #define SSH_SIGNKEY_RSA_LEN 7 | 113 #define SSH_SIGNKEY_RSA_LEN 7 |
108 #define SSH_SIGNKEY_ED25519 "ssh-ed25519" | 114 #define SSH_SIGNKEY_ED25519 "ssh-ed25519" |
109 #define SSH_SIGNKEY_ED25519_LEN 11 | 115 #define SSH_SIGNKEY_ED25519_LEN 11 |
116 /* signature type */ | |
117 #define SSH_SIGNATURE_RSA_SHA256 "rsa-sha2-256" | |
110 | 118 |
111 /* Agent commands. These aren't part of the spec, and are defined | 119 /* Agent commands. These aren't part of the spec, and are defined |
112 * only on the openssh implementation. */ | 120 * only on the openssh implementation. */ |
113 #define SSH_AGENT_FAILURE 5 | 121 #define SSH_AGENT_FAILURE 5 |
114 #define SSH_AGENT_SUCCESS 6 | 122 #define SSH_AGENT_SUCCESS 6 |