Skip to content

Commit

Permalink
Allow build of fuzz_pkcs15init only if static is enabled
Browse files Browse the repository at this point in the history
fuzz_pkcs15init uses API that is not exported by libopensc.
  • Loading branch information
xhanulik authored and frankmorgner committed Apr 19, 2022
1 parent 296b0cd commit e1003a9
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
2 changes: 2 additions & 0 deletions configure.ac
Expand Up @@ -1100,6 +1100,8 @@ AM_CONDITIONAL([GIT_CHECKOUT], [test "${GIT_CHECKOUT}" = "yes"])
AM_CONDITIONAL([ENABLE_FUZZING], [test "${enable_fuzzing}" = "yes"])
AM_CONDITIONAL([ENABLE_SHARED], [test "${enable_shared}" = "yes"])
AS_IF([test "${enable_shared}" = "yes"], [AC_DEFINE([ENABLE_SHARED], [1], [Enable shared libraries])])
AM_CONDITIONAL([ENABLE_STATIC], [test "${enable_static}" = "yes"])
AS_IF([test "${enable_static}" = "yes"], [AC_DEFINE([ENABLE_static], [1], [Enable static libraries])])

if test "${enable_pedantic}" = "yes"; then
enable_strict="yes";
Expand Down
7 changes: 5 additions & 2 deletions src/tests/fuzzing/Makefile.am
Expand Up @@ -7,8 +7,11 @@ LIBS = $(FUZZING_LIBS)\
$(top_builddir)/src/common/libcompat.la

noinst_PROGRAMS = fuzz_asn1_print fuzz_asn1_sig_value fuzz_pkcs15_decode fuzz_pkcs15_reader \
fuzz_scconf_parse_string fuzz_pkcs15init \
fuzz_pkcs15_encode fuzz_card
fuzz_scconf_parse_string fuzz_pkcs15_encode fuzz_card

if ENABLE_STATIC
noinst_PROGRAMS += fuzz_pkcs15init
endif

noinst_HEADERS = fuzzer_reader.h

Expand Down

0 comments on commit e1003a9

Please sign in to comment.