Allow for wc_SetAltNamesBuffer call with larger than 16384 buffers at user discretion

This commit is contained in:
kaleb-himes
2018-06-08 10:16:40 -06:00
parent bea0e6142a
commit 1123beb2d2

View File

@@ -100,11 +100,15 @@ enum Ctc_Encoding {
CTC_PRINTABLE = 0x13 /* printable */
};
#ifndef WC_CTC_MAX_ALT_SIZE
#define WC_CTC_MAX_ALT_SIZE 16384
#endif
enum Ctc_Misc {
CTC_COUNTRY_SIZE = 2,
CTC_NAME_SIZE = 64,
CTC_DATE_SIZE = 32,
CTC_MAX_ALT_SIZE = 16384, /* may be huge */
CTC_MAX_ALT_SIZE = WC_CTC_MAX_ALT_SIZE, /* may be huge, default: 16384 */
CTC_SERIAL_SIZE = 16,
#ifdef WOLFSSL_CERT_EXT
/* AKID could contains: hash + (Option) AuthCertIssuer,AuthCertSerialNum