summaryrefslogtreecommitdiff
path: root/session.h
diff options
context:
space:
mode:
authorMatt Johnston <matt@ucc.asn.au>2020-05-17 23:58:31 +0800
committerMatt Johnston <matt@ucc.asn.au>2020-05-17 23:58:31 +0800
commit46b1e41659e5bd2f26eff873a9d58a6cce7cdbbe (patch)
tree6807780c8e8f994bbe7def8cb7998bd1b9e5ab95 /session.h
parent8dd35374a9cd52af7ba70660defdb9f36ed9d75b (diff)
downloaddropbear-46b1e41659e5bd2f26eff873a9d58a6cce7cdbbe.tar.gz
split signkey_type and signature_type for RSA sha1 vs sha256
Diffstat (limited to 'session.h')
-rw-r--r--session.h12
1 files changed, 10 insertions, 2 deletions
diff --git a/session.h b/session.h
index ebfc915..cbe9cb5 100644
--- a/session.h
+++ b/session.h
@@ -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