Mercurial > dropbear
comparison sysoptions.h @ 1681:435cfb9ec96e
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
author | Matt Johnston <matt@ucc.asn.au> |
---|---|
date | Sun, 24 May 2020 14:16:58 +0800 |
parents | ba6fc7afe1c5 |
children | 41bf8f216644 |
comparison
equal
deleted
inserted
replaced
1680:5e763ad6e2e0 | 1681:435cfb9ec96e |
---|---|
159 | 159 |
160 #define DROPBEAR_DH_GROUP14 ((DROPBEAR_DH_GROUP14_SHA256) || (DROPBEAR_DH_GROUP14_SHA1)) | 160 #define DROPBEAR_DH_GROUP14 ((DROPBEAR_DH_GROUP14_SHA256) || (DROPBEAR_DH_GROUP14_SHA1)) |
161 | 161 |
162 #define DROPBEAR_NORMAL_DH ((DROPBEAR_DH_GROUP1) || (DROPBEAR_DH_GROUP14) || (DROPBEAR_DH_GROUP16)) | 162 #define DROPBEAR_NORMAL_DH ((DROPBEAR_DH_GROUP1) || (DROPBEAR_DH_GROUP14) || (DROPBEAR_DH_GROUP16)) |
163 | 163 |
164 /* Dropbear only uses server-sig-algs, only needed if we have rsa-sha256 pubkey auth */ | |
165 #define DROPBEAR_EXT_INFO ((DROPBEAR_RSA_SHA256) \ | |
166 && ((DROPBEAR_CLI_PUBKEY_AUTH) || (DROPBEAR_SVR_PUBKEY_AUTH))) | |
167 | |
164 /* roughly 2x 521 bits */ | 168 /* roughly 2x 521 bits */ |
165 #define MAX_ECC_SIZE 140 | 169 #define MAX_ECC_SIZE 140 |
166 | 170 |
167 #define MAX_NAME_LEN 64 /* maximum length of a protocol name, isn't | 171 #define MAX_NAME_LEN 64 /* maximum length of a protocol name, isn't |
168 explicitly specified for all protocols (just | 172 explicitly specified for all protocols (just |