From 79f6301521503608258ab7a6ef820bd043627d0e Mon Sep 17 00:00:00 2001 From: Anthony Hu Date: Mon, 20 Dec 2021 12:42:09 -0500 Subject: [PATCH] Add error for case of user defining HAVE_PQC without HAVE_LIBOQS. --- wolfssl/wolfcrypt/settings.h | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/wolfssl/wolfcrypt/settings.h b/wolfssl/wolfcrypt/settings.h index 243df6f7c..0724489e0 100644 --- a/wolfssl/wolfcrypt/settings.h +++ b/wolfssl/wolfcrypt/settings.h @@ -2591,6 +2591,10 @@ extern void uITRON4_free(void *p) ; #define HAVE_PQC #endif +#if defined(HAVE_PQC) && !defined(HAVE_LIBOQS) +#error "You must have a post-quantum cryptography implementation to use PQC." +#endif + /* --------------------------------------------------------------------------- * Depricated Algorithm Handling * Unless allowed via a build macro, disable support