comparison session.h @ 1675:ae41624c2198

split signkey_type and signature_type for RSA sha1 vs sha256
author Matt Johnston <matt@ucc.asn.au>
date Sun, 17 May 2020 23:58:31 +0800
parents ba6fc7afe1c5
children d5cdc60db08e
comparison
equal deleted inserted replaced
1674:ba6fc7afe1c5 1675:ae41624c2198
90 90
91 struct key_context_directional recv; 91 struct key_context_directional recv;
92 struct key_context_directional trans; 92 struct key_context_directional trans;
93 93
94 const struct dropbear_kex *algo_kex; 94 const struct dropbear_kex *algo_kex;
95 int algo_hostkey; /* server key type */ 95 enum signkey_type algo_hostkey; /* server key type */
96 int algo_signature; /* server signature type */ 96 enum signature_type algo_signature; /* server signature type */
97 97
98 int allow_compress; /* whether compression has started (useful in 98 int allow_compress; /* whether compression has started (useful in
99 [email protected] delayed compression case) */ 99 [email protected] delayed compression case) */
100 }; 100 };
101 101
311 info request from the server for 311 info request from the server for
312 interactive auth.*/ 312 interactive auth.*/
313 #endif 313 #endif
314 sign_key *lastprivkey; 314 sign_key *lastprivkey;
315 315
316 enum signature_type server_sig_algs[DROPBEAR_SIGNKEY_NUM_NAMED+1];
317 int server_sig_algs_count;
318 #if DROPBEAR_RSA
319 /* Set to DROPBEAR_SIGNATURE_RSA_SHA256 or DROPBEAR_SIGNATURE_RSA_SHA1
320 if depending which the server accepts */
321 enum signature_type preferred_rsa_sigtype;
322 #endif
323
316 int retval; /* What the command exit status was - we emulate it */ 324 int retval; /* What the command exit status was - we emulate it */
317 #if 0 325 #if 0
318 TODO 326 TODO
319 struct AgentkeyList *agentkeys; /* Keys to use for public-key auth */ 327 struct AgentkeyList *agentkeys; /* Keys to use for public-key auth */
320 #endif 328 #endif