diff options
author | Simon Josefsson <simon@josefsson.org> | 2004-10-24 16:17:08 +0000 |
---|---|---|
committer | Simon Josefsson <simon@josefsson.org> | 2004-10-24 16:17:08 +0000 |
commit | 73c8c3b8fe7f8b8780a08da47e0eed7ae954f474 (patch) | |
tree | 695c98c323b96c32cb05cceec4fd68a39056bb02 | |
parent | dd112748a0a050c857b8526b5789d2614fe8b4ad (diff) | |
download | gnutls-73c8c3b8fe7f8b8780a08da47e0eed7ae954f474.tar.gz |
Add. Test vectors from Joe Orton <joe@manyfish.co.uk>, by permission (<20041024155032.GB26275@manyfish.co.uk>).
-rw-r--r-- | tests/Makefile.am | 6 | ||||
-rw-r--r-- | tests/client.p12 | bin | 0 -> 1444 bytes | |||
-rw-r--r-- | tests/noclient.p12 | bin | 0 -> 1317 bytes | |||
-rwxr-xr-x | tests/pkcs12_neon | 40 | ||||
-rw-r--r-- | tests/unclient.p12 | bin | 0 -> 1476 bytes |
5 files changed, 44 insertions, 2 deletions
diff --git a/tests/Makefile.am b/tests/Makefile.am index efbcc1dab3..e74efc10aa 100644 --- a/tests/Makefile.am +++ b/tests/Makefile.am @@ -24,8 +24,10 @@ LDADD = ../lib/libgnutls.la libutils.la noinst_LTLIBRARIES = libutils.la libutils_la_SOURCES = utils.h utils.c -TESTS = simple anonself -check_PROGRAMS = $(TESTS) +ctests = simple anonself +TESTS = pkcs12_neon $(ctests) +check_PROGRAMS = $(ctests) +dist_check_SCRIPTS = pkcs12_neon # LIBS=`../lib/libgnutls-config --libs` -lgcrypt # LIBS2=`../lib/libgnutls-config --libs` `../libextra/libgnutls-extra-config --libs` -lgcrypt -lopencdk diff --git a/tests/client.p12 b/tests/client.p12 Binary files differnew file mode 100644 index 0000000000..f57ce09eef --- /dev/null +++ b/tests/client.p12 diff --git a/tests/noclient.p12 b/tests/noclient.p12 Binary files differnew file mode 100644 index 0000000000..80f3940089 --- /dev/null +++ b/tests/noclient.p12 diff --git a/tests/pkcs12_neon b/tests/pkcs12_neon new file mode 100755 index 0000000000..23db86b570 --- /dev/null +++ b/tests/pkcs12_neon @@ -0,0 +1,40 @@ +#!/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 + +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 $file > out 2>&1 + 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/unclient.p12 b/tests/unclient.p12 Binary files differnew file mode 100644 index 0000000000..68ef420c98 --- /dev/null +++ b/tests/unclient.p12 |