distributing nPA's default trust anchors
This commit is contained in:
@@ -1,5 +1,5 @@
|
|||||||
ACLOCAL_AMFLAGS = -I m4
|
ACLOCAL_AMFLAGS = -I m4
|
||||||
SUBDIRS = src m4 doc win32
|
SUBDIRS = src m4 doc win32 certs
|
||||||
|
|
||||||
EXTRA_DIST = libnpa.pc.in apdus test_vicc_with_npa-tool.sh
|
EXTRA_DIST = libnpa.pc.in apdus test_vicc_with_npa-tool.sh
|
||||||
|
|
||||||
|
|||||||
8
npa/certs/Makefile.am
Normal file
8
npa/certs/Makefile.am
Normal file
@@ -0,0 +1,8 @@
|
|||||||
|
CV_CERTS = at_cert_19a.cvcert at_cert_19a_ecdh.cvcert cvca-eid.cv dv_cert_19.cvcert dv_cert_19_ecdh.cvcert
|
||||||
|
X509_CERTS = csca-germany_013_self_signed_cer.cer
|
||||||
|
|
||||||
|
EXTRA_DIST = $(CV_CERTS) $(X509_CERTS)
|
||||||
|
|
||||||
|
install-data-local:
|
||||||
|
for cert in $(X509_CERTS); do $(INSTALL_DATA) $(srcdir)/$${cert} "$(X509DIR)"; done
|
||||||
|
for cert in $(CV_CERTS); do $(INSTALL_DATA) $(srcdir)/$${cert} "$(CVCDIR)"; done
|
||||||
BIN
npa/certs/at_cert_19a.cvcert
Normal file
BIN
npa/certs/at_cert_19a.cvcert
Normal file
Binary file not shown.
BIN
npa/certs/at_cert_19a_ecdh.cvcert
Normal file
BIN
npa/certs/at_cert_19a_ecdh.cvcert
Normal file
Binary file not shown.
BIN
npa/certs/csca-germany_013_self_signed_cer.cer
Normal file
BIN
npa/certs/csca-germany_013_self_signed_cer.cer
Normal file
Binary file not shown.
BIN
npa/certs/cvca-eid.cv
Normal file
BIN
npa/certs/cvca-eid.cv
Normal file
Binary file not shown.
BIN
npa/certs/dv_cert_19.cvcert
Normal file
BIN
npa/certs/dv_cert_19.cvcert
Normal file
Binary file not shown.
BIN
npa/certs/dv_cert_19_ecdh.cvcert
Normal file
BIN
npa/certs/dv_cert_19_ecdh.cvcert
Normal file
Binary file not shown.
@@ -47,7 +47,7 @@ m4_ifdef([AM_SILENT_RULES],[AM_SILENT_RULES([yes])])
|
|||||||
|
|
||||||
|
|
||||||
# Checks for libraries.
|
# Checks for libraries.
|
||||||
test -z "$OPENSC_LIBS" && OPENSC_LIBS="-lopensc"
|
test -z "$OPENSC_LIBS" && OPENSC_LIBS="-lopensc -lcrypto"
|
||||||
test -z "$OPENSC_CFLAGS" && OPENSC_CFLAGS="-I${PWD}/${srcdir}/src/opensc/src -DENABLE_SM"
|
test -z "$OPENSC_CFLAGS" && OPENSC_CFLAGS="-I${PWD}/${srcdir}/src/opensc/src -DENABLE_SM"
|
||||||
|
|
||||||
saved_CPPFLAGS="$CPPFLAGS"
|
saved_CPPFLAGS="$CPPFLAGS"
|
||||||
@@ -106,6 +106,41 @@ CPPFLAGS="$saved_CPPFLAGS"
|
|||||||
LIBS="$saved_LIBS"
|
LIBS="$saved_LIBS"
|
||||||
|
|
||||||
|
|
||||||
|
AC_ARG_ENABLE(cvcdir,
|
||||||
|
AC_HELP_STRING([--enable-cvcdir=DIR],
|
||||||
|
[directory containing CV certificates (default is determined by libeac)]),
|
||||||
|
[cvcdir="${enableval}"],
|
||||||
|
[cvcdir=false])
|
||||||
|
if test "${cvcdir}" = false ; then
|
||||||
|
cvcdir="`$PKG_CONFIG libeac --variable=cvcdir`"
|
||||||
|
fi
|
||||||
|
if test "${cvcdir}" = "" ; then
|
||||||
|
AC_MSG_ERROR([use --enable-cvcdir=DIR])
|
||||||
|
fi
|
||||||
|
CVCDIR="${cvcdir}"
|
||||||
|
AC_SUBST(CVCDIR)
|
||||||
|
|
||||||
|
AC_ARG_ENABLE(x509dir,
|
||||||
|
AC_HELP_STRING([--enable-x509dir=DIR],
|
||||||
|
[directory containing X.509 certificates (default is determined by libeac)]),
|
||||||
|
[x509dir="${enableval}"],
|
||||||
|
[x509dir=false])
|
||||||
|
if test "${x509dir}" = false ; then
|
||||||
|
x509dir="`$PKG_CONFIG libeac --variable=x509dir`"
|
||||||
|
fi
|
||||||
|
if test -z "${x509dir}"
|
||||||
|
then
|
||||||
|
x509dir="`$PKG_CONFIG libeac --variable=x509dir`"
|
||||||
|
fi
|
||||||
|
if test -z "${x509dir}"
|
||||||
|
then
|
||||||
|
AC_MSG_ERROR([use --enable-x509dir=DIR])
|
||||||
|
fi
|
||||||
|
X509DIR="${x509dir}"
|
||||||
|
AC_SUBST(X509DIR)
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
# Checks for header files.
|
# Checks for header files.
|
||||||
AC_CHECK_HEADERS([arpa/inet.h fcntl.h memory.h stdint.h stdlib.h string.h sys/ioctl.h unistd.h])
|
AC_CHECK_HEADERS([arpa/inet.h fcntl.h memory.h stdint.h stdlib.h string.h sys/ioctl.h unistd.h])
|
||||||
@@ -155,9 +190,10 @@ EOF
|
|||||||
|
|
||||||
AC_CONFIG_FILES([
|
AC_CONFIG_FILES([
|
||||||
Makefile
|
Makefile
|
||||||
|
certs/Makefile
|
||||||
|
doc/Makefile
|
||||||
m4/Makefile
|
m4/Makefile
|
||||||
src/Makefile
|
src/Makefile
|
||||||
win32/Makefile
|
win32/Makefile
|
||||||
doc/Makefile
|
|
||||||
])
|
])
|
||||||
AC_OUTPUT
|
AC_OUTPUT
|
||||||
|
|||||||
Reference in New Issue
Block a user