From 5654d4beeef3b6439f16628c05450496f8289adb Mon Sep 17 00:00:00 2001 From: toddouska Date: Fri, 11 Sep 2015 14:04:40 -0700 Subject: [PATCH] fix no_filesystem with certext --- wolfcrypt/src/asn.c | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/wolfcrypt/src/asn.c b/wolfcrypt/src/asn.c index d24b9bcda..a889dc956 100644 --- a/wolfcrypt/src/asn.c +++ b/wolfcrypt/src/asn.c @@ -7199,6 +7199,8 @@ int wc_SetAuthKeyIdFromPublicKey(Cert *cert, RsaKey *rsakey, ecc_key *eckey) } +#ifndef NO_FILESYSTEM + /* Set SKID from public key file in PEM */ int wc_SetSubjectKeyId(Cert *cert, const char* file) { @@ -7288,6 +7290,8 @@ int wc_SetSubjectKeyId(Cert *cert, const char* file) return ret; } +#endif /* NO_FILESYSTEM */ + /* Set AKID from certificate contains in buffer (DER encoded) */ int wc_SetAuthKeyIdFromCert(Cert *cert, const byte *der, int derSz) { @@ -7337,6 +7341,9 @@ int wc_SetAuthKeyIdFromCert(Cert *cert, const byte *der, int derSz) return 0; } + +#ifndef NO_FILESYSTEM + /* Set AKID from certificate file in PEM */ int wc_SetAuthKeyId(Cert *cert, const char* file) { @@ -7366,6 +7373,8 @@ int wc_SetAuthKeyId(Cert *cert, const char* file) return ret; } +#endif /* NO_FILESYSTEM */ + /* Set KeyUsage from human readale string */ int wc_SetKeyUsage(Cert *cert, const char *value) {