Skip to content

Commit

Permalink
Disable all sha1 by default
Browse files Browse the repository at this point in the history
  • Loading branch information
mkj committed Dec 18, 2024
1 parent ae62f20 commit bfb38aa
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions src/default_options.h
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,7 @@ IMPORTANT: Some options will require "make clean" after changes */

/* Message integrity. sha2-256 is recommended as a default,
sha1 for compatibility */
#define DROPBEAR_SHA1_HMAC 1
#define DROPBEAR_SHA1_HMAC 0
#define DROPBEAR_SHA2_256_HMAC 1
#define DROPBEAR_SHA2_512_HMAC 0
#define DROPBEAR_SHA1_96_HMAC 0
Expand All @@ -137,9 +137,8 @@ IMPORTANT: Some options will require "make clean" after changes */
#define DROPBEAR_RSA 1
/* Newer SSH implementations use SHA256 for RSA signatures. SHA1
* support is required to communicate with some older implementations.
* It will be removed in future due to SHA1 insecurity, it can be
* disabled with DROPBEAR_RSA_SHA1 set to 0 */
#define DROPBEAR_RSA_SHA1 1
* It is disabled by default. */
#define DROPBEAR_RSA_SHA1 0

/* DSS may be necessary to connect to some systems but is not
* recommended for new keys (1024 bits is small, and it uses SHA1).
Expand Down Expand Up @@ -202,7 +201,7 @@ IMPORTANT: Some options will require "make clean" after changes */
* Small systems should generally include either curve25519 or ecdh for performance.
* curve25519 is less widely supported but is faster
*/
#define DROPBEAR_DH_GROUP14_SHA1 1
#define DROPBEAR_DH_GROUP14_SHA1 0
#define DROPBEAR_DH_GROUP14_SHA256 1
#define DROPBEAR_DH_GROUP16 0
#define DROPBEAR_CURVE25519 1
Expand Down

0 comments on commit bfb38aa

Please sign in to comment.