From 05a0103a5fe93f12579ba2612611768151712306 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marc=20W=C3=A4ckerlin?= Date: Wed, 18 Mar 2020 11:40:23 +0100 Subject: [PATCH] fix source for PKCS#11 download --- configure.ac | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/configure.ac b/configure.ac index f630597..ff6b5b4 100644 --- a/configure.ac +++ b/configure.ac @@ -29,11 +29,12 @@ if test "$download_pkcs11" != "no"; then AC_MSG_NOTICE([downloading pkcs11 library headers]) test -d ${prefix}/include || mkdir -p ${prefix}/include cd ${prefix}/include - for f in $(wget -qO- ftp://ftp.rsasecurity.com/pub/pkcs/pkcs-11/v2-20/ 2>&1 | html2 | sed -n 's,.*/a/@href=\(.*\.h\)$,\1,gp'); do + PKCS11_SOURCES=https://www.cryptsoft.com/pkcs11doc/STANDARD/include/v211 + for f in $(wget -qO- ${PKCS11_SOURCES} 2>&1 | html2 | sed -n 's,.*/a/@href=\(.*\.h\)$,\1,gp'); do if test -f "${f##*/}"; then rm "${f##*/}" fi - wget --unlink $f + wget --unlink ${PKCS11_SOURCES}/${f} if ! test -f "${f##*/}"; then AC_MSG_ERROR([download failed of pkcs11 header file: $f]) fi