diff options
author | Richard Levitte <levitte@openssl.org> | 2016-07-02 10:28:39 +0200 |
---|---|---|
committer | Richard Levitte <levitte@openssl.org> | 2016-07-02 15:50:44 +0200 |
commit | 3426de2262caee3283b88c40308b99009182fcd1 (patch) | |
tree | 91085e97be5c0fb6032d7161abd62360065a3fdb /VMS | |
parent | Fix some VMS inconsistencies (diff) | |
download | openssl-3426de2262caee3283b88c40308b99009182fcd1.tar.xz openssl-3426de2262caee3283b88c40308b99009182fcd1.zip |
VMS: Add installation verification procedure
On VMS, it's customary to have a procedure to check that the software
was installed correctly and can run as advertised.
The procedure added here is fairly simple, it checks that all
libraries are in place, that the header crypto.h is in place, and that
the command 'openssl version -a' runs without trouble.
Reviewed-by: Rich Salz <rsalz@openssl.org>
Diffstat (limited to 'VMS')
-rw-r--r-- | VMS/openssl_ivp.com.in | 40 |
1 files changed, 40 insertions, 0 deletions
diff --git a/VMS/openssl_ivp.com.in b/VMS/openssl_ivp.com.in new file mode 100644 index 0000000000..950542bb67 --- /dev/null +++ b/VMS/openssl_ivp.com.in @@ -0,0 +1,40 @@ +$ ! OpenSSL Internal Verification Procedure +$ ! +$ ! This script checks the consistency of a OpenSSL installation +$ ! It had better be spawned, as it creates process logicals +$ +$ ! Generated information +$ INSTALLTOP := {- $config{INSTALLTOP} -} +$ OPENSSLDIR := {- $config{OPENSSLDIR} -} +$ +$ ! Make sure that INSTALLTOP and OPENSSLDIR become something one +$ ! can use to call the startup procedure +$ INSTALLTOP_ = F$PARSE("A.;",INSTALLTOP,,,"NO_CONCEAL") - + - ".][000000" - "[000000." - "][" - "]A.;" + "." +$ OPENSSLDIR_ = F$PARSE("A.;",OPENSSLDIR,,,"NO_CONCEAL") - + - ".][000000" - "[000000." - "][" - "]A.;" + "." +$ +$ @'INSTALLTOP_'SYS$STARTUP]openssl_startup +$ @'INSTALLTOP_'SYS$STARTUP]openssl_utils +$ +$ v := {- sprintf "%02d%02d", split(/\./, $config{version}) -} +$ pz := {- $config{pointer_size} -} +$ +$ IF F$SEARCH("OSSL$LIBCRYPTO''pz'") .EQS. "" - + .OR. F$SEARCH("OSSL$LIBSSL''pz'") .EQS. "" - + .OR. F$SEARCH("OSSL$LIBCRYPTO_SHR''pz'") .EQS. "" - + .OR. F$SEARCH("OSSL$LIBSSL_SHR''pz'") .EQS. "" - + .OR. F$SEARCH("OSSL$INCLUDE:[OPENSSL]crypto.h") .EQS. "" - + .OR. F$SEARCH("OPENSSL:crypto.h") .EQS. "" - + .OR. F$SEARCH("OSSL$EXE:OPENSSL''v'.EXE") .EQS. "" +$ THEN +$ WRITE SYS$ERROR "Installation inconsistent" +$ EXIT %x00018292 ! RMS$_FNF, file not found +$ ENDIF +$ +$ ! If something else is wrong with the installation, we're likely +$ ! to get an image activation error here +$ openssl version -a +$ +$ WRITE SYS$ERROR "OpenSSL IVP passed" +$ EXIT %x10000001 |