asn1: Also fuzz using X.690 sample
This commit is contained in:
@@ -67,7 +67,10 @@ check_PROGRAMS = $(TESTS)
|
||||
asn1_gen_SOURCES = asn1_gen.c
|
||||
asn1_print_SOURCES = asn1_print.c
|
||||
if ASN1_TEMPLATING
|
||||
asn1_print_SOURCES += $(gen_files_x690sample_template:.x=.c)
|
||||
asn1_print_CPPFLAGS = -DASN1_PRINT_SUPPORTED
|
||||
else
|
||||
asn1_print_SOURCES += $(gen_files_x690sample:.x=.c)
|
||||
endif
|
||||
check_der_SOURCES = check-der.c check-common.c check-common.h
|
||||
|
||||
|
@@ -122,6 +122,11 @@ const struct types {
|
||||
#include "pkinit_asn1_syms.x"
|
||||
#include "rfc2459_asn1_syms.x"
|
||||
#include "rfc4108_asn1_syms.x"
|
||||
#ifdef ASN1_PRINT_SUPPORTED
|
||||
#include "x690sample_template_asn1_syms.x"
|
||||
#else
|
||||
#include "x690sample_asn1_syms.x"
|
||||
#endif
|
||||
};
|
||||
|
||||
struct types sorted_types[sizeof(types)/sizeof(types[0])];
|
||||
|
5
lib/asn1/fuzz-inputs/x690sample.der
Normal file
5
lib/asn1/fuzz-inputs/x690sample.der
Normal file
@@ -0,0 +1,5 @@
|
||||
`<60><>aJohnPSmith<74>
|
||||
DirectorB3<>
|
||||
C19710917<31>aMaryTSmith<74>B1aRalphTSmith<74>
|
||||
C195711111aSusanBSmith<74>
|
||||
C19590717
|
Reference in New Issue
Block a user