diff options
author | Simon Josefsson <simon@josefsson.org> | 2006-10-24 11:49:54 +0000 |
---|---|---|
committer | Simon Josefsson <simon@josefsson.org> | 2006-10-24 11:49:54 +0000 |
commit | ef76c46876519c05d5750017523bf8c5958a59fc (patch) | |
tree | 3caeca06eb9932ffc14b3ec77eedbab817aefa7e /tests/pkcs12-decode | |
parent | 8844a6b57d0d4fcc3a4057385277c96c2ef30bd1 (diff) | |
download | gnutls-ef76c46876519c05d5750017523bf8c5958a59fc.tar.gz |
Move pkcs12 tests to pkcs12-decode/.
Diffstat (limited to 'tests/pkcs12-decode')
-rw-r--r-- | tests/pkcs12-decode/Makefile.am | 26 | ||||
-rw-r--r-- | tests/pkcs12-decode/client.p12 | bin | 0 -> 1444 bytes | |||
-rw-r--r-- | tests/pkcs12-decode/noclient.p12 | bin | 0 -> 1317 bytes | |||
-rwxr-xr-x | tests/pkcs12-decode/pkcs12 | 44 | ||||
-rw-r--r-- | tests/pkcs12-decode/unclient.p12 | bin | 0 -> 1476 bytes |
5 files changed, 70 insertions, 0 deletions
diff --git a/tests/pkcs12-decode/Makefile.am b/tests/pkcs12-decode/Makefile.am new file mode 100644 index 0000000000..0977cfcecb --- /dev/null +++ b/tests/pkcs12-decode/Makefile.am @@ -0,0 +1,26 @@ +## Process this file with automake to produce Makefile.in +# Copyright (C) 2006 Free Software Foundation +# +# Author: Simon Josefsson +# +# This file is part of GNUTLS. +# +# This file 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. +# +# This file 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 file; if not, write to the Free Software Foundation, +# Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. + +EXTRA_DIST = client.p12 noclient.p12 unclient.p12 + +dist_check_SCRIPTS = pkcs12 + +TESTS = pkcs12 diff --git a/tests/pkcs12-decode/client.p12 b/tests/pkcs12-decode/client.p12 Binary files differnew file mode 100644 index 0000000000..f57ce09eef --- /dev/null +++ b/tests/pkcs12-decode/client.p12 diff --git a/tests/pkcs12-decode/noclient.p12 b/tests/pkcs12-decode/noclient.p12 Binary files differnew file mode 100644 index 0000000000..80f3940089 --- /dev/null +++ b/tests/pkcs12-decode/noclient.p12 diff --git a/tests/pkcs12-decode/pkcs12 b/tests/pkcs12-decode/pkcs12 new file mode 100755 index 0000000000..875f080f4c --- /dev/null +++ b/tests/pkcs12-decode/pkcs12 @@ -0,0 +1,44 @@ +#!/bin/sh + +# Copyright (C) 2004, 2005, 2006 Free Software Foundation +# +# Author: Simon Josefsson +# +# 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 GNUTLS; if not, write to the Free Software Foundation, +# Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. + +srcdir=${srcdir:-.} +CERTTOOL=${CERTTOOL:-../../src/certtool} + +ret=0 +for p12 in 'client.p12 foobar' noclient.p12 unclient.p12; do + set -- $p12 + file=$1 + passwd=$2 + $CERTTOOL --p12-info --inder --password "$passwd" \ + --infile $srcdir/$file | tee out + rc=$? + if test $rc != 0; then + echo "NEON PKCS12 FATAL $p12" + ret=1 + else + echo "NEON PKCS12 OK $p12" + fi +done +rm -f out + +echo "NEON PKCS12 DONE (rc $ret)" +exit $ret diff --git a/tests/pkcs12-decode/unclient.p12 b/tests/pkcs12-decode/unclient.p12 Binary files differnew file mode 100644 index 0000000000..68ef420c98 --- /dev/null +++ b/tests/pkcs12-decode/unclient.p12 |