Skip to content

Commit 13245e0

Browse files
committed
Fix compiler warnings for strncpy and missing ASN wc_Curve25519 function declarations.
1 parent 78fcf03 commit 13245e0

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

examples/test_config.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ int etsi_client_connect(const char* urlStr)
4242
ETSI_TEST_CLIENT_CERT, WOLFSSL_FILETYPE_PEM);
4343

4444
if (urlStr) {
45-
strncpy(urlStrCopy, urlStr, HTTP_MAX_URI);
45+
strncpy(urlStrCopy, urlStr, HTTP_MAX_URI-1);
4646
memset(&url, 0, sizeof(url));
4747
wolfHttpUrlDecode(&url, urlStrCopy);
4848
}

wolfkeymgr/wkm_types.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,7 @@
3737
#include <wolfssl/options.h>
3838
#include <wolfssl/wolfcrypt/settings.h>
3939
#include <wolfssl/wolfcrypt/types.h>
40+
#include <wolfssl/wolfcrypt/asn_public.h>
4041

4142
#ifdef HAVE_ECC
4243
#include <wolfssl/wolfcrypt/ecc.h>

0 commit comments

Comments
 (0)