summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorSimon Josefsson <simon@josefsson.org>2004-08-22 13:07:39 +0000
committerSimon Josefsson <simon@josefsson.org>2004-08-22 13:07:39 +0000
commitc6ea1c3cd8399ff15a862627ad5b8762a0224d4c (patch)
treeea131f41f6ce94ba3264b66c3b63b9c92b3fdaf1 /tests
parent1bad57d6c331986d418aec0ebca87506243ce94d (diff)
downloadgnutls-c6ea1c3cd8399ff15a862627ad5b8762a0224d4c.tar.gz
Add.
Diffstat (limited to 'tests')
-rwxr-xr-xtests/pkits_pkcs1232
1 files changed, 32 insertions, 0 deletions
diff --git a/tests/pkits_pkcs12 b/tests/pkits_pkcs12
new file mode 100755
index 0000000000..58ccd9d91b
--- /dev/null
+++ b/tests/pkits_pkcs12
@@ -0,0 +1,32 @@
+#!/bin/sh
+
+# Copyright (C) 2004 Free Software Foundation
+#
+# This file is part of GNUTLS.
+#
+# GNUTLS is free software; you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation; either version 2 of the License, or
+# (at your option) any later version.
+#
+# GNUTLS is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+#
+# You should have received a copy of the GNU General Public License
+# along with this program; if not, write to the Free Software
+# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA
+
+CERTTOOL=../src/certtool
+
+test -d pkcs12 || unzip PKITS_data.zip
+
+for p12 in pkcs12/*; do
+ $CERTTOOL --p12-info --inder --password password --infile $p12 > out 2>&1
+ rc=$?
+ if test $rc != 0; then
+ echo "PKCS12 $p12 FATAL failure."
+ fi
+done
+rm -f out