aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJack Lloyd <[email protected]>2017-01-11 21:45:46 -0500
committerJack Lloyd <[email protected]>2017-01-11 21:45:46 -0500
commitfd4e98590203b07314e6469eebc6deea00960851 (patch)
tree9fe055bbc5050c3b675860565cc85765c24b9d16
parentc2f3855787d844acb5d170be7ac834301bbdfd61 (diff)
parenta9ffb595c2382efa12c80e2665f308b85aee8050 (diff)
Merge GH #837 Enable PKCS11 module by default, remove --with-pkcs11 option
-rw-r--r--.travis.yml2
-rwxr-xr-xconfigure.py2
-rw-r--r--doc/manual/pkcs11.rst2
-rw-r--r--src/lib/prov/pkcs11/info.txt2
-rw-r--r--src/scripts/ci/appveyor.yml4
-rwxr-xr-xsrc/scripts/ci/circle/clang-shared-debug.sh2
-rwxr-xr-xsrc/scripts/ci/circle/clang-static-debug.sh2
-rwxr-xr-xsrc/scripts/ci/circle/gcc-sanitizer.sh2
-rwxr-xr-xsrc/scripts/ci/circle/gcc-shared-debug.sh2
-rwxr-xr-xsrc/scripts/ci/circle/gcc-static-debug.sh2
-rwxr-xr-xsrc/scripts/ci/travis/build.sh3
-rwxr-xr-xsrc/scripts/lcov.sh2
12 files changed, 11 insertions, 16 deletions
diff --git a/.travis.yml b/.travis.yml
index 6a1a299eb..071662dec 100644
--- a/.travis.yml
+++ b/.travis.yml
@@ -126,7 +126,7 @@ addons:
project:
name: "randombit/botan"
notification_email: [email protected]
- build_command_prepend: "./configure.py --no-optimizations --with-zlib --with-pkcs11"
+ build_command_prepend: "./configure.py --no-optimizations --with-zlib"
build_command: "make -j2"
branch_pattern: coverity_scan
diff --git a/configure.py b/configure.py
index 9d99c64a1..35f9f7224 100755
--- a/configure.py
+++ b/configure.py
@@ -408,7 +408,7 @@ def process_command_line(args):
help='minimize build')
# Should be derived from info.txt but this runs too early
- third_party = ['boost', 'bzip2', 'lzma', 'openssl', 'sqlite3', 'zlib', 'tpm', 'pkcs11']
+ third_party = ['boost', 'bzip2', 'lzma', 'openssl', 'sqlite3', 'zlib', 'tpm']
for mod in third_party:
mods_group.add_option('--with-%s' % (mod),
diff --git a/doc/manual/pkcs11.rst b/doc/manual/pkcs11.rst
index 38d973798..8e78b8797 100644
--- a/doc/manual/pkcs11.rst
+++ b/doc/manual/pkcs11.rst
@@ -24,7 +24,7 @@ access to all functions that are specified by the standard. The high level API r
an object oriented approach to use PKCS#11 compatible devices but only provides a subset
of the functions described in the standard.
-To use the PKCS#11 implementation Botan has to be configured with ``--with-pkcs11``.
+To use the PKCS#11 implementation the ``pkcs11`` module has to be enabled.
.. note::
diff --git a/src/lib/prov/pkcs11/info.txt b/src/lib/prov/pkcs11/info.txt
index a8146133c..3707d2e5a 100644
--- a/src/lib/prov/pkcs11/info.txt
+++ b/src/lib/prov/pkcs11/info.txt
@@ -1,7 +1,5 @@
define PKCS11 20160219
-load_on vendor
-
<requires>
dyn_load
rng
diff --git a/src/scripts/ci/appveyor.yml b/src/scripts/ci/appveyor.yml
index 8552cf9df..bcc5b118a 100644
--- a/src/scripts/ci/appveyor.yml
+++ b/src/scripts/ci/appveyor.yml
@@ -73,10 +73,10 @@ install:
build_script:
- if %CONFIG% == Release (
- python configure.py --cc=msvc --cpu=%PLATFORM% %MODE% --with-pkcs11
+ python configure.py --cc=msvc --cpu=%PLATFORM% %MODE%
)
- if %CONFIG% == Debug (
- python configure.py --cc=msvc --cpu=%PLATFORM% %MODE% --with-pkcs11 --debug-mode
+ python configure.py --cc=msvc --cpu=%PLATFORM% %MODE% --debug-mode
)
- jom -j2
- botan-test
diff --git a/src/scripts/ci/circle/clang-shared-debug.sh b/src/scripts/ci/circle/clang-shared-debug.sh
index c3f6cb9fc..5f38cad7c 100755
--- a/src/scripts/ci/circle/clang-shared-debug.sh
+++ b/src/scripts/ci/circle/clang-shared-debug.sh
@@ -5,6 +5,6 @@ which shellcheck > /dev/null && shellcheck "$0" # Run shellcheck on this if avai
BUILD_NICKNAME=$(basename "$0" .sh)
BUILD_DIR="./build-$BUILD_NICKNAME"
-./configure.py --with-build-dir="$BUILD_DIR" --with-debug-info --cc=clang --with-pkcs11
+./configure.py --with-build-dir="$BUILD_DIR" --with-debug-info --cc=clang
make -j 2 -f "$BUILD_DIR"/Makefile
"$BUILD_DIR"/botan-test
diff --git a/src/scripts/ci/circle/clang-static-debug.sh b/src/scripts/ci/circle/clang-static-debug.sh
index 9e5be526e..56f111190 100755
--- a/src/scripts/ci/circle/clang-static-debug.sh
+++ b/src/scripts/ci/circle/clang-static-debug.sh
@@ -5,6 +5,6 @@ which shellcheck > /dev/null && shellcheck "$0" # Run shellcheck on this if avai
BUILD_NICKNAME=$(basename "$0" .sh)
BUILD_DIR="./build-$BUILD_NICKNAME"
-./configure.py --with-build-dir="$BUILD_DIR" --with-debug-info --cc=clang --disable-shared --with-pkcs11
+./configure.py --with-build-dir="$BUILD_DIR" --with-debug-info --cc=clang --disable-shared
make -j 2 -f "$BUILD_DIR"/Makefile
"$BUILD_DIR"/botan-test
diff --git a/src/scripts/ci/circle/gcc-sanitizer.sh b/src/scripts/ci/circle/gcc-sanitizer.sh
index e743d66af..27d7268d9 100755
--- a/src/scripts/ci/circle/gcc-sanitizer.sh
+++ b/src/scripts/ci/circle/gcc-sanitizer.sh
@@ -5,6 +5,6 @@ which shellcheck > /dev/null && shellcheck "$0" # Run shellcheck on this if avai
BUILD_NICKNAME=$(basename "$0" .sh)
BUILD_DIR="./build-$BUILD_NICKNAME"
-./configure.py --with-build-dir="$BUILD_DIR" --with-debug-info --with-sanitizer --with-pkcs11
+./configure.py --with-build-dir="$BUILD_DIR" --with-debug-info --with-sanitizer
make -j 2 -f "$BUILD_DIR"/Makefile
"$BUILD_DIR"/botan-test
diff --git a/src/scripts/ci/circle/gcc-shared-debug.sh b/src/scripts/ci/circle/gcc-shared-debug.sh
index b65ce805f..4f5ed1b6d 100755
--- a/src/scripts/ci/circle/gcc-shared-debug.sh
+++ b/src/scripts/ci/circle/gcc-shared-debug.sh
@@ -5,6 +5,6 @@ which shellcheck > /dev/null && shellcheck "$0" # Run shellcheck on this if avai
BUILD_NICKNAME=$(basename "$0" .sh)
BUILD_DIR="./build-$BUILD_NICKNAME"
-./configure.py --with-build-dir="$BUILD_DIR" --with-debug --with-pkcs11
+./configure.py --with-build-dir="$BUILD_DIR" --with-debug
make -j 2 -f "$BUILD_DIR"/Makefile
"$BUILD_DIR"/botan-test
diff --git a/src/scripts/ci/circle/gcc-static-debug.sh b/src/scripts/ci/circle/gcc-static-debug.sh
index d6908fa4e..16eee81aa 100755
--- a/src/scripts/ci/circle/gcc-static-debug.sh
+++ b/src/scripts/ci/circle/gcc-static-debug.sh
@@ -5,6 +5,6 @@ which shellcheck > /dev/null && shellcheck "$0" # Run shellcheck on this if avai
BUILD_NICKNAME=$(basename "$0" .sh)
BUILD_DIR="./build-$BUILD_NICKNAME"
-./configure.py --with-build-dir="$BUILD_DIR" --with-debug-info --disable-shared --amalgamation --with-pkcs11
+./configure.py --with-build-dir="$BUILD_DIR" --with-debug-info --disable-shared --amalgamation
make -j 2 -f "$BUILD_DIR"/Makefile
"$BUILD_DIR"/botan-test
diff --git a/src/scripts/ci/travis/build.sh b/src/scripts/ci/travis/build.sh
index bda049576..b2dd482c8 100755
--- a/src/scripts/ci/travis/build.sh
+++ b/src/scripts/ci/travis/build.sh
@@ -8,9 +8,6 @@ TEST_EXE=./botan-test
TEST_FLAGS=()
CFG_FLAGS=(--prefix=/tmp/botan-installation --cc=$CC --os=$TRAVIS_OS_NAME)
-# PKCS11 is optional but doesn't pull in new dependencies
-CFG_FLAGS+=(--with-pkcs11)
-
CC_BIN=$CXX
if [ "$BUILD_MODE" = "static" ] || [ "$BUILD_MODE" = "mini-static" ]; then
diff --git a/src/scripts/lcov.sh b/src/scripts/lcov.sh
index 391bf89d2..9de253069 100755
--- a/src/scripts/lcov.sh
+++ b/src/scripts/lcov.sh
@@ -1,6 +1,6 @@
#!/bin/sh
-./configure.py --with-debug-info --with-coverage-info --with-bzip2 --with-lzma --with-sqlite --with-zlib --with-pkcs11 --with-sqlite3
+./configure.py --with-debug-info --with-coverage-info --with-bzip2 --with-lzma --with-sqlite --with-zlib --with-sqlite3
make -l4 -j$(nproc) -k
./botan-test --pkcs11-lib=/usr/lib/libsofthsm2.so --run-online-tests