mirror of https://github.com/wolfSSL/wolfssl.git
Added additional ifdef's to Ed25519 functions and cast derSz to word32
parent
633e950942
commit
49e5d8efea
|
@ -20716,7 +20716,8 @@ static int test_wc_EccPrivateKeyToDer (void)
|
||||||
static int test_wc_Ed25519KeyToDer (void)
|
static int test_wc_Ed25519KeyToDer (void)
|
||||||
{
|
{
|
||||||
int ret = 0;
|
int ret = 0;
|
||||||
#if defined(HAVE_ED25519)
|
#if defined(HAVE_ED25519) && (defined(WOLFSSL_CERT_GEN) || \
|
||||||
|
defined(WOLFSSL_KEY_GEN))
|
||||||
|
|
||||||
byte output[FOURK_BUF];
|
byte output[FOURK_BUF];
|
||||||
ed25519_key ed25519Key;
|
ed25519_key ed25519Key;
|
||||||
|
@ -20780,7 +20781,8 @@ static int test_wc_Ed25519KeyToDer (void)
|
||||||
static int test_wc_Ed25519PrivateKeyToDer (void)
|
static int test_wc_Ed25519PrivateKeyToDer (void)
|
||||||
{
|
{
|
||||||
int ret = 0;
|
int ret = 0;
|
||||||
#if defined(HAVE_ED25519)
|
#if defined(HAVE_ED25519) && (defined(WOLFSSL_CERT_GEN) || \
|
||||||
|
defined(WOLFSSL_KEY_GEN))
|
||||||
|
|
||||||
byte output[FOURK_BUF];
|
byte output[FOURK_BUF];
|
||||||
ed25519_key ed25519PrivKey;
|
ed25519_key ed25519PrivKey;
|
||||||
|
@ -20991,7 +20993,7 @@ static int test_wc_SetSubjectBuffer (void)
|
||||||
if (ret == 0) {
|
if (ret == 0) {
|
||||||
file = XFOPEN("./certs/ca-cert.der", "rb");
|
file = XFOPEN("./certs/ca-cert.der", "rb");
|
||||||
if (file != NULL) {
|
if (file != NULL) {
|
||||||
derSz = XFREAD(der, 1, FOURK_BUF, file);
|
derSz = (word32)XFREAD(der, 1, FOURK_BUF, file);
|
||||||
XFCLOSE(file);
|
XFCLOSE(file);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue