mirror of
https://github.com/wolfSSL/wolfssl.git
synced 2026-07-08 07:50:48 +02:00
9c17d5d2fa
* parameterize MAX_LENGTH_SZ using overrideable WOLFSSL_ASN_MAX_LENGTH_SZ, default value 5 (raised from 4). * refactor other Misc_ASN constants to refer to MAX_LENGTH_SZ as appropriate. * tweak BytePrecision() appropriately. * refactor SetShortInt() to use BytePrecision() and include a length assert against MAX_SHORT_SZ to assure no buffer overruns with reduced WOLFSSL_ASN_MAX_LENGTH_SZ.