History log of /openbsd-current/regress/usr.bin/ssh/agent-pkcs11.sh
Revision (<<< Hide revision tags) (Show revision tags >>>) Date Author Comments
# 1.13 30-Oct-2023 djm

move PKCS#11 setup code to test-exec.sh so it can be reused elsewhere


# 1.12 30-Oct-2023 djm

tidy and refactor PKCS#11 setup code

Replace the use of a perl script to delete the controlling TTY with a
SSH_ASKPASS script to directly load the PIN.

Move PKCS#11 setup code to functions in anticipation of it being used
elsewhere in additional tests.

Reduce stdout spam


# 1.11 06-Oct-2023 djm

typo in error message


# 1.10 06-Oct-2023 djm

Perform the softhsm2 setup as discrete steps rather than as a long
shell pipeline. Makes it easier to figure out what has happened when
it breaks.


Revision tags: OPENBSD_7_0_BASE OPENBSD_7_1_BASE OPENBSD_7_2_BASE OPENBSD_7_3_BASE OPENBSD_7_4_BASE
# 1.9 25-Jul-2021 dtucker

Replace OPENSSL as the variable that points to the openssl binary
with OPENSSL_BIN. This will allow us to use the OPENSSL variable from
mk.conf or the make(1) command line indicating if we're building with
our without OpenSSL, and ultimately get the regress tests working in
the OPENSSL=no configuration.


# 1.8 24-May-2021 dtucker

Find openssl binary via environment variable. This allows overriding
if necessary (eg in -portable where we're testing against a specific
version of OpenSSL).


Revision tags: OPENBSD_6_7_BASE OPENBSD_6_8_BASE OPENBSD_6_9_BASE
# 1.7 26-Nov-2019 djm

test FIDO2/U2F key types; ok markus@


Revision tags: OPENBSD_6_5_BASE OPENBSD_6_6_BASE
# 1.6 21-Jan-2019 djm

remove hack to use non-system libcrypto


# 1.5 20-Jan-2019 djm

allow override of ssh-pkcs11-helper binary via $TEST_SSH_SSHPKCS11HELPER
from markus@


# 1.4 20-Jan-2019 djm

adapt agent-pkcs11.sh test to softhsm2 and add support for ECDSA keys

work by markus@, ok djm@


Revision tags: OPENBSD_6_2_BASE OPENBSD_6_3_BASE OPENBSD_6_4_BASE
# 1.3 30-Apr-2017 djm

eliminate explicit specification of protocol in tests and loops over
protocol. We only support SSHv2 now.


Revision tags: OPENBSD_5_7_BASE OPENBSD_5_8_BASE OPENBSD_5_9_BASE OPENBSD_6_0_BASE OPENBSD_6_1_BASE
# 1.2 12-Jan-2015 djm

fatal if soft-PKCS11 library is missing rather (rather than continue
and fail with a more cryptic error)


Revision tags: OPENBSD_4_7_BASE OPENBSD_4_8_BASE OPENBSD_4_9_BASE OPENBSD_5_0_BASE OPENBSD_5_1_BASE OPENBSD_5_2_BASE OPENBSD_5_3_BASE OPENBSD_5_4_BASE OPENBSD_5_5_BASE OPENBSD_5_6_BASE
# 1.1 08-Feb-2010 markus

test for PKCS#11 support (currently disabled)


# 1.11 06-Oct-2023 djm

typo in error message


# 1.10 06-Oct-2023 djm

Perform the softhsm2 setup as discrete steps rather than as a long
shell pipeline. Makes it easier to figure out what has happened when
it breaks.


Revision tags: OPENBSD_7_0_BASE OPENBSD_7_1_BASE OPENBSD_7_2_BASE OPENBSD_7_3_BASE OPENBSD_7_4_BASE
# 1.9 25-Jul-2021 dtucker

Replace OPENSSL as the variable that points to the openssl binary
with OPENSSL_BIN. This will allow us to use the OPENSSL variable from
mk.conf or the make(1) command line indicating if we're building with
our without OpenSSL, and ultimately get the regress tests working in
the OPENSSL=no configuration.


# 1.8 24-May-2021 dtucker

Find openssl binary via environment variable. This allows overriding
if necessary (eg in -portable where we're testing against a specific
version of OpenSSL).


Revision tags: OPENBSD_6_7_BASE OPENBSD_6_8_BASE OPENBSD_6_9_BASE
# 1.7 26-Nov-2019 djm

test FIDO2/U2F key types; ok markus@


Revision tags: OPENBSD_6_5_BASE OPENBSD_6_6_BASE
# 1.6 21-Jan-2019 djm

remove hack to use non-system libcrypto


# 1.5 20-Jan-2019 djm

allow override of ssh-pkcs11-helper binary via $TEST_SSH_SSHPKCS11HELPER
from markus@


# 1.4 20-Jan-2019 djm

adapt agent-pkcs11.sh test to softhsm2 and add support for ECDSA keys

work by markus@, ok djm@


Revision tags: OPENBSD_6_2_BASE OPENBSD_6_3_BASE OPENBSD_6_4_BASE
# 1.3 30-Apr-2017 djm

eliminate explicit specification of protocol in tests and loops over
protocol. We only support SSHv2 now.


Revision tags: OPENBSD_5_7_BASE OPENBSD_5_8_BASE OPENBSD_5_9_BASE OPENBSD_6_0_BASE OPENBSD_6_1_BASE
# 1.2 12-Jan-2015 djm

fatal if soft-PKCS11 library is missing rather (rather than continue
and fail with a more cryptic error)


Revision tags: OPENBSD_4_7_BASE OPENBSD_4_8_BASE OPENBSD_4_9_BASE OPENBSD_5_0_BASE OPENBSD_5_1_BASE OPENBSD_5_2_BASE OPENBSD_5_3_BASE OPENBSD_5_4_BASE OPENBSD_5_5_BASE OPENBSD_5_6_BASE
# 1.1 08-Feb-2010 markus

test for PKCS#11 support (currently disabled)


# 1.9 25-Jul-2021 dtucker

Replace OPENSSL as the variable that points to the openssl binary
with OPENSSL_BIN. This will allow us to use the OPENSSL variable from
mk.conf or the make(1) command line indicating if we're building with
our without OpenSSL, and ultimately get the regress tests working in
the OPENSSL=no configuration.


# 1.8 24-May-2021 dtucker

Find openssl binary via environment variable. This allows overriding
if necessary (eg in -portable where we're testing against a specific
version of OpenSSL).


Revision tags: OPENBSD_6_7_BASE OPENBSD_6_8_BASE OPENBSD_6_9_BASE
# 1.7 26-Nov-2019 djm

test FIDO2/U2F key types; ok markus@


Revision tags: OPENBSD_6_5_BASE OPENBSD_6_6_BASE
# 1.6 21-Jan-2019 djm

remove hack to use non-system libcrypto


# 1.5 20-Jan-2019 djm

allow override of ssh-pkcs11-helper binary via $TEST_SSH_SSHPKCS11HELPER
from markus@


# 1.4 20-Jan-2019 djm

adapt agent-pkcs11.sh test to softhsm2 and add support for ECDSA keys

work by markus@, ok djm@


Revision tags: OPENBSD_6_2_BASE OPENBSD_6_3_BASE OPENBSD_6_4_BASE
# 1.3 30-Apr-2017 djm

eliminate explicit specification of protocol in tests and loops over
protocol. We only support SSHv2 now.


Revision tags: OPENBSD_5_7_BASE OPENBSD_5_8_BASE OPENBSD_5_9_BASE OPENBSD_6_0_BASE OPENBSD_6_1_BASE
# 1.2 12-Jan-2015 djm

fatal if soft-PKCS11 library is missing rather (rather than continue
and fail with a more cryptic error)


Revision tags: OPENBSD_4_7_BASE OPENBSD_4_8_BASE OPENBSD_4_9_BASE OPENBSD_5_0_BASE OPENBSD_5_1_BASE OPENBSD_5_2_BASE OPENBSD_5_3_BASE OPENBSD_5_4_BASE OPENBSD_5_5_BASE OPENBSD_5_6_BASE
# 1.1 08-Feb-2010 markus

test for PKCS#11 support (currently disabled)


# 1.8 24-May-2021 dtucker

Find openssl binary via environment variable. This allows overriding
if necessary (eg in -portable where we're testing against a specific
version of OpenSSL).


Revision tags: OPENBSD_6_7_BASE OPENBSD_6_8_BASE OPENBSD_6_9_BASE
# 1.7 26-Nov-2019 djm

test FIDO2/U2F key types; ok markus@


Revision tags: OPENBSD_6_5_BASE OPENBSD_6_6_BASE
# 1.6 21-Jan-2019 djm

remove hack to use non-system libcrypto


# 1.5 20-Jan-2019 djm

allow override of ssh-pkcs11-helper binary via $TEST_SSH_SSHPKCS11HELPER
from markus@


# 1.4 20-Jan-2019 djm

adapt agent-pkcs11.sh test to softhsm2 and add support for ECDSA keys

work by markus@, ok djm@


Revision tags: OPENBSD_6_2_BASE OPENBSD_6_3_BASE OPENBSD_6_4_BASE
# 1.3 30-Apr-2017 djm

eliminate explicit specification of protocol in tests and loops over
protocol. We only support SSHv2 now.


Revision tags: OPENBSD_5_7_BASE OPENBSD_5_8_BASE OPENBSD_5_9_BASE OPENBSD_6_0_BASE OPENBSD_6_1_BASE
# 1.2 12-Jan-2015 djm

fatal if soft-PKCS11 library is missing rather (rather than continue
and fail with a more cryptic error)


Revision tags: OPENBSD_4_7_BASE OPENBSD_4_8_BASE OPENBSD_4_9_BASE OPENBSD_5_0_BASE OPENBSD_5_1_BASE OPENBSD_5_2_BASE OPENBSD_5_3_BASE OPENBSD_5_4_BASE OPENBSD_5_5_BASE OPENBSD_5_6_BASE
# 1.1 08-Feb-2010 markus

test for PKCS#11 support (currently disabled)


# 1.7 26-Nov-2019 djm

test FIDO2/U2F key types; ok markus@


Revision tags: OPENBSD_6_5_BASE OPENBSD_6_6_BASE
# 1.6 21-Jan-2019 djm

remove hack to use non-system libcrypto


# 1.5 20-Jan-2019 djm

allow override of ssh-pkcs11-helper binary via $TEST_SSH_SSHPKCS11HELPER
from markus@


# 1.4 20-Jan-2019 djm

adapt agent-pkcs11.sh test to softhsm2 and add support for ECDSA keys

work by markus@, ok djm@


Revision tags: OPENBSD_6_2_BASE OPENBSD_6_3_BASE OPENBSD_6_4_BASE
# 1.3 30-Apr-2017 djm

eliminate explicit specification of protocol in tests and loops over
protocol. We only support SSHv2 now.


Revision tags: OPENBSD_5_7_BASE OPENBSD_5_8_BASE OPENBSD_5_9_BASE OPENBSD_6_0_BASE OPENBSD_6_1_BASE
# 1.2 12-Jan-2015 djm

fatal if soft-PKCS11 library is missing rather (rather than continue
and fail with a more cryptic error)


Revision tags: OPENBSD_4_7_BASE OPENBSD_4_8_BASE OPENBSD_4_9_BASE OPENBSD_5_0_BASE OPENBSD_5_1_BASE OPENBSD_5_2_BASE OPENBSD_5_3_BASE OPENBSD_5_4_BASE OPENBSD_5_5_BASE OPENBSD_5_6_BASE
# 1.1 08-Feb-2010 markus

test for PKCS#11 support (currently disabled)


# 1.6 21-Jan-2019 djm

remove hack to use non-system libcrypto


# 1.5 20-Jan-2019 djm

allow override of ssh-pkcs11-helper binary via $TEST_SSH_SSHPKCS11HELPER
from markus@


# 1.4 20-Jan-2019 djm

adapt agent-pkcs11.sh test to softhsm2 and add support for ECDSA keys

work by markus@, ok djm@


Revision tags: OPENBSD_6_2_BASE OPENBSD_6_3_BASE OPENBSD_6_4_BASE
# 1.3 30-Apr-2017 djm

eliminate explicit specification of protocol in tests and loops over
protocol. We only support SSHv2 now.


Revision tags: OPENBSD_5_7_BASE OPENBSD_5_8_BASE OPENBSD_5_9_BASE OPENBSD_6_0_BASE OPENBSD_6_1_BASE
# 1.2 12-Jan-2015 djm

fatal if soft-PKCS11 library is missing rather (rather than continue
and fail with a more cryptic error)


Revision tags: OPENBSD_4_7_BASE OPENBSD_4_8_BASE OPENBSD_4_9_BASE OPENBSD_5_0_BASE OPENBSD_5_1_BASE OPENBSD_5_2_BASE OPENBSD_5_3_BASE OPENBSD_5_4_BASE OPENBSD_5_5_BASE OPENBSD_5_6_BASE
# 1.1 08-Feb-2010 markus

test for PKCS#11 support (currently disabled)


Revision tags: OPENBSD_6_2_BASE
# 1.3 30-Apr-2017 djm

eliminate explicit specification of protocol in tests and loops over
protocol. We only support SSHv2 now.


Revision tags: OPENBSD_5_7_BASE OPENBSD_5_8_BASE OPENBSD_5_9_BASE OPENBSD_6_0_BASE OPENBSD_6_1_BASE
# 1.2 12-Jan-2015 djm

fatal if soft-PKCS11 library is missing rather (rather than continue
and fail with a more cryptic error)


Revision tags: OPENBSD_4_7_BASE OPENBSD_4_8_BASE OPENBSD_4_9_BASE OPENBSD_5_0_BASE OPENBSD_5_1_BASE OPENBSD_5_2_BASE OPENBSD_5_3_BASE OPENBSD_5_4_BASE OPENBSD_5_5_BASE OPENBSD_5_6_BASE
# 1.1 08-Feb-2010 markus

test for PKCS#11 support (currently disabled)