diff options
author | Nikos Mavrogiannopoulos <nmav@gnutls.org> | 2019-04-10 13:12:21 +0000 |
---|---|---|
committer | Nikos Mavrogiannopoulos <nmav@gnutls.org> | 2019-04-10 13:12:21 +0000 |
commit | 12bfa526605d2eb078e0244dc47ea21c2033491d (patch) | |
tree | e70543a15d22b0b90e87943bca726a32d4fcf1bb | |
parent | 1d0da3cdfb0ccc9b46bce4e16760482f2654fbf3 (diff) | |
parent | 60a0716e4a04f6801f15b31af195219292eb4424 (diff) | |
download | gnutls-12bfa526605d2eb078e0244dc47ea21c2033491d.tar.gz |
Merge branch 'tmp-fix-pha-pkcs11-test' into 'master'
tests: fix race condition in tls13/post-handshake-with-cert-pkcs11
See merge request gnutls/gnutls!977
-rw-r--r-- | tests/tls13/post-handshake-with-cert-pkcs11.c | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/tests/tls13/post-handshake-with-cert-pkcs11.c b/tests/tls13/post-handshake-with-cert-pkcs11.c index ca78ade689..01aa2d08a7 100644 --- a/tests/tls13/post-handshake-with-cert-pkcs11.c +++ b/tests/tls13/post-handshake-with-cert-pkcs11.c @@ -427,13 +427,13 @@ void start(const char *name, int err, int cli_err, int type) if (child) { /* parent */ close(fd[1]); - client(fd[0], cli_err); + server(fd[0], err, type); kill(child, SIGTERM); wait(&status); check_wait_status(status); } else { close(fd[0]); - server(fd[1], err, type); + client(fd[1], cli_err); exit(0); } @@ -444,6 +444,9 @@ void doit(void) const char *bin; char buf[128]; + /* check if softhsm module is loadable */ + (void) softhsm_lib(); + /* initialize SoftHSM token that libpkcs11mock2.so internally uses */ bin = softhsm_bin(); |