Skip to content

Commit 23a37b2

Browse files
authored
Merge pull request #8916 from dgarske/revert_pr8911
Revert PR #8911
2 parents d6d124b + bfebeae commit 23a37b2

2 files changed

Lines changed: 5 additions & 7 deletions

File tree

src/internal.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -19644,8 +19644,8 @@ static WC_INLINE int EncryptDo(WOLFSSL* ssl, byte* out, const byte* input,
1964419644
#endif
1964519645

1964619646
(void)out;
19647-
(void)input;
1964819647
(void)sz;
19648+
(void)type;
1964919649

1965019650
if (input == NULL) {
1965119651
return BAD_FUNC_ARG;
@@ -19722,8 +19722,8 @@ static WC_INLINE int EncryptDo(WOLFSSL* ssl, byte* out, const byte* input,
1972219722
additionalSz = writeAeadAuthData(ssl,
1972319723
/* Length of the plain text minus the explicit
1972419724
* IV length minus the authentication tag size. */
19725-
sz - (word16)(AESGCM_EXP_IV_SZ) - ssl->specs.aead_mac_size, type,
19726-
ssl->encrypt.additional, 0, NULL, CUR_ORDER);
19725+
sz - (word16)(AESGCM_EXP_IV_SZ) - ssl->specs.aead_mac_size,
19726+
type, ssl->encrypt.additional, 0, NULL, CUR_ORDER);
1972719727
if (additionalSz < 0) {
1972819728
ret = additionalSz;
1972919729
break;

src/ssl.c

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -48,11 +48,9 @@
4848
#if !defined(WOLFSSL_ALLOW_NO_SUITES) && !defined(WOLFCRYPT_ONLY)
4949
#if defined(NO_DH) && !defined(HAVE_ECC) && !defined(WOLFSSL_STATIC_RSA) \
5050
&& !defined(WOLFSSL_STATIC_DH) && !defined(WOLFSSL_STATIC_PSK) \
51-
&& !defined(HAVE_CURVE25519) && !defined(HAVE_CURVE448) \
52-
&& defined(NO_RSA)
51+
&& !defined(HAVE_CURVE25519) && !defined(HAVE_CURVE448)
5352
#error "No cipher suites defined because DH disabled, ECC disabled, " \
54-
"RSA disabled and no static suites defined. " \
55-
"Please see top of README"
53+
"and no static suites defined. Please see top of README"
5654
#endif
5755
#ifdef WOLFSSL_CERT_GEN
5856
/* need access to Cert struct for creating certificate */

0 commit comments

Comments
 (0)