2 $! This procedure compiles the SSL sources into 2 libraries:
3 $! [.CRYPTO]CRYPTO-xxx.OLB ! crypto-graphics subroutines
4 $! [.SSL]SSL-xxx.OLB ! SSL protocol.
6 $! where 'xxx' specifies the machine achitecture: AXP or VAX
8 $! To perform 1 sub-option, specify P1 as one of:
9 $! INCLUDE CRYPTO SSL SSL_TASK
12 $! DECC 4.0 (may work with other versions)
13 $! OpenVMS 6.1 (may work with other versions)
15 $ original_default = f$environment("DEFAULT")
16 $ proc = f$environment("PROCEDURE")
17 $ proc_dir = f$parse("1.1;1",proc) - "1.1;1"
18 $ set default 'proc_dir'
20 $! Copy all include files to [.include]
23 $ if P1 .nes. "" then goto do_'p1'
25 $ write sys$output "Rebuilding [.include] directory..."
26 $ delete [.include]*.h;*
27 $ backup [.*...]*.h; includes.bck/save
28 $ backup includes.bck/save [.include]
29 $ delete includes.bck;
30 $ if p1 .nes. "" then goto cleanup
35 $ write sys$Output "Making CRYPTO library"
36 $ set default [.crypto]
39 $ if p1 .nes. "" then goto cleanup
44 $ write sys$output "Making SSL library"
46 $ libname = "ssl-axp.olb"
47 $ if f$getsyi("CPU") .lt. 128 then libname = "ssl-vax.olb"
48 $ if f$search(libname) .eqs. "" then library/create/log 'libname'
49 $ cc ssl.c/include=[-.include]/prefix=all
50 $ library/replace 'libname' ssl.obj
52 $ if p1 .nes. "" then goto cleanup
55 $ write sys$output "Building SSL_TASK.EXE, the DECnet-based SSL engine"
57 $ libname = "ssl-axp.olb"
58 $ if f$getsyi("CPU") .lt. 128 then libname = "ssl-vax.olb"
59 $ cc ssl_task/include=[-.include]/prefix=all
60 $ cryptolib = "[-.crypto]crypto-" + f$element(1,"-",libname)
61 $ link ssl_task,'libname'/library,'cryptolib'/library
64 $ set default 'original_default'
65 $ write sys$output "Done"