summaryrefslogtreecommitdiffhomepage
path: root/sysoptions.h
diff options
context:
space:
mode:
authorMatt Johnston <matt@ucc.asn.au>2020-05-24 14:16:58 +0800
committerMatt Johnston <matt@ucc.asn.au>2020-05-24 14:16:58 +0800
commit701d43b8594365b55421e8bc4c53efa920c09ed5 (patch)
treeaceb60a25d26b8d5f3b132df40e59c9218f8b66e /sysoptions.h
parent79bedc90a1efc9ba0b2c6565bd5264a7817e68d4 (diff)
send and handle SSH_MSG_EXT_INFO only at the correct point
- other fixes for rsa pubkey auth - only include ext-info handling when rsa pubkey auth is compiled
Diffstat (limited to 'sysoptions.h')
-rw-r--r--sysoptions.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/sysoptions.h b/sysoptions.h
index 0f52431..d5f8da8 100644
--- a/sysoptions.h
+++ b/sysoptions.h
@@ -161,6 +161,10 @@ If you test it please contact the Dropbear author */
#define DROPBEAR_NORMAL_DH ((DROPBEAR_DH_GROUP1) || (DROPBEAR_DH_GROUP14) || (DROPBEAR_DH_GROUP16))
+/* Dropbear only uses server-sig-algs, only needed if we have rsa-sha256 pubkey auth */
+#define DROPBEAR_EXT_INFO ((DROPBEAR_RSA_SHA256) \
+ && ((DROPBEAR_CLI_PUBKEY_AUTH) || (DROPBEAR_SVR_PUBKEY_AUTH)))
+
/* roughly 2x 521 bits */
#define MAX_ECC_SIZE 140