For inter-op with OQS's OpenSSL fork, support longer sigalg list.

This commit is contained in:
Anthony Hu
2022-06-02 16:52:35 -04:00
parent 56c48b31ad
commit 0cda12d446

View File

@ -1510,8 +1510,15 @@ enum Misc {
/* number of items in the signature algo list */ /* number of items in the signature algo list */
#ifndef WOLFSSL_MAX_SIGALGO #ifndef WOLFSSL_MAX_SIGALGO
#ifdef HAVE_PQC
/* If we are building with post-quantum algorithms, we likely want to
* inter-op with OQS's OpenSSL and they send a lot more sigalgs.
*/
#define WOLFSSL_MAX_SIGALGO 128
#else
#define WOLFSSL_MAX_SIGALGO 38 #define WOLFSSL_MAX_SIGALGO 38
#endif #endif
#endif
/* set minimum ECC key size allowed */ /* set minimum ECC key size allowed */