fix no_filesystem with certext

This commit is contained in:
toddouska
2015-09-11 14:04:40 -07:00
parent 108679970a
commit 5654d4beee

View File

@@ -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 */ /* Set SKID from public key file in PEM */
int wc_SetSubjectKeyId(Cert *cert, const char* file) int wc_SetSubjectKeyId(Cert *cert, const char* file)
{ {
@@ -7288,6 +7290,8 @@ int wc_SetSubjectKeyId(Cert *cert, const char* file)
return ret; return ret;
} }
#endif /* NO_FILESYSTEM */
/* Set AKID from certificate contains in buffer (DER encoded) */ /* Set AKID from certificate contains in buffer (DER encoded) */
int wc_SetAuthKeyIdFromCert(Cert *cert, const byte *der, int derSz) 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; return 0;
} }
#ifndef NO_FILESYSTEM
/* Set AKID from certificate file in PEM */ /* Set AKID from certificate file in PEM */
int wc_SetAuthKeyId(Cert *cert, const char* file) int wc_SetAuthKeyId(Cert *cert, const char* file)
{ {
@@ -7366,6 +7373,8 @@ int wc_SetAuthKeyId(Cert *cert, const char* file)
return ret; return ret;
} }
#endif /* NO_FILESYSTEM */
/* Set KeyUsage from human readale string */ /* Set KeyUsage from human readale string */
int wc_SetKeyUsage(Cert *cert, const char *value) int wc_SetKeyUsage(Cert *cert, const char *value)
{ {