Skip to content

Commit 2b2a30c

Browse files
committed
SSH-AGENT Update
1. Remove redundant include from agent.h. 2. Add global disable flags for SSH-RSA using SHA2-256 and SHA2-512. These are possible signatures indications when using the ssh-agent.
1 parent c26f72c commit 2b2a30c

2 files changed

Lines changed: 9 additions & 1 deletion

File tree

wolfssh/agent.h

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,6 @@
3535
#include <wolfssl/wolfcrypt/dh.h>
3636
#include <wolfssl/wolfcrypt/ecc.h>
3737
#include <wolfssl/wolfcrypt/rsa.h>
38-
#include <wolfssl/wolfcrypt/sha256.h>
3938

4039

4140
#ifdef __cplusplus

wolfssh/internal.h

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -160,6 +160,15 @@ extern "C" {
160160
#undef WOLFSSH_NO_SSH_RSA_SHA1
161161
#define WOLFSSH_NO_SSH_RSA_SHA1
162162
#endif
163+
#if defined(WOLFSSH_NO_RSA) || defined(NO_SHA256)
164+
#undef WOLFSSH_NO_SSH_RSA_SHA2_256
165+
#define WOLFSSH_NO_SSH_RSA_SHA2_256
166+
#endif
167+
#if defined(WOLFSSH_NO_RSA) || !defined(WOLFSSL_SHA512)
168+
#undef WOLFSSH_NO_SSH_RSA_SHA2_512
169+
#define WOLFSSH_NO_SSH_RSA_SHA2_512
170+
#endif
171+
163172
#if defined(WOLFSSH_NO_ECDSA) || \
164173
defined(NO_SHA256) || defined(NO_ECC256)
165174
#undef WOLFSSH_NO_ECDSA_SHA2_NISTP256

0 commit comments

Comments
 (0)