]> git.saurik.com Git - apple/security.git/blob - SecurityTests/clxutils/sslScripts/protServe
Security-57031.30.12.tar.gz
[apple/security.git] / SecurityTests / clxutils / sslScripts / protServe
1 #! /bin/csh -f
2 #
3 # run server side of SSL protocol version test.
4 #
5 set SSL_KEYCHAIN=localcert
6 #
7 # use this to explicitly open the keychain
8 #
9 set KEYCHAIN_PWD="z=localcert"
10 echo =====
11 echo ===== Run protClient script after server starts up
12 echo ===== unrestricted server via SSLSetProtocolVersion
13 echo =====
14 set cmd="sslServer P=1200 k=$SSL_KEYCHAIN $KEYCHAIN_PWD t l=11"
15 echo $cmd
16 $cmd
17 if($status != 0) then
18 echo @@@@@@ ERROR from sslServer; aborting.
19 exit(1)
20 endif
21 #
22 echo =====
23 echo ===== prompt the protClient Script
24 echo ===== server restricted to SSL2,3 via SSLSetProtocolVersion
25 echo ===== Expect 2 errors from sslServer
26 echo =====
27 set cmd="sslServer P=1201 k=$SSL_KEYCHAIN $KEYCHAIN_PWD 3 l=5"
28 echo $cmd
29 $cmd
30 if($status != 2) then
31 echo @@@@@@ ERROR from sslServer; aborting.
32 exit(1)
33 endif
34 #
35 echo =====
36 echo ===== prompt the protClient Script
37 echo ===== server restricted to SSL2 via SSLSetProtocolVersion
38 echo ===== Expect 5 errors from sslServer
39 echo =====
40 set cmd="sslServer P=1202 k=$SSL_KEYCHAIN $KEYCHAIN_PWD 2 l=8"
41 echo $cmd
42 $cmd
43 if($status != 5) then
44 echo @@@@@@ ERROR from sslServer; aborting.
45 exit(1)
46 endif
47 #
48 echo =====
49 echo ===== prompt the protClient Script
50 echo ===== unrestricted server via SSLSetProtocolVersionEnabled
51 echo =====
52 set cmd="sslServer P=1203 k=$SSL_KEYCHAIN $KEYCHAIN_PWD l=11 g=23t"
53 echo $cmd
54 $cmd
55 if($status != 0) then
56 echo @@@@@@ ERROR from sslServer; aborting.
57 exit(1)
58 endif
59 #
60 echo =====
61 echo ===== prompt the protClient Script
62 echo ===== server restricted to SSL3, TLS1 via SSLSetProtocolVersionEnabled
63 echo ===== Expect 2 errors from sslServe loops
64 echo =====
65 set cmd="sslServer P=1204 k=$SSL_KEYCHAIN $KEYCHAIN_PWD l=11 g=3t"
66 echo $cmd
67 $cmd
68 if($status != 2) then
69 echo @@@@@@ ERROR from sslServer; aborting.
70 exit(1)
71 endif
72 #
73 echo =====
74 echo ===== prompt the protClient Script
75 echo ===== server restricted to SSL2,3 via SSLSetProtocolVersionEnabled
76 echo ===== Expect 3 errors from sslServe loops
77 echo =====
78 set cmd="sslServer P=1205 k=$SSL_KEYCHAIN $KEYCHAIN_PWD l=10 g=23"
79 echo $cmd
80 $cmd
81 if($status != 3) then
82 echo @@@@@@ ERROR from sslServer; aborting.
83 exit(1)
84 endif
85 #
86
87 echo =====
88 echo ===== protServe success
89 echo =====