diff options
author | Matt Johnston <matt@ucc.asn.au> | 2020-05-17 23:58:31 +0800 |
---|---|---|
committer | Matt Johnston <matt@ucc.asn.au> | 2020-05-17 23:58:31 +0800 |
commit | 972d723484d89c71e73ed63cc17bb2a6ce8cca5a (patch) | |
tree | a235001a141556ea7e2578ff12f2765d6a953280 /session.h | |
parent | 7dc2f36c3e2d21455ae432da4d8f338e7dc0668c (diff) |
split signkey_type and signature_type for RSA sha1 vs sha256
Diffstat (limited to 'session.h')
-rw-r--r-- | session.h | 12 |
1 files changed, 10 insertions, 2 deletions
@@ -92,8 +92,8 @@ struct key_context { struct key_context_directional trans; const struct dropbear_kex *algo_kex; - int algo_hostkey; /* server key type */ - int algo_signature; /* server signature type */ + enum signkey_type algo_hostkey; /* server key type */ + enum signature_type algo_signature; /* server signature type */ int allow_compress; /* whether compression has started (useful in zlib@openssh.com delayed compression case) */ @@ -313,6 +313,14 @@ struct clientsession { #endif sign_key *lastprivkey; + enum signature_type server_sig_algs[DROPBEAR_SIGNKEY_NUM_NAMED+1]; + int server_sig_algs_count; +#if DROPBEAR_RSA + /* Set to DROPBEAR_SIGNATURE_RSA_SHA256 or DROPBEAR_SIGNATURE_RSA_SHA1 + if depending which the server accepts */ + enum signature_type preferred_rsa_sigtype; +#endif + int retval; /* What the command exit status was - we emulate it */ #if 0 TODO |