diff options
| author | kinichiro <kinichiro.inoguchi@gmail.com> | 2022-01-12 20:04:53 +0900 |
|---|---|---|
| committer | kinichiro <kinichiro.inoguchi@gmail.com> | 2022-01-12 20:04:53 +0900 |
| commit | 71f437de629735e3f54eb0660e419ccc11f7cb7b (patch) | |
| tree | b13b0b57836c6d2fc02df36c045c53e01079eea8 | |
| parent | 7f5ad60d69c5ade1d3b86c91858b16a78a23c751 (diff) | |
| download | portable-71f437de629735e3f54eb0660e419ccc11f7cb7b.tar.gz portable-71f437de629735e3f54eb0660e419ccc11f7cb7b.tar.bz2 portable-71f437de629735e3f54eb0660e419ccc11f7cb7b.zip | |
Follow upstream file changes and fix build
- Add asn1_lib.c
- Consolidation of ASN.1 code
Add asn1_item.c asn1_old.c
Remove a_d2i_fp.c a_digest.c a_dup.c a_i2d_fp.c a_sign.c a_verify.c
- Merge evp_asn1.c into a_type.c
- Merge asn_pack.c into asn1_item.c
- Rename tls13_key_share.c to tls_key_share.c
- Add bio/bio_local.h dh/dh_local.h ocsp/ocsp_local.h
- Add comp/comp_local.h
- Add define LIBRESSL_CRYPTO_INTERNAL to regress build
| -rw-r--r-- | crypto/CMakeLists.txt | 15 | ||||
| -rw-r--r-- | crypto/Makefile.am | 20 | ||||
| -rw-r--r-- | ssl/CMakeLists.txt | 2 | ||||
| -rw-r--r-- | ssl/Makefile.am | 2 | ||||
| -rw-r--r-- | tests/CMakeLists.txt | 5 | ||||
| -rw-r--r-- | tests/Makefile.am | 5 |
6 files changed, 29 insertions, 20 deletions
diff --git a/crypto/CMakeLists.txt b/crypto/CMakeLists.txt index 196ae4a..4e68731 100644 --- a/crypto/CMakeLists.txt +++ b/crypto/CMakeLists.txt | |||
| @@ -245,11 +245,7 @@ set( | |||
| 245 | aes/aes_ofb.c | 245 | aes/aes_ofb.c |
| 246 | aes/aes_wrap.c | 246 | aes/aes_wrap.c |
| 247 | asn1/a_bitstr.c | 247 | asn1/a_bitstr.c |
| 248 | asn1/a_d2i_fp.c | ||
| 249 | asn1/a_digest.c | ||
| 250 | asn1/a_dup.c | ||
| 251 | asn1/a_enum.c | 248 | asn1/a_enum.c |
| 252 | asn1/a_i2d_fp.c | ||
| 253 | asn1/a_int.c | 249 | asn1/a_int.c |
| 254 | asn1/a_mbstr.c | 250 | asn1/a_mbstr.c |
| 255 | asn1/a_object.c | 251 | asn1/a_object.c |
| @@ -257,7 +253,6 @@ set( | |||
| 257 | asn1/a_pkey.c | 253 | asn1/a_pkey.c |
| 258 | asn1/a_print.c | 254 | asn1/a_print.c |
| 259 | asn1/a_pubkey.c | 255 | asn1/a_pubkey.c |
| 260 | asn1/a_sign.c | ||
| 261 | asn1/a_strex.c | 256 | asn1/a_strex.c |
| 262 | asn1/a_string.c | 257 | asn1/a_string.c |
| 263 | asn1/a_strnid.c | 258 | asn1/a_strnid.c |
| @@ -265,19 +260,19 @@ set( | |||
| 265 | asn1/a_time_tm.c | 260 | asn1/a_time_tm.c |
| 266 | asn1/a_type.c | 261 | asn1/a_type.c |
| 267 | asn1/a_utf8.c | 262 | asn1/a_utf8.c |
| 268 | asn1/a_verify.c | ||
| 269 | asn1/ameth_lib.c | 263 | asn1/ameth_lib.c |
| 270 | asn1/asn1_err.c | 264 | asn1/asn1_err.c |
| 271 | asn1/asn1_gen.c | 265 | asn1/asn1_gen.c |
| 266 | asn1/asn1_item.c | ||
| 267 | asn1/asn1_lib.c | ||
| 268 | asn1/asn1_old.c | ||
| 272 | asn1/asn1_old_lib.c | 269 | asn1/asn1_old_lib.c |
| 273 | asn1/asn1_par.c | 270 | asn1/asn1_par.c |
| 274 | asn1/asn1_types.c | 271 | asn1/asn1_types.c |
| 275 | asn1/asn_mime.c | 272 | asn1/asn_mime.c |
| 276 | asn1/asn_moid.c | 273 | asn1/asn_moid.c |
| 277 | asn1/asn_pack.c | ||
| 278 | asn1/bio_asn1.c | 274 | asn1/bio_asn1.c |
| 279 | asn1/bio_ndef.c | 275 | asn1/bio_ndef.c |
| 280 | asn1/evp_asn1.c | ||
| 281 | asn1/n_pkey.c | 276 | asn1/n_pkey.c |
| 282 | asn1/nsseq.c | 277 | asn1/nsseq.c |
| 283 | asn1/p5_pbe.c | 278 | asn1/p5_pbe.c |
| @@ -993,8 +988,10 @@ target_include_directories(crypto_obj | |||
| 993 | PRIVATE | 988 | PRIVATE |
| 994 | . | 989 | . |
| 995 | asn1 | 990 | asn1 |
| 991 | bio | ||
| 996 | bn | 992 | bn |
| 997 | bytestring | 993 | bytestring |
| 994 | dh | ||
| 998 | dsa | 995 | dsa |
| 999 | ec | 996 | ec |
| 1000 | ecdh | 997 | ecdh |
| @@ -1002,6 +999,8 @@ target_include_directories(crypto_obj | |||
| 1002 | evp | 999 | evp |
| 1003 | hmac | 1000 | hmac |
| 1004 | modes | 1001 | modes |
| 1002 | ocsp | ||
| 1003 | rsa | ||
| 1005 | x509 | 1004 | x509 |
| 1006 | ../include/compat | 1005 | ../include/compat |
| 1007 | PUBLIC | 1006 | PUBLIC |
diff --git a/crypto/Makefile.am b/crypto/Makefile.am index 42d0dd9..ced4ed8 100644 --- a/crypto/Makefile.am +++ b/crypto/Makefile.am | |||
| @@ -3,14 +3,19 @@ include $(top_srcdir)/Makefile.am.common | |||
| 3 | AM_CPPFLAGS += -DLIBRESSL_CRYPTO_INTERNAL | 3 | AM_CPPFLAGS += -DLIBRESSL_CRYPTO_INTERNAL |
| 4 | 4 | ||
| 5 | AM_CPPFLAGS += -I$(top_srcdir)/crypto/asn1 | 5 | AM_CPPFLAGS += -I$(top_srcdir)/crypto/asn1 |
| 6 | AM_CPPFLAGS += -I$(top_srcdir)/crypto/bio | ||
| 6 | AM_CPPFLAGS += -I$(top_srcdir)/crypto/bn | 7 | AM_CPPFLAGS += -I$(top_srcdir)/crypto/bn |
| 7 | AM_CPPFLAGS += -I$(top_srcdir)/crypto/bytestring | 8 | AM_CPPFLAGS += -I$(top_srcdir)/crypto/bytestring |
| 9 | AM_CPPFLAGS += -I$(top_srcdir)/crypto/dh | ||
| 10 | AM_CPPFLAGS += -I$(top_srcdir)/crypto/dsa | ||
| 8 | AM_CPPFLAGS += -I$(top_srcdir)/crypto/ec | 11 | AM_CPPFLAGS += -I$(top_srcdir)/crypto/ec |
| 9 | AM_CPPFLAGS += -I$(top_srcdir)/crypto/ecdh | 12 | AM_CPPFLAGS += -I$(top_srcdir)/crypto/ecdh |
| 10 | AM_CPPFLAGS += -I$(top_srcdir)/crypto/ecdsa | 13 | AM_CPPFLAGS += -I$(top_srcdir)/crypto/ecdsa |
| 11 | AM_CPPFLAGS += -I$(top_srcdir)/crypto/evp | 14 | AM_CPPFLAGS += -I$(top_srcdir)/crypto/evp |
| 12 | AM_CPPFLAGS += -I$(top_srcdir)/crypto/hmac | 15 | AM_CPPFLAGS += -I$(top_srcdir)/crypto/hmac |
| 13 | AM_CPPFLAGS += -I$(top_srcdir)/crypto/modes | 16 | AM_CPPFLAGS += -I$(top_srcdir)/crypto/modes |
| 17 | AM_CPPFLAGS += -I$(top_srcdir)/crypto/ocsp | ||
| 18 | AM_CPPFLAGS += -I$(top_srcdir)/crypto/rsa | ||
| 14 | AM_CPPFLAGS += -I$(top_srcdir)/crypto/x509 | 19 | AM_CPPFLAGS += -I$(top_srcdir)/crypto/x509 |
| 15 | AM_CPPFLAGS += -I$(top_srcdir)/crypto | 20 | AM_CPPFLAGS += -I$(top_srcdir)/crypto |
| 16 | 21 | ||
| @@ -299,11 +304,7 @@ noinst_HEADERS += aes/aes_locl.h | |||
| 299 | 304 | ||
| 300 | # asn1 | 305 | # asn1 |
| 301 | libcrypto_la_SOURCES += asn1/a_bitstr.c | 306 | libcrypto_la_SOURCES += asn1/a_bitstr.c |
| 302 | libcrypto_la_SOURCES += asn1/a_d2i_fp.c | ||
| 303 | libcrypto_la_SOURCES += asn1/a_digest.c | ||
| 304 | libcrypto_la_SOURCES += asn1/a_dup.c | ||
| 305 | libcrypto_la_SOURCES += asn1/a_enum.c | 307 | libcrypto_la_SOURCES += asn1/a_enum.c |
| 306 | libcrypto_la_SOURCES += asn1/a_i2d_fp.c | ||
| 307 | libcrypto_la_SOURCES += asn1/a_int.c | 308 | libcrypto_la_SOURCES += asn1/a_int.c |
| 308 | libcrypto_la_SOURCES += asn1/a_mbstr.c | 309 | libcrypto_la_SOURCES += asn1/a_mbstr.c |
| 309 | libcrypto_la_SOURCES += asn1/a_object.c | 310 | libcrypto_la_SOURCES += asn1/a_object.c |
| @@ -311,7 +312,6 @@ libcrypto_la_SOURCES += asn1/a_octet.c | |||
| 311 | libcrypto_la_SOURCES += asn1/a_pkey.c | 312 | libcrypto_la_SOURCES += asn1/a_pkey.c |
| 312 | libcrypto_la_SOURCES += asn1/a_print.c | 313 | libcrypto_la_SOURCES += asn1/a_print.c |
| 313 | libcrypto_la_SOURCES += asn1/a_pubkey.c | 314 | libcrypto_la_SOURCES += asn1/a_pubkey.c |
| 314 | libcrypto_la_SOURCES += asn1/a_sign.c | ||
| 315 | libcrypto_la_SOURCES += asn1/a_strex.c | 315 | libcrypto_la_SOURCES += asn1/a_strex.c |
| 316 | libcrypto_la_SOURCES += asn1/a_string.c | 316 | libcrypto_la_SOURCES += asn1/a_string.c |
| 317 | libcrypto_la_SOURCES += asn1/a_strnid.c | 317 | libcrypto_la_SOURCES += asn1/a_strnid.c |
| @@ -319,19 +319,19 @@ libcrypto_la_SOURCES += asn1/a_time.c | |||
| 319 | libcrypto_la_SOURCES += asn1/a_time_tm.c | 319 | libcrypto_la_SOURCES += asn1/a_time_tm.c |
| 320 | libcrypto_la_SOURCES += asn1/a_type.c | 320 | libcrypto_la_SOURCES += asn1/a_type.c |
| 321 | libcrypto_la_SOURCES += asn1/a_utf8.c | 321 | libcrypto_la_SOURCES += asn1/a_utf8.c |
| 322 | libcrypto_la_SOURCES += asn1/a_verify.c | ||
| 323 | libcrypto_la_SOURCES += asn1/ameth_lib.c | 322 | libcrypto_la_SOURCES += asn1/ameth_lib.c |
| 324 | libcrypto_la_SOURCES += asn1/asn1_err.c | 323 | libcrypto_la_SOURCES += asn1/asn1_err.c |
| 325 | libcrypto_la_SOURCES += asn1/asn1_gen.c | 324 | libcrypto_la_SOURCES += asn1/asn1_gen.c |
| 325 | libcrypto_la_SOURCES += asn1/asn1_item.c | ||
| 326 | libcrypto_la_SOURCES += asn1/asn1_lib.c | ||
| 327 | libcrypto_la_SOURCES += asn1/asn1_old.c | ||
| 326 | libcrypto_la_SOURCES += asn1/asn1_old_lib.c | 328 | libcrypto_la_SOURCES += asn1/asn1_old_lib.c |
| 327 | libcrypto_la_SOURCES += asn1/asn1_par.c | 329 | libcrypto_la_SOURCES += asn1/asn1_par.c |
| 328 | libcrypto_la_SOURCES += asn1/asn1_types.c | 330 | libcrypto_la_SOURCES += asn1/asn1_types.c |
| 329 | libcrypto_la_SOURCES += asn1/asn_mime.c | 331 | libcrypto_la_SOURCES += asn1/asn_mime.c |
| 330 | libcrypto_la_SOURCES += asn1/asn_moid.c | 332 | libcrypto_la_SOURCES += asn1/asn_moid.c |
| 331 | libcrypto_la_SOURCES += asn1/asn_pack.c | ||
| 332 | libcrypto_la_SOURCES += asn1/bio_asn1.c | 333 | libcrypto_la_SOURCES += asn1/bio_asn1.c |
| 333 | libcrypto_la_SOURCES += asn1/bio_ndef.c | 334 | libcrypto_la_SOURCES += asn1/bio_ndef.c |
| 334 | libcrypto_la_SOURCES += asn1/evp_asn1.c | ||
| 335 | libcrypto_la_SOURCES += asn1/n_pkey.c | 335 | libcrypto_la_SOURCES += asn1/n_pkey.c |
| 336 | libcrypto_la_SOURCES += asn1/nsseq.c | 336 | libcrypto_la_SOURCES += asn1/nsseq.c |
| 337 | libcrypto_la_SOURCES += asn1/p5_pbe.c | 337 | libcrypto_la_SOURCES += asn1/p5_pbe.c |
| @@ -408,6 +408,7 @@ endif | |||
| 408 | libcrypto_la_SOURCES += bio/bss_mem.c | 408 | libcrypto_la_SOURCES += bio/bss_mem.c |
| 409 | libcrypto_la_SOURCES += bio/bss_null.c | 409 | libcrypto_la_SOURCES += bio/bss_null.c |
| 410 | libcrypto_la_SOURCES += bio/bss_sock.c | 410 | libcrypto_la_SOURCES += bio/bss_sock.c |
| 411 | noinst_HEADERS += bio/bio_local.h | ||
| 411 | 412 | ||
| 412 | # bn | 413 | # bn |
| 413 | libcrypto_la_SOURCES += bn/bn_add.c | 414 | libcrypto_la_SOURCES += bn/bn_add.c |
| @@ -501,6 +502,7 @@ libcrypto_la_SOURCES += comp/c_rle.c | |||
| 501 | libcrypto_la_SOURCES += comp/c_zlib.c | 502 | libcrypto_la_SOURCES += comp/c_zlib.c |
| 502 | libcrypto_la_SOURCES += comp/comp_err.c | 503 | libcrypto_la_SOURCES += comp/comp_err.c |
| 503 | libcrypto_la_SOURCES += comp/comp_lib.c | 504 | libcrypto_la_SOURCES += comp/comp_lib.c |
| 505 | noinst_HEADERS += comp/comp_local.h | ||
| 504 | 506 | ||
| 505 | # conf | 507 | # conf |
| 506 | libcrypto_la_SOURCES += conf/conf_api.c | 508 | libcrypto_la_SOURCES += conf/conf_api.c |
| @@ -569,6 +571,7 @@ libcrypto_la_SOURCES += dh/dh_key.c | |||
| 569 | libcrypto_la_SOURCES += dh/dh_lib.c | 571 | libcrypto_la_SOURCES += dh/dh_lib.c |
| 570 | libcrypto_la_SOURCES += dh/dh_pmeth.c | 572 | libcrypto_la_SOURCES += dh/dh_pmeth.c |
| 571 | libcrypto_la_SOURCES += dh/dh_prn.c | 573 | libcrypto_la_SOURCES += dh/dh_prn.c |
| 574 | noinst_HEADERS += dh/dh_local.h | ||
| 572 | 575 | ||
| 573 | # dsa | 576 | # dsa |
| 574 | libcrypto_la_SOURCES += dsa/dsa_ameth.c | 577 | libcrypto_la_SOURCES += dsa/dsa_ameth.c |
| @@ -806,6 +809,7 @@ libcrypto_la_SOURCES += ocsp/ocsp_lib.c | |||
| 806 | libcrypto_la_SOURCES += ocsp/ocsp_prn.c | 809 | libcrypto_la_SOURCES += ocsp/ocsp_prn.c |
| 807 | libcrypto_la_SOURCES += ocsp/ocsp_srv.c | 810 | libcrypto_la_SOURCES += ocsp/ocsp_srv.c |
| 808 | libcrypto_la_SOURCES += ocsp/ocsp_vfy.c | 811 | libcrypto_la_SOURCES += ocsp/ocsp_vfy.c |
| 812 | noinst_HEADERS += ocsp/ocsp_local.h | ||
| 809 | 813 | ||
| 810 | # pem | 814 | # pem |
| 811 | libcrypto_la_SOURCES += pem/pem_all.c | 815 | libcrypto_la_SOURCES += pem/pem_all.c |
diff --git a/ssl/CMakeLists.txt b/ssl/CMakeLists.txt index f346274..a20cb04 100644 --- a/ssl/CMakeLists.txt +++ b/ssl/CMakeLists.txt | |||
| @@ -35,6 +35,7 @@ set( | |||
| 35 | t1_lib.c | 35 | t1_lib.c |
| 36 | tls_buffer.c | 36 | tls_buffer.c |
| 37 | tls_content.c | 37 | tls_content.c |
| 38 | tls_key_share.c | ||
| 38 | tls12_key_schedule.c | 39 | tls12_key_schedule.c |
| 39 | tls12_lib.c | 40 | tls12_lib.c |
| 40 | tls12_record_layer.c | 41 | tls12_record_layer.c |
| @@ -43,7 +44,6 @@ set( | |||
| 43 | tls13_handshake.c | 44 | tls13_handshake.c |
| 44 | tls13_handshake_msg.c | 45 | tls13_handshake_msg.c |
| 45 | tls13_key_schedule.c | 46 | tls13_key_schedule.c |
| 46 | tls13_key_share.c | ||
| 47 | tls13_legacy.c | 47 | tls13_legacy.c |
| 48 | tls13_lib.c | 48 | tls13_lib.c |
| 49 | tls13_record.c | 49 | tls13_record.c |
diff --git a/ssl/Makefile.am b/ssl/Makefile.am index 6f44e48..227dfdf 100644 --- a/ssl/Makefile.am +++ b/ssl/Makefile.am | |||
| @@ -72,6 +72,7 @@ libssl_la_SOURCES += t1_enc.c | |||
| 72 | libssl_la_SOURCES += t1_lib.c | 72 | libssl_la_SOURCES += t1_lib.c |
| 73 | libssl_la_SOURCES += tls_buffer.c | 73 | libssl_la_SOURCES += tls_buffer.c |
| 74 | libssl_la_SOURCES += tls_content.c | 74 | libssl_la_SOURCES += tls_content.c |
| 75 | libssl_la_SOURCES += tls_key_share.c | ||
| 75 | libssl_la_SOURCES += tls12_key_schedule.c | 76 | libssl_la_SOURCES += tls12_key_schedule.c |
| 76 | libssl_la_SOURCES += tls12_lib.c | 77 | libssl_la_SOURCES += tls12_lib.c |
| 77 | libssl_la_SOURCES += tls12_record_layer.c | 78 | libssl_la_SOURCES += tls12_record_layer.c |
| @@ -80,7 +81,6 @@ libssl_la_SOURCES += tls13_error.c | |||
| 80 | libssl_la_SOURCES += tls13_handshake.c | 81 | libssl_la_SOURCES += tls13_handshake.c |
| 81 | libssl_la_SOURCES += tls13_handshake_msg.c | 82 | libssl_la_SOURCES += tls13_handshake_msg.c |
| 82 | libssl_la_SOURCES += tls13_key_schedule.c | 83 | libssl_la_SOURCES += tls13_key_schedule.c |
| 83 | libssl_la_SOURCES += tls13_key_share.c | ||
| 84 | libssl_la_SOURCES += tls13_legacy.c | 84 | libssl_la_SOURCES += tls13_legacy.c |
| 85 | libssl_la_SOURCES += tls13_lib.c | 85 | libssl_la_SOURCES += tls13_lib.c |
| 86 | libssl_la_SOURCES += tls13_record.c | 86 | libssl_la_SOURCES += tls13_record.c |
diff --git a/tests/CMakeLists.txt b/tests/CMakeLists.txt index 0ddbc74..d4c36cc 100644 --- a/tests/CMakeLists.txt +++ b/tests/CMakeLists.txt | |||
| @@ -1,7 +1,10 @@ | |||
| 1 | add_definitions(-DLIBRESSL_CRYPTO_INTERNAL) | ||
| 2 | |||
| 1 | include_directories( | 3 | include_directories( |
| 2 | . | 4 | . |
| 3 | ../crypto/modes | ||
| 4 | ../crypto/asn1 | 5 | ../crypto/asn1 |
| 6 | ../crypto/bio | ||
| 7 | ../crypto/modes | ||
| 5 | ../crypto/x509 | 8 | ../crypto/x509 |
| 6 | ../ssl | 9 | ../ssl |
| 7 | ../apps/openssl | 10 | ../apps/openssl |
diff --git a/tests/Makefile.am b/tests/Makefile.am index eb10eec..2737ebb 100644 --- a/tests/Makefile.am +++ b/tests/Makefile.am | |||
| @@ -1,7 +1,10 @@ | |||
| 1 | include $(top_srcdir)/Makefile.am.common | 1 | include $(top_srcdir)/Makefile.am.common |
| 2 | 2 | ||
| 3 | AM_CPPFLAGS += -I $(top_srcdir)/crypto/modes | 3 | AM_CPPFLAGS += -DLIBRESSL_CRYPTO_INTERNAL |
| 4 | |||
| 4 | AM_CPPFLAGS += -I $(top_srcdir)/crypto/asn1 | 5 | AM_CPPFLAGS += -I $(top_srcdir)/crypto/asn1 |
| 6 | AM_CPPFLAGS += -I $(top_srcdir)/crypto/bio | ||
| 7 | AM_CPPFLAGS += -I $(top_srcdir)/crypto/modes | ||
| 5 | AM_CPPFLAGS += -I $(top_srcdir)/crypto/x509 | 8 | AM_CPPFLAGS += -I $(top_srcdir)/crypto/x509 |
| 6 | AM_CPPFLAGS += -I $(top_srcdir)/ssl | 9 | AM_CPPFLAGS += -I $(top_srcdir)/ssl |
| 7 | AM_CPPFLAGS += -I $(top_srcdir)/apps/openssl | 10 | AM_CPPFLAGS += -I $(top_srcdir)/apps/openssl |
