Blame tests/rsa-testpkcs11.softhsm
|
Packit Service |
2ea82d |
#!/bin/sh
|
|
Packit Service |
2ea82d |
|
|
Packit Service |
2ea82d |
# Copyright (C) 2013 Nikos Mavrogiannopoulos
|
|
Packit Service |
2ea82d |
#
|
|
Packit Service |
2ea82d |
# This file is part of GnuTLS.
|
|
Packit Service |
2ea82d |
#
|
|
Packit Service |
2ea82d |
# GnuTLS is free software; you can redistribute it and/or modify it
|
|
Packit Service |
2ea82d |
# under the terms of the GNU General Public License as published by the
|
|
Packit Service |
2ea82d |
# Free Software Foundation; either version 3 of the License, or (at
|
|
Packit Service |
2ea82d |
# your option) any later version.
|
|
Packit Service |
2ea82d |
#
|
|
Packit Service |
2ea82d |
# GnuTLS is distributed in the hope that it will be useful, but
|
|
Packit Service |
2ea82d |
# WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
Packit Service |
2ea82d |
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
|
Packit Service |
2ea82d |
# General Public License for more details.
|
|
Packit Service |
2ea82d |
#
|
|
Packit Service |
2ea82d |
# You should have received a copy of the GNU General Public License
|
|
Packit Service |
2ea82d |
# along with GnuTLS; if not, write to the Free Software Foundation,
|
|
Packit Service |
2ea82d |
# Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
|
|
Packit Service |
2ea82d |
|
|
Packit Service |
2ea82d |
outdir="output.$$"
|
|
Packit Service |
2ea82d |
|
|
Packit Service |
2ea82d |
# Load common test functions
|
|
Packit Service |
2ea82d |
. ${srcdir}/rsa-common.sh
|
|
Packit Service |
2ea82d |
|
|
Packit Service |
2ea82d |
# Do the common test initialization
|
|
Packit Service |
2ea82d |
common_init
|
|
Packit Service |
2ea82d |
|
|
Packit Service |
2ea82d |
../examples/auth ${MODULE} ${PIN}
|
|
Packit Service |
2ea82d |
if test $? != 0;then
|
|
Packit Service |
2ea82d |
echo "Basic PKCS #11 test test failed"
|
|
Packit Service |
2ea82d |
exit 1;
|
|
Packit Service |
2ea82d |
fi
|
|
Packit Service |
2ea82d |
|
|
Packit Service |
2ea82d |
# Cleanup
|
|
Packit Service |
2ea82d |
rm -rf "$outdir"
|
|
Packit Service |
2ea82d |
|
|
Packit Service |
2ea82d |
exit 0
|