3 # decode OpenPGP signatures per rfc4880
14 opgp_key.o opgp_key.po opgp_key.pico: ta_asc.h
16 # Generate ta_asc.h containing one or more OpenPGP trust anchors.
18 # Since each trust anchor must be processed individually,
19 # we create ta_ASC as a list of pointers to them.
21 # If we are doing self-tests, we define another arrary vc_ASC
22 # containing pointers to a signature of each trust anchor.
23 # It is assumed that these v*.asc files are named similarly to
24 # the appropriate t*.asc so that the relative order of vc_ASC
25 # entries matches ta_ASC.
27 TA_ASC_LIST ?= ${.ALLSRC:Mt*.asc}
28 VC_ASC_LIST ?= ${.ALLSRC:Mv*.asc}
31 .if ${VE_SIGNATURE_LIST:MOPENPGP} != ""
32 @( echo '/* Autogenerated - DO NOT EDIT!!! */'; echo; \
33 echo "#define HAVE_TA_ASC 1"; \
34 set -- ${TA_ASC_LIST:@f@$f ${f:T:R}@}; \
35 while test $$# -ge 2; do \
36 file2c -sx "static const char $$2[] = {" ', 0x00 };' < $$1; \
39 echo 'static const char *ta_ASC[] = { ${TA_ASC_LIST:T:R:ts,}, NULL };'; \
41 .if ${VE_SELF_TESTS} != "no"
42 @( echo "#define HAVE_VC_ASC 1"; \
43 set -- ${VC_ASC_LIST:@f@$f ${f:T:R}@}; \
44 while test $$# -ge 2; do \
45 file2c -sx "static const char $$2[] = {" ', 0x00 };' < $$1; \
48 echo 'static const char *vc_ASC[] = { ${VC_ASC_LIST:T:R:ts,}, NULL };'; \