comparison signkey.c @ 1032:0da8ba489c23 fastopen

Move generic network routines to netio.c
author Matt Johnston <matt@ucc.asn.au>
date Fri, 20 Feb 2015 23:16:38 +0800
parents 25692c60479e
children 063c38ea622b
comparison
equal deleted inserted replaced
1031:64c0aa01e2b6 1032:0da8ba489c23
138 * on return is set to the type read (useful when type = _ANY) */ 138 * on return is set to the type read (useful when type = _ANY) */
139 int buf_get_pub_key(buffer *buf, sign_key *key, enum signkey_type *type) { 139 int buf_get_pub_key(buffer *buf, sign_key *key, enum signkey_type *type) {
140 140
141 unsigned char* ident; 141 unsigned char* ident;
142 unsigned int len; 142 unsigned int len;
143 int keytype; 143 enum signkey_type keytype;
144 int ret = DROPBEAR_FAILURE; 144 int ret = DROPBEAR_FAILURE;
145 145
146 TRACE2(("enter buf_get_pub_key")) 146 TRACE2(("enter buf_get_pub_key"))
147 147
148 ident = buf_getstring(buf, &len); 148 ident = buf_getstring(buf, &len);
208 * on return is set to the type read (useful when type = _ANY) */ 208 * on return is set to the type read (useful when type = _ANY) */
209 int buf_get_priv_key(buffer *buf, sign_key *key, enum signkey_type *type) { 209 int buf_get_priv_key(buffer *buf, sign_key *key, enum signkey_type *type) {
210 210
211 unsigned char* ident; 211 unsigned char* ident;
212 unsigned int len; 212 unsigned int len;
213 int keytype; 213 enum signkey_type keytype;
214 int ret = DROPBEAR_FAILURE; 214 int ret = DROPBEAR_FAILURE;
215 215
216 TRACE2(("enter buf_get_priv_key")) 216 TRACE2(("enter buf_get_priv_key"))
217 217
218 ident = buf_getstring(buf, &len); 218 ident = buf_getstring(buf, &len);