CRL_Type to wc_DerToPem

This commit is contained in:
Takashi Kojo
2016-08-03 10:53:54 +09:00
parent 67d607324a
commit ed4cd2438f
2 changed files with 11 additions and 0 deletions

View File

@ -11,3 +11,4 @@
#define USE_FAST_MATH
#define TFM_TIMING_RESISTANT

View File

@ -5413,6 +5413,16 @@ int wc_DerToPemEx(const byte* der, word32 derSz, byte* output, word32 outSz,
XSTRNCPY(footer, END_CERT_REQ, footerLen);
XSTRNCAT(footer, "\n", 1);
}
#endif
#ifdef HAVE_CRL
else if (type == CRL_TYPE)
{
XSTRNCPY(header, BEGIN_X509_CRL, headerLen);
XSTRNCAT(header, "\n", 1);
XSTRNCPY(footer, END_X509_CRL, footerLen);
XSTRNCAT(footer, "\n", 1);
}
#endif
else {
#ifdef WOLFSSL_SMALL_STACK