| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
1 parent d7e2376 commit b30a211
9 files changed
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -1661,7 +1661,7 @@ HAS_DOCKER ?= $(shell command -v docker > /dev/null 2>&1; [ $$? -eq 0 ] && echo | |||
| 1661 | 1661 | ||
| 1662 | 1662 | .PHONY: gen-openssl | |
| 1663 | 1663 | ifeq ($(HAS_DOCKER), 1) | |
| 1664 | - DOCKER_COMMAND ?= docker run -it -v $(PWD):/node | ||
| 1664 | + DOCKER_COMMAND ?= docker run --rm -u $(shell id -u) -v $(PWD):/node | ||
| 1665 | 1665 | IS_IN_WORKTREE = $(shell grep '^gitdir: ' $(PWD)/.git 2>/dev/null) | |
| 1666 | 1666 | GIT_WORKTREE_COMMON = $(shell git rev-parse --git-common-dir) | |
| 1667 | 1667 | DOCKER_COMMAND += $(if $(IS_IN_WORKTREE), -v $(GIT_WORKTREE_COMMON):$(GIT_WORKTREE_COMMON)) | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -37,9 +37,11 @@ OPSSL_SRC = ../openssl | |||
| 37 | 37 | # Header files generated with Configure | |
| 38 | 38 | #INT_CFGS = bn_conf.h dso_conf.h | |
| 39 | 39 | INT_CFG_DIR = $(OPSSL_SRC)/include/crypto | |
| 40 | - GEN_HEADERS = asn1 asn1t bio cmp cms configuration conf crmf crypto ct err \ | ||
| 41 | - ess fipskey lhash ocsp opensslv pkcs12 pkcs7 safestack srp ssl \ | ||
| 42 | - ui x509 x509v3 x509_vfy conf | ||
| 40 | + GEN_HEADERS = asn1 asn1t bio comp cmp cms conf configuration core_names crmf \ | ||
| 41 | + crypto ct err ess fipskey lhash ocsp opensslv pkcs12 pkcs7 \ | ||
| 42 | + safestack srp ssl ui x509_acert x509 x509v3 x509_vfy | ||
| 43 | + | ||
| 44 | + INTERNAL_GEN_HEADERS = param_names | ||
| 43 | 45 | ||
| 44 | 46 | CRYPTO_GEN_HEADERS = bn_conf dso_conf | |
| 45 | 47 | ||
@@ -52,24 +54,24 @@ all: $(ASM_ARCHS) $(NO_ASM_ARCHS) generate_headers | |||
| 52 | 54 | # Configure and generate openssl asm files for each archs | |
| 53 | 55 | $(ASM_ARCHS): | |
| 54 | 56 | cd $(OPSSL_SRC); $(NO_WARN_ENV) CC=$(CC) $(PERL) $(CONFIGURE) $(COPTS) $@; | |
| 55 | - $(PERL) -w -I$(OPSSL_SRC) $(GENERATE) asm $@ "${GEN_HEADERS}" "${CRYPTO_GEN_HEADERS}" | ||
| 57 | + $(PERL) -w -I$(OPSSL_SRC) $(GENERATE) asm $@ "${GEN_HEADERS}" "${CRYPTO_GEN_HEADERS}" "${INTERNAL_GEN_HEADERS}" | ||
| 56 | 58 | # Confgure asm_avx2 and generate upto avx2 support | |
| 57 | 59 | cd $(OPSSL_SRC); $(NO_WARN_ENV) CC=$(FAKE_GCC) $(PERL) $(CONFIGURE) \ | |
| 58 | 60 | $(COPTS) $@; | |
| 59 | - $(PERL) -w -I$(OPSSL_SRC) $(GENERATE) asm_avx2 $@ "${GEN_HEADERS}" "${CRYTO_GEN_HEADERS}" | ||
| 61 | + $(PERL) -w -I$(OPSSL_SRC) $(GENERATE) asm_avx2 $@ "${GEN_HEADERS}" "${CRYTO_GEN_HEADERS}" "${INTERNAL_GEN_HEADERS}" | ||
| 60 | 62 | # Configure no-asm and generate no-asm sources | |
| 61 | 63 | cd $(OPSSL_SRC); $(NO_WARN_ENV) $(PERL) $(CONFIGURE) $(COPTS) \ | |
| 62 | 64 | no-asm $@; | |
| 63 | - $(PERL) -w -I$(OPSSL_SRC) $(GENERATE) no-asm $@ "${GEN_HEADERS}" "${CRYPTO_GEN_HEADERS}" | ||
| 65 | + $(PERL) -w -I$(OPSSL_SRC) $(GENERATE) no-asm $@ "${GEN_HEADERS}" "${CRYPTO_GEN_HEADERS}" "${INTERNAL_GEN_HEADERS}" | ||
| 64 | 66 | ||
| 65 | 67 | $(NO_ASM_ARCHS): | |
| 66 | 68 | # Configure no-asm and generate no-asm sources | |
| 67 | 69 | cd $(OPSSL_SRC); $(NO_WARN_ENV) $(PERL) $(CONFIGURE) $(COPTS) \ | |
| 68 | 70 | no-asm $@; | |
| 69 | - $(PERL) -w -I$(OPSSL_SRC) $(GENERATE) no-asm $@ "${GEN_HEADERS}" "${CRYPTO_GEN_HEADERS}" | ||
| 71 | + $(PERL) -w -I$(OPSSL_SRC) $(GENERATE) no-asm $@ "${GEN_HEADERS}" "${CRYPTO_GEN_HEADERS}" "${INTERNAL_GEN_HEADERS}" | ||
| 70 | 72 | ||
| 71 | 73 | generate_headers: | |
| 72 | - @$(PERL) -w -I$(OPSSL_SRC) ./generate_headers.pl "${GEN_HEADERS}" "${CRYPTO_GEN_HEADERS}" | ||
| 74 | + @$(PERL) -w -I$(OPSSL_SRC) ./generate_headers.pl "${GEN_HEADERS}" "${CRYPTO_GEN_HEADERS}" "${INTERNAL_GEN_HEADERS}" | ||
| 73 | 75 | ||
| 74 | 76 | clean: | |
| 75 | 77 | find archs \( -name \*.S -o -name \*.s -o -name \*.asm -o \ | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -16,8 +16,8 @@ MINOR=1.1 | |||
| 16 | 16 | ||
| 17 | 17 | SHLIB_VERSION_NUMBER=1.1 | |
| 18 | 18 | ||
| 19 | - GENERATED_MANDATORY=include/crypto/bn_conf.h include/crypto/dso_conf.h include/openssl/asn1.h include/openssl/asn1t.h include/openssl/bio.h include/openssl/cmp.h include/openssl/cms.h include/openssl/conf.h include/openssl/configuration.h include/openssl/crmf.h include/openssl/crypto.h include/openssl/ct.h include/openssl/err.h include/openssl/ess.h include/openssl/fipskey.h include/openssl/lhash.h include/openssl/ocsp.h include/openssl/opensslv.h include/openssl/pkcs12.h include/openssl/pkcs7.h include/openssl/safestack.h include/openssl/srp.h include/openssl/ssl.h include/openssl/ui.h include/openssl/x509.h include/openssl/x509_vfy.h include/openssl/x509v3.h providers/common/include/prov/der_digests.h providers/common/include/prov/der_dsa.h providers/common/include/prov/der_ec.h providers/common/include/prov/der_ecx.h providers/common/include/prov/der_rsa.h providers/common/include/prov/der_rsa.h providers/common/include/prov/der_sm2.h providers/common/include/prov/der_wrap.h | ||
| 20 | - GENERATED=crypto/buildinf.h apps/progs.h providers/common/der/der_digests_gen.c providers/common/der/der_dsa_gen.c providers/common/der/der_ec_gen.c providers/common/der/der_ecx_gen.c providers/common/der/der_rsa_gen.c providers/common/der/der_sm2_gen.c providers/common/der/der_wrap_gen.c apps/progs.c providers/common/der/der_digests_gen.c providers/common/der/der_dsa_gen.c providers/common/der/der_ec_gen.c providers/common/der/der_ecx_gen.c providers/common/der/der_rsa_gen.c providers/common/der/der_sm2_gen.c providers/common/der/der_wrap_gen.c | ||
| 19 | + GENERATED_MANDATORY=crypto/params_idx.c include/crypto/bn_conf.h include/crypto/dso_conf.h include/internal/param_names.h include/openssl/asn1.h include/openssl/asn1t.h include/openssl/bio.h include/openssl/cmp.h include/openssl/comp.h include/openssl/cms.h include/openssl/conf.h include/openssl/configuration.h include/openssl/core_names.h include/openssl/crmf.h include/openssl/crypto.h include/openssl/ct.h include/openssl/err.h include/openssl/ess.h include/openssl/fipskey.h include/openssl/lhash.h include/openssl/ocsp.h include/openssl/opensslv.h include/openssl/pkcs12.h include/openssl/pkcs7.h include/openssl/safestack.h include/openssl/srp.h include/openssl/ssl.h include/openssl/ui.h include/openssl/x509.h include/openssl/x509_acert.h include/openssl/x509_vfy.h include/openssl/x509v3.h providers/common/include/prov/der_digests.h providers/common/include/prov/der_dsa.h providers/common/include/prov/der_ec.h providers/common/include/prov/der_ecx.h providers/common/include/prov/der_ml_dsa.h providers/common/include/prov/der_rsa.h providers/common/include/prov/der_slh_dsa.h providers/common/include/prov/der_sm2.h providers/common/include/prov/der_wrap.h | ||
| 20 | + GENERATED=crypto/buildinf.h apps/progs.h crypto/params_idx.c providers/common/der/der_digests_gen.c providers/common/der/der_dsa_gen.c providers/common/der/der_ec_gen.c providers/common/der/der_ecx_gen.c providers/common/der/der_rsa_gen.c providers/common/der/der_sm2_gen.c providers/common/der/der_wrap_gen.c apps/progs.c providers/common/der/der_digests_gen.c providers/common/der/der_dsa_gen.c providers/common/der/der_ec_gen.c providers/common/der/der_ecx_gen.c providers/common/der/der_ml_dsa_gen.c providers/common/der/der_rsa_gen.c providers/common/der/der_slh_dsa_gen.c providers/common/der/der_sm2_gen.c providers/common/der/der_wrap_gen.c | ||
| 21 | 21 | ||
| 22 | 22 | INSTALL_LIBS="libcrypto.lib" "libssl.lib" | |
| 23 | 23 | INSTALL_SHLIBS="libcrypto-1_1-arm64.dll" "libssl-1_1-arm64.dll" | |
@@ -138,13 +138,20 @@ apps/progs.h: apps/progs.c | |||
| 138 | 138 | apps/progs.c: | |
| 139 | 139 | "$(PERL)" "apps/progs.pl" "-C" $(APPS_OPENSSL) > $@ | |
| 140 | 140 | ||
| 141 | + crypto/params_idx.c: crypto/params_idx.c.in configdata.pm util/perl/OpenSSL/paramnames.pm | ||
| 142 | + "$(PERL)" "-I." "-Iutil/perl" "-Mconfigdata" "-MOpenSSL::paramnames" "util/dofile.pl" "-omakefile" crypto/params_idx.c.in > $@ | ||
| 143 | + | ||
| 141 | 144 | include/crypto/bn_conf.h: | |
| 142 | 145 | "$(PERL)" "-I$(BLDDIR)" -Mconfigdata "util/dofile.pl" \ | |
| 143 | 146 | "-omakefile" "include/crypto/bn_conf.h.in" > $@ | |
| 144 | 147 | include/crypto/dso_conf.h: | |
| 145 | 148 | "$(PERL)" "-I$(BLDDIR)" -Mconfigdata "util/dofile.pl" \ | |
| 146 | 149 | "-omakefile" "include/crypto/dso_conf.h.in" > $@ | |
| 147 | 150 | ||
| 151 | + include/internal/param_names.h: include/internal/param_names.h.in configdata.pm | ||
| 152 | + "$(PERL)" "-I$(BLDDIR)" -Mconfigdata "util/dofile.pl" \ | ||
| 153 | + "-omakefile" "include/internal/param_names.h.in" > $@ | ||
| 154 | + | ||
| 148 | 155 | include/openssl/asn1.h: include/openssl/asn1.h.in configdata.pm | |
| 149 | 156 | "$(PERL)" "-I$(BLDDIR)" -Mconfigdata "util/dofile.pl" \ | |
| 150 | 157 | "-omakefile" "include/openssl/asn1.h.in" > $@ | |
@@ -157,9 +164,15 @@ include/openssl/bio.h: include/openssl/bio.h.in configdata.pm | |||
| 157 | 164 | include/openssl/cmp.h: include/openssl/cmp.h.in configdata.pm | |
| 158 | 165 | "$(PERL)" "-I$(BLDDIR)" -Mconfigdata "util/dofile.pl" \ | |
| 159 | 166 | "-omakefile" "include/openssl/cmp.h.in" > $@ | |
| 167 | + include/openssl/comp.h: include/openssl/comp.h.in configdata.pm | ||
| 168 | + "$(PERL)" "-I$(BLDDIR)" -Mconfigdata "util/dofile.pl" \ | ||
| 169 | + "-omakefile" "include/openssl/comp.h.in" > $@ | ||
| 160 | 170 | include/openssl/cms.h: include/openssl/cms.h.in configdata.pm | |
| 161 | 171 | "$(PERL)" "-I$(BLDDIR)" -Mconfigdata "util/dofile.pl" \ | |
| 162 | 172 | "-omakefile" "include/openssl/cms.h.in" > $@ | |
| 173 | + include/openssl/comp.h: include/openssl/comp.h.in configdata.pm | ||
| 174 | + "$(PERL)" "-I$(BLDDIR)" -Mconfigdata "util/dofile.pl" \ | ||
| 175 | + "-omakefile" "include/openssl/comp.h.in" > $@ | ||
| 163 | 176 | include/openssl/conf.h: include/openssl/conf.h.in configdata.pm | |
| 164 | 177 | "$(PERL)" "-I$(BLDDIR)" -Mconfigdata "util/dofile.pl" \ | |
| 165 | 178 | "-omakefile" "include/openssl/conf.h.in" > $@ | |
@@ -169,6 +182,9 @@ include/openssl/conf.h: include/openssl/conf.h.in configdata.pm | |||
| 169 | 182 | include/openssl/configuration.h: include/openssl/configuration.h.in configdata.pm | |
| 170 | 183 | "$(PERL)" "-I$(BLDDIR)" -Mconfigdata "util/dofile.pl" \ | |
| 171 | 184 | "-omakefile" "include/openssl/configuration.h.in" > $@ | |
| 185 | + include/openssl/core_names.h: include/openssl/core_names.h.in configdata.pm | ||
| 186 | + "$(PERL)" "-I$(BLDDIR)" -Mconfigdata "util/dofile.pl" \ | ||
| 187 | + "-omakefile" "include/openssl/core_names.h.in" > $@ | ||
| 172 | 188 | include/openssl/crmf.h: include/openssl/crmf.h.in configdata.pm | |
| 173 | 189 | "$(PERL)" "-I$(BLDDIR)" -Mconfigdata "util/dofile.pl" \ | |
| 174 | 190 | "-omakefile" "include/openssl/crmf.h.in" > $@ | |
@@ -220,6 +236,9 @@ include/openssl/ui.h: include/openssl/ui.h.in configdata.pm | |||
| 220 | 236 | include/openssl/x509.h: include/openssl/x509.h.in configdata.pm | |
| 221 | 237 | $(PERL) -I$(BLDDIR) -Mconfigdata util/dofile.pl \ | |
| 222 | 238 | "-omakefile" "include/openssl/x509.h.in" > $@ | |
| 239 | + include/openssl/x509_acert.h: include/openssl/x509_acert.h.in configdata.pm | ||
| 240 | + $(PERL) -I$(BLDDIR) -Mconfigdata util/dofile.pl \ | ||
| 241 | + "-omakefile" "include/openssl/x509_acert.h.in" > $@ | ||
| 223 | 242 | include/openssl/x509_vfy.h: include/openssl/x509_vfy.h.in configdata.pm | |
| 224 | 243 | $(PERL) -I$(BLDDIR) -Mconfigdata util/dofile.pl \ | |
| 225 | 244 | "-omakefile" "include/openssl/x509_vfy.h.in" > $@ | |
@@ -234,21 +253,27 @@ providers/common/include/prov/der_dsa.h: providers/common/include/prov/der_dsa.h | |||
| 234 | 253 | providers/common/include/prov/der_wrap.h: providers/common/include/prov/der_wrap.h.in providers/common/der/oids_to_c.pm configdata.pm providers/common/der/oids_to_c.pm | |
| 235 | 254 | $(PERL) "-I." "-Iproviders/common/der" -Mconfigdata -Moids_to_c "util/dofile.pl" "-oMakefile" providers/common/include/prov/der_wrap.h.in > $@ | |
| 236 | 255 | ||
| 237 | - providers/common/include/prov/der_rsa.h: providers/common/include/prov/der_wrap.h.in providers/common/der/oids_to_c.pm configdata.pm providers/common/der/oids_to_c.pm | ||
| 256 | + providers/common/include/prov/der_rsa.h: providers/common/include/prov/der_rsa.h.in providers/common/der/oids_to_c.pm configdata.pm providers/common/der/oids_to_c.pm | ||
| 238 | 257 | $(PERL) "-I." "-Iproviders/common/der" -Mconfigdata -Moids_to_c "util/dofile.pl" "-oMakefile" providers/common/include/prov/der_rsa.h.in > $@ | |
| 239 | 258 | ||
| 240 | - providers/common/include/prov/der_ecx.h: providers/common/include/prov/der_wrap.h.in providers/common/der/oids_to_c.pm configdata.pm providers/common/der/oids_to_c.pm | ||
| 259 | + providers/common/include/prov/der_ecx.h: providers/common/include/prov/der_ecx.h.in providers/common/der/oids_to_c.pm configdata.pm providers/common/der/oids_to_c.pm | ||
| 241 | 260 | $(PERL) "-I." "-Iproviders/common/der" -Mconfigdata -Moids_to_c "util/dofile.pl" "-oMakefile" providers/common/include/prov/der_ecx.h.in > $@ | |
| 242 | 261 | ||
| 243 | - providers/common/include/prov/der_sm2.h: providers/common/include/prov/der_wrap.h.in providers/common/der/oids_to_c.pm configdata.pm providers/common/der/oids_to_c.pm | ||
| 262 | + providers/common/include/prov/der_sm2.h: providers/common/include/prov/der_sm2.h.in providers/common/der/oids_to_c.pm configdata.pm providers/common/der/oids_to_c.pm | ||
| 244 | 263 | $(PERL) "-I." "-Iproviders/common/der" -Mconfigdata -Moids_to_c "util/dofile.pl" "-oMakefile" providers/common/include/prov/der_sm2.h.in > $@ | |
| 245 | 264 | ||
| 246 | - providers/common/include/prov/der_ec.h: providers/common/include/prov/der_wrap.h.in providers/common/der/oids_to_c.pm configdata.pm providers/common/der/oids_to_c.pm | ||
| 265 | + providers/common/include/prov/der_ec.h: providers/common/include/prov/der_ec.h.in providers/common/der/oids_to_c.pm configdata.pm providers/common/der/oids_to_c.pm | ||
| 247 | 266 | $(PERL) "-I." "-Iproviders/common/der" -Mconfigdata -Moids_to_c "util/dofile.pl" "-oMakefile" providers/common/include/prov/der_ec.h.in > $@ | |
| 248 | 267 | ||
| 249 | - providers/common/include/prov/der_digests.h: providers/common/include/prov/der_wrap.h.in providers/common/der/oids_to_c.pm configdata.pm providers/common/der/oids_to_c.pm | ||
| 268 | + providers/common/include/prov/der_digests.h: providers/common/include/prov/der_digests.h.in providers/common/der/oids_to_c.pm configdata.pm providers/common/der/oids_to_c.pm | ||
| 250 | 269 | $(PERL) "-I." "-Iproviders/common/der" -Mconfigdata -Moids_to_c "util/dofile.pl" "-oMakefile" providers/common/include/prov/der_digests.h.in > $@ | |
| 251 | 270 | ||
| 271 | + providers/common/include/prov/der_ml_dsa.h: providers/common/include/prov/der_ml_dsa.h.in providers/common/der/oids_to_c.pm configdata.pm providers/common/der/oids_to_c.pm | ||
| 272 | + $(PERL) "-I." "-Iproviders/common/der" -Mconfigdata -Moids_to_c "util/dofile.pl" "-oMakefile" providers/common/include/prov/der_ml_dsa.h.in > $@ | ||
| 273 | + | ||
| 274 | + providers/common/include/prov/der_slh_dsa.h: providers/common/include/prov/der_slh_dsa.h.in providers/common/der/oids_to_c.pm configdata.pm providers/common/der/oids_to_c.pm | ||
| 275 | + $(PERL) "-I." "-Iproviders/common/der" -Mconfigdata -Moids_to_c "util/dofile.pl" "-oMakefile" providers/common/include/prov/der_slh_dsa.h.in > $@ | ||
| 276 | + | ||
| 252 | 277 | ||
| 253 | 278 | providers/common/der/der_digests_gen.c: providers/common/der/der_digests_gen.c.in providers/common/der/oids_to_c.pm configdata.pm providers/common/der/oids_to_c.pm | |
| 254 | 279 | $(PERL) "-I." "-Iproviders/common/der" -Mconfigdata -Moids_to_c "util/dofile.pl" "-oMakefile" providers/common/der/der_digests_gen.c.in > $@ | |
@@ -262,9 +287,15 @@ providers/common/der/der_ec_gen.c: providers/common/der/der_ec_gen.c.in provider | |||
| 262 | 287 | providers/common/der/der_ecx_gen.c: providers/common/der/der_ecx_gen.c.in providers/common/der/oids_to_c.pm configdata.pm providers/common/der/oids_to_c.pm | |
| 263 | 288 | $(PERL) "-I." "-Iproviders/common/der" -Mconfigdata -Moids_to_c "util/dofile.pl" "-oMakefile" providers/common/der/der_ecx_gen.c.in > $@ | |
| 264 | 289 | ||
| 290 | + providers/common/der/der_ml_dsa_gen.c: providers/common/der/der_ml_dsa_gen.c.in providers/common/der/oids_to_c.pm configdata.pm providers/common/der/oids_to_c.pm | ||
| 291 | + $(PERL) "-I." "-Iproviders/common/der" -Mconfigdata -Moids_to_c "util/dofile.pl" "-oMakefile" providers/common/der/der_ml_dsa_gen.c.in > $@ | ||
| 292 | + | ||
| 265 | 293 | providers/common/der/der_rsa_gen.c: providers/common/der/der_rsa_gen.c.in providers/common/der/oids_to_c.pm configdata.pm providers/common/der/oids_to_c.pm | |
| 266 | 294 | $(PERL) "-I." "-Iproviders/common/der" -Mconfigdata -Moids_to_c "util/dofile.pl" "-oMakefile" providers/common/der/der_rsa_gen.c.in > $@ | |
| 267 | 295 | ||
| 296 | + providers/common/der/der_slh_dsa_gen.c: providers/common/der/der_slh_dsa_gen.c.in providers/common/der/oids_to_c.pm configdata.pm providers/common/der/oids_to_c.pm | ||
| 297 | + $(PERL) "-I." "-Iproviders/common/der" -Mconfigdata -Moids_to_c "util/dofile.pl" "-oMakefile" providers/common/der/der_slh_dsa_gen.c.in > $@ | ||
| 298 | + | ||
| 268 | 299 | providers/common/der/der_sm2_gen.c: providers/common/der/der_sm2_gen.c.in providers/common/der/oids_to_c.pm configdata.pm providers/common/der/oids_to_c.pm | |
| 269 | 300 | $(PERL) "-I." "-Iproviders/common/der" -Mconfigdata -Moids_to_c "util/dofile.pl" "-oMakefile" providers/common/der/der_sm2_gen.c.in > $@ | |
| 270 | 301 | ||
| Back | FazBrowse Home | New Git URL |
0 commit comments