summaryrefslogtreecommitdiff
path: root/tests/cert-tests
diff options
context:
space:
mode:
authorNikos Mavrogiannopoulos <nmav@redhat.com>2017-06-16 08:38:42 +0200
committerNikos Mavrogiannopoulos <nmav@redhat.com>2017-06-16 09:24:23 +0200
commit7df03e9c6995f2ecfdf3ed0023dbf35e015f33e2 (patch)
treec00385a59fb67eb458147e90a3b0e391acbae2c5 /tests/cert-tests
parent3b2c0d9967fbfcc13cea12f8d1303a37a1660e88 (diff)
downloadgnutls-7df03e9c6995f2ecfdf3ed0023dbf35e015f33e2.tar.gz
tests: removed openpgp related tests
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Diffstat (limited to 'tests/cert-tests')
-rw-r--r--tests/cert-tests/data/openpgp-invalid1.pubbin264 -> 0 bytes
-rw-r--r--tests/cert-tests/data/openpgp-invalid2.pubbin187 -> 0 bytes
-rw-r--r--tests/cert-tests/data/openpgp-invalid3.pubbin124 -> 0 bytes
-rw-r--r--tests/cert-tests/data/openpgp-invalid4.pub1
-rw-r--r--tests/cert-tests/data/openpgp-invalid5.pub1
-rw-r--r--tests/cert-tests/data/openpgp-invalid6.pubbin1658 -> 0 bytes
-rw-r--r--tests/cert-tests/data/openpgp-invalid7.pubbin383 -> 0 bytes
-rw-r--r--tests/cert-tests/data/openpgp-invalid8.pubbin6590 -> 0 bytes
-rwxr-xr-xtests/cert-tests/openpgp-cert-parser54
-rwxr-xr-xtests/cert-tests/openpgp-certs105
-rwxr-xr-xtests/cert-tests/openpgp-selfsigs57
11 files changed, 0 insertions, 218 deletions
diff --git a/tests/cert-tests/data/openpgp-invalid1.pub b/tests/cert-tests/data/openpgp-invalid1.pub
deleted file mode 100644
index dd38a04dc6..0000000000
--- a/tests/cert-tests/data/openpgp-invalid1.pub
+++ /dev/null
Binary files differ
diff --git a/tests/cert-tests/data/openpgp-invalid2.pub b/tests/cert-tests/data/openpgp-invalid2.pub
deleted file mode 100644
index 93d9df5ce5..0000000000
--- a/tests/cert-tests/data/openpgp-invalid2.pub
+++ /dev/null
Binary files differ
diff --git a/tests/cert-tests/data/openpgp-invalid3.pub b/tests/cert-tests/data/openpgp-invalid3.pub
deleted file mode 100644
index 65d1b59045..0000000000
--- a/tests/cert-tests/data/openpgp-invalid3.pub
+++ /dev/null
Binary files differ
diff --git a/tests/cert-tests/data/openpgp-invalid4.pub b/tests/cert-tests/data/openpgp-invalid4.pub
deleted file mode 100644
index 5bd7dea14b..0000000000
--- a/tests/cert-tests/data/openpgp-invalid4.pub
+++ /dev/null
@@ -1 +0,0 @@
-¶ \ No newline at end of file
diff --git a/tests/cert-tests/data/openpgp-invalid5.pub b/tests/cert-tests/data/openpgp-invalid5.pub
deleted file mode 100644
index a4b6f5ff56..0000000000
--- a/tests/cert-tests/data/openpgp-invalid5.pub
+++ /dev/null
@@ -1 +0,0 @@
-ÍÿÿÿÿÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÌÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍ ÍÍÍÍÍÍÍÍÍÍ ÿÿÿÿÿÿÿÿ \ No newline at end of file
diff --git a/tests/cert-tests/data/openpgp-invalid6.pub b/tests/cert-tests/data/openpgp-invalid6.pub
deleted file mode 100644
index 21a1593bcf..0000000000
--- a/tests/cert-tests/data/openpgp-invalid6.pub
+++ /dev/null
Binary files differ
diff --git a/tests/cert-tests/data/openpgp-invalid7.pub b/tests/cert-tests/data/openpgp-invalid7.pub
deleted file mode 100644
index f808f49c0c..0000000000
--- a/tests/cert-tests/data/openpgp-invalid7.pub
+++ /dev/null
Binary files differ
diff --git a/tests/cert-tests/data/openpgp-invalid8.pub b/tests/cert-tests/data/openpgp-invalid8.pub
deleted file mode 100644
index 3ee82dab01..0000000000
--- a/tests/cert-tests/data/openpgp-invalid8.pub
+++ /dev/null
Binary files differ
diff --git a/tests/cert-tests/openpgp-cert-parser b/tests/cert-tests/openpgp-cert-parser
deleted file mode 100755
index cacf3d7f6c..0000000000
--- a/tests/cert-tests/openpgp-cert-parser
+++ /dev/null
@@ -1,54 +0,0 @@
-#!/bin/sh
-
-# Copyright (C) 2010, 2012 Free Software Foundation, Inc.
-#
-# Author: Nikos Mavrogiannopoulos
-#
-# 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 3 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${EXEEXT}}"
-
-if ! test -z "${VALGRIND}"; then
- VALGRIND="${LIBTOOL:-libtool} --mode=execute ${VALGRIND}"
-fi
-
-if ! test -x "${CERTTOOL}"; then
- exit 77
-fi
-
-unset RETCODE || true
-
-fail() {
- echo "Failure: $1" >&2
- RETCODE=${RETCODE:-${2:-1}}
-}
-
-echo "Checking OpenPGP certificate parsing"
-
-for i in "truncated.pub" "attribute-leak-1.pub" "subpkt-leak.pub" "openpgp-invalid1.pub" \
- "openpgp-invalid2.pub" "openpgp-invalid3.pub" "openpgp-invalid4.pub" "openpgp-invalid5.pub" \
- "openpgp-invalid6.pub" "openpgp-invalid7.pub" "openpgp-invalid8.pub" \
- "openpgp-invalid9.pub" "openpgp-invalid10" "openpgp-invalid11";do
- ${VALGRIND} "${CERTTOOL}" --inraw --pgp-certificate-info --infile "${srcdir}/data/${i}"
- rc=$?
- if test $rc != 1;then
- fail "$i: Parsing should have errored ($rc)"
- fi
-done
-
-exit ${RETCODE:-0}
diff --git a/tests/cert-tests/openpgp-certs b/tests/cert-tests/openpgp-certs
deleted file mode 100755
index b175b92840..0000000000
--- a/tests/cert-tests/openpgp-certs
+++ /dev/null
@@ -1,105 +0,0 @@
-#!/bin/sh
-
-# Copyright (C) 2010-2012 Free Software Foundation, Inc.
-#
-# Author: Nikos Mavrogiannopoulos
-#
-# 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 3 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:-.}"
-SERV="${SERV:-../../src/gnutls-serv}"
-CLI="${CLI:-../../src/gnutls-cli}"
-DEBUG=""
-
-if ! test -x "${SERV}"; then
- exit 77
-fi
-
-if ! test -x "${CLI}"; then
- exit 77
-fi
-
-if ! test -z "${VALGRIND}"; then
- VALGRIND="${LIBTOOL:-libtool} --mode=execute ${VALGRIND} --error-exitcode=15"
-fi
-
-if test "${WINDIR}" != ""; then
- exit 77
-fi
-
-SERV="${SERV} -q"
-
-. "${srcdir}/../scripts/common.sh"
-
-echo "Checking OpenPGP certificate verification"
-
-eval "${GETPORT}"
-launch_server $$ --priority NORMAL:+CTYPE-OPENPGP --pgpcertfile "${srcdir}/data/srv-public-127.0.0.1-signed.gpg" --pgpkeyfile "${srcdir}/data/srv-secret.gpg"
-PID=$!
-wait_server ${PID}
-
-# give the server a chance to initialize
-
-#gnutls currently only considers PGP certificates verified only if
-#all user IDs in the certificate were signed.
-
-#"${CLI}" -p "${PORT}" 127.0.0.1 --pgpkeyring ca-public.gpg </dev/null >/dev/null || \
-# fail "Connection to verified IP address should have succeeded! (error code $?)" $?
-
-${VALGRIND} "${CLI}" ${DEBUG} -p "${PORT}" 127.0.0.2 --priority NORMAL:+CTYPE-OPENPGP --pgpkeyring "${srcdir}/data/ca-public.gpg" </dev/null >/dev/null 2>&1 && \
- fail ${PID} "Connection to unrecognized IP address should have failed!"
-
-${VALGRIND} "${CLI}" ${DEBUG} -p "${PORT}" localhost --priority NORMAL:+CTYPE-OPENPGP --pgpkeyring "${srcdir}/data/ca-public.gpg" </dev/null >/dev/null 2>&1 && \
- fail ${PID} "Connection to unverified (but present) 'localhost' should have failed!"
-
-kill ${PID}
-wait
-
-eval "${GETPORT}"
-launch_server $$ --priority NORMAL:+CTYPE-OPENPGP --pgpcertfile "${srcdir}/data/srv-public-localhost-signed.gpg" --pgpkeyfile "${srcdir}/data/srv-secret.gpg"
-PID=$!
-wait_server ${PID}
-
-echo | ${VALGRIND} "${CLI}" ${DEBUG} --priority NORMAL:+CTYPE-OPENPGP -p "${PORT}" 127.0.0.1 --pgpkeyring "${srcdir}/data/ca-public.gpg" </dev/null >/dev/null 2>&1 && \
- fail ${PID} "Connection to unverified IP address should have failed! (error code $?)" $?
-
-${VALGRIND} "${CLI}" ${DEBUG} --priority NORMAL:+CTYPE-OPENPGP -p "${PORT}" 127.0.0.2 --pgpkeyring "${srcdir}/data/ca-public.gpg" </dev/null >/dev/null 2>&1 && \
- fail ${PID} "Connection to unrecognized IP address should have failed!"
-
-#see reason above
-#"${CLI}" -p "${PORT}" localhost --pgpkeyring ca-public.gpg </dev/null >/dev/null || \
-# fail ${PID} "Connection to verified 'localhost' should have succeded! (error code $?)" $?
-
-kill ${PID}
-wait
-
-eval "${GETPORT}"
-launch_server $$ --priority NORMAL:+CTYPE-OPENPGP --pgpcertfile "${srcdir}/data/srv-public-all-signed.gpg" --pgpkeyfile "${srcdir}/data/srv-secret.gpg"
-PID=$!
-wait_server ${PID}
-
-# give the server a chance to initialize
-echo | ${VALGRIND} "${CLI}" ${DEBUG} --priority NORMAL:+CTYPE-OPENPGP -p "${PORT}" 127.0.0.1 --pgpkeyring "${srcdir}/data/ca-public.gpg" </dev/null >/dev/null 2>&1 || \
- fail ${PID} "Connection to signed PGP certificate should have succeeded! (error code $?)" $?
-
-${VALGRIND} "${CLI}" ${DEBUG} --priority NORMAL:+CTYPE-OPENPGP -p "${PORT}" 127.0.0.2 --pgpkeyring "${srcdir}/data/ca-public.gpg" </dev/null >/dev/null 2>&1 && \
- fail ${PID} "Connection to unrecognized IP address should have failed!"
-
-kill ${PID}
-wait
-
-exit 0
diff --git a/tests/cert-tests/openpgp-selfsigs b/tests/cert-tests/openpgp-selfsigs
deleted file mode 100755
index 1e7c50d09f..0000000000
--- a/tests/cert-tests/openpgp-selfsigs
+++ /dev/null
@@ -1,57 +0,0 @@
-#!/bin/sh
-
-# Copyright (C) 2010, 2012 Free Software Foundation, Inc.
-#
-# Author: Nikos Mavrogiannopoulos
-#
-# 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 3 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.
-
-set -e
-
-srcdir="${srcdir:-.}"
-CERTTOOL="${CERTTOOL:-../../src/certtool${EXEEXT}}"
-
-if ! test -x "${CERTTOOL}"; then
- exit 77
-fi
-
-unset RETCODE || true
-
-fail() {
- echo "Failure: $1" >&2
- RETCODE=${RETCODE:-${2:-1}}
-}
-
-echo "Checking OpenPGP certificate self verification"
-
-("${CERTTOOL}" --inraw --pgp-certificate-info --infile "${srcdir}/data/selfsigs/alice.pub" \
- | grep "^Self Signature verification: ok" > /dev/null) || \
- fail "Self sig Verification should have succeeded!"
-
-("${CERTTOOL}" --inraw --pgp-certificate-info --infile "${srcdir}/data/selfsigs/alice-mallory-badsig18.pub" \
- | grep "^Self Signature verification: failed" > /dev/null) || \
- fail "Self sig Verification should have failed!"
-
-("${CERTTOOL}" --inraw --pgp-certificate-info --infile "${srcdir}/data/selfsigs/alice-mallory-irrelevantsig.pub" \
- | grep "^Self Signature verification: failed" >/dev/null) || \
- fail "Self sig Verification should have failed!"
-
-("${CERTTOOL}" --inraw --pgp-certificate-info --infile "${srcdir}/data/selfsigs/alice-mallory-nosig18.pub" \
- | grep "^Self Signature verification: failed" >/dev/null) || \
- fail "Self sig Verification should have failed!"
-
-exit ${RETCODE:-0}