Skip to content

Commit 88d4f48

Browse files
Merge pull request #7892 from douzzer/20240822-fixes
20240822-fixes
2 parents e99bbf9 + 166519a commit 88d4f48

2 files changed

Lines changed: 4 additions & 2 deletions

File tree

tests/api.c

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -70719,6 +70719,9 @@ static int test_wolfssl_EVP_chacha20_poly1305(void)
7071970719
EVP_CIPHER_CTX* ctx = NULL;
7072070720
int outSz;
7072170721

70722+
XMEMSET(key, 0, sizeof(key));
70723+
XMEMSET(iv, 0, sizeof(iv));
70724+
7072270725
/* Encrypt. */
7072370726
ExpectNotNull((ctx = EVP_CIPHER_CTX_new()));
7072470727
ExpectIntEQ(EVP_EncryptInit_ex(ctx, EVP_chacha20_poly1305(), NULL, NULL,

wolfssl/openssl/asn1.h

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -165,8 +165,7 @@ struct WOLFSSL_ASN1_ITEM {
165165
typedef struct WOLFSSL_ASN1_TEMPLATE WOLFSSL_ASN1_TEMPLATE;
166166
typedef struct WOLFSSL_ASN1_ITEM WOLFSSL_ASN1_ITEM;
167167

168-
static WC_MAYBE_UNUSED const byte ASN1_BIT_STRING_FIRST_BYTE = ASN_BIT_STRING;
169-
168+
#define ASN1_BIT_STRING_FIRST_BYTE ASN_BIT_STRING
170169
#define ASN1_TFLG_EXPLICIT (0x1 << 0)
171170
#define ASN1_TFLG_SEQUENCE_OF (0x1 << 1)
172171
#define ASN1_TFLG_IMPTAG (0x1 << 2)

0 commit comments

Comments
 (0)