make MAX_CHAIN_DEPTH a build time define and default to 9

This commit is contained in:
toddouska 2012-11-05 10:40:06 -08:00
parent 11c8e5afb8
commit 4a007a2fa0
1 changed files with 7 additions and 3 deletions

View File

@ -471,10 +471,8 @@ enum Misc {
#ifdef FORTRESS
MAX_EX_DATA = 3, /* allow for three items of ex_data */
MAX_CHAIN_DEPTH = 9, /* max cert chain peer depth, FORTRESS option */
#else
MAX_CHAIN_DEPTH = 6, /* max cert chain peer depth */
#endif
MAX_X509_SIZE = 2048, /* max static x509 buffer size */
CERT_MIN_SIZE = 256, /* min PEM cert size with header/footer */
MAX_FILENAME_SZ = 256, /* max file name length */
@ -494,6 +492,12 @@ enum Misc {
};
/* max cert chain peer depth */
#ifndef MAX_CHAIN_DEPTH
#define MAX_CHAIN_DEPTH 9
#endif
/* don't use extra 3/4k stack space unless need to */
#ifdef HAVE_NTRU
#define MAX_ENCRYPT_SZ MAX_NTRU_ENCRYPT_SZ