Merge pull request #1725 from kaleb-himes/USER_CONF_SIZES

Allow users to adjust upper bounds
This commit is contained in:
David Garske 2018-07-30 13:44:58 -07:00 committed by GitHub
commit 50115e55b3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 9 additions and 2 deletions

View File

@ -138,8 +138,12 @@ enum ECC_TYPES {
ECC_PREFIX_1 = 161
};
#ifndef WC_ASN_NAME_MAX
#define WC_ASN_NAME_MAX 256
#endif
enum Misc_ASN {
ASN_NAME_MAX = 256,
ASN_NAME_MAX = WC_ASN_NAME_MAX,
MAX_SALT_SIZE = 64, /* MAX PKCS Salt length */
MAX_IV_SIZE = 64, /* MAX PKCS Iv length */
ASN_BOOL_SIZE = 2, /* including type */

View File

@ -98,13 +98,16 @@ enum Ctc_Encoding {
CTC_PRINTABLE = 0x13 /* printable */
};
#ifndef WC_CTC_NAME_SIZE
#define WC_CTC_NAME_SIZE 64
#endif
#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_NAME_SIZE = WC_CTC_NAME_SIZE,
CTC_DATE_SIZE = 32,
CTC_MAX_ALT_SIZE = WC_CTC_MAX_ALT_SIZE, /* may be huge, default: 16384 */
CTC_SERIAL_SIZE = 16,