From 403cfce4177cab791e29209f63f665d7170c20e3 Mon Sep 17 00:00:00 2001 From: Peter Wu Date: Fri, 6 Dec 2013 00:06:35 +0100 Subject: openssl-{connect,listen}: fix usage, reduce output The CLIENT_RANDOM is applicable to clients only, so remove it from ServerHello. Also update notes with cmake+gcrypt instructions. --- openssl-listen | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) (limited to 'openssl-listen') diff --git a/openssl-listen b/openssl-listen index 3919c40..c6c1025 100755 --- a/openssl-listen +++ b/openssl-listen @@ -15,15 +15,6 @@ PSK=0102030405060708091011121314151617181920 pkdir=$1; shift portbase=4430 -# assume that openssl options always start with - -if [[ $1 != -* ]]; then - portbase=$1; shift - if ! [[ $portbase -gt 0 ]] || ! [[ $portbase -le 65535 ]]; then - echo "Port must be between 1 and 65535" >&2 - exit 1 - fi -fi - if [ -z "$pkdir" ]; then cat <&2 + exit 1 + fi +fi + [[ $pkdir == */ ]] || pkdir+=/ if ! mkdir -p "$pkdir"; then -- cgit v1.2.1