提交 26397d2e 编写于 作者: R Richard Levitte

Synchronise VMS build system with the Unixly one

上级 85b2c0ce
...@@ -83,7 +83,7 @@ $ ENCRYPT_TYPES = "Basic,"+ - ...@@ -83,7 +83,7 @@ $ ENCRYPT_TYPES = "Basic,"+ -
"BUFFER,BIO,STACK,LHASH,RAND,ERR,"+ - "BUFFER,BIO,STACK,LHASH,RAND,ERR,"+ -
"EVP,EVP_2,EVP_3,ASN1,ASN1_2,PEM,X509,X509V3,"+ - "EVP,EVP_2,EVP_3,ASN1,ASN1_2,PEM,X509,X509V3,"+ -
"CONF,TXT_DB,PKCS7,PKCS12,COMP,OCSP,UI,KRB5,"+ - "CONF,TXT_DB,PKCS7,PKCS12,COMP,OCSP,UI,KRB5,"+ -
"STORE,CMS,PQUEUE,TS" "STORE,CMS,PQUEUE,TS,JPAKE"
$! $!
$! Check To Make Sure We Have Valid Command Line Parameters. $! Check To Make Sure We Have Valid Command Line Parameters.
$! $!
...@@ -288,6 +288,7 @@ $ LIB_PQUEUE = "pqueue" ...@@ -288,6 +288,7 @@ $ LIB_PQUEUE = "pqueue"
$ LIB_TS = "ts_err,ts_req_utils,ts_req_print,ts_rsp_utils,ts_rsp_print,"+ - $ LIB_TS = "ts_err,ts_req_utils,ts_req_print,ts_rsp_utils,ts_rsp_print,"+ -
"ts_rsp_sign,ts_rsp_verify,ts_verify_ctx,ts_lib,ts_conf,"+ - "ts_rsp_sign,ts_rsp_verify,ts_verify_ctx,ts_lib,ts_conf,"+ -
"ts_asn1" "ts_asn1"
$ LIB_JPAKE = "jpake,jpake_err"
$! $!
$! Setup exceptional compilations $! Setup exceptional compilations
$! $!
......
...@@ -35,12 +35,12 @@ $ ...@@ -35,12 +35,12 @@ $
$ SDIRS := ,- $ SDIRS := ,-
OBJECTS,- OBJECTS,-
MD2,MD4,MD5,SHA,MDC2,HMAC,RIPEMD,WHRLPOOL,- MD2,MD4,MD5,SHA,MDC2,HMAC,RIPEMD,WHRLPOOL,-
DES,RC2,RC4,RC5,IDEA,BF,CAST,CAMELLIA,SEED,- DES,AES,RC2,RC4,RC5,IDEA,BF,CAST,CAMELLIA,SEED,-
BN,EC,RSA,DSA,ECDSA,DH,ECDH,DSO,ENGINE,AES,- BN,EC,RSA,DSA,ECDSA,DH,ECDH,DSO,ENGINE,-
BUFFER,BIO,STACK,LHASH,RAND,ERR,- BUFFER,BIO,STACK,LHASH,RAND,ERR,-
EVP,ASN1,PEM,X509,X509V3,CONF,TXT_DB,PKCS7,PKCS12,COMP,OCSP,- EVP,ASN1,PEM,X509,X509V3,CONF,TXT_DB,PKCS7,PKCS12,COMP,OCSP,-
UI,KRB5,- UI,KRB5,-
STORE,CMS,PQUEUE,TS STORE,CMS,PQUEUE,TS,JPAKE
$ EXHEADER_ := crypto.h,tmdiff.h,opensslv.h,opensslconf.h,ebcdic.h,- $ EXHEADER_ := crypto.h,tmdiff.h,opensslv.h,opensslconf.h,ebcdic.h,-
symhacks.h,ossl_typ.h symhacks.h,ossl_typ.h
$ EXHEADER_OBJECTS := objects.h,obj_mac.h $ EXHEADER_OBJECTS := objects.h,obj_mac.h
...@@ -53,6 +53,7 @@ $ EXHEADER_HMAC := hmac.h ...@@ -53,6 +53,7 @@ $ EXHEADER_HMAC := hmac.h
$ EXHEADER_RIPEMD := ripemd.h $ EXHEADER_RIPEMD := ripemd.h
$ EXHEADER_WHRLPOOL := whrlpool.h $ EXHEADER_WHRLPOOL := whrlpool.h
$ EXHEADER_DES := des.h,des_old.h $ EXHEADER_DES := des.h,des_old.h
$ EXHEADER_AES := aes.h
$ EXHEADER_RC2 := rc2.h $ EXHEADER_RC2 := rc2.h
$ EXHEADER_RC4 := rc4.h $ EXHEADER_RC4 := rc4.h
$ EXHEADER_RC5 := rc5.h $ EXHEADER_RC5 := rc5.h
...@@ -70,7 +71,6 @@ $ EXHEADER_DH := dh.h ...@@ -70,7 +71,6 @@ $ EXHEADER_DH := dh.h
$ EXHEADER_ECDH := ecdh.h $ EXHEADER_ECDH := ecdh.h
$ EXHEADER_DSO := dso.h $ EXHEADER_DSO := dso.h
$ EXHEADER_ENGINE := engine.h $ EXHEADER_ENGINE := engine.h
$ EXHEADER_AES := aes.h
$ EXHEADER_BUFFER := buffer.h $ EXHEADER_BUFFER := buffer.h
$ EXHEADER_BIO := bio.h $ EXHEADER_BIO := bio.h
$ EXHEADER_STACK := stack.h,safestack.h $ EXHEADER_STACK := stack.h,safestack.h
...@@ -95,6 +95,7 @@ $ EXHEADER_STORE := store.h ...@@ -95,6 +95,7 @@ $ EXHEADER_STORE := store.h
$ EXHEADER_CMS := cms.h $ EXHEADER_CMS := cms.h
$ EXHEADER_PQUEUE := pqueue.h $ EXHEADER_PQUEUE := pqueue.h
$ EXHEADER_TS := ts.h $ EXHEADER_TS := ts.h
$ EXHEADER_JPAKE := jpake.h
$ LIBS := LIBCRYPTO $ LIBS := LIBCRYPTO
$ $
$ VEXE_DIR := [-.VAX.EXE.CRYPTO] $ VEXE_DIR := [-.VAX.EXE.CRYPTO]
......
...@@ -34,7 +34,7 @@ $! Set the names of the engines we want to build ...@@ -34,7 +34,7 @@ $! Set the names of the engines we want to build
$! $!
$ ENGINES = "," + P6 $ ENGINES = "," + P6
$ IF ENGINES .EQS. "," THEN - $ IF ENGINES .EQS. "," THEN -
ENGINES = ",4758cca,aep,atalla,cswift,chil,nuron,sureware,ubsec,padlock" ENGINES = ",4758cca,aep,atalla,cswift,chil,nuron,sureware,ubsec,padlock,ccgost"
$! $!
$! Set the default TCP/IP library to link against if needed $! Set the default TCP/IP library to link against if needed
$! $!
...@@ -87,6 +87,12 @@ $ ENGINE_chil = "e_chil" ...@@ -87,6 +87,12 @@ $ ENGINE_chil = "e_chil"
$ ENGINE_nuron = "e_nuron" $ ENGINE_nuron = "e_nuron"
$ ENGINE_sureware = "e_sureware" $ ENGINE_sureware = "e_sureware"
$ ENGINE_ubsec = "e_ubsec" $ ENGINE_ubsec = "e_ubsec"
$
$ ENGINE_ccgost_SUBDIR = "ccgost"
$ ENGINE_ccgost = "e_gost_err,gost2001_keyx,gost2001,gost89,gost94_keyx,"+ -
"gost_ameth,gost_asn1,gost_crypt,gost_ctl,gost_eng,"+ -
"gosthash,gost_keywrap,gost_md,gost_params,gost_pmeth,"+ -
"gost_sign"
$! $!
$! Define which programs need to be linked with a TCP/IP library $! Define which programs need to be linked with a TCP/IP library
$! $!
...@@ -149,7 +155,12 @@ $ IF FILE_NAME .EQS. "" THEN GOTO FILE_NEXT ...@@ -149,7 +155,12 @@ $ IF FILE_NAME .EQS. "" THEN GOTO FILE_NEXT
$! $!
$! Set up the source and object reference $! Set up the source and object reference
$! $!
$ SOURCE_FILE = F$PARSE(FILE_NAME,"SYS$DISK:[].C",,,"SYNTAX_ONLY") $ IF F$TYPE('LIB_ENGINE'_SUBDIR) .EQS. ""
$ THEN
$ SOURCE_FILE = F$PARSE(FILE_NAME,"SYS$DISK:[].C",,,"SYNTAX_ONLY")
$ ELSE
$ SOURCE_FILE = F$PARSE(FILE_NAME,"SYS$DISK:[."+'LIB_ENGINE'_SUBDIR+"].C",,,"SYNTAX_ONLY")
$ ENDIF
$ OBJECT_FILE = OBJ_DIR + F$PARSE(FILE_NAME,,,"NAME","SYNTAX_ONLY") + ".OBJ" $ OBJECT_FILE = OBJ_DIR + F$PARSE(FILE_NAME,,,"NAME","SYNTAX_ONLY") + ".OBJ"
$! $!
$! If we get some problem, we just go on trying to build the next module. $! If we get some problem, we just go on trying to build the next module.
......
...@@ -429,11 +429,11 @@ $! ...@@ -429,11 +429,11 @@ $!
$ SDIRS := ,- $ SDIRS := ,-
OBJECTS,- OBJECTS,-
MD2,MD4,MD5,SHA,MDC2,HMAC,RIPEMD,WHRLPOOL,- MD2,MD4,MD5,SHA,MDC2,HMAC,RIPEMD,WHRLPOOL,-
DES,RC2,RC4,RC5,IDEA,BF,CAST,CAMELLIA,SEED,- DES,AES,RC2,RC4,RC5,IDEA,BF,CAST,CAMELLIA,SEED,-
BN,EC,RSA,DSA,ECDSA,DH,ECDH,DSO,ENGINE,AES,- BN,EC,RSA,DSA,ECDSA,DH,ECDH,DSO,ENGINE,-
BUFFER,BIO,STACK,LHASH,RAND,ERR,- BUFFER,BIO,STACK,LHASH,RAND,ERR,-
EVP,ASN1,PEM,X509,X509V3,CONF,TXT_DB,PKCS7,PKCS12,COMP,OCSP,UI,KRB5,- EVP,ASN1,PEM,X509,X509V3,CONF,TXT_DB,PKCS7,PKCS12,COMP,OCSP,UI,KRB5,-
STORE,CMS,PQUEUE,TS STORE,CMS,PQUEUE,TS,JPAKE
$ EXHEADER_ := crypto.h,opensslv.h,opensslconf.h,ebcdic.h,symhacks.h,ossl_typ.h $ EXHEADER_ := crypto.h,opensslv.h,opensslconf.h,ebcdic.h,symhacks.h,ossl_typ.h
$ EXHEADER_OBJECTS := objects.h,obj_mac.h $ EXHEADER_OBJECTS := objects.h,obj_mac.h
$ EXHEADER_MD2 := md2.h $ EXHEADER_MD2 := md2.h
...@@ -445,6 +445,7 @@ $ EXHEADER_HMAC := hmac.h ...@@ -445,6 +445,7 @@ $ EXHEADER_HMAC := hmac.h
$ EXHEADER_RIPEMD := ripemd.h $ EXHEADER_RIPEMD := ripemd.h
$ EXHEADER_WHRLPOOL := whrlpool.h $ EXHEADER_WHRLPOOL := whrlpool.h
$ EXHEADER_DES := des.h,des_old.h $ EXHEADER_DES := des.h,des_old.h
$ EXHEADER_AES := aes.h
$ EXHEADER_RC2 := rc2.h $ EXHEADER_RC2 := rc2.h
$ EXHEADER_RC4 := rc4.h $ EXHEADER_RC4 := rc4.h
$ EXHEADER_RC5 := rc5.h $ EXHEADER_RC5 := rc5.h
...@@ -462,7 +463,6 @@ $ EXHEADER_DH := dh.h ...@@ -462,7 +463,6 @@ $ EXHEADER_DH := dh.h
$ EXHEADER_ECDH := ecdh.h $ EXHEADER_ECDH := ecdh.h
$ EXHEADER_DSO := dso.h $ EXHEADER_DSO := dso.h
$ EXHEADER_ENGINE := engine.h $ EXHEADER_ENGINE := engine.h
$ EXHEADER_AES := aes.h
$ EXHEADER_BUFFER := buffer.h $ EXHEADER_BUFFER := buffer.h
$ EXHEADER_BIO := bio.h $ EXHEADER_BIO := bio.h
$ EXHEADER_STACK := stack.h,safestack.h $ EXHEADER_STACK := stack.h,safestack.h
...@@ -487,6 +487,7 @@ $ EXHEADER_STORE := store.h ...@@ -487,6 +487,7 @@ $ EXHEADER_STORE := store.h
$ EXHEADER_CMS := cms.h $ EXHEADER_CMS := cms.h
$ EXHEADER_PQUEUE := pqueue.h $ EXHEADER_PQUEUE := pqueue.h
$ EXHEADER_TS := ts.h $ EXHEADER_TS := ts.h
$ EXHEADER_JPAKE := jpake.h
$ $
$ I = 0 $ I = 0
$ LOOP_SDIRS: $ LOOP_SDIRS:
......
...@@ -60,6 +60,7 @@ RSATEST= rsa_test ...@@ -60,6 +60,7 @@ RSATEST= rsa_test
ENGINETEST= enginetest ENGINETEST= enginetest
EVPTEST= evp_test EVPTEST= evp_test
IGETEST= igetest IGETEST= igetest
JPAKETEST= jpaketest
TESTS= alltests TESTS= alltests
...@@ -70,7 +71,7 @@ EXE= $(BNTEST)$(EXE_EXT) $(ECTEST)$(EXE_EXT) $(ECDSATEST)$(EXE_EXT) $(ECDHTEST) ...@@ -70,7 +71,7 @@ EXE= $(BNTEST)$(EXE_EXT) $(ECTEST)$(EXE_EXT) $(ECDSATEST)$(EXE_EXT) $(ECDHTEST)
$(MDC2TEST)$(EXE_EXT) $(RMDTEST)$(EXE_EXT) \ $(MDC2TEST)$(EXE_EXT) $(RMDTEST)$(EXE_EXT) \
$(RANDTEST)$(EXE_EXT) $(DHTEST)$(EXE_EXT) $(ENGINETEST)$(EXE_EXT) \ $(RANDTEST)$(EXE_EXT) $(DHTEST)$(EXE_EXT) $(ENGINETEST)$(EXE_EXT) \
$(BFTEST)$(EXE_EXT) $(CASTTEST)$(EXE_EXT) $(SSLTEST)$(EXE_EXT) $(EXPTEST)$(EXE_EXT) $(DSATEST)$(EXE_EXT) $(RSATEST)$(EXE_EXT) \ $(BFTEST)$(EXE_EXT) $(CASTTEST)$(EXE_EXT) $(SSLTEST)$(EXE_EXT) $(EXPTEST)$(EXE_EXT) $(DSATEST)$(EXE_EXT) $(RSATEST)$(EXE_EXT) \
$(EVPTEST)$(EXE_EXT) $(IGETEST)$(EXE_EXT) jpaketest$(EXE_EXT) $(EVPTEST)$(EXE_EXT) $(IGETEST)$(EXE_EXT) $(JPAKETEST)$(EXE_EXT)
# $(METHTEST)$(EXE_EXT) # $(METHTEST)$(EXE_EXT)
...@@ -82,7 +83,7 @@ OBJ= $(BNTEST).o $(ECTEST).o $(ECDSATEST).o $(ECDHTEST).o $(IDEATEST).o \ ...@@ -82,7 +83,7 @@ OBJ= $(BNTEST).o $(ECTEST).o $(ECDSATEST).o $(ECDHTEST).o $(IDEATEST).o \
$(MDC2TEST).o $(RMDTEST).o \ $(MDC2TEST).o $(RMDTEST).o \
$(RANDTEST).o $(DHTEST).o $(ENGINETEST).o $(CASTTEST).o \ $(RANDTEST).o $(DHTEST).o $(ENGINETEST).o $(CASTTEST).o \
$(BFTEST).o $(SSLTEST).o $(DSATEST).o $(EXPTEST).o $(RSATEST).o \ $(BFTEST).o $(SSLTEST).o $(DSATEST).o $(EXPTEST).o $(RSATEST).o \
$(EVPTEST).o $(IGETEST).o jpaketest.o $(EVPTEST).o $(IGETEST).o $(JPAKETEST).o
SRC= $(BNTEST).c $(ECTEST).c $(ECDSATEST).c $(ECDHTEST).c $(IDEATEST).c \ SRC= $(BNTEST).c $(ECTEST).c $(ECDSATEST).c $(ECDHTEST).c $(IDEATEST).c \
$(MD2TEST).c $(MD4TEST).c $(MD5TEST).c \ $(MD2TEST).c $(MD4TEST).c $(MD5TEST).c \
$(HMACTEST).c $(WPTEST).c \ $(HMACTEST).c $(WPTEST).c \
...@@ -90,7 +91,7 @@ SRC= $(BNTEST).c $(ECTEST).c $(ECDSATEST).c $(ECDHTEST).c $(IDEATEST).c \ ...@@ -90,7 +91,7 @@ SRC= $(BNTEST).c $(ECTEST).c $(ECDSATEST).c $(ECDHTEST).c $(IDEATEST).c \
$(DESTEST).c $(SHATEST).c $(SHA1TEST).c $(MDC2TEST).c $(RMDTEST).c \ $(DESTEST).c $(SHATEST).c $(SHA1TEST).c $(MDC2TEST).c $(RMDTEST).c \
$(RANDTEST).c $(DHTEST).c $(ENGINETEST).c $(CASTTEST).c \ $(RANDTEST).c $(DHTEST).c $(ENGINETEST).c $(CASTTEST).c \
$(BFTEST).c $(SSLTEST).c $(DSATEST).c $(EXPTEST).c $(RSATEST).c \ $(BFTEST).c $(SSLTEST).c $(DSATEST).c $(EXPTEST).c $(RSATEST).c \
$(EVPTEST).c $(IGETEST).c jpaketest.c $(EVPTEST).c $(IGETEST).c $(JPAKETEST).c
EXHEADER= EXHEADER=
HEADER= $(EXHEADER) HEADER= $(EXHEADER)
...@@ -299,9 +300,9 @@ test_ige: $(IGETEST)$(EXE_EXT) ...@@ -299,9 +300,9 @@ test_ige: $(IGETEST)$(EXE_EXT)
@echo "Test IGE mode" @echo "Test IGE mode"
../util/shlib_wrap.sh ./$(IGETEST) ../util/shlib_wrap.sh ./$(IGETEST)
test_jpake: jpaketest$(EXE_EXT) test_jpake: $(JPAKETEST)$(EXE_EXT)
@echo "Test JPAKE" @echo "Test JPAKE"
../util/shlib_wrap.sh ./jpaketest ../util/shlib_wrap.sh ./$(JPAKETEST)
lint: lint:
lint -DLINT $(INCLUDES) $(SRC)>fluff lint -DLINT $(INCLUDES) $(SRC)>fluff
...@@ -433,8 +434,8 @@ $(ECDHTEST)$(EXE_EXT): $(ECDHTEST).o $(DLIBCRYPTO) ...@@ -433,8 +434,8 @@ $(ECDHTEST)$(EXE_EXT): $(ECDHTEST).o $(DLIBCRYPTO)
$(IGETEST)$(EXE_EXT): $(IGETEST).o $(DLIBCRYPTO) $(IGETEST)$(EXE_EXT): $(IGETEST).o $(DLIBCRYPTO)
@target=$(IGETEST); $(BUILD_CMD) @target=$(IGETEST); $(BUILD_CMD)
jpaketest$(EXE_EXT): jpaketest.o $(DLIBCRYPTO) $(JPAKETEST)$(EXE_EXT): $(JPAKETEST).o $(DLIBCRYPTO)
@target=jpaketest; $(BUILD_CMD) @target=$(JPAKETEST); $(BUILD_CMD)
#$(AESTEST).o: $(AESTEST).c #$(AESTEST).o: $(AESTEST).c
# $(CC) -c $(CFLAGS) -DINTERMEDIATE_VALUE_KAT -DTRACE_KAT_MCT $(AESTEST).c # $(CC) -c $(CFLAGS) -DINTERMEDIATE_VALUE_KAT -DTRACE_KAT_MCT $(AESTEST).c
......
...@@ -25,7 +25,8 @@ $ tests := - ...@@ -25,7 +25,8 @@ $ tests := -
test_rand,test_bn,test_ec,test_ecdsa,test_ecdh,- test_rand,test_bn,test_ec,test_ecdsa,test_ecdh,-
test_enc,test_x509,test_rsa,test_crl,test_sid,- test_enc,test_x509,test_rsa,test_crl,test_sid,-
test_gen,test_req,test_pkcs7,test_verify,test_dh,test_dsa,- test_gen,test_req,test_pkcs7,test_verify,test_dh,test_dsa,-
test_ss,test_ca,test_engine,test_evp,test_ssl,test_tsa test_ss,test_ca,test_engine,test_evp,test_ssl,test_tsa,test_ige,-
test_jpake
$ endif $ endif
$ tests = f$edit(tests,"COLLAPSE") $ tests = f$edit(tests,"COLLAPSE")
$ $
...@@ -58,6 +59,8 @@ $ SSLTEST := ssltest ...@@ -58,6 +59,8 @@ $ SSLTEST := ssltest
$ RSATEST := rsa_test $ RSATEST := rsa_test
$ ENGINETEST := enginetest $ ENGINETEST := enginetest
$ EVPTEST := evp_test $ EVPTEST := evp_test
$ IGETEST := igetest
$ JPAKETEST := jpaketest
$ $
$ tests_i = 0 $ tests_i = 0
$ loop_tests: $ loop_tests:
...@@ -267,6 +270,14 @@ $ else ...@@ -267,6 +270,14 @@ $ else
$ @testtsa.com $ @testtsa.com
$ endif $ endif
$ return $ return
$ test_ige:
$ write sys$output "Test IGE mode"
$ mcr 'texe_dir''igetest'
$ return
$ test_jpake:
$ write sys$output "Test JPAKE"
$ mcr 'texe_dir''jpaketest'
$ return
$ $
$ $
$ exit: $ exit:
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册