From 82fc96b7f306bf2e33e04a2565e2d0960ab90881 Mon Sep 17 00:00:00 2001 From: Jacob Barthelmeh Date: Fri, 4 Oct 2019 08:44:00 +0700 Subject: [PATCH] adjust onHeap to be a bit field --- wolfssl/internal.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/wolfssl/internal.h b/wolfssl/internal.h index 52fe55e33..ee3d4768b 100644 --- a/wolfssl/internal.h +++ b/wolfssl/internal.h @@ -2569,9 +2569,6 @@ struct WOLFSSL_CTX { #endif Suites* suites; /* make dynamic, user may not need/set */ void* heap; /* for user memory overrides */ -#ifdef WOLFSSL_STATIC_MEMORY - byte onHeap; /* whether the ctx/method is put on heap hint */ -#endif byte verifyDepth; byte verifyPeer:1; byte verifyNone:1; @@ -2614,6 +2611,9 @@ struct WOLFSSL_CTX { #ifdef HAVE_ENCRYPT_THEN_MAC byte disallowEncThenMac:1; /* Don't do Encrypt-Then-MAC */ #endif +#ifdef WOLFSSL_STATIC_MEMORY + byte onHeap:1; /* whether the ctx/method is put on heap hint */ +#endif #ifdef WOLFSSL_MULTICAST byte haveMcast; /* multicast requested */ byte mcastID; /* multicast group ID */