From 0ca0851a01251b960ba19d958978004168f58593 Mon Sep 17 00:00:00 2001 From: Karen Arutyunov Date: Tue, 26 Feb 2019 17:04:25 +0300 Subject: Add implementation --- libssl/.gitignore | 19 ++ libssl/INSTALL | 7 + libssl/LICENSE | 1 + libssl/README | 21 ++ libssl/README-DEV | 15 ++ libssl/build/.gitignore | 3 + libssl/build/bootstrap.build | 19 ++ libssl/build/export.build | 10 + libssl/build/root.build | 12 + libssl/buildfile | 10 + libssl/libssl/buildfile | 135 ++++++++++ libssl/libssl/e_os.h | 1 + libssl/libssl/internal | 1 + libssl/libssl/libssl.def | 506 ++++++++++++++++++++++++++++++++++++ libssl/libssl/libssl.map | 516 +++++++++++++++++++++++++++++++++++++ libssl/libssl/openssl/dtls1.h | 1 + libssl/libssl/openssl/srtp.h | 1 + libssl/libssl/openssl/ssl.h | 1 + libssl/libssl/openssl/ssl2.h | 1 + libssl/libssl/openssl/ssl3.h | 1 + libssl/libssl/openssl/sslerr.h | 1 + libssl/libssl/ssl | 1 + libssl/manifest | 23 ++ libssl/tests/.gitignore | 8 + libssl/tests/basic/buildfile | 7 + libssl/tests/basic/driver.c | 17 ++ libssl/tests/basic/testscript | 5 + libssl/tests/build/.gitignore | 3 + libssl/tests/build/bootstrap.build | 9 + libssl/tests/build/root.build | 16 ++ libssl/tests/buildfile | 5 + 31 files changed, 1376 insertions(+) create mode 100644 libssl/.gitignore create mode 100644 libssl/INSTALL create mode 120000 libssl/LICENSE create mode 100644 libssl/README create mode 100644 libssl/README-DEV create mode 100644 libssl/build/.gitignore create mode 100644 libssl/build/bootstrap.build create mode 100644 libssl/build/export.build create mode 100644 libssl/build/root.build create mode 100644 libssl/buildfile create mode 100644 libssl/libssl/buildfile create mode 120000 libssl/libssl/e_os.h create mode 120000 libssl/libssl/internal create mode 100644 libssl/libssl/libssl.def create mode 100644 libssl/libssl/libssl.map create mode 120000 libssl/libssl/openssl/dtls1.h create mode 120000 libssl/libssl/openssl/srtp.h create mode 120000 libssl/libssl/openssl/ssl.h create mode 120000 libssl/libssl/openssl/ssl2.h create mode 120000 libssl/libssl/openssl/ssl3.h create mode 120000 libssl/libssl/openssl/sslerr.h create mode 120000 libssl/libssl/ssl create mode 100644 libssl/manifest create mode 100644 libssl/tests/.gitignore create mode 100644 libssl/tests/basic/buildfile create mode 100644 libssl/tests/basic/driver.c create mode 100644 libssl/tests/basic/testscript create mode 100644 libssl/tests/build/.gitignore create mode 100644 libssl/tests/build/bootstrap.build create mode 100644 libssl/tests/build/root.build create mode 100644 libssl/tests/buildfile (limited to 'libssl') diff --git a/libssl/.gitignore b/libssl/.gitignore new file mode 100644 index 0000000..cece09c --- /dev/null +++ b/libssl/.gitignore @@ -0,0 +1,19 @@ +# Compiler/linker output. +# +*.d +*.t +*.i +*.ii +*.o +*.obj +*.so +*.dll +*.a +*.lib +*.exp +*.pdb +*.ilk +*.exe +*.exe.dlls/ +*.exe.manifest +*.pc diff --git a/libssl/INSTALL b/libssl/INSTALL new file mode 100644 index 0000000..0f239eb --- /dev/null +++ b/libssl/INSTALL @@ -0,0 +1,7 @@ +The aim of this package is to make reading the INSTALL file unnecessary. So +next time try running: + +$ bpkg build libssl + +But if you don't want to use the package manager, then you can also build this +package manually using the standard build2 build system. diff --git a/libssl/LICENSE b/libssl/LICENSE new file mode 120000 index 0000000..6246057 --- /dev/null +++ b/libssl/LICENSE @@ -0,0 +1 @@ +../upstream/LICENSE \ No newline at end of file diff --git a/libssl/README b/libssl/README new file mode 100644 index 0000000..13e20bb --- /dev/null +++ b/libssl/README @@ -0,0 +1,21 @@ +OpenSSL is a robust, commercial-grade, and full-featured toolkit for the +Transport Layer Security (TLS) and Secure Sockets Layer (SSL) protocols with +libssl C library providing the client and server-side implementations for +SSLv3 and TLS. For more information see: + +https://www.openssl.org + +This package contains the original libssl library source code overlaid with +the build2-based build system and packaged for the build2 package manager +(bpkg). + +See the INSTALL file for the prerequisites and installation instructions. + +Send questions, bug reports, or any other feedback about the library itself to +the OpenSSL mailing lists. Send build system and packaging-related feedback to +the packaging@build2.org mailing list (see https://lists.build2.org for posting +guidelines, etc). + +The packaging of libssl for build2 is tracked in a Git repository at: + +https://git.build2.org/cgit/packaging/openssl/ diff --git a/libssl/README-DEV b/libssl/README-DEV new file mode 100644 index 0000000..92f97bc --- /dev/null +++ b/libssl/README-DEV @@ -0,0 +1,15 @@ +This document describes how libssl was packaged for build2. In particular, +this understanding will be useful when upgrading to a new upstream version. +See ../README-DEV for general notes on OpenSSL packaging. + +Symlink the required upstream files and directories into libssl/: + +$ mkdir libssl/openssl +$ ln -s ../../../upstream/include/openssl/{dtls1,srtp,ssl2,ssl3,sslerr,ssl}.h \ + libssl/openssl +$ ln -s ../../upstream/{ssl,include/internal,e_os.h} libssl + +Note that we take the libssl headers list from ../libcrypto/README-DEV. + +Copy upstream's auto-generated libssl.map and libssl.def into libssl/. Comment +out the "LIBRARY libssl-1_1-x64" line in libssl.def. diff --git a/libssl/build/.gitignore b/libssl/build/.gitignore new file mode 100644 index 0000000..4a730a3 --- /dev/null +++ b/libssl/build/.gitignore @@ -0,0 +1,3 @@ +config.build +root/ +bootstrap/ diff --git a/libssl/build/bootstrap.build b/libssl/build/bootstrap.build new file mode 100644 index 0000000..4f383bf --- /dev/null +++ b/libssl/build/bootstrap.build @@ -0,0 +1,19 @@ +# file : build/root.build +# copyright : Copyright (c) 2018-2019 Code Synthesis Ltd +# license : OpenSSL and SSLeay Licenses; see accompanying LICENSE file + +project = libssl + +using version +using config +using test +using install +using dist + +# Sync with the libcrypto library ABI version (see libcrypto's bootstrap.build +# for details). +# +if ($version.major == 1 && $version.minor == 1 && $version.patch == 1) + abi_version = '1.1' +else + fail 'increment the ABI version?' diff --git a/libssl/build/export.build b/libssl/build/export.build new file mode 100644 index 0000000..f1e1ae5 --- /dev/null +++ b/libssl/build/export.build @@ -0,0 +1,10 @@ +# file : build/root.build +# copyright : Copyright (c) 2018-2019 Code Synthesis Ltd +# license : OpenSSL and SSLeay Licenses; see accompanying LICENSE file + +$out_root/ +{ + include libssl/ +} + +export $out_root/libssl/$import.target diff --git a/libssl/build/root.build b/libssl/build/root.build new file mode 100644 index 0000000..2a4a530 --- /dev/null +++ b/libssl/build/root.build @@ -0,0 +1,12 @@ +# file : build/root.build +# copyright : Copyright (c) 2018-2019 Code Synthesis Ltd +# license : OpenSSL and SSLeay Licenses; see accompanying LICENSE file + +using c + +h{*}: extension = h +c{*}: extension = c + +# The test target for cross-testing (running tests under Wine, etc). +# +test.target = $c.target diff --git a/libssl/buildfile b/libssl/buildfile new file mode 100644 index 0000000..4c31f89 --- /dev/null +++ b/libssl/buildfile @@ -0,0 +1,10 @@ +# file : buildfile +# copyright : Copyright (c) 2018-2019 Code Synthesis Ltd +# license : OpenSSL and SSLeay Licenses; see accompanying LICENSE file + +./: {*/ -build/} doc{LICENSE INSTALL README} manifest + +# Don't install tests or the INSTALL file. +# +tests/: install = false +doc{INSTALL}@./: install = false diff --git a/libssl/libssl/buildfile b/libssl/libssl/buildfile new file mode 100644 index 0000000..7c7b249 --- /dev/null +++ b/libssl/libssl/buildfile @@ -0,0 +1,135 @@ +# file : libssl/buildfile +# copyright : Copyright (c) 2018-2019 Code Synthesis Ltd +# license : OpenSSL and SSLeay Licenses; see accompanying LICENSE file + +import int_libs = libcrypto%lib{crypto} + +lib{ssl}: {h c}{**} file{libssl.map} $int_libs + +tclass = $c.target.class + +i686 = ($c.target.cpu == 'i686') + +linux = ($tclass == 'linux') +bsd = ($tclass == 'bsd') +macos = ($tclass == 'macos') +windows = ($tclass == 'windows') + +gcc = ($c.class == 'gcc') +msvc = ($c.class == 'msvc') +mingw = ($c.target.system == 'mingw32') + +lib{ssl}: def{libssl}: include = $windows + +# See bootstrap.build for details. +# +if $version.pre_release + lib{ssl}: bin.lib.version = @"-$version.project_id" +else + lib{ssl}: bin.lib.version = @"-$abi_version" + +# Drop -DOPENSSL_PIC, -D{L|B}_ENDIAN, -DOPENSSLDIR and -DENGINESDIR as they +# are not used in the libssl source code nor in the libcrypto public headers. +# +if! $windows +{ + # Note that the upstream package uses -pthread compiler/linker option on + # Linux and FreeBSD. The option is currently unsupported by build2, so we + # use -D_REENTRANT and -lpthread preprocessor/linker options instead. + # + # Also note that on FreeBSD and Mac OS the upstream package passes + # -D_REENTRANT. + # + c.poptions += -D_REENTRANT + + if $linux + c.poptions += -DOPENSSL_USE_NODELETE + + if $bsd + c.poptions += -D_THREAD_SAFE +} +else +{ + c.poptions += -DWIN32_LEAN_AND_MEAN -DUNICODE -D_UNICODE + + # Note that upstream also passes -DOPENSSL_USE_APPLINK if compiled with VC. + # We drop this option (see libcrypto/buildfile) for details. + # + if $msvc + { + c.poptions += -DOPENSSL_SYS_WIN32 -D_CRT_SECURE_NO_DEPRECATE \ + -D_WINSOCK_DEPRECATED_NO_WARNINGS + + c.coptions += /Gs0 /GF /Gy + } + else + c.poptions += -D_MT +} + +if ($i686 && $gcc) + c.coptions += -fomit-frame-pointer + +# Disable compiler warnings. +# +if $msvc +{ + # Disable warnings that pop up with /W3. + # + c.coptions += /wd4090 /wd4133 /wd4244 /wd4267 +} +else +{ + # Disable warnings that pop up with -Wall -Wextra. Upstream doesn't seem to + # care about these and it is not easy to disable specific warnings in a way + # that works across compilers/versions (some -Wno-* options are only + # recognized in newer versions). There are still some warnings left that + # appear for certain platforms/compilers. We pass them through but disable + # treating them as errors. + # + c.coptions += -Wno-all -Wno-extra -Wno-error +} + +c.poptions =+ "-I$src_base" + +if! $windows +{ + if $linux + { + libs{ssl}: c.loptions += -Wl,-znodelete + c.libs += -ldl + } + + if ($linux || $bsd) + { + libs{ssl}: c.loptions += -Wl,-Bsymbolic \ + "-Wl,--version-script=$src_base/libssl.map" + c.libs += -lpthread + } +} +else +{ + # Note that for MinGW GCC the upstream package also passes -static-libgcc. + # We normally don't link GCC run-time statically when packaging other C + # libraries, so let's not do it here either and see how it goes. + # + if $mingw + libs{ssl}: c.loptions += -Wl,--enable-auto-image-base + + c.libs += $regex.apply(ws2_32 gdi32 crypt32, \ + '(.+)', \ + $msvc ? '\1.lib' : '-l\1') + + if $msvc + c.libs += advapi32.lib +} + +lib{ssl}: +{ + cc.export.poptions = "-I$src_base" + cc.export.libs = $int_libs +} + +# Install headers from the upstream openssl/ subdirectory only. +# +h{*}: install = false +openssl/h{*}: install = include/openssl/ diff --git a/libssl/libssl/e_os.h b/libssl/libssl/e_os.h new file mode 120000 index 0000000..223dc93 --- /dev/null +++ b/libssl/libssl/e_os.h @@ -0,0 +1 @@ +../../upstream/e_os.h \ No newline at end of file diff --git a/libssl/libssl/internal b/libssl/libssl/internal new file mode 120000 index 0000000..967b3ae --- /dev/null +++ b/libssl/libssl/internal @@ -0,0 +1 @@ +../../upstream/include/internal \ No newline at end of file diff --git a/libssl/libssl/libssl.def b/libssl/libssl/libssl.def new file mode 100644 index 0000000..b3b0144 --- /dev/null +++ b/libssl/libssl/libssl.def @@ -0,0 +1,506 @@ +; +; Definition file for the DLL version of the libssl-1_1-x64 library from OpenSSL +; + +; LIBRARY libssl-1_1-x64 + +EXPORTS + BIO_f_ssl + BIO_new_buffer_ssl_connect + BIO_new_ssl + BIO_new_ssl_connect + BIO_ssl_copy_session_id + BIO_ssl_shutdown + DTLS_client_method + DTLS_get_data_mtu + DTLS_method + DTLS_server_method + DTLS_set_timer_cb + DTLSv1_2_client_method + DTLSv1_2_method + DTLSv1_2_server_method + DTLSv1_client_method + DTLSv1_listen + DTLSv1_method + DTLSv1_server_method + ERR_load_SSL_strings + OPENSSL_cipher_name + OPENSSL_init_ssl + PEM_read_SSL_SESSION + PEM_read_bio_SSL_SESSION + PEM_write_SSL_SESSION + PEM_write_bio_SSL_SESSION + SRP_Calc_A_param + SSL_CIPHER_description + SSL_CIPHER_find + SSL_CIPHER_get_auth_nid + SSL_CIPHER_get_bits + SSL_CIPHER_get_cipher_nid + SSL_CIPHER_get_digest_nid + SSL_CIPHER_get_handshake_digest + SSL_CIPHER_get_id + SSL_CIPHER_get_kx_nid + SSL_CIPHER_get_name + SSL_CIPHER_get_protocol_id + SSL_CIPHER_get_version + SSL_CIPHER_is_aead + SSL_CIPHER_standard_name + SSL_COMP_add_compression_method + SSL_COMP_get0_name + SSL_COMP_get_compression_methods + SSL_COMP_get_id + SSL_COMP_get_name + SSL_COMP_set0_compression_methods + SSL_CONF_CTX_clear_flags + SSL_CONF_CTX_finish + SSL_CONF_CTX_free + SSL_CONF_CTX_new + SSL_CONF_CTX_set1_prefix + SSL_CONF_CTX_set_flags + SSL_CONF_CTX_set_ssl + SSL_CONF_CTX_set_ssl_ctx + SSL_CONF_cmd + SSL_CONF_cmd_argv + SSL_CONF_cmd_value_type + SSL_CTX_SRP_CTX_free + SSL_CTX_SRP_CTX_init + SSL_CTX_add1_to_CA_list + SSL_CTX_add_client_CA + SSL_CTX_add_client_custom_ext + SSL_CTX_add_custom_ext + SSL_CTX_add_server_custom_ext + SSL_CTX_add_session + SSL_CTX_callback_ctrl + SSL_CTX_check_private_key + SSL_CTX_clear_options + SSL_CTX_config + SSL_CTX_ct_is_enabled + SSL_CTX_ctrl + SSL_CTX_dane_clear_flags + SSL_CTX_dane_enable + SSL_CTX_dane_mtype_set + SSL_CTX_dane_set_flags + SSL_CTX_enable_ct + SSL_CTX_flush_sessions + SSL_CTX_free + SSL_CTX_get0_CA_list + SSL_CTX_get0_certificate + SSL_CTX_get0_ctlog_store + SSL_CTX_get0_param + SSL_CTX_get0_privatekey + SSL_CTX_get0_security_ex_data + SSL_CTX_get_cert_store + SSL_CTX_get_ciphers + SSL_CTX_get_client_CA_list + SSL_CTX_get_client_cert_cb + SSL_CTX_get_default_passwd_cb + SSL_CTX_get_default_passwd_cb_userdata + SSL_CTX_get_ex_data + SSL_CTX_get_info_callback + SSL_CTX_get_keylog_callback + SSL_CTX_get_max_early_data + SSL_CTX_get_num_tickets + SSL_CTX_get_options + SSL_CTX_get_quiet_shutdown + SSL_CTX_get_record_padding_callback_arg + SSL_CTX_get_recv_max_early_data + SSL_CTX_get_security_callback + SSL_CTX_get_security_level + SSL_CTX_get_ssl_method + SSL_CTX_get_timeout + SSL_CTX_get_verify_callback + SSL_CTX_get_verify_depth + SSL_CTX_get_verify_mode + SSL_CTX_has_client_custom_ext + SSL_CTX_load_verify_locations + SSL_CTX_new + SSL_CTX_remove_session + SSL_CTX_sess_get_get_cb + SSL_CTX_sess_get_new_cb + SSL_CTX_sess_get_remove_cb + SSL_CTX_sess_set_get_cb + SSL_CTX_sess_set_new_cb + SSL_CTX_sess_set_remove_cb + SSL_CTX_sessions + SSL_CTX_set0_CA_list + SSL_CTX_set0_ctlog_store + SSL_CTX_set0_security_ex_data + SSL_CTX_set1_cert_store + SSL_CTX_set1_param + SSL_CTX_set_allow_early_data_cb + SSL_CTX_set_alpn_protos + SSL_CTX_set_alpn_select_cb + SSL_CTX_set_block_padding + SSL_CTX_set_cert_cb + SSL_CTX_set_cert_store + SSL_CTX_set_cert_verify_callback + SSL_CTX_set_cipher_list + SSL_CTX_set_ciphersuites + SSL_CTX_set_client_CA_list + SSL_CTX_set_client_cert_cb + SSL_CTX_set_client_cert_engine + SSL_CTX_set_client_hello_cb + SSL_CTX_set_cookie_generate_cb + SSL_CTX_set_cookie_verify_cb + SSL_CTX_set_ct_validation_callback + SSL_CTX_set_ctlog_list_file + SSL_CTX_set_default_ctlog_list_file + SSL_CTX_set_default_passwd_cb + SSL_CTX_set_default_passwd_cb_userdata + SSL_CTX_set_default_read_buffer_len + SSL_CTX_set_default_verify_dir + SSL_CTX_set_default_verify_file + SSL_CTX_set_default_verify_paths + SSL_CTX_set_ex_data + SSL_CTX_set_generate_session_id + SSL_CTX_set_info_callback + SSL_CTX_set_keylog_callback + SSL_CTX_set_max_early_data + SSL_CTX_set_msg_callback + SSL_CTX_set_next_proto_select_cb + SSL_CTX_set_next_protos_advertised_cb + SSL_CTX_set_not_resumable_session_callback + SSL_CTX_set_num_tickets + SSL_CTX_set_options + SSL_CTX_set_post_handshake_auth + SSL_CTX_set_psk_client_callback + SSL_CTX_set_psk_find_session_callback + SSL_CTX_set_psk_server_callback + SSL_CTX_set_psk_use_session_callback + SSL_CTX_set_purpose + SSL_CTX_set_quiet_shutdown + SSL_CTX_set_record_padding_callback + SSL_CTX_set_record_padding_callback_arg + SSL_CTX_set_recv_max_early_data + SSL_CTX_set_security_callback + SSL_CTX_set_security_level + SSL_CTX_set_session_id_context + SSL_CTX_set_session_ticket_cb + SSL_CTX_set_srp_cb_arg + SSL_CTX_set_srp_client_pwd_callback + SSL_CTX_set_srp_password + SSL_CTX_set_srp_strength + SSL_CTX_set_srp_username + SSL_CTX_set_srp_username_callback + SSL_CTX_set_srp_verify_param_callback + SSL_CTX_set_ssl_version + SSL_CTX_set_stateless_cookie_generate_cb + SSL_CTX_set_stateless_cookie_verify_cb + SSL_CTX_set_timeout + SSL_CTX_set_tlsext_max_fragment_length + SSL_CTX_set_tlsext_use_srtp + SSL_CTX_set_tmp_dh_callback + SSL_CTX_set_trust + SSL_CTX_set_verify + SSL_CTX_set_verify_depth + SSL_CTX_up_ref + SSL_CTX_use_PrivateKey + SSL_CTX_use_PrivateKey_ASN1 + SSL_CTX_use_PrivateKey_file + SSL_CTX_use_RSAPrivateKey + SSL_CTX_use_RSAPrivateKey_ASN1 + SSL_CTX_use_RSAPrivateKey_file + SSL_CTX_use_cert_and_key + SSL_CTX_use_certificate + SSL_CTX_use_certificate_ASN1 + SSL_CTX_use_certificate_chain_file + SSL_CTX_use_certificate_file + SSL_CTX_use_psk_identity_hint + SSL_CTX_use_serverinfo + SSL_CTX_use_serverinfo_ex + SSL_CTX_use_serverinfo_file + SSL_SESSION_dup + SSL_SESSION_free + SSL_SESSION_get0_alpn_selected + SSL_SESSION_get0_cipher + SSL_SESSION_get0_hostname + SSL_SESSION_get0_id_context + SSL_SESSION_get0_peer + SSL_SESSION_get0_ticket + SSL_SESSION_get0_ticket_appdata + SSL_SESSION_get_compress_id + SSL_SESSION_get_ex_data + SSL_SESSION_get_id + SSL_SESSION_get_master_key + SSL_SESSION_get_max_early_data + SSL_SESSION_get_max_fragment_length + SSL_SESSION_get_protocol_version + SSL_SESSION_get_ticket_lifetime_hint + SSL_SESSION_get_time + SSL_SESSION_get_timeout + SSL_SESSION_has_ticket + SSL_SESSION_is_resumable + SSL_SESSION_new + SSL_SESSION_print + SSL_SESSION_print_fp + SSL_SESSION_print_keylog + SSL_SESSION_set1_alpn_selected + SSL_SESSION_set1_hostname + SSL_SESSION_set1_id + SSL_SESSION_set1_id_context + SSL_SESSION_set1_master_key + SSL_SESSION_set1_ticket_appdata + SSL_SESSION_set_cipher + SSL_SESSION_set_ex_data + SSL_SESSION_set_max_early_data + SSL_SESSION_set_protocol_version + SSL_SESSION_set_time + SSL_SESSION_set_timeout + SSL_SESSION_up_ref + SSL_SRP_CTX_free + SSL_SRP_CTX_init + SSL_accept + SSL_add1_host + SSL_add1_to_CA_list + SSL_add_client_CA + SSL_add_dir_cert_subjects_to_stack + SSL_add_file_cert_subjects_to_stack + SSL_add_ssl_module + SSL_alert_desc_string + SSL_alert_desc_string_long + SSL_alert_type_string + SSL_alert_type_string_long + SSL_alloc_buffers + SSL_bytes_to_cipher_list + SSL_callback_ctrl + SSL_certs_clear + SSL_check_chain + SSL_check_private_key + SSL_clear + SSL_clear_options + SSL_client_hello_get0_ciphers + SSL_client_hello_get0_compression_methods + SSL_client_hello_get0_ext + SSL_client_hello_get0_legacy_version + SSL_client_hello_get0_random + SSL_client_hello_get0_session_id + SSL_client_hello_get1_extensions_present + SSL_client_hello_isv2 + SSL_client_version + SSL_config + SSL_connect + SSL_copy_session_id + SSL_ct_is_enabled + SSL_ctrl + SSL_dane_clear_flags + SSL_dane_enable + SSL_dane_set_flags + SSL_dane_tlsa_add + SSL_do_handshake + SSL_dup + SSL_dup_CA_list + SSL_enable_ct + SSL_export_keying_material + SSL_export_keying_material_early + SSL_extension_supported + SSL_free + SSL_free_buffers + SSL_get0_CA_list + SSL_get0_alpn_selected + SSL_get0_dane + SSL_get0_dane_authority + SSL_get0_dane_tlsa + SSL_get0_next_proto_negotiated + SSL_get0_param + SSL_get0_peer_CA_list + SSL_get0_peer_scts + SSL_get0_peername + SSL_get0_security_ex_data + SSL_get0_verified_chain + SSL_get1_session + SSL_get1_supported_ciphers + SSL_get_SSL_CTX + SSL_get_all_async_fds + SSL_get_certificate + SSL_get_changed_async_fds + SSL_get_cipher_list + SSL_get_ciphers + SSL_get_client_CA_list + SSL_get_client_ciphers + SSL_get_client_random + SSL_get_current_cipher + SSL_get_current_compression + SSL_get_current_expansion + SSL_get_default_passwd_cb + SSL_get_default_passwd_cb_userdata + SSL_get_default_timeout + SSL_get_early_data_status + SSL_get_error + SSL_get_ex_data + SSL_get_ex_data_X509_STORE_CTX_idx + SSL_get_fd + SSL_get_finished + SSL_get_info_callback + SSL_get_key_update_type + SSL_get_max_early_data + SSL_get_num_tickets + SSL_get_options + SSL_get_peer_cert_chain + SSL_get_peer_certificate + SSL_get_peer_finished + SSL_get_peer_signature_type_nid + SSL_get_pending_cipher + SSL_get_privatekey + SSL_get_psk_identity + SSL_get_psk_identity_hint + SSL_get_quiet_shutdown + SSL_get_rbio + SSL_get_read_ahead + SSL_get_record_padding_callback_arg + SSL_get_recv_max_early_data + SSL_get_rfd + SSL_get_security_callback + SSL_get_security_level + SSL_get_selected_srtp_profile + SSL_get_server_random + SSL_get_servername + SSL_get_servername_type + SSL_get_session + SSL_get_shared_ciphers + SSL_get_shared_sigalgs + SSL_get_shutdown + SSL_get_sigalgs + SSL_get_signature_type_nid + SSL_get_srp_N + SSL_get_srp_g + SSL_get_srp_userinfo + SSL_get_srp_username + SSL_get_srtp_profiles + SSL_get_ssl_method + SSL_get_state + SSL_get_verify_callback + SSL_get_verify_depth + SSL_get_verify_mode + SSL_get_verify_result + SSL_get_version + SSL_get_wbio + SSL_get_wfd + SSL_has_matching_session_id + SSL_has_pending + SSL_in_before + SSL_in_init + SSL_is_dtls + SSL_is_init_finished + SSL_is_server + SSL_key_update + SSL_load_client_CA_file + SSL_new + SSL_peek + SSL_peek_ex + SSL_pending + SSL_read + SSL_read_early_data + SSL_read_ex + SSL_renegotiate + SSL_renegotiate_abbreviated + SSL_renegotiate_pending + SSL_rstate_string + SSL_rstate_string_long + SSL_select_next_proto + SSL_session_reused + SSL_set0_CA_list + SSL_set0_rbio + SSL_set0_security_ex_data + SSL_set0_wbio + SSL_set1_host + SSL_set1_param + SSL_set_SSL_CTX + SSL_set_accept_state + SSL_set_allow_early_data_cb + SSL_set_alpn_protos + SSL_set_bio + SSL_set_block_padding + SSL_set_cert_cb + SSL_set_cipher_list + SSL_set_ciphersuites + SSL_set_client_CA_list + SSL_set_connect_state + SSL_set_ct_validation_callback + SSL_set_debug + SSL_set_default_passwd_cb + SSL_set_default_passwd_cb_userdata + SSL_set_default_read_buffer_len + SSL_set_ex_data + SSL_set_fd + SSL_set_generate_session_id + SSL_set_hostflags + SSL_set_info_callback + SSL_set_max_early_data + SSL_set_msg_callback + SSL_set_not_resumable_session_callback + SSL_set_num_tickets + SSL_set_options + SSL_set_post_handshake_auth + SSL_set_psk_client_callback + SSL_set_psk_find_session_callback + SSL_set_psk_server_callback + SSL_set_psk_use_session_callback + SSL_set_purpose + SSL_set_quiet_shutdown + SSL_set_read_ahead + SSL_set_record_padding_callback + SSL_set_record_padding_callback_arg + SSL_set_recv_max_early_data + SSL_set_rfd + SSL_set_security_callback + SSL_set_security_level + SSL_set_session + SSL_set_session_id_context + SSL_set_session_secret_cb + SSL_set_session_ticket_ext + SSL_set_session_ticket_ext_cb + SSL_set_shutdown + SSL_set_srp_server_param + SSL_set_srp_server_param_pw + SSL_set_ssl_method + SSL_set_tlsext_max_fragment_length + SSL_set_tlsext_use_srtp + SSL_set_tmp_dh_callback + SSL_set_trust + SSL_set_verify + SSL_set_verify_depth + SSL_set_verify_result + SSL_set_wfd + SSL_shutdown + SSL_srp_server_param_with_username + SSL_state_string + SSL_state_string_long + SSL_stateless + SSL_up_ref + SSL_use_PrivateKey + SSL_use_PrivateKey_ASN1 + SSL_use_PrivateKey_file + SSL_use_RSAPrivateKey + SSL_use_RSAPrivateKey_ASN1 + SSL_use_RSAPrivateKey_file + SSL_use_cert_and_key + SSL_use_certificate + SSL_use_certificate_ASN1 + SSL_use_certificate_chain_file + SSL_use_certificate_file + SSL_use_psk_identity_hint + SSL_verify_client_post_handshake + SSL_version + SSL_waiting_for_async + SSL_want + SSL_write + SSL_write_early_data + SSL_write_ex + SSLv3_client_method + SSLv3_method + SSLv3_server_method + TLS_client_method + TLS_method + TLS_server_method + TLSv1_1_client_method + TLSv1_1_method + TLSv1_1_server_method + TLSv1_2_client_method + TLSv1_2_method + TLSv1_2_server_method + TLSv1_client_method + TLSv1_method + TLSv1_server_method + d2i_SSL_SESSION + i2d_SSL_SESSION + diff --git a/libssl/libssl/libssl.map b/libssl/libssl/libssl.map new file mode 100644 index 0000000..3dd914e --- /dev/null +++ b/libssl/libssl/libssl.map @@ -0,0 +1,516 @@ +OPENSSL_1_1_0 { + global: + BIO_f_ssl; + BIO_new_buffer_ssl_connect; + BIO_new_ssl; + BIO_new_ssl_connect; + BIO_ssl_copy_session_id; + BIO_ssl_shutdown; + DTLS_client_method; + DTLS_method; + DTLS_server_method; + DTLSv1_2_client_method; + DTLSv1_2_method; + DTLSv1_2_server_method; + DTLSv1_client_method; + DTLSv1_listen; + DTLSv1_method; + DTLSv1_server_method; + ERR_load_SSL_strings; + OPENSSL_init_ssl; + PEM_read_SSL_SESSION; + PEM_read_bio_SSL_SESSION; + PEM_write_SSL_SESSION; + PEM_write_bio_SSL_SESSION; + SRP_Calc_A_param; + SSL_CIPHER_description; + SSL_CIPHER_find; + SSL_CIPHER_get_auth_nid; + SSL_CIPHER_get_bits; + SSL_CIPHER_get_cipher_nid; + SSL_CIPHER_get_digest_nid; + SSL_CIPHER_get_id; + SSL_CIPHER_get_kx_nid; + SSL_CIPHER_get_name; + SSL_CIPHER_get_version; + SSL_CIPHER_is_aead; + SSL_CIPHER_standard_name; + SSL_COMP_add_compression_method; + SSL_COMP_get_compression_methods; + SSL_COMP_get_name; + SSL_COMP_set0_compression_methods; + SSL_CONF_CTX_clear_flags; + SSL_CONF_CTX_finish; + SSL_CONF_CTX_free; + SSL_CONF_CTX_new; + SSL_CONF_CTX_set1_prefix; + SSL_CONF_CTX_set_flags; + SSL_CONF_CTX_set_ssl; + SSL_CONF_CTX_set_ssl_ctx; + SSL_CONF_cmd; + SSL_CONF_cmd_argv; + SSL_CONF_cmd_value_type; + SSL_CTX_SRP_CTX_free; + SSL_CTX_SRP_CTX_init; + SSL_CTX_add_client_CA; + SSL_CTX_add_client_custom_ext; + SSL_CTX_add_server_custom_ext; + SSL_CTX_add_session; + SSL_CTX_callback_ctrl; + SSL_CTX_check_private_key; + SSL_CTX_clear_options; + SSL_CTX_config; + SSL_CTX_ct_is_enabled; + SSL_CTX_ctrl; + SSL_CTX_dane_clear_flags; + SSL_CTX_dane_enable; + SSL_CTX_dane_mtype_set; + SSL_CTX_dane_set_flags; + SSL_CTX_enable_ct; + SSL_CTX_flush_sessions; + SSL_CTX_free; + SSL_CTX_get0_certificate; + SSL_CTX_get0_ctlog_store; + SSL_CTX_get0_param; + SSL_CTX_get0_privatekey; + SSL_CTX_get0_security_ex_data; + SSL_CTX_get_cert_store; + SSL_CTX_get_ciphers; + SSL_CTX_get_client_CA_list; + SSL_CTX_get_client_cert_cb; + SSL_CTX_get_default_passwd_cb; + SSL_CTX_get_default_passwd_cb_userdata; + SSL_CTX_get_ex_data; + SSL_CTX_get_info_callback; + SSL_CTX_get_options; + SSL_CTX_get_quiet_shutdown; + SSL_CTX_get_security_callback; + SSL_CTX_get_security_level; + SSL_CTX_get_ssl_method; + SSL_CTX_get_timeout; + SSL_CTX_get_verify_callback; + SSL_CTX_get_verify_depth; + SSL_CTX_get_verify_mode; + SSL_CTX_has_client_custom_ext; + SSL_CTX_load_verify_locations; + SSL_CTX_new; + SSL_CTX_remove_session; + SSL_CTX_sess_get_get_cb; + SSL_CTX_sess_get_new_cb; + SSL_CTX_sess_get_remove_cb; + SSL_CTX_sess_set_get_cb; + SSL_CTX_sess_set_new_cb; + SSL_CTX_sess_set_remove_cb; + SSL_CTX_sessions; + SSL_CTX_set0_ctlog_store; + SSL_CTX_set0_security_ex_data; + SSL_CTX_set1_param; + SSL_CTX_set_alpn_protos; + SSL_CTX_set_alpn_select_cb; + SSL_CTX_set_cert_cb; + SSL_CTX_set_cert_store; + SSL_CTX_set_cert_verify_callback; + SSL_CTX_set_cipher_list; + SSL_CTX_set_client_CA_list; + SSL_CTX_set_client_cert_cb; + SSL_CTX_set_client_cert_engine; + SSL_CTX_set_cookie_generate_cb; + SSL_CTX_set_cookie_verify_cb; + SSL_CTX_set_ct_validation_callback; + SSL_CTX_set_ctlog_list_file; + SSL_CTX_set_default_ctlog_list_file; + SSL_CTX_set_default_passwd_cb; + SSL_CTX_set_default_passwd_cb_userdata; + SSL_CTX_set_default_read_buffer_len; + SSL_CTX_set_default_verify_dir; + SSL_CTX_set_default_verify_file; + SSL_CTX_set_default_verify_paths; + SSL_CTX_set_ex_data; + SSL_CTX_set_generate_session_id; + SSL_CTX_set_info_callback; + SSL_CTX_set_msg_callback; + SSL_CTX_set_next_proto_select_cb; + SSL_CTX_set_next_protos_advertised_cb; + SSL_CTX_set_not_resumable_session_callback; + SSL_CTX_set_options; + SSL_CTX_set_psk_client_callback; + SSL_CTX_set_psk_server_callback; + SSL_CTX_set_purpose; + SSL_CTX_set_quiet_shutdown; + SSL_CTX_set_security_callback; + SSL_CTX_set_security_level; + SSL_CTX_set_session_id_context; + SSL_CTX_set_srp_cb_arg; + SSL_CTX_set_srp_client_pwd_callback; + SSL_CTX_set_srp_password; + SSL_CTX_set_srp_strength; + SSL_CTX_set_srp_username; + SSL_CTX_set_srp_username_callback; + SSL_CTX_set_srp_verify_param_callback; + SSL_CTX_set_ssl_version; + SSL_CTX_set_timeout; + SSL_CTX_set_tlsext_use_srtp; + SSL_CTX_set_tmp_dh_callback; + SSL_CTX_set_trust; + SSL_CTX_set_verify; + SSL_CTX_set_verify_depth; + SSL_CTX_up_ref; + SSL_CTX_use_PrivateKey; + SSL_CTX_use_PrivateKey_ASN1; + SSL_CTX_use_PrivateKey_file; + SSL_CTX_use_RSAPrivateKey; + SSL_CTX_use_RSAPrivateKey_ASN1; + SSL_CTX_use_RSAPrivateKey_file; + SSL_CTX_use_certificate; + SSL_CTX_use_certificate_ASN1; + SSL_CTX_use_certificate_chain_file; + SSL_CTX_use_certificate_file; + SSL_CTX_use_psk_identity_hint; + SSL_CTX_use_serverinfo; + SSL_CTX_use_serverinfo_file; + SSL_SESSION_free; + SSL_SESSION_get0_cipher; + SSL_SESSION_get0_hostname; + SSL_SESSION_get0_id_context; + SSL_SESSION_get0_peer; + SSL_SESSION_get0_ticket; + SSL_SESSION_get_compress_id; + SSL_SESSION_get_ex_data; + SSL_SESSION_get_id; + SSL_SESSION_get_master_key; + SSL_SESSION_get_protocol_version; + SSL_SESSION_get_ticket_lifetime_hint; + SSL_SESSION_get_time; + SSL_SESSION_get_timeout; + SSL_SESSION_has_ticket; + SSL_SESSION_new; + SSL_SESSION_print; + SSL_SESSION_print_fp; + SSL_SESSION_print_keylog; + SSL_SESSION_set1_id; + SSL_SESSION_set1_id_context; + SSL_SESSION_set_ex_data; + SSL_SESSION_set_time; + SSL_SESSION_set_timeout; + SSL_SESSION_up_ref; + SSL_SRP_CTX_free; + SSL_SRP_CTX_init; + SSL_accept; + SSL_add1_host; + SSL_add_client_CA; + SSL_add_dir_cert_subjects_to_stack; + SSL_add_file_cert_subjects_to_stack; + SSL_add_ssl_module; + SSL_alert_desc_string; + SSL_alert_desc_string_long; + SSL_alert_type_string; + SSL_alert_type_string_long; + SSL_callback_ctrl; + SSL_certs_clear; + SSL_check_chain; + SSL_check_private_key; + SSL_clear; + SSL_clear_options; + SSL_client_version; + SSL_config; + SSL_connect; + SSL_copy_session_id; + SSL_ct_is_enabled; + SSL_ctrl; + SSL_dane_clear_flags; + SSL_dane_enable; + SSL_dane_set_flags; + SSL_dane_tlsa_add; + SSL_do_handshake; + SSL_dup; + SSL_dup_CA_list; + SSL_enable_ct; + SSL_export_keying_material; + SSL_extension_supported; + SSL_free; + SSL_get0_alpn_selected; + SSL_get0_dane; + SSL_get0_dane_authority; + SSL_get0_dane_tlsa; + SSL_get0_next_proto_negotiated; + SSL_get0_param; + SSL_get0_peer_scts; + SSL_get0_peername; + SSL_get0_security_ex_data; + SSL_get0_verified_chain; + SSL_get1_session; + SSL_get1_supported_ciphers; + SSL_get_SSL_CTX; + SSL_get_all_async_fds; + SSL_get_certificate; + SSL_get_changed_async_fds; + SSL_get_cipher_list; + SSL_get_ciphers; + SSL_get_client_CA_list; + SSL_get_client_ciphers; + SSL_get_client_random; + SSL_get_current_cipher; + SSL_get_current_compression; + SSL_get_current_expansion; + SSL_get_default_passwd_cb; + SSL_get_default_passwd_cb_userdata; + SSL_get_default_timeout; + SSL_get_error; + SSL_get_ex_data; + SSL_get_ex_data_X509_STORE_CTX_idx; + SSL_get_fd; + SSL_get_finished; + SSL_get_info_callback; + SSL_get_options; + SSL_get_peer_cert_chain; + SSL_get_peer_certificate; + SSL_get_peer_finished; + SSL_get_privatekey; + SSL_get_psk_identity; + SSL_get_psk_identity_hint; + SSL_get_quiet_shutdown; + SSL_get_rbio; + SSL_get_read_ahead; + SSL_get_rfd; + SSL_get_security_callback; + SSL_get_security_level; + SSL_get_selected_srtp_profile; + SSL_get_server_random; + SSL_get_servername; + SSL_get_servername_type; + SSL_get_session; + SSL_get_shared_ciphers; + SSL_get_shared_sigalgs; + SSL_get_shutdown; + SSL_get_sigalgs; + SSL_get_srp_N; + SSL_get_srp_g; + SSL_get_srp_userinfo; + SSL_get_srp_username; + SSL_get_srtp_profiles; + SSL_get_ssl_method; + SSL_get_state; + SSL_get_verify_callback; + SSL_get_verify_depth; + SSL_get_verify_mode; + SSL_get_verify_result; + SSL_get_version; + SSL_get_wbio; + SSL_get_wfd; + SSL_has_matching_session_id; + SSL_has_pending; + SSL_in_before; + SSL_in_init; + SSL_is_dtls; + SSL_is_init_finished; + SSL_is_server; + SSL_load_client_CA_file; + SSL_new; + SSL_peek; + SSL_pending; + SSL_read; + SSL_renegotiate; + SSL_renegotiate_abbreviated; + SSL_renegotiate_pending; + SSL_rstate_string; + SSL_rstate_string_long; + SSL_select_next_proto; + SSL_session_reused; + SSL_set0_rbio; + SSL_set0_security_ex_data; + SSL_set0_wbio; + SSL_set1_host; + SSL_set1_param; + SSL_set_SSL_CTX; + SSL_set_accept_state; + SSL_set_alpn_protos; + SSL_set_bio; + SSL_set_cert_cb; + SSL_set_cipher_list; + SSL_set_client_CA_list; + SSL_set_connect_state; + SSL_set_ct_validation_callback; + SSL_set_debug; + SSL_set_default_passwd_cb; + SSL_set_default_passwd_cb_userdata; + SSL_set_default_read_buffer_len; + SSL_set_ex_data; + SSL_set_fd; + SSL_set_generate_session_id; + SSL_set_hostflags; + SSL_set_info_callback; + SSL_set_msg_callback; + SSL_set_not_resumable_session_callback; + SSL_set_options; + SSL_set_psk_client_callback; + SSL_set_psk_server_callback; + SSL_set_purpose; + SSL_set_quiet_shutdown; + SSL_set_read_ahead; + SSL_set_rfd; + SSL_set_security_callback; + SSL_set_security_level; + SSL_set_session; + SSL_set_session_id_context; + SSL_set_session_secret_cb; + SSL_set_session_ticket_ext; + SSL_set_session_ticket_ext_cb; + SSL_set_shutdown; + SSL_set_srp_server_param; + SSL_set_srp_server_param_pw; + SSL_set_ssl_method; + SSL_set_tlsext_use_srtp; + SSL_set_tmp_dh_callback; + SSL_set_trust; + SSL_set_verify; + SSL_set_verify_depth; + SSL_set_verify_result; + SSL_set_wfd; + SSL_shutdown; + SSL_srp_server_param_with_username; + SSL_state_string; + SSL_state_string_long; + SSL_up_ref; + SSL_use_PrivateKey; + SSL_use_PrivateKey_ASN1; + SSL_use_PrivateKey_file; + SSL_use_RSAPrivateKey; + SSL_use_RSAPrivateKey_ASN1; + SSL_use_RSAPrivateKey_file; + SSL_use_certificate; + SSL_use_certificate_ASN1; + SSL_use_certificate_chain_file; + SSL_use_certificate_file; + SSL_use_psk_identity_hint; + SSL_version; + SSL_waiting_for_async; + SSL_want; + SSL_write; + SSLv3_client_method; + SSLv3_method; + SSLv3_server_method; + TLS_client_method; + TLS_method; + TLS_server_method; + TLSv1_1_client_method; + TLSv1_1_method; + TLSv1_1_server_method; + TLSv1_2_client_method; + TLSv1_2_method; + TLSv1_2_server_method; + TLSv1_client_method; + TLSv1_method; + TLSv1_server_method; + d2i_SSL_SESSION; + i2d_SSL_SESSION; +}; + +OPENSSL_1_1_0d { + global: + SSL_COMP_get0_name; + SSL_COMP_get_id; +} OPENSSL_1_1_0; + +OPENSSL_1_1_1 { + global: + DTLS_get_data_mtu; + DTLS_set_timer_cb; + OPENSSL_cipher_name; + SSL_CIPHER_get_handshake_digest; + SSL_CIPHER_get_protocol_id; + SSL_CTX_add1_to_CA_list; + SSL_CTX_add_custom_ext; + SSL_CTX_get0_CA_list; + SSL_CTX_get_keylog_callback; + SSL_CTX_get_max_early_data; + SSL_CTX_get_num_tickets; + SSL_CTX_get_record_padding_callback_arg; + SSL_CTX_get_recv_max_early_data; + SSL_CTX_set0_CA_list; + SSL_CTX_set1_cert_store; + SSL_CTX_set_allow_early_data_cb; + SSL_CTX_set_block_padding; + SSL_CTX_set_ciphersuites; + SSL_CTX_set_client_hello_cb; + SSL_CTX_set_keylog_callback; + SSL_CTX_set_max_early_data; + SSL_CTX_set_num_tickets; + SSL_CTX_set_post_handshake_auth; + SSL_CTX_set_psk_find_session_callback; + SSL_CTX_set_psk_use_session_callback; + SSL_CTX_set_record_padding_callback; + SSL_CTX_set_record_padding_callback_arg; + SSL_CTX_set_recv_max_early_data; + SSL_CTX_set_session_ticket_cb; + SSL_CTX_set_stateless_cookie_generate_cb; + SSL_CTX_set_stateless_cookie_verify_cb; + SSL_CTX_set_tlsext_max_fragment_length; + SSL_CTX_use_cert_and_key; + SSL_CTX_use_serverinfo_ex; + SSL_SESSION_dup; + SSL_SESSION_get0_alpn_selected; + SSL_SESSION_get0_ticket_appdata; + SSL_SESSION_get_max_early_data; + SSL_SESSION_get_max_fragment_length; + SSL_SESSION_is_resumable; + SSL_SESSION_set1_alpn_selected; + SSL_SESSION_set1_hostname; + SSL_SESSION_set1_master_key; + SSL_SESSION_set1_ticket_appdata; + SSL_SESSION_set_cipher; + SSL_SESSION_set_max_early_data; + SSL_SESSION_set_protocol_version; + SSL_add1_to_CA_list; + SSL_alloc_buffers; + SSL_bytes_to_cipher_list; + SSL_client_hello_get0_ciphers; + SSL_client_hello_get0_compression_methods; + SSL_client_hello_get0_ext; + SSL_client_hello_get0_legacy_version; + SSL_client_hello_get0_random; + SSL_client_hello_get0_session_id; + SSL_client_hello_get1_extensions_present; + SSL_client_hello_isv2; + SSL_export_keying_material_early; + SSL_free_buffers; + SSL_get0_CA_list; + SSL_get0_peer_CA_list; + SSL_get_early_data_status; + SSL_get_key_update_type; + SSL_get_max_early_data; + SSL_get_num_tickets; + SSL_get_peer_signature_type_nid; + SSL_get_pending_cipher; + SSL_get_record_padding_callback_arg; + SSL_get_recv_max_early_data; + SSL_key_update; + SSL_peek_ex; + SSL_read_early_data; + SSL_read_ex; + SSL_set0_CA_list; + SSL_set_allow_early_data_cb; + SSL_set_block_padding; + SSL_set_ciphersuites; + SSL_set_max_early_data; + SSL_set_num_tickets; + SSL_set_post_handshake_auth; + SSL_set_psk_find_session_callback; + SSL_set_psk_use_session_callback; + SSL_set_record_padding_callback; + SSL_set_record_padding_callback_arg; + SSL_set_recv_max_early_data; + SSL_set_tlsext_max_fragment_length; + SSL_stateless; + SSL_use_cert_and_key; + SSL_verify_client_post_handshake; + SSL_write_early_data; + SSL_write_ex; +} OPENSSL_1_1_0d; + +OPENSSL_1_1_1a { + global: + SSL_get_signature_type_nid; + local: *; +} OPENSSL_1_1_1; + + diff --git a/libssl/libssl/openssl/dtls1.h b/libssl/libssl/openssl/dtls1.h new file mode 120000 index 0000000..b787491 --- /dev/null +++ b/libssl/libssl/openssl/dtls1.h @@ -0,0 +1 @@ +../../../upstream/include/openssl/dtls1.h \ No newline at end of file diff --git a/libssl/libssl/openssl/srtp.h b/libssl/libssl/openssl/srtp.h new file mode 120000 index 0000000..0e496d4 --- /dev/null +++ b/libssl/libssl/openssl/srtp.h @@ -0,0 +1 @@ +../../../upstream/include/openssl/srtp.h \ No newline at end of file diff --git a/libssl/libssl/openssl/ssl.h b/libssl/libssl/openssl/ssl.h new file mode 120000 index 0000000..7e04c03 --- /dev/null +++ b/libssl/libssl/openssl/ssl.h @@ -0,0 +1 @@ +../../../upstream/include/openssl/ssl.h \ No newline at end of file diff --git a/libssl/libssl/openssl/ssl2.h b/libssl/libssl/openssl/ssl2.h new file mode 120000 index 0000000..6f72a43 --- /dev/null +++ b/libssl/libssl/openssl/ssl2.h @@ -0,0 +1 @@ +../../../upstream/include/openssl/ssl2.h \ No newline at end of file diff --git a/libssl/libssl/openssl/ssl3.h b/libssl/libssl/openssl/ssl3.h new file mode 120000 index 0000000..8b08acb --- /dev/null +++ b/libssl/libssl/openssl/ssl3.h @@ -0,0 +1 @@ +../../../upstream/include/openssl/ssl3.h \ No newline at end of file diff --git a/libssl/libssl/openssl/sslerr.h b/libssl/libssl/openssl/sslerr.h new file mode 120000 index 0000000..e7066fd --- /dev/null +++ b/libssl/libssl/openssl/sslerr.h @@ -0,0 +1 @@ +../../../upstream/include/openssl/sslerr.h \ No newline at end of file diff --git a/libssl/libssl/ssl b/libssl/libssl/ssl new file mode 120000 index 0000000..2cbbb3f --- /dev/null +++ b/libssl/libssl/ssl @@ -0,0 +1 @@ +../../upstream/ssl \ No newline at end of file diff --git a/libssl/manifest b/libssl/manifest new file mode 100644 index 0000000..7fa8497 --- /dev/null +++ b/libssl/manifest @@ -0,0 +1,23 @@ +: 1 +name: libssl + +# Note: remember to update summary and doc-url below! +# +version: 1.1.1-a.0.z + +project: openssl +summary: C library providing SSLv3 and TLS implementations, version 1.1.1a +license: OpenSSL License, SSLeay License; Copyleft free dual software license. +tags: SSLv3, TLS, cryptography, library, c, api, interface +description-file: README +url: https://www.openssl.org/ +doc-url: https://www.openssl.org/docs/man1.1.1/man3/ +src-url: https://git.build2.org/cgit/packaging/openssl/openssl/tree/libssl/ +package-url: https://git.build2.org/cgit/packaging/openssl/ +email: openssl-users@openssl.org ; Mailing list. +package-email: packaging@build2.org ; Mailing list. +build-error-email: builds@build2.org +builds: all +depends: * build2 >= 0.10.0- +depends: * bpkg >= 0.10.0- +depends: libcrypto == $ diff --git a/libssl/tests/.gitignore b/libssl/tests/.gitignore new file mode 100644 index 0000000..662178d --- /dev/null +++ b/libssl/tests/.gitignore @@ -0,0 +1,8 @@ +# Test executables. +# +driver + +# Testscript output directories (can be symlinks). +# +test +test-* diff --git a/libssl/tests/basic/buildfile b/libssl/tests/basic/buildfile new file mode 100644 index 0000000..b010198 --- /dev/null +++ b/libssl/tests/basic/buildfile @@ -0,0 +1,7 @@ +# file : tests/basic/buildfile +# copyright : Copyright (c) 2018-2019 Code Synthesis Ltd +# license : OpenSSL and SSLeay Licenses; see accompanying LICENSE file + +import libs = libssl%lib{ssl} + +exe{driver}: {h c}{**} $libs testscript diff --git a/libssl/tests/basic/driver.c b/libssl/tests/basic/driver.c new file mode 100644 index 0000000..56e9c5f --- /dev/null +++ b/libssl/tests/basic/driver.c @@ -0,0 +1,17 @@ +/* + * file : tests/basic/driver.c + * copyright : Copyright (c) 2009-2019 Code Synthesis Tools CC + * license : OpenSSL and SSLeay Licenses; see accompanying LICENSE file + */ + +#include + +#include + +int +main () +{ + assert (OPENSSL_init_ssl (0 /* opts */, NULL /* settings */) == 1); + + return 0; +} diff --git a/libssl/tests/basic/testscript b/libssl/tests/basic/testscript new file mode 100644 index 0000000..f5c8595 --- /dev/null +++ b/libssl/tests/basic/testscript @@ -0,0 +1,5 @@ +# file : tests/basic/testscript +# copyright : Copyright (c) 2016-2019 Code Synthesis Ltd +# license : OpenSSL and SSLeay Licenses; see accompanying LICENSE file + +$* diff --git a/libssl/tests/build/.gitignore b/libssl/tests/build/.gitignore new file mode 100644 index 0000000..4a730a3 --- /dev/null +++ b/libssl/tests/build/.gitignore @@ -0,0 +1,3 @@ +config.build +root/ +bootstrap/ diff --git a/libssl/tests/build/bootstrap.build b/libssl/tests/build/bootstrap.build new file mode 100644 index 0000000..dd525c0 --- /dev/null +++ b/libssl/tests/build/bootstrap.build @@ -0,0 +1,9 @@ +# file : tests/build/bootstrap.build +# copyright : Copyright (c) 2018-2019 Code Synthesis Ltd +# license : OpenSSL and SSLeay Licenses; see accompanying LICENSE file + +project = # Unnamed tests subproject. + +using config +using test +using dist diff --git a/libssl/tests/build/root.build b/libssl/tests/build/root.build new file mode 100644 index 0000000..02e2e5d --- /dev/null +++ b/libssl/tests/build/root.build @@ -0,0 +1,16 @@ +# file : tests/build/root.build +# copyright : Copyright (c) 2018-2019 Code Synthesis Ltd +# license : OpenSSL and SSLeay Licenses; see accompanying LICENSE file + +using c + +h{*}: extension = h +c{*}: extension = c + +# Every exe{} in this subproject is by default a test. +# +exe{*}: test = true + +# The test target for cross-testing (running tests under Wine, etc). +# +test.target = $c.target diff --git a/libssl/tests/buildfile b/libssl/tests/buildfile new file mode 100644 index 0000000..70330ab --- /dev/null +++ b/libssl/tests/buildfile @@ -0,0 +1,5 @@ +# file : tests/buildfile +# copyright : Copyright (c) 2018-2019 Code Synthesis Ltd +# license : OpenSSL and SSLeay Licenses; see accompanying LICENSE file + +./: {*/ -build/} -- cgit v1.1