aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorkinichiro <kinichiro.inoguchi@gmail.com>2022-01-12 20:04:53 +0900
committerkinichiro <kinichiro.inoguchi@gmail.com>2022-01-12 20:04:53 +0900
commit71f437de629735e3f54eb0660e419ccc11f7cb7b (patch)
treeb13b0b57836c6d2fc02df36c045c53e01079eea8
parent7f5ad60d69c5ade1d3b86c91858b16a78a23c751 (diff)
downloadportable-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.txt15
-rw-r--r--crypto/Makefile.am20
-rw-r--r--ssl/CMakeLists.txt2
-rw-r--r--ssl/Makefile.am2
-rw-r--r--tests/CMakeLists.txt5
-rw-r--r--tests/Makefile.am5
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
3AM_CPPFLAGS += -DLIBRESSL_CRYPTO_INTERNAL 3AM_CPPFLAGS += -DLIBRESSL_CRYPTO_INTERNAL
4 4
5AM_CPPFLAGS += -I$(top_srcdir)/crypto/asn1 5AM_CPPFLAGS += -I$(top_srcdir)/crypto/asn1
6AM_CPPFLAGS += -I$(top_srcdir)/crypto/bio
6AM_CPPFLAGS += -I$(top_srcdir)/crypto/bn 7AM_CPPFLAGS += -I$(top_srcdir)/crypto/bn
7AM_CPPFLAGS += -I$(top_srcdir)/crypto/bytestring 8AM_CPPFLAGS += -I$(top_srcdir)/crypto/bytestring
9AM_CPPFLAGS += -I$(top_srcdir)/crypto/dh
10AM_CPPFLAGS += -I$(top_srcdir)/crypto/dsa
8AM_CPPFLAGS += -I$(top_srcdir)/crypto/ec 11AM_CPPFLAGS += -I$(top_srcdir)/crypto/ec
9AM_CPPFLAGS += -I$(top_srcdir)/crypto/ecdh 12AM_CPPFLAGS += -I$(top_srcdir)/crypto/ecdh
10AM_CPPFLAGS += -I$(top_srcdir)/crypto/ecdsa 13AM_CPPFLAGS += -I$(top_srcdir)/crypto/ecdsa
11AM_CPPFLAGS += -I$(top_srcdir)/crypto/evp 14AM_CPPFLAGS += -I$(top_srcdir)/crypto/evp
12AM_CPPFLAGS += -I$(top_srcdir)/crypto/hmac 15AM_CPPFLAGS += -I$(top_srcdir)/crypto/hmac
13AM_CPPFLAGS += -I$(top_srcdir)/crypto/modes 16AM_CPPFLAGS += -I$(top_srcdir)/crypto/modes
17AM_CPPFLAGS += -I$(top_srcdir)/crypto/ocsp
18AM_CPPFLAGS += -I$(top_srcdir)/crypto/rsa
14AM_CPPFLAGS += -I$(top_srcdir)/crypto/x509 19AM_CPPFLAGS += -I$(top_srcdir)/crypto/x509
15AM_CPPFLAGS += -I$(top_srcdir)/crypto 20AM_CPPFLAGS += -I$(top_srcdir)/crypto
16 21
@@ -299,11 +304,7 @@ noinst_HEADERS += aes/aes_locl.h
299 304
300# asn1 305# asn1
301libcrypto_la_SOURCES += asn1/a_bitstr.c 306libcrypto_la_SOURCES += asn1/a_bitstr.c
302libcrypto_la_SOURCES += asn1/a_d2i_fp.c
303libcrypto_la_SOURCES += asn1/a_digest.c
304libcrypto_la_SOURCES += asn1/a_dup.c
305libcrypto_la_SOURCES += asn1/a_enum.c 307libcrypto_la_SOURCES += asn1/a_enum.c
306libcrypto_la_SOURCES += asn1/a_i2d_fp.c
307libcrypto_la_SOURCES += asn1/a_int.c 308libcrypto_la_SOURCES += asn1/a_int.c
308libcrypto_la_SOURCES += asn1/a_mbstr.c 309libcrypto_la_SOURCES += asn1/a_mbstr.c
309libcrypto_la_SOURCES += asn1/a_object.c 310libcrypto_la_SOURCES += asn1/a_object.c
@@ -311,7 +312,6 @@ libcrypto_la_SOURCES += asn1/a_octet.c
311libcrypto_la_SOURCES += asn1/a_pkey.c 312libcrypto_la_SOURCES += asn1/a_pkey.c
312libcrypto_la_SOURCES += asn1/a_print.c 313libcrypto_la_SOURCES += asn1/a_print.c
313libcrypto_la_SOURCES += asn1/a_pubkey.c 314libcrypto_la_SOURCES += asn1/a_pubkey.c
314libcrypto_la_SOURCES += asn1/a_sign.c
315libcrypto_la_SOURCES += asn1/a_strex.c 315libcrypto_la_SOURCES += asn1/a_strex.c
316libcrypto_la_SOURCES += asn1/a_string.c 316libcrypto_la_SOURCES += asn1/a_string.c
317libcrypto_la_SOURCES += asn1/a_strnid.c 317libcrypto_la_SOURCES += asn1/a_strnid.c
@@ -319,19 +319,19 @@ libcrypto_la_SOURCES += asn1/a_time.c
319libcrypto_la_SOURCES += asn1/a_time_tm.c 319libcrypto_la_SOURCES += asn1/a_time_tm.c
320libcrypto_la_SOURCES += asn1/a_type.c 320libcrypto_la_SOURCES += asn1/a_type.c
321libcrypto_la_SOURCES += asn1/a_utf8.c 321libcrypto_la_SOURCES += asn1/a_utf8.c
322libcrypto_la_SOURCES += asn1/a_verify.c
323libcrypto_la_SOURCES += asn1/ameth_lib.c 322libcrypto_la_SOURCES += asn1/ameth_lib.c
324libcrypto_la_SOURCES += asn1/asn1_err.c 323libcrypto_la_SOURCES += asn1/asn1_err.c
325libcrypto_la_SOURCES += asn1/asn1_gen.c 324libcrypto_la_SOURCES += asn1/asn1_gen.c
325libcrypto_la_SOURCES += asn1/asn1_item.c
326libcrypto_la_SOURCES += asn1/asn1_lib.c
327libcrypto_la_SOURCES += asn1/asn1_old.c
326libcrypto_la_SOURCES += asn1/asn1_old_lib.c 328libcrypto_la_SOURCES += asn1/asn1_old_lib.c
327libcrypto_la_SOURCES += asn1/asn1_par.c 329libcrypto_la_SOURCES += asn1/asn1_par.c
328libcrypto_la_SOURCES += asn1/asn1_types.c 330libcrypto_la_SOURCES += asn1/asn1_types.c
329libcrypto_la_SOURCES += asn1/asn_mime.c 331libcrypto_la_SOURCES += asn1/asn_mime.c
330libcrypto_la_SOURCES += asn1/asn_moid.c 332libcrypto_la_SOURCES += asn1/asn_moid.c
331libcrypto_la_SOURCES += asn1/asn_pack.c
332libcrypto_la_SOURCES += asn1/bio_asn1.c 333libcrypto_la_SOURCES += asn1/bio_asn1.c
333libcrypto_la_SOURCES += asn1/bio_ndef.c 334libcrypto_la_SOURCES += asn1/bio_ndef.c
334libcrypto_la_SOURCES += asn1/evp_asn1.c
335libcrypto_la_SOURCES += asn1/n_pkey.c 335libcrypto_la_SOURCES += asn1/n_pkey.c
336libcrypto_la_SOURCES += asn1/nsseq.c 336libcrypto_la_SOURCES += asn1/nsseq.c
337libcrypto_la_SOURCES += asn1/p5_pbe.c 337libcrypto_la_SOURCES += asn1/p5_pbe.c
@@ -408,6 +408,7 @@ endif
408libcrypto_la_SOURCES += bio/bss_mem.c 408libcrypto_la_SOURCES += bio/bss_mem.c
409libcrypto_la_SOURCES += bio/bss_null.c 409libcrypto_la_SOURCES += bio/bss_null.c
410libcrypto_la_SOURCES += bio/bss_sock.c 410libcrypto_la_SOURCES += bio/bss_sock.c
411noinst_HEADERS += bio/bio_local.h
411 412
412# bn 413# bn
413libcrypto_la_SOURCES += bn/bn_add.c 414libcrypto_la_SOURCES += bn/bn_add.c
@@ -501,6 +502,7 @@ libcrypto_la_SOURCES += comp/c_rle.c
501libcrypto_la_SOURCES += comp/c_zlib.c 502libcrypto_la_SOURCES += comp/c_zlib.c
502libcrypto_la_SOURCES += comp/comp_err.c 503libcrypto_la_SOURCES += comp/comp_err.c
503libcrypto_la_SOURCES += comp/comp_lib.c 504libcrypto_la_SOURCES += comp/comp_lib.c
505noinst_HEADERS += comp/comp_local.h
504 506
505# conf 507# conf
506libcrypto_la_SOURCES += conf/conf_api.c 508libcrypto_la_SOURCES += conf/conf_api.c
@@ -569,6 +571,7 @@ libcrypto_la_SOURCES += dh/dh_key.c
569libcrypto_la_SOURCES += dh/dh_lib.c 571libcrypto_la_SOURCES += dh/dh_lib.c
570libcrypto_la_SOURCES += dh/dh_pmeth.c 572libcrypto_la_SOURCES += dh/dh_pmeth.c
571libcrypto_la_SOURCES += dh/dh_prn.c 573libcrypto_la_SOURCES += dh/dh_prn.c
574noinst_HEADERS += dh/dh_local.h
572 575
573# dsa 576# dsa
574libcrypto_la_SOURCES += dsa/dsa_ameth.c 577libcrypto_la_SOURCES += dsa/dsa_ameth.c
@@ -806,6 +809,7 @@ libcrypto_la_SOURCES += ocsp/ocsp_lib.c
806libcrypto_la_SOURCES += ocsp/ocsp_prn.c 809libcrypto_la_SOURCES += ocsp/ocsp_prn.c
807libcrypto_la_SOURCES += ocsp/ocsp_srv.c 810libcrypto_la_SOURCES += ocsp/ocsp_srv.c
808libcrypto_la_SOURCES += ocsp/ocsp_vfy.c 811libcrypto_la_SOURCES += ocsp/ocsp_vfy.c
812noinst_HEADERS += ocsp/ocsp_local.h
809 813
810# pem 814# pem
811libcrypto_la_SOURCES += pem/pem_all.c 815libcrypto_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
72libssl_la_SOURCES += t1_lib.c 72libssl_la_SOURCES += t1_lib.c
73libssl_la_SOURCES += tls_buffer.c 73libssl_la_SOURCES += tls_buffer.c
74libssl_la_SOURCES += tls_content.c 74libssl_la_SOURCES += tls_content.c
75libssl_la_SOURCES += tls_key_share.c
75libssl_la_SOURCES += tls12_key_schedule.c 76libssl_la_SOURCES += tls12_key_schedule.c
76libssl_la_SOURCES += tls12_lib.c 77libssl_la_SOURCES += tls12_lib.c
77libssl_la_SOURCES += tls12_record_layer.c 78libssl_la_SOURCES += tls12_record_layer.c
@@ -80,7 +81,6 @@ libssl_la_SOURCES += tls13_error.c
80libssl_la_SOURCES += tls13_handshake.c 81libssl_la_SOURCES += tls13_handshake.c
81libssl_la_SOURCES += tls13_handshake_msg.c 82libssl_la_SOURCES += tls13_handshake_msg.c
82libssl_la_SOURCES += tls13_key_schedule.c 83libssl_la_SOURCES += tls13_key_schedule.c
83libssl_la_SOURCES += tls13_key_share.c
84libssl_la_SOURCES += tls13_legacy.c 84libssl_la_SOURCES += tls13_legacy.c
85libssl_la_SOURCES += tls13_lib.c 85libssl_la_SOURCES += tls13_lib.c
86libssl_la_SOURCES += tls13_record.c 86libssl_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 @@
1add_definitions(-DLIBRESSL_CRYPTO_INTERNAL)
2
1include_directories( 3include_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 @@
1include $(top_srcdir)/Makefile.am.common 1include $(top_srcdir)/Makefile.am.common
2 2
3AM_CPPFLAGS += -I $(top_srcdir)/crypto/modes 3AM_CPPFLAGS += -DLIBRESSL_CRYPTO_INTERNAL
4
4AM_CPPFLAGS += -I $(top_srcdir)/crypto/asn1 5AM_CPPFLAGS += -I $(top_srcdir)/crypto/asn1
6AM_CPPFLAGS += -I $(top_srcdir)/crypto/bio
7AM_CPPFLAGS += -I $(top_srcdir)/crypto/modes
5AM_CPPFLAGS += -I $(top_srcdir)/crypto/x509 8AM_CPPFLAGS += -I $(top_srcdir)/crypto/x509
6AM_CPPFLAGS += -I $(top_srcdir)/ssl 9AM_CPPFLAGS += -I $(top_srcdir)/ssl
7AM_CPPFLAGS += -I $(top_srcdir)/apps/openssl 10AM_CPPFLAGS += -I $(top_srcdir)/apps/openssl