Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(70)

Side by Side Diff: openssl/test/testca.com

Issue 9254031: Upgrade chrome's OpenSSL to same version Android ships with. (Closed) Base URL: http://src.chromium.org/svn/trunk/deps/third_party/openssl/
Patch Set: '' Created 8 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « openssl/test/test_padlock ('k') | openssl/test/testenc.com » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 $! TESTCA.COM 1 $! TESTCA.COM
2 $ 2 $
3 $» __arch := VAX 3 $» __arch = "VAX"
4 $ if f$getsyi("cpu") .ge. 128 then - 4 $ if f$getsyi("cpu") .ge. 128 then -
5 __arch = f$edit( f$getsyi( "ARCH_NAME"), "UPCASE") 5 __arch = f$edit( f$getsyi( "ARCH_NAME"), "UPCASE")
6 $» if __arch .eqs. "" then __arch := UNK 6 $» if __arch .eqs. "" then __arch = "UNK"
7 $!
8 $ if (p1 .eqs. "64") then __arch = __arch+ "_64"
7 $ 9 $
8 $» openssl := mcr 'exe_dir'openssl 10 $» openssl = "mcr ''exe_dir'openssl"
9 $ 11 $
10 $ SSLEAY_CONFIG="-config ""CAss.cnf""" 12 $ SSLEAY_CONFIG="-config ""CAss.cnf"""
11 $ 13 $
12 $ set noon 14 $ set noon
13 $ if f$search("demoCA.dir") .nes. "" 15 $ if f$search("demoCA.dir") .nes. ""
14 $ then 16 $ then
15 $» call deltree [.demoCA]*.* 17 $» @[-.util]deltree [.demoCA]*.*
16 $ set file/prot=(S:RWED,O:RWED,G:RWED,W:RWED) demoCA.dir;* 18 $ set file/prot=(S:RWED,O:RWED,G:RWED,W:RWED) demoCA.dir;*
17 $ delete demoCA.dir;* 19 $ delete demoCA.dir;*
18 $ endif 20 $ endif
19 $ set on 21 $ set on
20 $ open/read sys$ca_input VMSca-response.1 22 $ open/read sys$ca_input VMSca-response.1
21 $ @[-.apps]CA.com -input sys$ca_input -newca 23 $ @[-.apps]CA.com -input sys$ca_input -newca
22 $ close sys$ca_input 24 $ close sys$ca_input
23 $ if $severity .ne. 1 then exit 3 25 $ if $severity .ne. 1 then exit 3
24 $ 26 $
25 $ 27 $
26 $ SSLEAY_CONFIG="-config ""Uss.cnf""" 28 $ SSLEAY_CONFIG="-config ""Uss.cnf"""
27 $ @[-.apps]CA.com -newreq 29 $ @[-.apps]CA.com -newreq
28 $ if $severity .ne. 1 then exit 3 30 $ if $severity .ne. 1 then exit 3
29 $ 31 $
30 $ 32 $
31 $ SSLEAY_CONFIG="-config [-.apps]openssl-vms.cnf" 33 $ SSLEAY_CONFIG="-config [-.apps]openssl-vms.cnf"
32 $ open/read sys$ca_input VMSca-response.2 34 $ open/read sys$ca_input VMSca-response.2
33 $ @[-.apps]CA.com -input sys$ca_input -sign 35 $ @[-.apps]CA.com -input sys$ca_input -sign
34 $ close sys$ca_input 36 $ close sys$ca_input
35 $ if $severity .ne. 1 then exit 3 37 $ if $severity .ne. 1 then exit 3
36 $ 38 $
37 $ 39 $
38 $ @[-.apps]CA.com -verify newcert.pem 40 $ @[-.apps]CA.com -verify newcert.pem
39 $ if $severity .ne. 1 then exit 3 41 $ if $severity .ne. 1 then exit 3
40 $ 42 $
41 $ set noon 43 $ set noon
42 $» call deltree [.demoCA]*.* 44 $» @[-.util]deltree [.demoCA]*.*
43 $ set file/prot=(S:RWED,O:RWED,G:RWED,W:RWED) demoCA.dir;* 45 $ set file/prot=(S:RWED,O:RWED,G:RWED,W:RWED) demoCA.dir;*
44 $ delete demoCA.dir;* 46 $ delete demoCA.dir;*
45 $ if f$search("newcert.pem") .nes. "" then delete newcert.pem;* 47 $ if f$search("newcert.pem") .nes. "" then delete newcert.pem;*
46 $ if f$search("newcert.pem") .nes. "" then delete newreq.pem;* 48 $ if f$search("newcert.pem") .nes. "" then delete newreq.pem;*
47 $ set on 49 $ set on
48 $! #usage: CA -newcert|-newreq|-newca|-sign|-verify 50 $! #usage: CA -newcert|-newreq|-newca|-sign|-verify
49 $ 51 $
50 $ exit 52 $ exit
51 $
52 $ deltree: subroutine ! P1 is a name of a directory
53 $ on control_y then goto dt_STOP
54 $ on warning then goto dt_exit
55 $ _dt_def = f$trnlnm("SYS$DISK")+f$directory()
56 $ if f$parse(p1) .eqs. "" then exit
57 $ set default 'f$parse(p1,,,"DEVICE")''f$parse(p1,,,"DIRECTORY")'
58 $ p1 = f$parse(p1,,,"NAME") + f$parse(p1,,,"TYPE")
59 $ _fp = f$parse(".DIR",p1)
60 $ dt_loop:
61 $ _f = f$search(_fp)
62 $ if _f .eqs. "" then goto dt_loopend
63 $ call deltree [.'f$parse(_f,,,"NAME")']*.*
64 $ goto dt_loop
65 $ dt_loopend:
66 $ _fp = f$parse(p1,".;*")
67 $ if f$search(_fp) .eqs. "" then goto dt_exit
68 $ set noon
69 $ set file/prot=(S:RWED,O:RWED,G:RWED,W:RWED) '_fp'
70 $ set on
71 $ delete/nolog '_fp'
72 $ dt_exit:
73 $ set default '_dt_def'
74 $ exit
75 $ dt_STOP:
76 $ set default '_dt_def'
77 $ stop/id=""
78 $ exit
79 $ endsubroutine
OLDNEW
« no previous file with comments | « openssl/test/test_padlock ('k') | openssl/test/testenc.com » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698