Skip to content

Commit

Permalink
addressing CI errors
Browse files Browse the repository at this point in the history
  • Loading branch information
gasbytes committed Nov 5, 2024
1 parent 4eaa200 commit 802cfbd
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 7 deletions.
10 changes: 5 additions & 5 deletions src/tls.c
Original file line number Diff line number Diff line change
Expand Up @@ -3450,9 +3450,9 @@ static int TLSX_CSR_Parse(WOLFSSL* ssl, const byte* input, word16 length,
(OcspRequest*)TLSX_CSR_GetRequest(ssl->extensions);

if (request) {
XMEMCPY(request->nonce, csr->request.ocsp.nonce,
(size_t)csr->request.ocsp.nonceSz);
request->nonceSz = csr->request.ocsp.nonceSz;
XMEMCPY(request->nonce, csr->request.ocsp->nonce,
(size_t)csr->request.ocsp->nonceSz);
request->nonceSz = csr->request.ocsp->nonceSz;
}
}
break;
Expand Down Expand Up @@ -3655,14 +3655,14 @@ int TLSX_CSR_InitRequest_ex(TLSX* extensions, DecodedCert* cert,
csr->requests--;
}
/* preserve nonce */
XMEMCPY(nonce, csr->request.ocsp.nonce, (size_t)nonceSz);
XMEMCPY(nonce, csr->request.ocsp->nonce, (size_t)nonceSz);

if (req_cnt < MAX_CERT_EXTENSIONS) {
if ((ret = InitOcspRequest(request, cert, 0, heap)) != 0)
return ret;

/* restore nonce */
XMEMCPY(csr->request.ocsp.nonce, nonce, (size_t)nonceSz);
XMEMCPY(csr->request.ocsp->nonce, nonce, (size_t)nonceSz);
request->nonceSz = nonceSz;
csr->requests++;
}
Expand Down
2 changes: 1 addition & 1 deletion wolfcrypt/src/ASN_TEMPLATE.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ static const ASNItem <template>[] = {
/* <ITEM_0> */ { <depth>, <ASN Type>, <constructed>, <header>, <optional> },
...
};
/* Named indeces for <template>. */
/* Named indices for <template>. */
enum {
<TEMPLATE>_<ITEM_0> = 0,
<TEMPLATE>_<ITEM_1>,
Expand Down
2 changes: 1 addition & 1 deletion wolfssl/wolfcrypt/logging.h
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,7 @@ WOLFSSL_API void wolfSSL_SetLoggingPrefix(const char* prefix);
WOLFSSL_LOCAL unsigned long wc_PeekErrorNodeLineData(
const char **file, int *line, const char **data, int *flags,
int (*ignore_err)(int err));
WOLFSSL_LOCAL int wc_GetErrorNodeErr(void);
WOLFSSL_LOCAL unsigned long wc_GetErrorNodeErr(void);
#if !defined(NO_FILESYSTEM) && !defined(NO_STDIO_FILESYSTEM)
WOLFSSL_API void wc_ERR_print_errors_fp(XFILE fp);
WOLFSSL_API void wc_ERR_print_errors_cb(int (*cb)(const char *str,
Expand Down

0 comments on commit 802cfbd

Please sign in to comment.