comparison ssh.h @ 1674:ba6fc7afe1c5

use sigtype where appropriate
author Matt Johnston <matt@ucc.asn.au>
date Mon, 06 Apr 2020 23:18:26 +0800
parents d32bcb5c557d
children ae41624c2198
comparison
equal deleted inserted replaced
1668:49cb3cf4bd6f 1674:ba6fc7afe1c5
98 #define SSH_SERVICE_USERAUTH "ssh-userauth" 98 #define SSH_SERVICE_USERAUTH "ssh-userauth"
99 #define SSH_SERVICE_USERAUTH_LEN 12 99 #define SSH_SERVICE_USERAUTH_LEN 12
100 #define SSH_SERVICE_CONNECTION "ssh-connection" 100 #define SSH_SERVICE_CONNECTION "ssh-connection"
101 #define SSH_SERVICE_CONNECTION_LEN 14 101 #define SSH_SERVICE_CONNECTION_LEN 14
102 102
103 /* public key types */ 103 /* public/signature key types */
104 #define SSH_SIGNKEY_DSS "ssh-dss" 104 #define SSH_SIGNKEY_DSS "ssh-dss"
105 #define SSH_SIGNKEY_DSS_LEN 7 105 #define SSH_SIGNKEY_DSS_LEN 7
106 #define SSH_SIGNKEY_RSA "ssh-rsa" 106 #define SSH_SIGNKEY_RSA "ssh-rsa"
107 #define SSH_SIGNKEY_RSA_LEN 7 107 #define SSH_SIGNKEY_RSA_LEN 7
108 #define SSH_SIGNKEY_ED25519 "ssh-ed25519" 108 #define SSH_SIGNKEY_ED25519 "ssh-ed25519"
109 #define SSH_SIGNKEY_ED25519_LEN 11 109 #define SSH_SIGNKEY_ED25519_LEN 11
110 /* signature type */
111 #define SSH_SIGNKEY_RSA_SHA256 "rsa-sha2-256"
110 112
111 /* Agent commands. These aren't part of the spec, and are defined 113 /* Agent commands. These aren't part of the spec, and are defined
112 * only on the openssh implementation. */ 114 * only on the openssh implementation. */
113 #define SSH_AGENT_FAILURE 5 115 #define SSH_AGENT_FAILURE 5
114 #define SSH_AGENT_SUCCESS 6 116 #define SSH_AGENT_SUCCESS 6