[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[SCM] GNU gnutls branch, gnutls_2_12_x, updated. gnutls_2_12_0-16-gadfee
From: |
Nikos Mavrogiannopoulos |
Subject: |
[SCM] GNU gnutls branch, gnutls_2_12_x, updated. gnutls_2_12_0-16-gadfee35 |
Date: |
Mon, 28 Mar 2011 19:32:13 +0000 |
This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "GNU gnutls".
http://git.savannah.gnu.org/cgit/gnutls.git/commit/?id=adfee35ae60800d633ad24c649f3b4d280cb336c
The branch, gnutls_2_12_x has been updated
via adfee35ae60800d633ad24c649f3b4d280cb336c (commit)
via 960143d1615e8714c5f79bdfaa3e739c8bc0aa25 (commit)
from aa36f26ed10ba84ab2d4f5e4fda4e36ad0e34e8b (commit)
Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.
- Log -----------------------------------------------------------------
commit adfee35ae60800d633ad24c649f3b4d280cb336c
Author: Nikos Mavrogiannopoulos <address@hidden>
Date: Mon Mar 28 21:31:58 2011 +0200
made more silent.
commit 960143d1615e8714c5f79bdfaa3e739c8bc0aa25
Author: Nikos Mavrogiannopoulos <address@hidden>
Date: Mon Mar 28 21:27:19 2011 +0200
Made scripts bourne shell compliant and not bash.
-----------------------------------------------------------------------
Summary of changes:
tests/dsa/testdsa | 32 +++++++++++++++++++-------------
tests/openpgp-certs/testcerts | 32 +++++++++++++++++++-------------
2 files changed, 38 insertions(+), 26 deletions(-)
diff --git a/tests/dsa/testdsa b/tests/dsa/testdsa
index bbd0802..910bf8b 100755
--- a/tests/dsa/testdsa
+++ b/tests/dsa/testdsa
@@ -1,4 +1,4 @@
-#!/bin/bash
+#!/bin/sh
# Copyright (C) 2010 Free Software Foundation, Inc.
#
@@ -38,7 +38,8 @@ echo "Checking various DSA key sizes"
echo "Checking DSA-1024 with TLS 1.0"
-$SERV $DEBUG -p $PORT --priority "NORMAL:-VERS-TLS-ALL:+VERS-TLS1.0"
--x509certfile $srcdir/cert.dsa.1024.pem --x509keyfile $srcdir/dsa.1024.pem
>/dev/null 2>&1 &
+$SERV $DEBUG -p $PORT --priority "NORMAL:-VERS-TLS-ALL:+VERS-TLS1.0"
--x509certfile $srcdir/cert.dsa.1024.pem --x509keyfile $srcdir/dsa.1024.pem
>/dev/null 2>&1 & PID=$!
+trap "kill $PID" 1 15 2
# give the server a chance to initialize
sleep 2
@@ -64,14 +65,15 @@ echo "Checking server DSA-1024 with client DSA-3072 and TLS
1.0"
$CLI $DEBUG -p $PORT 127.0.0.1 --insecure --x509certfile
$srcdir/cert.dsa.3072.pem --x509keyfile $srcdir/dsa.3072.pem </dev/null
>/dev/null 2>&1 && \
fail "Succeeded connection to a server with a client DSA 3072 key and TLS
1.0!"
-kill %1
+kill $PID
wait
# DSA 1024 + TLS 1.2
echo "Checking DSA-1024 with TLS 1.2"
-$SERV $DEBUG -p $PORT --priority "NORMAL:-VERS-TLS-ALL:+VERS-TLS1.2"
--x509certfile $srcdir/cert.dsa.1024.pem --x509keyfile $srcdir/dsa.1024.pem
>/dev/null 2>&1 &
+$SERV $DEBUG -p $PORT --priority "NORMAL:-VERS-TLS-ALL:+VERS-TLS1.2"
--x509certfile $srcdir/cert.dsa.1024.pem --x509keyfile $srcdir/dsa.1024.pem
>/dev/null 2>&1 & PID=$!
+trap "kill $PID" 1 15 2
# give the server a chance to initialize
sleep 2
@@ -98,14 +100,15 @@ $CLI $DEBUG -p $PORT 127.0.0.1 --insecure --x509certfile
$srcdir/cert.dsa.3072.p
fail "Failed connection to a server with a client DSA 3072 key and TLS 1.2!"
-kill %1
+kill $PID
wait
# DSA 2048 + TLS 1.0
echo "Checking DSA-2048 with TLS 1.0"
-$SERV $DEBUG -p $PORT --priority "NORMAL:-VERS-TLS-ALL:+VERS-TLS1.0"
--x509certfile $srcdir/cert.dsa.2048.pem --x509keyfile $srcdir/dsa.2048.pem
>/dev/null 2>&1 &
+$SERV $DEBUG -p $PORT --priority "NORMAL:-VERS-TLS-ALL:+VERS-TLS1.0"
--x509certfile $srcdir/cert.dsa.2048.pem --x509keyfile $srcdir/dsa.2048.pem
>/dev/null 2>&1 & PID=$!
+trap "kill $PID" 1 15 2
# give the server a chance to initialize
sleep 2
@@ -113,14 +116,15 @@ sleep 2
$CLI $DEBUG -p $PORT 127.0.0.1 --insecure </dev/null >/dev/null 2>&1 && \
fail "Succeeded connection to a server with DSA 2048 key and TLS 1.0. Should
have failed!"
-kill %1
+kill $PID
wait
# DSA 2048 + TLS 1.2
echo "Checking DSA-2048 with TLS 1.2"
-$SERV $DEBUG -p $PORT --priority "NORMAL:-VERS-TLS-ALL:+VERS-TLS1.2"
--x509certfile $srcdir/cert.dsa.2048.pem --x509keyfile $srcdir/dsa.2048.pem
>/dev/null 2>&1 &
+$SERV $DEBUG -p $PORT --priority "NORMAL:-VERS-TLS-ALL:+VERS-TLS1.2"
--x509certfile $srcdir/cert.dsa.2048.pem --x509keyfile $srcdir/dsa.2048.pem
>/dev/null 2>&1 & PID=$!
+trap "kill $PID" 1 15 2
# give the server a chance to initialize
sleep 2
@@ -128,14 +132,15 @@ sleep 2
$CLI $DEBUG -p $PORT 127.0.0.1 --insecure </dev/null >/dev/null || \
fail "Failed connection to a server with DSA 2048 key and TLS 1.2!"
-kill %1
+kill $PID
wait
# DSA 3072 + TLS 1.0
echo "Checking DSA-3072 with TLS 1.0"
-$SERV $DEBUG -p $PORT --priority "NORMAL:-VERS-TLS-ALL:+VERS-TLS1.0"
--x509certfile $srcdir/cert.dsa.3072.pem --x509keyfile $srcdir/dsa.3072.pem
>/dev/null 2>&1 &
+$SERV $DEBUG -p $PORT --priority "NORMAL:-VERS-TLS-ALL:+VERS-TLS1.0"
--x509certfile $srcdir/cert.dsa.3072.pem --x509keyfile $srcdir/dsa.3072.pem
>/dev/null 2>&1 & PID=$!
+trap "kill $PID" 1 15 2
# give the server a chance to initialize
sleep 2
@@ -143,14 +148,15 @@ sleep 2
$CLI $DEBUG -p $PORT 127.0.0.1 --insecure </dev/null >/dev/null 2>&1 && \
fail "Succeeded connection to a server with DSA 2048 key and TLS 1.0. Should
have failed!"
-kill %1
+kill $PID
wait
# DSA 3072 + TLS 1.2
echo "Checking DSA-3072 with TLS 1.2"
-$SERV $DEBUG -p $PORT --priority "NORMAL:-VERS-TLS-ALL:+VERS-TLS1.2"
--x509certfile $srcdir/cert.dsa.3072.pem --x509keyfile $srcdir/dsa.3072.pem
>/dev/null 2>&1 &
+$SERV $DEBUG -p $PORT --priority "NORMAL:-VERS-TLS-ALL:+VERS-TLS1.2"
--x509certfile $srcdir/cert.dsa.3072.pem --x509keyfile $srcdir/dsa.3072.pem
>/dev/null 2>&1 & PID=$!
+trap "kill $PID" 1 15 2
# give the server a chance to initialize
sleep 2
@@ -158,7 +164,7 @@ sleep 2
$CLI $DEBUG -p $PORT 127.0.0.1 --insecure </dev/null >/dev/null || \
fail "Failed connection to a server with DSA 3072 key and TLS 1.2!"
-kill %1
+kill $PID
wait
exit 0
diff --git a/tests/openpgp-certs/testcerts b/tests/openpgp-certs/testcerts
index dbb0810..b100ac8 100755
--- a/tests/openpgp-certs/testcerts
+++ b/tests/openpgp-certs/testcerts
@@ -1,4 +1,4 @@
-#!/bin/bash
+#!/bin/sh
# Copyright (C) 2010 Free Software Foundation, Inc.
#
@@ -24,6 +24,7 @@ srcdir="${srcdir:-.}"
SERV="${SERV:-../../src/gnutls-serv} -q"
CLI="${CLI:-../../src/gnutls-cli}"
PORT="${PORT:-5557}"
+DEBUG=""
unset RETCODE
fail() {
@@ -33,7 +34,8 @@ fail() {
echo "Checking OpenPGP certificate verification"
-$SERV -p $PORT --pgpcertfile $srcdir/srv-public-127.0.0.1-signed.gpg
--pgpkeyfile $srcdir/srv-secret.gpg >/dev/null 2>&1 &
+$SERV -p $PORT --pgpcertfile $srcdir/srv-public-127.0.0.1-signed.gpg
--pgpkeyfile $srcdir/srv-secret.gpg >/dev/null 2>&1 & PID=$!
+trap "kill $PID" 1 15 2
# give the server a chance to initialize
sleep 2
@@ -44,42 +46,46 @@ sleep 2
#$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
$?)" $?
-$CLI -p $PORT 127.0.0.2 --pgpkeyring $srcdir/ca-public.gpg </dev/null
>/dev/null && \
+$CLI $DEBUG -p $PORT 127.0.0.2 --pgpkeyring $srcdir/ca-public.gpg </dev/null
>/dev/null 2>&1 && \
fail "Connection to unrecognized IP address should have failed!"
-$CLI -p $PORT localhost --pgpkeyring $srcdir/ca-public.gpg </dev/null
>/dev/null && \
+$CLI $DEBUG -p $PORT localhost --pgpkeyring $srcdir/ca-public.gpg </dev/null
>/dev/null 2>&1 && \
fail "Connection to unverified (but present) 'localhost' should have failed!"
-kill %1
+kill $PID
wait
-$SERV -p $PORT --pgpcertfile $srcdir/srv-public-localhost-signed.gpg
--pgpkeyfile $srcdir/srv-secret.gpg >/dev/null 2>&1 &
+$SERV -p $PORT --pgpcertfile $srcdir/srv-public-localhost-signed.gpg
--pgpkeyfile $srcdir/srv-secret.gpg >/dev/null 2>&1 & PID=$!
+trap "kill $PID" 1 15 2
+
# give the server a chance to initialize
sleep 2
-echo | $CLI -p $PORT 127.0.0.1 --pgpkeyring $srcdir/ca-public.gpg </dev/null
>/dev/null && \
+echo | $CLI $DEBUG -p $PORT 127.0.0.1 --pgpkeyring $srcdir/ca-public.gpg
</dev/null >/dev/null 2>&1 && \
fail "Connection to unverified IP address should have failed! (error code
$?)" $?
-$CLI -p $PORT 127.0.0.2 --pgpkeyring $srcdir/ca-public.gpg </dev/null
>/dev/null && \
+$CLI $DEBUG -p $PORT 127.0.0.2 --pgpkeyring $srcdir/ca-public.gpg </dev/null
>/dev/null 2>&1 && \
fail "Connection to unrecognized IP address should have failed!"
#see reason above
#$CLI -p $PORT localhost --pgpkeyring ca-public.gpg </dev/null >/dev/null || \
# fail "Connection to verified 'localhost' should have succeded! (error code
$?)" $?
-kill %1 >/dev/null 2>&1
+kill $PID
wait
-$SERV -p $PORT --pgpcertfile $srcdir/srv-public-all-signed.gpg --pgpkeyfile
$srcdir/srv-secret.gpg >/dev/null 2>&1 &
+$SERV -p $PORT --pgpcertfile $srcdir/srv-public-all-signed.gpg --pgpkeyfile
$srcdir/srv-secret.gpg >/dev/null 2>&1 & PID=$!
+trap "kill $PID" 1 15 2
+
# give the server a chance to initialize
sleep 2
-echo | $CLI -p $PORT 127.0.0.1 --pgpkeyring $srcdir/ca-public.gpg </dev/null
>/dev/null || \
+echo | $CLI $DEBUG -p $PORT 127.0.0.1 --pgpkeyring $srcdir/ca-public.gpg
</dev/null >/dev/null || \
fail "Connection to signed PGP certificate should have succeeded! (error
code $?)" $?
-$CLI -p $PORT 127.0.0.2 --pgpkeyring $srcdir/ca-public.gpg </dev/null
>/dev/null && \
+$CLI $DEBUG -p $PORT 127.0.0.2 --pgpkeyring $srcdir/ca-public.gpg </dev/null
>/dev/null && \
fail "Connection to unrecognized IP address should have failed!"
-kill %1 >/dev/null 2>&1
+kill $PID
wait
exit ${RETCODE:-0}
hooks/post-receive
--
GNU gnutls
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [SCM] GNU gnutls branch, gnutls_2_12_x, updated. gnutls_2_12_0-16-gadfee35,
Nikos Mavrogiannopoulos <=