Skip to content

Commit f7fb68d

Browse files
authored
Merge pull request #8884 from dgarske/enablecerts
Fix to make sure ASN.1 is enabled if just building PQ algorithms
2 parents 74de689 + 9528aaf commit f7fb68d

File tree

2 files changed

+7
-8
lines changed

2 files changed

+7
-8
lines changed

configure.ac

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1665,6 +1665,7 @@ then
16651665
test "$enable_shake128" = "" && enable_shake128=yes
16661666
test "$enable_shake256" = "" && enable_shake256=yes
16671667
fi
1668+
ENABLED_CERTS=yes
16681669
fi
16691670

16701671
# XMSS
@@ -4444,6 +4445,7 @@ then
44444445
fi
44454446

44464447
AM_CFLAGS="$AM_CFLAGS -DWOLFSSL_SM2 -DWOLFSSL_BASE16"
4448+
ENABLED_CERTS=yes
44474449
fi
44484450

44494451

@@ -6305,6 +6307,7 @@ then
63056307
63066308
AM_CFLAGS="$AM_CFLAGS -DHAVE_CURVE448"
63076309
ENABLED_FE448=yes
6310+
ENABLED_CERTS=yes
63086311
fi
63096312
63106313
# Ed448
@@ -9922,10 +9925,6 @@ then
99229925
AM_CCASFLAGS="$AM_CCASFLAGS -DHAVE_ED25519"
99239926
ENABLED_FEMATH=yes
99249927
ENABLED_GEMATH=yes
9925-
fi
9926-
9927-
if test "$ENABLED_ED25519" != "no" || test "$ENABLED_ED448" != "no"
9928-
then
99299928
ENABLED_CERTS=yes
99309929
fi
99319930

wolfssl/wolfcrypt/mem_track.h

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -177,7 +177,7 @@ static WC_INLINE void* TrackMalloc(size_t sz)
177177
(void)line;
178178
#endif
179179
#endif
180-
#if defined(DO_MEM_LIST) || defined(DO_MEM_STATS)
180+
#if !defined(SINGLE_THREADED) && (defined(DO_MEM_LIST) || defined(DO_MEM_STATS))
181181
if (pthread_mutex_lock(&memLock) == 0)
182182
{
183183
#endif
@@ -223,7 +223,7 @@ static WC_INLINE void* TrackMalloc(size_t sz)
223223
ourMemList.tail = header; /* add to the end either way */
224224
ourMemList.count++;
225225
#endif
226-
#if defined(DO_MEM_LIST) || defined(DO_MEM_STATS)
226+
#if !defined(SINGLE_THREADED) && (defined(DO_MEM_LIST) || defined(DO_MEM_STATS))
227227
pthread_mutex_unlock(&memLock);
228228
}
229229
#endif /* DO_MEM_LIST */
@@ -250,7 +250,7 @@ static WC_INLINE void TrackFree(void* ptr)
250250
header = &mt->u.hint;
251251
sz = header->thisSize;
252252

253-
#if defined(DO_MEM_LIST) || defined(DO_MEM_STATS)
253+
#if !defined(SINGLE_THREADED) && (defined(DO_MEM_LIST) || defined(DO_MEM_STATS))
254254
if (pthread_mutex_lock(&memLock) == 0)
255255
{
256256
#endif
@@ -284,7 +284,7 @@ static WC_INLINE void TrackFree(void* ptr)
284284
ourMemList.count--;
285285
#endif
286286

287-
#if defined(DO_MEM_LIST) || defined(DO_MEM_STATS)
287+
#if !defined(SINGLE_THREADED) && (defined(DO_MEM_LIST) || defined(DO_MEM_STATS))
288288
pthread_mutex_unlock(&memLock);
289289
}
290290
#endif

0 commit comments

Comments
 (0)