mirror of
https://github.com/openssl/openssl.git
synced 2024-11-25 19:13:48 +08:00
2073d95fb4
different conditions...
30 lines
655 B
Plaintext
30 lines
655 B
Plaintext
$! TVERIFY.COM
|
|
$
|
|
$ __arch := VAX
|
|
$ if f$getsyi("cpu") .ge. 128 then __arch := AXP
|
|
$ exe_dir := sys$disk:[-.'__arch'.exe.apps]
|
|
$
|
|
$ copy/concatenate [-.certs]*.pem certs.tmp
|
|
$
|
|
$ old_f :=
|
|
$ loop_certs:
|
|
$ verify := NO
|
|
$ more := YES
|
|
$ certs :=
|
|
$ loop_certs2:
|
|
$ f = f$search("[-.certs]*.pem")
|
|
$ if f .nes. "" .and. f .nes. old_f
|
|
$ then
|
|
$ certs = certs + " [-.certs]" + f$parse(f,,,"NAME") + ".pem"
|
|
$ verify := YES
|
|
$ if f$length(certs) .lt. 180 then goto loop_certs2
|
|
$ else
|
|
$ more := NO
|
|
$ endif
|
|
$ certs = certs - " "
|
|
$
|
|
$ if verify then mcr 'exe_dir'openssl verify "-CAfile" certs.tmp 'certs'
|
|
$ if more then goto loop_certs
|
|
$
|
|
$ delete certs.tmp;*
|