From 762461f219108b1976596e2235eb75317a998410 Mon Sep 17 00:00:00 2001 From: Justin Smith Date: Tue, 27 Aug 2024 17:22:50 -0400 Subject: [PATCH 01/36] Use C11; Align with AWS-LC v1.34.2 --- .github/workflows/sys-bindings-generator.yml | 2 ++ aws-lc-sys/aws-lc | 2 +- aws-lc-sys/builder/cc_builder.rs | 13 ++++++-- aws-lc-sys/builder/cmake_builder.rs | 13 ++++++-- aws-lc-sys/builder/main.rs | 31 ++++++++++++++++++++ scripts/build/collect_nasm_obj.sh | 2 +- 6 files changed, 56 insertions(+), 7 deletions(-) diff --git a/.github/workflows/sys-bindings-generator.yml b/.github/workflows/sys-bindings-generator.yml index dc226f9f1bb..e97b65eaec2 100644 --- a/.github/workflows/sys-bindings-generator.yml +++ b/.github/workflows/sys-bindings-generator.yml @@ -43,6 +43,8 @@ jobs: - name: No-prefix build for ${{ matrix.os }} env: AWS_LC_SYS_NO_PREFIX: "1" + # Ensure that we collect symbols unique to C99 builds + AWS_LC_SYS_C_STD: "99" run: | cargo test -p aws-lc-sys --features bindgen - name: Collect symbols diff --git a/aws-lc-sys/aws-lc b/aws-lc-sys/aws-lc index 05747780676..2f1879759b2 160000 --- a/aws-lc-sys/aws-lc +++ b/aws-lc-sys/aws-lc @@ -1 +1 @@ -Subproject commit 05747780676652f41d0b9c570a495e4bb6608560 +Subproject commit 2f1879759b2e0fc70592665bdf10087b64f44b7d diff --git a/aws-lc-sys/builder/cc_builder.rs b/aws-lc-sys/builder/cc_builder.rs index fc9c720cc6b..854558b9cad 100644 --- a/aws-lc-sys/builder/cc_builder.rs +++ b/aws-lc-sys/builder/cc_builder.rs @@ -14,8 +14,8 @@ mod x86_64_unknown_linux_gnu; mod x86_64_unknown_linux_musl; use crate::{ - cargo_env, env_var_to_bool, execute_command, out_dir, target, target_arch, target_os, - target_vendor, OutputLibType, + cargo_env, env_var_to_bool, execute_command, out_dir, requested_c_std, target, target_arch, + target_os, target_vendor, CStdRequested, OutputLibType, }; use std::path::PathBuf; @@ -96,15 +96,22 @@ impl CcBuilder { } } + fn apply_c_std(cc_build: &mut cc::Build) { + match requested_c_std() { + CStdRequested::C99 => cc_build.std("c99"), + _ => cc_build.std("c11"), + }; + } + fn create_builder(&self) -> cc::Build { let mut cc_build = cc::Build::default(); cc_build .out_dir(&self.out_dir) - .flag("-std=c99") .flag("-Wno-unused-parameter") .cpp(false) .shared_flag(false) .static_flag(true); + CcBuilder::apply_c_std(&mut cc_build); if target_os() == "linux" { cc_build.define("_XOPEN_SOURCE", "700").flag("-lpthread"); } diff --git a/aws-lc-sys/builder/cmake_builder.rs b/aws-lc-sys/builder/cmake_builder.rs index ec332731feb..35f429c9b1c 100644 --- a/aws-lc-sys/builder/cmake_builder.rs +++ b/aws-lc-sys/builder/cmake_builder.rs @@ -4,8 +4,8 @@ use crate::OutputLib::{Crypto, RustWrapper, Ssl}; use crate::{ allow_prebuilt_nasm, cargo_env, emit_warning, execute_command, is_crt_static, is_no_asm, - option_env, target, target_arch, target_env, target_family, target_os, target_underscored, - target_vendor, test_nasm_command, OutputLibType, + option_env, requested_c_std, target, target_arch, target_env, target_family, target_os, + target_underscored, target_vendor, test_nasm_command, CStdRequested, OutputLibType, }; use std::env; use std::ffi::OsString; @@ -135,6 +135,15 @@ impl CmakeBuilder { cmake_cfg.define("ASAN", "1"); } + match requested_c_std() { + CStdRequested::C99 => { + cmake_cfg.define("CMAKE_C_STANDARD", "99"); + } + CStdRequested::C11 => { + cmake_cfg.define("CMAKE_C_STANDARD", "11"); + } + CStdRequested::None => {} + } // Allow environment to specify CMake toolchain. if let Some(toolchain) = option_env("CMAKE_TOOLCHAIN_FILE").or(option_env(format!( diff --git a/aws-lc-sys/builder/main.rs b/aws-lc-sys/builder/main.rs index 4ea3f7bb0f4..59c7f35447b 100644 --- a/aws-lc-sys/builder/main.rs +++ b/aws-lc-sys/builder/main.rs @@ -314,6 +314,30 @@ trait Builder { fn build(&self) -> Result<(), String>; } +#[derive(Clone, Copy, Debug, PartialEq, Eq)] +pub(crate) enum CStdRequested { + C99, + C11, + None, +} + +impl CStdRequested { + fn from_env() -> Self { + if let Some(val) = option_env("AWS_LC_SYS_C_STD") { + let cstd = match val.as_str() { + "99" => CStdRequested::C99, + "11" => CStdRequested::C11, + _ => CStdRequested::None, + }; + emit_warning(&format!( + "AWS_LC_SYS_C_STD environment variable set: {cstd:?}" + )); + return cstd; + } + CStdRequested::None + } +} + static mut PREGENERATED: bool = false; static mut AWS_LC_SYS_NO_PREFIX: bool = false; static mut AWS_LC_SYS_INTERNAL_BINDGEN: bool = false; @@ -321,6 +345,8 @@ static mut AWS_LC_SYS_EXTERNAL_BINDGEN: bool = false; static mut AWS_LC_SYS_NO_ASM: bool = false; static mut AWS_LC_SYS_PREBUILT_NASM: Option = None; +static mut AWS_LC_SYS_C_STD: CStdRequested = CStdRequested::None; + fn initialize() { unsafe { AWS_LC_SYS_NO_PREFIX = env_var_to_bool("AWS_LC_SYS_NO_PREFIX").unwrap_or(false); @@ -330,6 +356,7 @@ fn initialize() { env_var_to_bool("AWS_LC_SYS_EXTERNAL_BINDGEN").unwrap_or(false); AWS_LC_SYS_NO_ASM = env_var_to_bool("AWS_LC_SYS_NO_ASM").unwrap_or(false); AWS_LC_SYS_PREBUILT_NASM = env_var_to_bool("AWS_LC_SYS_PREBUILT_NASM"); + AWS_LC_SYS_C_STD = CStdRequested::from_env(); } if !is_external_bindgen() && (is_internal_bindgen() || !has_bindgen_feature()) { @@ -392,6 +419,10 @@ fn allow_prebuilt_nasm() -> Option { unsafe { AWS_LC_SYS_PREBUILT_NASM } } +fn requested_c_std() -> CStdRequested { + unsafe { AWS_LC_SYS_C_STD } +} + fn has_bindgen_feature() -> bool { cfg!(feature = "bindgen") } diff --git a/scripts/build/collect_nasm_obj.sh b/scripts/build/collect_nasm_obj.sh index c425e9236f8..53d69c8d0d0 100644 --- a/scripts/build/collect_nasm_obj.sh +++ b/scripts/build/collect_nasm_obj.sh @@ -25,5 +25,5 @@ for nasm_file in `find aws-lc-sys/aws-lc/generated-src/win-x86_64/ -name "*.asm" cp "${NASM_OBJ}" "${PREBUILT_NASM_DIR}" # We remove the '.debug$S' value, which indicates the size of the debug section. This value can change across builds # because it typically contains full source file paths that vary by build environment - "${DUMPBIN}" //DISASM "${PREBUILT_NASM_DIR}"/"${OBJNAME/.asm/.obj}" | grep -v '.debug$S' | sed -e "s/^Dump of file.*/Dump of file ${OBJNAME/.asm/.obj}/" > "${PREBUILT_NASM_DIR}"/"${OBJNAME/.asm/}"-disasm.txt + "${DUMPBIN}" //DISASM "${PREBUILT_NASM_DIR}"/"${OBJNAME/.asm/.obj}" | grep -v '.debug$S' | grep -v 'Dumper Version' | sed -e "s/^Dump of file.*/Dump of file ${OBJNAME/.asm/.obj}/" > "${PREBUILT_NASM_DIR}"/"${OBJNAME/.asm/}"-disasm.txt done From 5610e720e2c0804174206c4f66ede85bbf1af5cb Mon Sep 17 00:00:00 2001 From: aws-lc-sys-bindings-generator Date: Wed, 28 Aug 2024 14:24:41 +0000 Subject: [PATCH 02/36] Symbols from ubuntu-latest --- aws-lc-sys/symbols/x86_64-unknown-linux-gnu.txt | 16 +++++++++++++++- 1 file changed, 15 insertions(+), 1 deletion(-) diff --git a/aws-lc-sys/symbols/x86_64-unknown-linux-gnu.txt b/aws-lc-sys/symbols/x86_64-unknown-linux-gnu.txt index 02a8b9e8a50..aca45c772c7 100644 --- a/aws-lc-sys/symbols/x86_64-unknown-linux-gnu.txt +++ b/aws-lc-sys/symbols/x86_64-unknown-linux-gnu.txt @@ -1510,6 +1510,8 @@ OBJ_obj2txt OBJ_sn2nid OBJ_txt2nid OBJ_txt2obj +OCSP_BASICRESP_add_ext +OCSP_BASICRESP_delete_ext OCSP_BASICRESP_free OCSP_BASICRESP_get_ext OCSP_BASICRESP_get_ext_by_NID @@ -1541,7 +1543,9 @@ OCSP_REQ_CTX_nbio OCSP_REQ_CTX_nbio_d2i OCSP_REQ_CTX_new OCSP_REQ_CTX_set1_req +OCSP_RESPBYTES_free OCSP_RESPBYTES_it +OCSP_RESPBYTES_new OCSP_RESPDATA_free OCSP_RESPDATA_it OCSP_RESPDATA_new @@ -1550,7 +1554,9 @@ OCSP_RESPONSE_free OCSP_RESPONSE_it OCSP_RESPONSE_new OCSP_RESPONSE_print +OCSP_REVOKEDINFO_free OCSP_REVOKEDINFO_it +OCSP_REVOKEDINFO_new OCSP_SIGNATURE_free OCSP_SIGNATURE_it OCSP_SIGNATURE_new @@ -1562,12 +1568,16 @@ OCSP_SINGLERESP_get_ext_count OCSP_SINGLERESP_it OCSP_SINGLERESP_new OCSP_basic_add1_cert +OCSP_basic_add1_nonce +OCSP_basic_add1_status +OCSP_basic_sign OCSP_basic_verify OCSP_cert_id_new OCSP_cert_status_str OCSP_cert_to_id OCSP_check_nonce OCSP_check_validity +OCSP_copy_nonce OCSP_crl_reason_str OCSP_id_cmp OCSP_id_get0_info @@ -1586,6 +1596,7 @@ OCSP_resp_count OCSP_resp_find OCSP_resp_find_status OCSP_resp_get0 +OCSP_response_create OCSP_response_get1_basic OCSP_response_status OCSP_response_status_str @@ -2325,7 +2336,6 @@ X509_STORE_CTX_get_ex_data X509_STORE_CTX_get_ex_new_index X509_STORE_CTX_init X509_STORE_CTX_new -X509_STORE_CTX_purpose_inherit X509_STORE_CTX_set0_crls X509_STORE_CTX_set0_param X509_STORE_CTX_set0_trusted_stack @@ -2796,9 +2806,11 @@ d2i_OCSP_ONEREQ d2i_OCSP_REQINFO d2i_OCSP_REQUEST d2i_OCSP_REQUEST_bio +d2i_OCSP_RESPBYTES d2i_OCSP_RESPDATA d2i_OCSP_RESPONSE d2i_OCSP_RESPONSE_bio +d2i_OCSP_REVOKEDINFO d2i_OCSP_SIGNATURE d2i_OCSP_SINGLERESP d2i_PKCS12 @@ -3063,9 +3075,11 @@ i2d_OCSP_ONEREQ i2d_OCSP_REQINFO i2d_OCSP_REQUEST i2d_OCSP_REQUEST_bio +i2d_OCSP_RESPBYTES i2d_OCSP_RESPDATA i2d_OCSP_RESPONSE i2d_OCSP_RESPONSE_bio +i2d_OCSP_REVOKEDINFO i2d_OCSP_SIGNATURE i2d_OCSP_SINGLERESP i2d_PKCS12 From 6d5f053a5fce615aeb09231145a9772c04832526 Mon Sep 17 00:00:00 2001 From: aws-lc-sys-bindings-generator Date: Wed, 28 Aug 2024 14:24:54 +0000 Subject: [PATCH 03/36] Symbols from macos-13-xlarge --- aws-lc-sys/symbols/aarch64-apple-darwin.txt | 16 +++++++++++++++- 1 file changed, 15 insertions(+), 1 deletion(-) diff --git a/aws-lc-sys/symbols/aarch64-apple-darwin.txt b/aws-lc-sys/symbols/aarch64-apple-darwin.txt index 2c33a337300..e084fc4baf1 100644 --- a/aws-lc-sys/symbols/aarch64-apple-darwin.txt +++ b/aws-lc-sys/symbols/aarch64-apple-darwin.txt @@ -1505,6 +1505,8 @@ OBJ_obj2txt OBJ_sn2nid OBJ_txt2nid OBJ_txt2obj +OCSP_BASICRESP_add_ext +OCSP_BASICRESP_delete_ext OCSP_BASICRESP_free OCSP_BASICRESP_get_ext OCSP_BASICRESP_get_ext_by_NID @@ -1536,7 +1538,9 @@ OCSP_REQ_CTX_nbio OCSP_REQ_CTX_nbio_d2i OCSP_REQ_CTX_new OCSP_REQ_CTX_set1_req +OCSP_RESPBYTES_free OCSP_RESPBYTES_it +OCSP_RESPBYTES_new OCSP_RESPDATA_free OCSP_RESPDATA_it OCSP_RESPDATA_new @@ -1545,7 +1549,9 @@ OCSP_RESPONSE_free OCSP_RESPONSE_it OCSP_RESPONSE_new OCSP_RESPONSE_print +OCSP_REVOKEDINFO_free OCSP_REVOKEDINFO_it +OCSP_REVOKEDINFO_new OCSP_SIGNATURE_free OCSP_SIGNATURE_it OCSP_SIGNATURE_new @@ -1557,12 +1563,16 @@ OCSP_SINGLERESP_get_ext_count OCSP_SINGLERESP_it OCSP_SINGLERESP_new OCSP_basic_add1_cert +OCSP_basic_add1_nonce +OCSP_basic_add1_status +OCSP_basic_sign OCSP_basic_verify OCSP_cert_id_new OCSP_cert_status_str OCSP_cert_to_id OCSP_check_nonce OCSP_check_validity +OCSP_copy_nonce OCSP_crl_reason_str OCSP_id_cmp OCSP_id_get0_info @@ -1581,6 +1591,7 @@ OCSP_resp_count OCSP_resp_find OCSP_resp_find_status OCSP_resp_get0 +OCSP_response_create OCSP_response_get1_basic OCSP_response_status OCSP_response_status_str @@ -2323,7 +2334,6 @@ X509_STORE_CTX_get_ex_data X509_STORE_CTX_get_ex_new_index X509_STORE_CTX_init X509_STORE_CTX_new -X509_STORE_CTX_purpose_inherit X509_STORE_CTX_set0_crls X509_STORE_CTX_set0_param X509_STORE_CTX_set0_trusted_stack @@ -2798,9 +2808,11 @@ d2i_OCSP_ONEREQ d2i_OCSP_REQINFO d2i_OCSP_REQUEST d2i_OCSP_REQUEST_bio +d2i_OCSP_RESPBYTES d2i_OCSP_RESPDATA d2i_OCSP_RESPONSE d2i_OCSP_RESPONSE_bio +d2i_OCSP_REVOKEDINFO d2i_OCSP_SIGNATURE d2i_OCSP_SINGLERESP d2i_PKCS12 @@ -3062,9 +3074,11 @@ i2d_OCSP_ONEREQ i2d_OCSP_REQINFO i2d_OCSP_REQUEST i2d_OCSP_REQUEST_bio +i2d_OCSP_RESPBYTES i2d_OCSP_RESPDATA i2d_OCSP_RESPONSE i2d_OCSP_RESPONSE_bio +i2d_OCSP_REVOKEDINFO i2d_OCSP_SIGNATURE i2d_OCSP_SINGLERESP i2d_PKCS12 From 01e0b7bdc19d84baef02e7c8cab0dc93ebfec290 Mon Sep 17 00:00:00 2001 From: aws-lc-sys-bindings-generator Date: Wed, 28 Aug 2024 14:26:56 +0000 Subject: [PATCH 04/36] Symbols from x86_64-pc-windows-gnu --- aws-lc-sys/symbols/x86_64-pc-windows-gnu.txt | 16 +++++++++++++++- 1 file changed, 15 insertions(+), 1 deletion(-) diff --git a/aws-lc-sys/symbols/x86_64-pc-windows-gnu.txt b/aws-lc-sys/symbols/x86_64-pc-windows-gnu.txt index cb22c08b779..5826163f50c 100644 --- a/aws-lc-sys/symbols/x86_64-pc-windows-gnu.txt +++ b/aws-lc-sys/symbols/x86_64-pc-windows-gnu.txt @@ -1508,6 +1508,8 @@ OBJ_obj2txt OBJ_sn2nid OBJ_txt2nid OBJ_txt2obj +OCSP_BASICRESP_add_ext +OCSP_BASICRESP_delete_ext OCSP_BASICRESP_free OCSP_BASICRESP_get_ext OCSP_BASICRESP_get_ext_by_NID @@ -1539,7 +1541,9 @@ OCSP_REQ_CTX_nbio OCSP_REQ_CTX_nbio_d2i OCSP_REQ_CTX_new OCSP_REQ_CTX_set1_req +OCSP_RESPBYTES_free OCSP_RESPBYTES_it +OCSP_RESPBYTES_new OCSP_RESPDATA_free OCSP_RESPDATA_it OCSP_RESPDATA_new @@ -1548,7 +1552,9 @@ OCSP_RESPONSE_free OCSP_RESPONSE_it OCSP_RESPONSE_new OCSP_RESPONSE_print +OCSP_REVOKEDINFO_free OCSP_REVOKEDINFO_it +OCSP_REVOKEDINFO_new OCSP_SIGNATURE_free OCSP_SIGNATURE_it OCSP_SIGNATURE_new @@ -1560,12 +1566,16 @@ OCSP_SINGLERESP_get_ext_count OCSP_SINGLERESP_it OCSP_SINGLERESP_new OCSP_basic_add1_cert +OCSP_basic_add1_nonce +OCSP_basic_add1_status +OCSP_basic_sign OCSP_basic_verify OCSP_cert_id_new OCSP_cert_status_str OCSP_cert_to_id OCSP_check_nonce OCSP_check_validity +OCSP_copy_nonce OCSP_crl_reason_str OCSP_id_cmp OCSP_id_get0_info @@ -1584,6 +1594,7 @@ OCSP_resp_count OCSP_resp_find OCSP_resp_find_status OCSP_resp_get0 +OCSP_response_create OCSP_response_get1_basic OCSP_response_status OCSP_response_status_str @@ -2322,7 +2333,6 @@ X509_STORE_CTX_get_ex_data X509_STORE_CTX_get_ex_new_index X509_STORE_CTX_init X509_STORE_CTX_new -X509_STORE_CTX_purpose_inherit X509_STORE_CTX_set0_crls X509_STORE_CTX_set0_param X509_STORE_CTX_set0_trusted_stack @@ -2794,9 +2804,11 @@ d2i_OCSP_ONEREQ d2i_OCSP_REQINFO d2i_OCSP_REQUEST d2i_OCSP_REQUEST_bio +d2i_OCSP_RESPBYTES d2i_OCSP_RESPDATA d2i_OCSP_RESPONSE d2i_OCSP_RESPONSE_bio +d2i_OCSP_REVOKEDINFO d2i_OCSP_SIGNATURE d2i_OCSP_SINGLERESP d2i_PKCS12 @@ -3058,9 +3070,11 @@ i2d_OCSP_ONEREQ i2d_OCSP_REQINFO i2d_OCSP_REQUEST i2d_OCSP_REQUEST_bio +i2d_OCSP_RESPBYTES i2d_OCSP_RESPDATA i2d_OCSP_RESPONSE i2d_OCSP_RESPONSE_bio +i2d_OCSP_REVOKEDINFO i2d_OCSP_SIGNATURE i2d_OCSP_SINGLERESP i2d_PKCS12 From b2145738e18cd0783d246c2c036567dc0ad0d50a Mon Sep 17 00:00:00 2001 From: aws-lc-sys-bindings-generator Date: Wed, 28 Aug 2024 14:26:49 +0000 Subject: [PATCH 05/36] Symbols from macos-12 --- aws-lc-sys/symbols/x86_64-apple-darwin.txt | 16 +++++++++++++++- 1 file changed, 15 insertions(+), 1 deletion(-) diff --git a/aws-lc-sys/symbols/x86_64-apple-darwin.txt b/aws-lc-sys/symbols/x86_64-apple-darwin.txt index 637eb079ea9..8ff931591ad 100644 --- a/aws-lc-sys/symbols/x86_64-apple-darwin.txt +++ b/aws-lc-sys/symbols/x86_64-apple-darwin.txt @@ -1509,6 +1509,8 @@ OBJ_obj2txt OBJ_sn2nid OBJ_txt2nid OBJ_txt2obj +OCSP_BASICRESP_add_ext +OCSP_BASICRESP_delete_ext OCSP_BASICRESP_free OCSP_BASICRESP_get_ext OCSP_BASICRESP_get_ext_by_NID @@ -1540,7 +1542,9 @@ OCSP_REQ_CTX_nbio OCSP_REQ_CTX_nbio_d2i OCSP_REQ_CTX_new OCSP_REQ_CTX_set1_req +OCSP_RESPBYTES_free OCSP_RESPBYTES_it +OCSP_RESPBYTES_new OCSP_RESPDATA_free OCSP_RESPDATA_it OCSP_RESPDATA_new @@ -1549,7 +1553,9 @@ OCSP_RESPONSE_free OCSP_RESPONSE_it OCSP_RESPONSE_new OCSP_RESPONSE_print +OCSP_REVOKEDINFO_free OCSP_REVOKEDINFO_it +OCSP_REVOKEDINFO_new OCSP_SIGNATURE_free OCSP_SIGNATURE_it OCSP_SIGNATURE_new @@ -1561,12 +1567,16 @@ OCSP_SINGLERESP_get_ext_count OCSP_SINGLERESP_it OCSP_SINGLERESP_new OCSP_basic_add1_cert +OCSP_basic_add1_nonce +OCSP_basic_add1_status +OCSP_basic_sign OCSP_basic_verify OCSP_cert_id_new OCSP_cert_status_str OCSP_cert_to_id OCSP_check_nonce OCSP_check_validity +OCSP_copy_nonce OCSP_crl_reason_str OCSP_id_cmp OCSP_id_get0_info @@ -1585,6 +1595,7 @@ OCSP_resp_count OCSP_resp_find OCSP_resp_find_status OCSP_resp_get0 +OCSP_response_create OCSP_response_get1_basic OCSP_response_status OCSP_response_status_str @@ -2324,7 +2335,6 @@ X509_STORE_CTX_get_ex_data X509_STORE_CTX_get_ex_new_index X509_STORE_CTX_init X509_STORE_CTX_new -X509_STORE_CTX_purpose_inherit X509_STORE_CTX_set0_crls X509_STORE_CTX_set0_param X509_STORE_CTX_set0_trusted_stack @@ -2795,9 +2805,11 @@ d2i_OCSP_ONEREQ d2i_OCSP_REQINFO d2i_OCSP_REQUEST d2i_OCSP_REQUEST_bio +d2i_OCSP_RESPBYTES d2i_OCSP_RESPDATA d2i_OCSP_RESPONSE d2i_OCSP_RESPONSE_bio +d2i_OCSP_REVOKEDINFO d2i_OCSP_SIGNATURE d2i_OCSP_SINGLERESP d2i_PKCS12 @@ -3062,9 +3074,11 @@ i2d_OCSP_ONEREQ i2d_OCSP_REQINFO i2d_OCSP_REQUEST i2d_OCSP_REQUEST_bio +i2d_OCSP_RESPBYTES i2d_OCSP_RESPDATA i2d_OCSP_RESPONSE i2d_OCSP_RESPONSE_bio +i2d_OCSP_REVOKEDINFO i2d_OCSP_SIGNATURE i2d_OCSP_SINGLERESP i2d_PKCS12 From 4d34581197d8db7141589dd805291943387ea395 Mon Sep 17 00:00:00 2001 From: aws-lc-sys-bindings-generator Date: Wed, 28 Aug 2024 14:28:07 +0000 Subject: [PATCH 06/36] Symbols for powerpc-unknown-linux-gnu --- aws-lc-sys/symbols/powerpc-unknown-linux-gnu.txt | 16 +++++++++++++++- 1 file changed, 15 insertions(+), 1 deletion(-) diff --git a/aws-lc-sys/symbols/powerpc-unknown-linux-gnu.txt b/aws-lc-sys/symbols/powerpc-unknown-linux-gnu.txt index d5abf7f7671..273ceb00579 100644 --- a/aws-lc-sys/symbols/powerpc-unknown-linux-gnu.txt +++ b/aws-lc-sys/symbols/powerpc-unknown-linux-gnu.txt @@ -1502,6 +1502,8 @@ OBJ_obj2txt OBJ_sn2nid OBJ_txt2nid OBJ_txt2obj +OCSP_BASICRESP_add_ext +OCSP_BASICRESP_delete_ext OCSP_BASICRESP_free OCSP_BASICRESP_get_ext OCSP_BASICRESP_get_ext_by_NID @@ -1533,7 +1535,9 @@ OCSP_REQ_CTX_nbio OCSP_REQ_CTX_nbio_d2i OCSP_REQ_CTX_new OCSP_REQ_CTX_set1_req +OCSP_RESPBYTES_free OCSP_RESPBYTES_it +OCSP_RESPBYTES_new OCSP_RESPDATA_free OCSP_RESPDATA_it OCSP_RESPDATA_new @@ -1542,7 +1546,9 @@ OCSP_RESPONSE_free OCSP_RESPONSE_it OCSP_RESPONSE_new OCSP_RESPONSE_print +OCSP_REVOKEDINFO_free OCSP_REVOKEDINFO_it +OCSP_REVOKEDINFO_new OCSP_SIGNATURE_free OCSP_SIGNATURE_it OCSP_SIGNATURE_new @@ -1554,12 +1560,16 @@ OCSP_SINGLERESP_get_ext_count OCSP_SINGLERESP_it OCSP_SINGLERESP_new OCSP_basic_add1_cert +OCSP_basic_add1_nonce +OCSP_basic_add1_status +OCSP_basic_sign OCSP_basic_verify OCSP_cert_id_new OCSP_cert_status_str OCSP_cert_to_id OCSP_check_nonce OCSP_check_validity +OCSP_copy_nonce OCSP_crl_reason_str OCSP_id_cmp OCSP_id_get0_info @@ -1578,6 +1588,7 @@ OCSP_resp_count OCSP_resp_find OCSP_resp_find_status OCSP_resp_get0 +OCSP_response_create OCSP_response_get1_basic OCSP_response_status OCSP_response_status_str @@ -2314,7 +2325,6 @@ X509_STORE_CTX_get_ex_data X509_STORE_CTX_get_ex_new_index X509_STORE_CTX_init X509_STORE_CTX_new -X509_STORE_CTX_purpose_inherit X509_STORE_CTX_set0_crls X509_STORE_CTX_set0_param X509_STORE_CTX_set0_trusted_stack @@ -2698,9 +2708,11 @@ d2i_OCSP_ONEREQ d2i_OCSP_REQINFO d2i_OCSP_REQUEST d2i_OCSP_REQUEST_bio +d2i_OCSP_RESPBYTES d2i_OCSP_RESPDATA d2i_OCSP_RESPONSE d2i_OCSP_RESPONSE_bio +d2i_OCSP_REVOKEDINFO d2i_OCSP_SIGNATURE d2i_OCSP_SINGLERESP d2i_PKCS12 @@ -2938,9 +2950,11 @@ i2d_OCSP_ONEREQ i2d_OCSP_REQINFO i2d_OCSP_REQUEST i2d_OCSP_REQUEST_bio +i2d_OCSP_RESPBYTES i2d_OCSP_RESPDATA i2d_OCSP_RESPONSE i2d_OCSP_RESPONSE_bio +i2d_OCSP_REVOKEDINFO i2d_OCSP_SIGNATURE i2d_OCSP_SINGLERESP i2d_PKCS12 From 149e09e6aad4f779189bdfa7039c95946fdad03e Mon Sep 17 00:00:00 2001 From: aws-lc-sys-bindings-generator Date: Wed, 28 Aug 2024 14:28:23 +0000 Subject: [PATCH 07/36] Symbols for aarch64-unknown-linux-gnu --- aws-lc-sys/symbols/aarch64-unknown-linux-gnu.txt | 16 +++++++++++++++- 1 file changed, 15 insertions(+), 1 deletion(-) diff --git a/aws-lc-sys/symbols/aarch64-unknown-linux-gnu.txt b/aws-lc-sys/symbols/aarch64-unknown-linux-gnu.txt index 5ea58bc0251..f032d6ad4bd 100644 --- a/aws-lc-sys/symbols/aarch64-unknown-linux-gnu.txt +++ b/aws-lc-sys/symbols/aarch64-unknown-linux-gnu.txt @@ -1506,6 +1506,8 @@ OBJ_obj2txt OBJ_sn2nid OBJ_txt2nid OBJ_txt2obj +OCSP_BASICRESP_add_ext +OCSP_BASICRESP_delete_ext OCSP_BASICRESP_free OCSP_BASICRESP_get_ext OCSP_BASICRESP_get_ext_by_NID @@ -1537,7 +1539,9 @@ OCSP_REQ_CTX_nbio OCSP_REQ_CTX_nbio_d2i OCSP_REQ_CTX_new OCSP_REQ_CTX_set1_req +OCSP_RESPBYTES_free OCSP_RESPBYTES_it +OCSP_RESPBYTES_new OCSP_RESPDATA_free OCSP_RESPDATA_it OCSP_RESPDATA_new @@ -1546,7 +1550,9 @@ OCSP_RESPONSE_free OCSP_RESPONSE_it OCSP_RESPONSE_new OCSP_RESPONSE_print +OCSP_REVOKEDINFO_free OCSP_REVOKEDINFO_it +OCSP_REVOKEDINFO_new OCSP_SIGNATURE_free OCSP_SIGNATURE_it OCSP_SIGNATURE_new @@ -1558,12 +1564,16 @@ OCSP_SINGLERESP_get_ext_count OCSP_SINGLERESP_it OCSP_SINGLERESP_new OCSP_basic_add1_cert +OCSP_basic_add1_nonce +OCSP_basic_add1_status +OCSP_basic_sign OCSP_basic_verify OCSP_cert_id_new OCSP_cert_status_str OCSP_cert_to_id OCSP_check_nonce OCSP_check_validity +OCSP_copy_nonce OCSP_crl_reason_str OCSP_id_cmp OCSP_id_get0_info @@ -1582,6 +1592,7 @@ OCSP_resp_count OCSP_resp_find OCSP_resp_find_status OCSP_resp_get0 +OCSP_response_create OCSP_response_get1_basic OCSP_response_status OCSP_response_status_str @@ -2324,7 +2335,6 @@ X509_STORE_CTX_get_ex_data X509_STORE_CTX_get_ex_new_index X509_STORE_CTX_init X509_STORE_CTX_new -X509_STORE_CTX_purpose_inherit X509_STORE_CTX_set0_crls X509_STORE_CTX_set0_param X509_STORE_CTX_set0_trusted_stack @@ -2799,9 +2809,11 @@ d2i_OCSP_ONEREQ d2i_OCSP_REQINFO d2i_OCSP_REQUEST d2i_OCSP_REQUEST_bio +d2i_OCSP_RESPBYTES d2i_OCSP_RESPDATA d2i_OCSP_RESPONSE d2i_OCSP_RESPONSE_bio +d2i_OCSP_REVOKEDINFO d2i_OCSP_SIGNATURE d2i_OCSP_SINGLERESP d2i_PKCS12 @@ -3063,9 +3075,11 @@ i2d_OCSP_ONEREQ i2d_OCSP_REQINFO i2d_OCSP_REQUEST i2d_OCSP_REQUEST_bio +i2d_OCSP_RESPBYTES i2d_OCSP_RESPDATA i2d_OCSP_RESPONSE i2d_OCSP_RESPONSE_bio +i2d_OCSP_REVOKEDINFO i2d_OCSP_SIGNATURE i2d_OCSP_SINGLERESP i2d_PKCS12 From 6607ef83abbb08ec823db08cd4568af08faa4a3c Mon Sep 17 00:00:00 2001 From: aws-lc-sys-bindings-generator Date: Wed, 28 Aug 2024 14:28:26 +0000 Subject: [PATCH 08/36] Symbols for i686-unknown-linux-gnu --- aws-lc-sys/symbols/i686-unknown-linux-gnu.txt | 16 +++++++++++++++- 1 file changed, 15 insertions(+), 1 deletion(-) diff --git a/aws-lc-sys/symbols/i686-unknown-linux-gnu.txt b/aws-lc-sys/symbols/i686-unknown-linux-gnu.txt index fb1254a49f0..c0fe4da55e6 100644 --- a/aws-lc-sys/symbols/i686-unknown-linux-gnu.txt +++ b/aws-lc-sys/symbols/i686-unknown-linux-gnu.txt @@ -1504,6 +1504,8 @@ OBJ_obj2txt OBJ_sn2nid OBJ_txt2nid OBJ_txt2obj +OCSP_BASICRESP_add_ext +OCSP_BASICRESP_delete_ext OCSP_BASICRESP_free OCSP_BASICRESP_get_ext OCSP_BASICRESP_get_ext_by_NID @@ -1535,7 +1537,9 @@ OCSP_REQ_CTX_nbio OCSP_REQ_CTX_nbio_d2i OCSP_REQ_CTX_new OCSP_REQ_CTX_set1_req +OCSP_RESPBYTES_free OCSP_RESPBYTES_it +OCSP_RESPBYTES_new OCSP_RESPDATA_free OCSP_RESPDATA_it OCSP_RESPDATA_new @@ -1544,7 +1548,9 @@ OCSP_RESPONSE_free OCSP_RESPONSE_it OCSP_RESPONSE_new OCSP_RESPONSE_print +OCSP_REVOKEDINFO_free OCSP_REVOKEDINFO_it +OCSP_REVOKEDINFO_new OCSP_SIGNATURE_free OCSP_SIGNATURE_it OCSP_SIGNATURE_new @@ -1556,12 +1562,16 @@ OCSP_SINGLERESP_get_ext_count OCSP_SINGLERESP_it OCSP_SINGLERESP_new OCSP_basic_add1_cert +OCSP_basic_add1_nonce +OCSP_basic_add1_status +OCSP_basic_sign OCSP_basic_verify OCSP_cert_id_new OCSP_cert_status_str OCSP_cert_to_id OCSP_check_nonce OCSP_check_validity +OCSP_copy_nonce OCSP_crl_reason_str OCSP_id_cmp OCSP_id_get0_info @@ -1580,6 +1590,7 @@ OCSP_resp_count OCSP_resp_find OCSP_resp_find_status OCSP_resp_get0 +OCSP_response_create OCSP_response_get1_basic OCSP_response_status OCSP_response_status_str @@ -2318,7 +2329,6 @@ X509_STORE_CTX_get_ex_data X509_STORE_CTX_get_ex_new_index X509_STORE_CTX_init X509_STORE_CTX_new -X509_STORE_CTX_purpose_inherit X509_STORE_CTX_set0_crls X509_STORE_CTX_set0_param X509_STORE_CTX_set0_trusted_stack @@ -2735,9 +2745,11 @@ d2i_OCSP_ONEREQ d2i_OCSP_REQINFO d2i_OCSP_REQUEST d2i_OCSP_REQUEST_bio +d2i_OCSP_RESPBYTES d2i_OCSP_RESPDATA d2i_OCSP_RESPONSE d2i_OCSP_RESPONSE_bio +d2i_OCSP_REVOKEDINFO d2i_OCSP_SIGNATURE d2i_OCSP_SINGLERESP d2i_PKCS12 @@ -2981,9 +2993,11 @@ i2d_OCSP_ONEREQ i2d_OCSP_REQINFO i2d_OCSP_REQUEST i2d_OCSP_REQUEST_bio +i2d_OCSP_RESPBYTES i2d_OCSP_RESPDATA i2d_OCSP_RESPONSE i2d_OCSP_RESPONSE_bio +i2d_OCSP_REVOKEDINFO i2d_OCSP_SIGNATURE i2d_OCSP_SINGLERESP i2d_PKCS12 From 3141a0f46b82716b6c01ec9ca50320c105281de5 Mon Sep 17 00:00:00 2001 From: aws-lc-sys-bindings-generator Date: Wed, 28 Aug 2024 14:28:21 +0000 Subject: [PATCH 09/36] Symbols from x86_64-pc-windows-msvc --- aws-lc-sys/symbols/x86_64-pc-windows-msvc.txt | 16 +++++++++++++++- 1 file changed, 15 insertions(+), 1 deletion(-) diff --git a/aws-lc-sys/symbols/x86_64-pc-windows-msvc.txt b/aws-lc-sys/symbols/x86_64-pc-windows-msvc.txt index 553d669c3ee..df8fdeed01e 100644 --- a/aws-lc-sys/symbols/x86_64-pc-windows-msvc.txt +++ b/aws-lc-sys/symbols/x86_64-pc-windows-msvc.txt @@ -1505,6 +1505,8 @@ OBJ_obj2txt OBJ_sn2nid OBJ_txt2nid OBJ_txt2obj +OCSP_BASICRESP_add_ext +OCSP_BASICRESP_delete_ext OCSP_BASICRESP_free OCSP_BASICRESP_get_ext OCSP_BASICRESP_get_ext_by_NID @@ -1536,7 +1538,9 @@ OCSP_REQ_CTX_nbio OCSP_REQ_CTX_nbio_d2i OCSP_REQ_CTX_new OCSP_REQ_CTX_set1_req +OCSP_RESPBYTES_free OCSP_RESPBYTES_it +OCSP_RESPBYTES_new OCSP_RESPDATA_free OCSP_RESPDATA_it OCSP_RESPDATA_new @@ -1545,7 +1549,9 @@ OCSP_RESPONSE_free OCSP_RESPONSE_it OCSP_RESPONSE_new OCSP_RESPONSE_print +OCSP_REVOKEDINFO_free OCSP_REVOKEDINFO_it +OCSP_REVOKEDINFO_new OCSP_SIGNATURE_free OCSP_SIGNATURE_it OCSP_SIGNATURE_new @@ -1557,12 +1563,16 @@ OCSP_SINGLERESP_get_ext_count OCSP_SINGLERESP_it OCSP_SINGLERESP_new OCSP_basic_add1_cert +OCSP_basic_add1_nonce +OCSP_basic_add1_status +OCSP_basic_sign OCSP_basic_verify OCSP_cert_id_new OCSP_cert_status_str OCSP_cert_to_id OCSP_check_nonce OCSP_check_validity +OCSP_copy_nonce OCSP_crl_reason_str OCSP_id_cmp OCSP_id_get0_info @@ -1581,6 +1591,7 @@ OCSP_resp_count OCSP_resp_find OCSP_resp_find_status OCSP_resp_get0 +OCSP_response_create OCSP_response_get1_basic OCSP_response_status OCSP_response_status_str @@ -2319,7 +2330,6 @@ X509_STORE_CTX_get_ex_data X509_STORE_CTX_get_ex_new_index X509_STORE_CTX_init X509_STORE_CTX_new -X509_STORE_CTX_purpose_inherit X509_STORE_CTX_set0_crls X509_STORE_CTX_set0_param X509_STORE_CTX_set0_trusted_stack @@ -2793,9 +2803,11 @@ d2i_OCSP_ONEREQ d2i_OCSP_REQINFO d2i_OCSP_REQUEST d2i_OCSP_REQUEST_bio +d2i_OCSP_RESPBYTES d2i_OCSP_RESPDATA d2i_OCSP_RESPONSE d2i_OCSP_RESPONSE_bio +d2i_OCSP_REVOKEDINFO d2i_OCSP_SIGNATURE d2i_OCSP_SINGLERESP d2i_PKCS12 @@ -3057,9 +3069,11 @@ i2d_OCSP_ONEREQ i2d_OCSP_REQINFO i2d_OCSP_REQUEST i2d_OCSP_REQUEST_bio +i2d_OCSP_RESPBYTES i2d_OCSP_RESPDATA i2d_OCSP_RESPONSE i2d_OCSP_RESPONSE_bio +i2d_OCSP_REVOKEDINFO i2d_OCSP_SIGNATURE i2d_OCSP_SINGLERESP i2d_PKCS12 From 20453d958a244869ce8be3540b2a48654ee0fe16 Mon Sep 17 00:00:00 2001 From: aws-lc-sys-bindings-generator Date: Wed, 28 Aug 2024 14:28:35 +0000 Subject: [PATCH 10/36] Symbols for arm-unknown-linux-gnueabi --- aws-lc-sys/symbols/arm-unknown-linux-gnueabi.txt | 16 +++++++++++++++- 1 file changed, 15 insertions(+), 1 deletion(-) diff --git a/aws-lc-sys/symbols/arm-unknown-linux-gnueabi.txt b/aws-lc-sys/symbols/arm-unknown-linux-gnueabi.txt index d214c7b72eb..0c5fecd918f 100644 --- a/aws-lc-sys/symbols/arm-unknown-linux-gnueabi.txt +++ b/aws-lc-sys/symbols/arm-unknown-linux-gnueabi.txt @@ -1509,6 +1509,8 @@ OBJ_obj2txt OBJ_sn2nid OBJ_txt2nid OBJ_txt2obj +OCSP_BASICRESP_add_ext +OCSP_BASICRESP_delete_ext OCSP_BASICRESP_free OCSP_BASICRESP_get_ext OCSP_BASICRESP_get_ext_by_NID @@ -1540,7 +1542,9 @@ OCSP_REQ_CTX_nbio OCSP_REQ_CTX_nbio_d2i OCSP_REQ_CTX_new OCSP_REQ_CTX_set1_req +OCSP_RESPBYTES_free OCSP_RESPBYTES_it +OCSP_RESPBYTES_new OCSP_RESPDATA_free OCSP_RESPDATA_it OCSP_RESPDATA_new @@ -1549,7 +1553,9 @@ OCSP_RESPONSE_free OCSP_RESPONSE_it OCSP_RESPONSE_new OCSP_RESPONSE_print +OCSP_REVOKEDINFO_free OCSP_REVOKEDINFO_it +OCSP_REVOKEDINFO_new OCSP_SIGNATURE_free OCSP_SIGNATURE_it OCSP_SIGNATURE_new @@ -1561,12 +1567,16 @@ OCSP_SINGLERESP_get_ext_count OCSP_SINGLERESP_it OCSP_SINGLERESP_new OCSP_basic_add1_cert +OCSP_basic_add1_nonce +OCSP_basic_add1_status +OCSP_basic_sign OCSP_basic_verify OCSP_cert_id_new OCSP_cert_status_str OCSP_cert_to_id OCSP_check_nonce OCSP_check_validity +OCSP_copy_nonce OCSP_crl_reason_str OCSP_id_cmp OCSP_id_get0_info @@ -1585,6 +1595,7 @@ OCSP_resp_count OCSP_resp_find OCSP_resp_find_status OCSP_resp_get0 +OCSP_response_create OCSP_response_get1_basic OCSP_response_status OCSP_response_status_str @@ -2323,7 +2334,6 @@ X509_STORE_CTX_get_ex_data X509_STORE_CTX_get_ex_new_index X509_STORE_CTX_init X509_STORE_CTX_new -X509_STORE_CTX_purpose_inherit X509_STORE_CTX_set0_crls X509_STORE_CTX_set0_param X509_STORE_CTX_set0_trusted_stack @@ -2746,9 +2756,11 @@ d2i_OCSP_ONEREQ d2i_OCSP_REQINFO d2i_OCSP_REQUEST d2i_OCSP_REQUEST_bio +d2i_OCSP_RESPBYTES d2i_OCSP_RESPDATA d2i_OCSP_RESPONSE d2i_OCSP_RESPONSE_bio +d2i_OCSP_REVOKEDINFO d2i_OCSP_SIGNATURE d2i_OCSP_SINGLERESP d2i_PKCS12 @@ -2992,9 +3004,11 @@ i2d_OCSP_ONEREQ i2d_OCSP_REQINFO i2d_OCSP_REQUEST i2d_OCSP_REQUEST_bio +i2d_OCSP_RESPBYTES i2d_OCSP_RESPDATA i2d_OCSP_RESPONSE i2d_OCSP_RESPONSE_bio +i2d_OCSP_REVOKEDINFO i2d_OCSP_SIGNATURE i2d_OCSP_SINGLERESP i2d_PKCS12 From 8a120e6c5da06142dac582b05f640f84865e7ca0 Mon Sep 17 00:00:00 2001 From: aws-lc-sys-bindings-generator Date: Wed, 28 Aug 2024 14:29:08 +0000 Subject: [PATCH 11/36] Symbols for aarch64-unknown-linux-musl --- .../symbols/aarch64-unknown-linux-musl.txt | 16 +++++++++++++++- 1 file changed, 15 insertions(+), 1 deletion(-) diff --git a/aws-lc-sys/symbols/aarch64-unknown-linux-musl.txt b/aws-lc-sys/symbols/aarch64-unknown-linux-musl.txt index 5ea58bc0251..f032d6ad4bd 100644 --- a/aws-lc-sys/symbols/aarch64-unknown-linux-musl.txt +++ b/aws-lc-sys/symbols/aarch64-unknown-linux-musl.txt @@ -1506,6 +1506,8 @@ OBJ_obj2txt OBJ_sn2nid OBJ_txt2nid OBJ_txt2obj +OCSP_BASICRESP_add_ext +OCSP_BASICRESP_delete_ext OCSP_BASICRESP_free OCSP_BASICRESP_get_ext OCSP_BASICRESP_get_ext_by_NID @@ -1537,7 +1539,9 @@ OCSP_REQ_CTX_nbio OCSP_REQ_CTX_nbio_d2i OCSP_REQ_CTX_new OCSP_REQ_CTX_set1_req +OCSP_RESPBYTES_free OCSP_RESPBYTES_it +OCSP_RESPBYTES_new OCSP_RESPDATA_free OCSP_RESPDATA_it OCSP_RESPDATA_new @@ -1546,7 +1550,9 @@ OCSP_RESPONSE_free OCSP_RESPONSE_it OCSP_RESPONSE_new OCSP_RESPONSE_print +OCSP_REVOKEDINFO_free OCSP_REVOKEDINFO_it +OCSP_REVOKEDINFO_new OCSP_SIGNATURE_free OCSP_SIGNATURE_it OCSP_SIGNATURE_new @@ -1558,12 +1564,16 @@ OCSP_SINGLERESP_get_ext_count OCSP_SINGLERESP_it OCSP_SINGLERESP_new OCSP_basic_add1_cert +OCSP_basic_add1_nonce +OCSP_basic_add1_status +OCSP_basic_sign OCSP_basic_verify OCSP_cert_id_new OCSP_cert_status_str OCSP_cert_to_id OCSP_check_nonce OCSP_check_validity +OCSP_copy_nonce OCSP_crl_reason_str OCSP_id_cmp OCSP_id_get0_info @@ -1582,6 +1592,7 @@ OCSP_resp_count OCSP_resp_find OCSP_resp_find_status OCSP_resp_get0 +OCSP_response_create OCSP_response_get1_basic OCSP_response_status OCSP_response_status_str @@ -2324,7 +2335,6 @@ X509_STORE_CTX_get_ex_data X509_STORE_CTX_get_ex_new_index X509_STORE_CTX_init X509_STORE_CTX_new -X509_STORE_CTX_purpose_inherit X509_STORE_CTX_set0_crls X509_STORE_CTX_set0_param X509_STORE_CTX_set0_trusted_stack @@ -2799,9 +2809,11 @@ d2i_OCSP_ONEREQ d2i_OCSP_REQINFO d2i_OCSP_REQUEST d2i_OCSP_REQUEST_bio +d2i_OCSP_RESPBYTES d2i_OCSP_RESPDATA d2i_OCSP_RESPONSE d2i_OCSP_RESPONSE_bio +d2i_OCSP_REVOKEDINFO d2i_OCSP_SIGNATURE d2i_OCSP_SINGLERESP d2i_PKCS12 @@ -3063,9 +3075,11 @@ i2d_OCSP_ONEREQ i2d_OCSP_REQINFO i2d_OCSP_REQUEST i2d_OCSP_REQUEST_bio +i2d_OCSP_RESPBYTES i2d_OCSP_RESPDATA i2d_OCSP_RESPONSE i2d_OCSP_RESPONSE_bio +i2d_OCSP_REVOKEDINFO i2d_OCSP_SIGNATURE i2d_OCSP_SINGLERESP i2d_PKCS12 From 05d98036aab9e4239d534346e1b2ba1512a447e8 Mon Sep 17 00:00:00 2001 From: aws-lc-sys-bindings-generator Date: Wed, 28 Aug 2024 14:29:08 +0000 Subject: [PATCH 12/36] Symbols from i686-pc-windows-msvc --- aws-lc-sys/symbols/i686-pc-windows-msvc.txt | 16 +++++++++++++++- 1 file changed, 15 insertions(+), 1 deletion(-) diff --git a/aws-lc-sys/symbols/i686-pc-windows-msvc.txt b/aws-lc-sys/symbols/i686-pc-windows-msvc.txt index 77d7f7c0715..99997657580 100644 --- a/aws-lc-sys/symbols/i686-pc-windows-msvc.txt +++ b/aws-lc-sys/symbols/i686-pc-windows-msvc.txt @@ -1500,6 +1500,8 @@ OBJ_obj2txt OBJ_sn2nid OBJ_txt2nid OBJ_txt2obj +OCSP_BASICRESP_add_ext +OCSP_BASICRESP_delete_ext OCSP_BASICRESP_free OCSP_BASICRESP_get_ext OCSP_BASICRESP_get_ext_by_NID @@ -1531,7 +1533,9 @@ OCSP_REQ_CTX_nbio OCSP_REQ_CTX_nbio_d2i OCSP_REQ_CTX_new OCSP_REQ_CTX_set1_req +OCSP_RESPBYTES_free OCSP_RESPBYTES_it +OCSP_RESPBYTES_new OCSP_RESPDATA_free OCSP_RESPDATA_it OCSP_RESPDATA_new @@ -1540,7 +1544,9 @@ OCSP_RESPONSE_free OCSP_RESPONSE_it OCSP_RESPONSE_new OCSP_RESPONSE_print +OCSP_REVOKEDINFO_free OCSP_REVOKEDINFO_it +OCSP_REVOKEDINFO_new OCSP_SIGNATURE_free OCSP_SIGNATURE_it OCSP_SIGNATURE_new @@ -1552,12 +1558,16 @@ OCSP_SINGLERESP_get_ext_count OCSP_SINGLERESP_it OCSP_SINGLERESP_new OCSP_basic_add1_cert +OCSP_basic_add1_nonce +OCSP_basic_add1_status +OCSP_basic_sign OCSP_basic_verify OCSP_cert_id_new OCSP_cert_status_str OCSP_cert_to_id OCSP_check_nonce OCSP_check_validity +OCSP_copy_nonce OCSP_crl_reason_str OCSP_id_cmp OCSP_id_get0_info @@ -1576,6 +1586,7 @@ OCSP_resp_count OCSP_resp_find OCSP_resp_find_status OCSP_resp_get0 +OCSP_response_create OCSP_response_get1_basic OCSP_response_status OCSP_response_status_str @@ -2313,7 +2324,6 @@ X509_STORE_CTX_get_ex_data X509_STORE_CTX_get_ex_new_index X509_STORE_CTX_init X509_STORE_CTX_new -X509_STORE_CTX_purpose_inherit X509_STORE_CTX_set0_crls X509_STORE_CTX_set0_param X509_STORE_CTX_set0_trusted_stack @@ -2732,9 +2742,11 @@ d2i_OCSP_ONEREQ d2i_OCSP_REQINFO d2i_OCSP_REQUEST d2i_OCSP_REQUEST_bio +d2i_OCSP_RESPBYTES d2i_OCSP_RESPDATA d2i_OCSP_RESPONSE d2i_OCSP_RESPONSE_bio +d2i_OCSP_REVOKEDINFO d2i_OCSP_SIGNATURE d2i_OCSP_SINGLERESP d2i_PKCS12 @@ -2978,9 +2990,11 @@ i2d_OCSP_ONEREQ i2d_OCSP_REQINFO i2d_OCSP_REQUEST i2d_OCSP_REQUEST_bio +i2d_OCSP_RESPBYTES i2d_OCSP_RESPDATA i2d_OCSP_RESPONSE i2d_OCSP_RESPONSE_bio +i2d_OCSP_REVOKEDINFO i2d_OCSP_SIGNATURE i2d_OCSP_SINGLERESP i2d_PKCS12 From 97197be8fb3d2db7df7b6aa9afe148c9af83884d Mon Sep 17 00:00:00 2001 From: aws-lc-sys-bindings-generator Date: Wed, 28 Aug 2024 14:29:11 +0000 Subject: [PATCH 13/36] Symbols for powerpc64le-unknown-linux-gnu --- .../symbols/powerpc64le-unknown-linux-gnu.txt | 16 +++++++++++++++- 1 file changed, 15 insertions(+), 1 deletion(-) diff --git a/aws-lc-sys/symbols/powerpc64le-unknown-linux-gnu.txt b/aws-lc-sys/symbols/powerpc64le-unknown-linux-gnu.txt index b59786c6149..a00d3738198 100644 --- a/aws-lc-sys/symbols/powerpc64le-unknown-linux-gnu.txt +++ b/aws-lc-sys/symbols/powerpc64le-unknown-linux-gnu.txt @@ -1504,6 +1504,8 @@ OBJ_obj2txt OBJ_sn2nid OBJ_txt2nid OBJ_txt2obj +OCSP_BASICRESP_add_ext +OCSP_BASICRESP_delete_ext OCSP_BASICRESP_free OCSP_BASICRESP_get_ext OCSP_BASICRESP_get_ext_by_NID @@ -1535,7 +1537,9 @@ OCSP_REQ_CTX_nbio OCSP_REQ_CTX_nbio_d2i OCSP_REQ_CTX_new OCSP_REQ_CTX_set1_req +OCSP_RESPBYTES_free OCSP_RESPBYTES_it +OCSP_RESPBYTES_new OCSP_RESPDATA_free OCSP_RESPDATA_it OCSP_RESPDATA_new @@ -1544,7 +1548,9 @@ OCSP_RESPONSE_free OCSP_RESPONSE_it OCSP_RESPONSE_new OCSP_RESPONSE_print +OCSP_REVOKEDINFO_free OCSP_REVOKEDINFO_it +OCSP_REVOKEDINFO_new OCSP_SIGNATURE_free OCSP_SIGNATURE_it OCSP_SIGNATURE_new @@ -1556,12 +1562,16 @@ OCSP_SINGLERESP_get_ext_count OCSP_SINGLERESP_it OCSP_SINGLERESP_new OCSP_basic_add1_cert +OCSP_basic_add1_nonce +OCSP_basic_add1_status +OCSP_basic_sign OCSP_basic_verify OCSP_cert_id_new OCSP_cert_status_str OCSP_cert_to_id OCSP_check_nonce OCSP_check_validity +OCSP_copy_nonce OCSP_crl_reason_str OCSP_id_cmp OCSP_id_get0_info @@ -1580,6 +1590,7 @@ OCSP_resp_count OCSP_resp_find OCSP_resp_find_status OCSP_resp_get0 +OCSP_response_create OCSP_response_get1_basic OCSP_response_status OCSP_response_status_str @@ -2318,7 +2329,6 @@ X509_STORE_CTX_get_ex_data X509_STORE_CTX_get_ex_new_index X509_STORE_CTX_init X509_STORE_CTX_new -X509_STORE_CTX_purpose_inherit X509_STORE_CTX_set0_crls X509_STORE_CTX_set0_param X509_STORE_CTX_set0_trusted_stack @@ -2815,9 +2825,11 @@ d2i_OCSP_ONEREQ d2i_OCSP_REQINFO d2i_OCSP_REQUEST d2i_OCSP_REQUEST_bio +d2i_OCSP_RESPBYTES d2i_OCSP_RESPDATA d2i_OCSP_RESPONSE d2i_OCSP_RESPONSE_bio +d2i_OCSP_REVOKEDINFO d2i_OCSP_SIGNATURE d2i_OCSP_SINGLERESP d2i_PKCS12 @@ -3058,9 +3070,11 @@ i2d_OCSP_ONEREQ i2d_OCSP_REQINFO i2d_OCSP_REQUEST i2d_OCSP_REQUEST_bio +i2d_OCSP_RESPBYTES i2d_OCSP_RESPDATA i2d_OCSP_RESPONSE i2d_OCSP_RESPONSE_bio +i2d_OCSP_REVOKEDINFO i2d_OCSP_SIGNATURE i2d_OCSP_SINGLERESP i2d_PKCS12 From 389e2136ff16878a531bd00a0273901e06b17e51 Mon Sep 17 00:00:00 2001 From: aws-lc-sys-bindings-generator Date: Wed, 28 Aug 2024 14:29:33 +0000 Subject: [PATCH 14/36] Symbols for x86_64-unknown-linux-musl --- aws-lc-sys/symbols/x86_64-unknown-linux-musl.txt | 16 +++++++++++++++- 1 file changed, 15 insertions(+), 1 deletion(-) diff --git a/aws-lc-sys/symbols/x86_64-unknown-linux-musl.txt b/aws-lc-sys/symbols/x86_64-unknown-linux-musl.txt index 02a8b9e8a50..aca45c772c7 100644 --- a/aws-lc-sys/symbols/x86_64-unknown-linux-musl.txt +++ b/aws-lc-sys/symbols/x86_64-unknown-linux-musl.txt @@ -1510,6 +1510,8 @@ OBJ_obj2txt OBJ_sn2nid OBJ_txt2nid OBJ_txt2obj +OCSP_BASICRESP_add_ext +OCSP_BASICRESP_delete_ext OCSP_BASICRESP_free OCSP_BASICRESP_get_ext OCSP_BASICRESP_get_ext_by_NID @@ -1541,7 +1543,9 @@ OCSP_REQ_CTX_nbio OCSP_REQ_CTX_nbio_d2i OCSP_REQ_CTX_new OCSP_REQ_CTX_set1_req +OCSP_RESPBYTES_free OCSP_RESPBYTES_it +OCSP_RESPBYTES_new OCSP_RESPDATA_free OCSP_RESPDATA_it OCSP_RESPDATA_new @@ -1550,7 +1554,9 @@ OCSP_RESPONSE_free OCSP_RESPONSE_it OCSP_RESPONSE_new OCSP_RESPONSE_print +OCSP_REVOKEDINFO_free OCSP_REVOKEDINFO_it +OCSP_REVOKEDINFO_new OCSP_SIGNATURE_free OCSP_SIGNATURE_it OCSP_SIGNATURE_new @@ -1562,12 +1568,16 @@ OCSP_SINGLERESP_get_ext_count OCSP_SINGLERESP_it OCSP_SINGLERESP_new OCSP_basic_add1_cert +OCSP_basic_add1_nonce +OCSP_basic_add1_status +OCSP_basic_sign OCSP_basic_verify OCSP_cert_id_new OCSP_cert_status_str OCSP_cert_to_id OCSP_check_nonce OCSP_check_validity +OCSP_copy_nonce OCSP_crl_reason_str OCSP_id_cmp OCSP_id_get0_info @@ -1586,6 +1596,7 @@ OCSP_resp_count OCSP_resp_find OCSP_resp_find_status OCSP_resp_get0 +OCSP_response_create OCSP_response_get1_basic OCSP_response_status OCSP_response_status_str @@ -2325,7 +2336,6 @@ X509_STORE_CTX_get_ex_data X509_STORE_CTX_get_ex_new_index X509_STORE_CTX_init X509_STORE_CTX_new -X509_STORE_CTX_purpose_inherit X509_STORE_CTX_set0_crls X509_STORE_CTX_set0_param X509_STORE_CTX_set0_trusted_stack @@ -2796,9 +2806,11 @@ d2i_OCSP_ONEREQ d2i_OCSP_REQINFO d2i_OCSP_REQUEST d2i_OCSP_REQUEST_bio +d2i_OCSP_RESPBYTES d2i_OCSP_RESPDATA d2i_OCSP_RESPONSE d2i_OCSP_RESPONSE_bio +d2i_OCSP_REVOKEDINFO d2i_OCSP_SIGNATURE d2i_OCSP_SINGLERESP d2i_PKCS12 @@ -3063,9 +3075,11 @@ i2d_OCSP_ONEREQ i2d_OCSP_REQINFO i2d_OCSP_REQUEST i2d_OCSP_REQUEST_bio +i2d_OCSP_RESPBYTES i2d_OCSP_RESPDATA i2d_OCSP_RESPONSE i2d_OCSP_RESPONSE_bio +i2d_OCSP_REVOKEDINFO i2d_OCSP_SIGNATURE i2d_OCSP_SINGLERESP i2d_PKCS12 From f8be186ffd9b4f39309f8763682fec40c3c33f91 Mon Sep 17 00:00:00 2001 From: aws-lc-sys-bindings-generator Date: Wed, 28 Aug 2024 14:29:58 +0000 Subject: [PATCH 15/36] Symbols for armv7-unknown-linux-gnueabihf --- .../symbols/armv7-unknown-linux-gnueabihf.txt | 16 +++++++++++++++- 1 file changed, 15 insertions(+), 1 deletion(-) diff --git a/aws-lc-sys/symbols/armv7-unknown-linux-gnueabihf.txt b/aws-lc-sys/symbols/armv7-unknown-linux-gnueabihf.txt index d214c7b72eb..0c5fecd918f 100644 --- a/aws-lc-sys/symbols/armv7-unknown-linux-gnueabihf.txt +++ b/aws-lc-sys/symbols/armv7-unknown-linux-gnueabihf.txt @@ -1509,6 +1509,8 @@ OBJ_obj2txt OBJ_sn2nid OBJ_txt2nid OBJ_txt2obj +OCSP_BASICRESP_add_ext +OCSP_BASICRESP_delete_ext OCSP_BASICRESP_free OCSP_BASICRESP_get_ext OCSP_BASICRESP_get_ext_by_NID @@ -1540,7 +1542,9 @@ OCSP_REQ_CTX_nbio OCSP_REQ_CTX_nbio_d2i OCSP_REQ_CTX_new OCSP_REQ_CTX_set1_req +OCSP_RESPBYTES_free OCSP_RESPBYTES_it +OCSP_RESPBYTES_new OCSP_RESPDATA_free OCSP_RESPDATA_it OCSP_RESPDATA_new @@ -1549,7 +1553,9 @@ OCSP_RESPONSE_free OCSP_RESPONSE_it OCSP_RESPONSE_new OCSP_RESPONSE_print +OCSP_REVOKEDINFO_free OCSP_REVOKEDINFO_it +OCSP_REVOKEDINFO_new OCSP_SIGNATURE_free OCSP_SIGNATURE_it OCSP_SIGNATURE_new @@ -1561,12 +1567,16 @@ OCSP_SINGLERESP_get_ext_count OCSP_SINGLERESP_it OCSP_SINGLERESP_new OCSP_basic_add1_cert +OCSP_basic_add1_nonce +OCSP_basic_add1_status +OCSP_basic_sign OCSP_basic_verify OCSP_cert_id_new OCSP_cert_status_str OCSP_cert_to_id OCSP_check_nonce OCSP_check_validity +OCSP_copy_nonce OCSP_crl_reason_str OCSP_id_cmp OCSP_id_get0_info @@ -1585,6 +1595,7 @@ OCSP_resp_count OCSP_resp_find OCSP_resp_find_status OCSP_resp_get0 +OCSP_response_create OCSP_response_get1_basic OCSP_response_status OCSP_response_status_str @@ -2323,7 +2334,6 @@ X509_STORE_CTX_get_ex_data X509_STORE_CTX_get_ex_new_index X509_STORE_CTX_init X509_STORE_CTX_new -X509_STORE_CTX_purpose_inherit X509_STORE_CTX_set0_crls X509_STORE_CTX_set0_param X509_STORE_CTX_set0_trusted_stack @@ -2746,9 +2756,11 @@ d2i_OCSP_ONEREQ d2i_OCSP_REQINFO d2i_OCSP_REQUEST d2i_OCSP_REQUEST_bio +d2i_OCSP_RESPBYTES d2i_OCSP_RESPDATA d2i_OCSP_RESPONSE d2i_OCSP_RESPONSE_bio +d2i_OCSP_REVOKEDINFO d2i_OCSP_SIGNATURE d2i_OCSP_SINGLERESP d2i_PKCS12 @@ -2992,9 +3004,11 @@ i2d_OCSP_ONEREQ i2d_OCSP_REQINFO i2d_OCSP_REQUEST i2d_OCSP_REQUEST_bio +i2d_OCSP_RESPBYTES i2d_OCSP_RESPDATA i2d_OCSP_RESPONSE i2d_OCSP_RESPONSE_bio +i2d_OCSP_REVOKEDINFO i2d_OCSP_SIGNATURE i2d_OCSP_SINGLERESP i2d_PKCS12 From 387f3517ab4ccf0afa0d529a7f57dd9b1a5cbdd2 Mon Sep 17 00:00:00 2001 From: aws-lc-sys-bindings-generator Date: Wed, 28 Aug 2024 14:33:20 +0000 Subject: [PATCH 16/36] Symbols from aarch64-pc-windows-msvc --- aws-lc-sys/symbols/aarch64-pc-windows-msvc.txt | 16 +++++++++++++++- 1 file changed, 15 insertions(+), 1 deletion(-) diff --git a/aws-lc-sys/symbols/aarch64-pc-windows-msvc.txt b/aws-lc-sys/symbols/aarch64-pc-windows-msvc.txt index 27ee8ce4f06..51bcb762b26 100644 --- a/aws-lc-sys/symbols/aarch64-pc-windows-msvc.txt +++ b/aws-lc-sys/symbols/aarch64-pc-windows-msvc.txt @@ -1502,6 +1502,8 @@ OBJ_obj2txt OBJ_sn2nid OBJ_txt2nid OBJ_txt2obj +OCSP_BASICRESP_add_ext +OCSP_BASICRESP_delete_ext OCSP_BASICRESP_free OCSP_BASICRESP_get_ext OCSP_BASICRESP_get_ext_by_NID @@ -1533,7 +1535,9 @@ OCSP_REQ_CTX_nbio OCSP_REQ_CTX_nbio_d2i OCSP_REQ_CTX_new OCSP_REQ_CTX_set1_req +OCSP_RESPBYTES_free OCSP_RESPBYTES_it +OCSP_RESPBYTES_new OCSP_RESPDATA_free OCSP_RESPDATA_it OCSP_RESPDATA_new @@ -1542,7 +1546,9 @@ OCSP_RESPONSE_free OCSP_RESPONSE_it OCSP_RESPONSE_new OCSP_RESPONSE_print +OCSP_REVOKEDINFO_free OCSP_REVOKEDINFO_it +OCSP_REVOKEDINFO_new OCSP_SIGNATURE_free OCSP_SIGNATURE_it OCSP_SIGNATURE_new @@ -1554,12 +1560,16 @@ OCSP_SINGLERESP_get_ext_count OCSP_SINGLERESP_it OCSP_SINGLERESP_new OCSP_basic_add1_cert +OCSP_basic_add1_nonce +OCSP_basic_add1_status +OCSP_basic_sign OCSP_basic_verify OCSP_cert_id_new OCSP_cert_status_str OCSP_cert_to_id OCSP_check_nonce OCSP_check_validity +OCSP_copy_nonce OCSP_crl_reason_str OCSP_id_cmp OCSP_id_get0_info @@ -1578,6 +1588,7 @@ OCSP_resp_count OCSP_resp_find OCSP_resp_find_status OCSP_resp_get0 +OCSP_response_create OCSP_response_get1_basic OCSP_response_status OCSP_response_status_str @@ -2319,7 +2330,6 @@ X509_STORE_CTX_get_ex_data X509_STORE_CTX_get_ex_new_index X509_STORE_CTX_init X509_STORE_CTX_new -X509_STORE_CTX_purpose_inherit X509_STORE_CTX_set0_crls X509_STORE_CTX_set0_param X509_STORE_CTX_set0_trusted_stack @@ -2796,9 +2806,11 @@ d2i_OCSP_ONEREQ d2i_OCSP_REQINFO d2i_OCSP_REQUEST d2i_OCSP_REQUEST_bio +d2i_OCSP_RESPBYTES d2i_OCSP_RESPDATA d2i_OCSP_RESPONSE d2i_OCSP_RESPONSE_bio +d2i_OCSP_REVOKEDINFO d2i_OCSP_SIGNATURE d2i_OCSP_SINGLERESP d2i_PKCS12 @@ -3057,9 +3069,11 @@ i2d_OCSP_ONEREQ i2d_OCSP_REQINFO i2d_OCSP_REQUEST i2d_OCSP_REQUEST_bio +i2d_OCSP_RESPBYTES i2d_OCSP_RESPDATA i2d_OCSP_RESPONSE i2d_OCSP_RESPONSE_bio +i2d_OCSP_REVOKEDINFO i2d_OCSP_SIGNATURE i2d_OCSP_SINGLERESP i2d_PKCS12 From 5b3412dcf8ad747b9b7768beb2713571d247c3e7 Mon Sep 17 00:00:00 2001 From: aws-lc-sys-bindings-generator Date: Wed, 28 Aug 2024 14:36:18 +0000 Subject: [PATCH 17/36] Generated headers --- aws-lc-sys/Cargo.toml | 2 +- .../openssl/boringssl_prefix_symbols.h | 16 +++++++++- .../openssl/boringssl_prefix_symbols_asm.h | 16 +++++++++- .../openssl/boringssl_prefix_symbols_nasm.inc | 32 +++++++++++++++++-- 4 files changed, 61 insertions(+), 5 deletions(-) diff --git a/aws-lc-sys/Cargo.toml b/aws-lc-sys/Cargo.toml index 02b81836202..8e40d203f64 100644 --- a/aws-lc-sys/Cargo.toml +++ b/aws-lc-sys/Cargo.toml @@ -67,4 +67,4 @@ libc = "0.2.121" paste = "1.0.11" [package.metadata.aws-lc-sys] -commit-hash = "05747780676652f41d0b9c570a495e4bb6608560" +commit-hash = "2f1879759b2e0fc70592665bdf10087b64f44b7d" diff --git a/aws-lc-sys/generated-include/openssl/boringssl_prefix_symbols.h b/aws-lc-sys/generated-include/openssl/boringssl_prefix_symbols.h index a1bbd8c6182..64ae3c92c02 100644 --- a/aws-lc-sys/generated-include/openssl/boringssl_prefix_symbols.h +++ b/aws-lc-sys/generated-include/openssl/boringssl_prefix_symbols.h @@ -1547,6 +1547,8 @@ #define OBJ_sn2nid BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, OBJ_sn2nid) #define OBJ_txt2nid BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, OBJ_txt2nid) #define OBJ_txt2obj BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, OBJ_txt2obj) +#define OCSP_BASICRESP_add_ext BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, OCSP_BASICRESP_add_ext) +#define OCSP_BASICRESP_delete_ext BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, OCSP_BASICRESP_delete_ext) #define OCSP_BASICRESP_free BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, OCSP_BASICRESP_free) #define OCSP_BASICRESP_get_ext BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, OCSP_BASICRESP_get_ext) #define OCSP_BASICRESP_get_ext_by_NID BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, OCSP_BASICRESP_get_ext_by_NID) @@ -1578,7 +1580,9 @@ #define OCSP_REQ_CTX_nbio_d2i BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, OCSP_REQ_CTX_nbio_d2i) #define OCSP_REQ_CTX_new BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, OCSP_REQ_CTX_new) #define OCSP_REQ_CTX_set1_req BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, OCSP_REQ_CTX_set1_req) +#define OCSP_RESPBYTES_free BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, OCSP_RESPBYTES_free) #define OCSP_RESPBYTES_it BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, OCSP_RESPBYTES_it) +#define OCSP_RESPBYTES_new BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, OCSP_RESPBYTES_new) #define OCSP_RESPDATA_free BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, OCSP_RESPDATA_free) #define OCSP_RESPDATA_it BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, OCSP_RESPDATA_it) #define OCSP_RESPDATA_new BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, OCSP_RESPDATA_new) @@ -1587,7 +1591,9 @@ #define OCSP_RESPONSE_it BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, OCSP_RESPONSE_it) #define OCSP_RESPONSE_new BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, OCSP_RESPONSE_new) #define OCSP_RESPONSE_print BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, OCSP_RESPONSE_print) +#define OCSP_REVOKEDINFO_free BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, OCSP_REVOKEDINFO_free) #define OCSP_REVOKEDINFO_it BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, OCSP_REVOKEDINFO_it) +#define OCSP_REVOKEDINFO_new BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, OCSP_REVOKEDINFO_new) #define OCSP_SIGNATURE_free BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, OCSP_SIGNATURE_free) #define OCSP_SIGNATURE_it BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, OCSP_SIGNATURE_it) #define OCSP_SIGNATURE_new BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, OCSP_SIGNATURE_new) @@ -1599,12 +1605,16 @@ #define OCSP_SINGLERESP_it BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, OCSP_SINGLERESP_it) #define OCSP_SINGLERESP_new BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, OCSP_SINGLERESP_new) #define OCSP_basic_add1_cert BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, OCSP_basic_add1_cert) +#define OCSP_basic_add1_nonce BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, OCSP_basic_add1_nonce) +#define OCSP_basic_add1_status BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, OCSP_basic_add1_status) +#define OCSP_basic_sign BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, OCSP_basic_sign) #define OCSP_basic_verify BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, OCSP_basic_verify) #define OCSP_cert_id_new BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, OCSP_cert_id_new) #define OCSP_cert_status_str BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, OCSP_cert_status_str) #define OCSP_cert_to_id BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, OCSP_cert_to_id) #define OCSP_check_nonce BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, OCSP_check_nonce) #define OCSP_check_validity BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, OCSP_check_validity) +#define OCSP_copy_nonce BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, OCSP_copy_nonce) #define OCSP_crl_reason_str BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, OCSP_crl_reason_str) #define OCSP_id_cmp BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, OCSP_id_cmp) #define OCSP_id_get0_info BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, OCSP_id_get0_info) @@ -1623,6 +1633,7 @@ #define OCSP_resp_find BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, OCSP_resp_find) #define OCSP_resp_find_status BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, OCSP_resp_find_status) #define OCSP_resp_get0 BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, OCSP_resp_get0) +#define OCSP_response_create BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, OCSP_response_create) #define OCSP_response_get1_basic BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, OCSP_response_get1_basic) #define OCSP_response_status BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, OCSP_response_status) #define OCSP_response_status_str BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, OCSP_response_status_str) @@ -2368,7 +2379,6 @@ #define X509_STORE_CTX_get_ex_new_index BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, X509_STORE_CTX_get_ex_new_index) #define X509_STORE_CTX_init BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, X509_STORE_CTX_init) #define X509_STORE_CTX_new BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, X509_STORE_CTX_new) -#define X509_STORE_CTX_purpose_inherit BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, X509_STORE_CTX_purpose_inherit) #define X509_STORE_CTX_set0_crls BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, X509_STORE_CTX_set0_crls) #define X509_STORE_CTX_set0_param BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, X509_STORE_CTX_set0_param) #define X509_STORE_CTX_set0_trusted_stack BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, X509_STORE_CTX_set0_trusted_stack) @@ -3029,9 +3039,11 @@ #define d2i_OCSP_REQINFO BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, d2i_OCSP_REQINFO) #define d2i_OCSP_REQUEST BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, d2i_OCSP_REQUEST) #define d2i_OCSP_REQUEST_bio BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, d2i_OCSP_REQUEST_bio) +#define d2i_OCSP_RESPBYTES BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, d2i_OCSP_RESPBYTES) #define d2i_OCSP_RESPDATA BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, d2i_OCSP_RESPDATA) #define d2i_OCSP_RESPONSE BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, d2i_OCSP_RESPONSE) #define d2i_OCSP_RESPONSE_bio BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, d2i_OCSP_RESPONSE_bio) +#define d2i_OCSP_REVOKEDINFO BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, d2i_OCSP_REVOKEDINFO) #define d2i_OCSP_SIGNATURE BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, d2i_OCSP_SIGNATURE) #define d2i_OCSP_SINGLERESP BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, d2i_OCSP_SINGLERESP) #define d2i_PKCS12 BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, d2i_PKCS12) @@ -3310,9 +3322,11 @@ #define i2d_OCSP_REQINFO BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, i2d_OCSP_REQINFO) #define i2d_OCSP_REQUEST BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, i2d_OCSP_REQUEST) #define i2d_OCSP_REQUEST_bio BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, i2d_OCSP_REQUEST_bio) +#define i2d_OCSP_RESPBYTES BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, i2d_OCSP_RESPBYTES) #define i2d_OCSP_RESPDATA BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, i2d_OCSP_RESPDATA) #define i2d_OCSP_RESPONSE BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, i2d_OCSP_RESPONSE) #define i2d_OCSP_RESPONSE_bio BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, i2d_OCSP_RESPONSE_bio) +#define i2d_OCSP_REVOKEDINFO BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, i2d_OCSP_REVOKEDINFO) #define i2d_OCSP_SIGNATURE BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, i2d_OCSP_SIGNATURE) #define i2d_OCSP_SINGLERESP BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, i2d_OCSP_SINGLERESP) #define i2d_PKCS12 BORINGSSL_ADD_PREFIX(BORINGSSL_PREFIX, i2d_PKCS12) diff --git a/aws-lc-sys/generated-include/openssl/boringssl_prefix_symbols_asm.h b/aws-lc-sys/generated-include/openssl/boringssl_prefix_symbols_asm.h index a178ffa0a06..94828859a45 100644 --- a/aws-lc-sys/generated-include/openssl/boringssl_prefix_symbols_asm.h +++ b/aws-lc-sys/generated-include/openssl/boringssl_prefix_symbols_asm.h @@ -1551,6 +1551,8 @@ #define _OBJ_sn2nid BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, OBJ_sn2nid) #define _OBJ_txt2nid BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, OBJ_txt2nid) #define _OBJ_txt2obj BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, OBJ_txt2obj) +#define _OCSP_BASICRESP_add_ext BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, OCSP_BASICRESP_add_ext) +#define _OCSP_BASICRESP_delete_ext BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, OCSP_BASICRESP_delete_ext) #define _OCSP_BASICRESP_free BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, OCSP_BASICRESP_free) #define _OCSP_BASICRESP_get_ext BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, OCSP_BASICRESP_get_ext) #define _OCSP_BASICRESP_get_ext_by_NID BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, OCSP_BASICRESP_get_ext_by_NID) @@ -1582,7 +1584,9 @@ #define _OCSP_REQ_CTX_nbio_d2i BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, OCSP_REQ_CTX_nbio_d2i) #define _OCSP_REQ_CTX_new BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, OCSP_REQ_CTX_new) #define _OCSP_REQ_CTX_set1_req BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, OCSP_REQ_CTX_set1_req) +#define _OCSP_RESPBYTES_free BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, OCSP_RESPBYTES_free) #define _OCSP_RESPBYTES_it BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, OCSP_RESPBYTES_it) +#define _OCSP_RESPBYTES_new BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, OCSP_RESPBYTES_new) #define _OCSP_RESPDATA_free BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, OCSP_RESPDATA_free) #define _OCSP_RESPDATA_it BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, OCSP_RESPDATA_it) #define _OCSP_RESPDATA_new BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, OCSP_RESPDATA_new) @@ -1591,7 +1595,9 @@ #define _OCSP_RESPONSE_it BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, OCSP_RESPONSE_it) #define _OCSP_RESPONSE_new BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, OCSP_RESPONSE_new) #define _OCSP_RESPONSE_print BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, OCSP_RESPONSE_print) +#define _OCSP_REVOKEDINFO_free BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, OCSP_REVOKEDINFO_free) #define _OCSP_REVOKEDINFO_it BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, OCSP_REVOKEDINFO_it) +#define _OCSP_REVOKEDINFO_new BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, OCSP_REVOKEDINFO_new) #define _OCSP_SIGNATURE_free BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, OCSP_SIGNATURE_free) #define _OCSP_SIGNATURE_it BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, OCSP_SIGNATURE_it) #define _OCSP_SIGNATURE_new BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, OCSP_SIGNATURE_new) @@ -1603,12 +1609,16 @@ #define _OCSP_SINGLERESP_it BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, OCSP_SINGLERESP_it) #define _OCSP_SINGLERESP_new BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, OCSP_SINGLERESP_new) #define _OCSP_basic_add1_cert BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, OCSP_basic_add1_cert) +#define _OCSP_basic_add1_nonce BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, OCSP_basic_add1_nonce) +#define _OCSP_basic_add1_status BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, OCSP_basic_add1_status) +#define _OCSP_basic_sign BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, OCSP_basic_sign) #define _OCSP_basic_verify BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, OCSP_basic_verify) #define _OCSP_cert_id_new BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, OCSP_cert_id_new) #define _OCSP_cert_status_str BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, OCSP_cert_status_str) #define _OCSP_cert_to_id BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, OCSP_cert_to_id) #define _OCSP_check_nonce BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, OCSP_check_nonce) #define _OCSP_check_validity BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, OCSP_check_validity) +#define _OCSP_copy_nonce BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, OCSP_copy_nonce) #define _OCSP_crl_reason_str BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, OCSP_crl_reason_str) #define _OCSP_id_cmp BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, OCSP_id_cmp) #define _OCSP_id_get0_info BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, OCSP_id_get0_info) @@ -1627,6 +1637,7 @@ #define _OCSP_resp_find BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, OCSP_resp_find) #define _OCSP_resp_find_status BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, OCSP_resp_find_status) #define _OCSP_resp_get0 BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, OCSP_resp_get0) +#define _OCSP_response_create BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, OCSP_response_create) #define _OCSP_response_get1_basic BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, OCSP_response_get1_basic) #define _OCSP_response_status BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, OCSP_response_status) #define _OCSP_response_status_str BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, OCSP_response_status_str) @@ -2372,7 +2383,6 @@ #define _X509_STORE_CTX_get_ex_new_index BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, X509_STORE_CTX_get_ex_new_index) #define _X509_STORE_CTX_init BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, X509_STORE_CTX_init) #define _X509_STORE_CTX_new BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, X509_STORE_CTX_new) -#define _X509_STORE_CTX_purpose_inherit BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, X509_STORE_CTX_purpose_inherit) #define _X509_STORE_CTX_set0_crls BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, X509_STORE_CTX_set0_crls) #define _X509_STORE_CTX_set0_param BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, X509_STORE_CTX_set0_param) #define _X509_STORE_CTX_set0_trusted_stack BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, X509_STORE_CTX_set0_trusted_stack) @@ -3033,9 +3043,11 @@ #define _d2i_OCSP_REQINFO BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, d2i_OCSP_REQINFO) #define _d2i_OCSP_REQUEST BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, d2i_OCSP_REQUEST) #define _d2i_OCSP_REQUEST_bio BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, d2i_OCSP_REQUEST_bio) +#define _d2i_OCSP_RESPBYTES BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, d2i_OCSP_RESPBYTES) #define _d2i_OCSP_RESPDATA BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, d2i_OCSP_RESPDATA) #define _d2i_OCSP_RESPONSE BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, d2i_OCSP_RESPONSE) #define _d2i_OCSP_RESPONSE_bio BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, d2i_OCSP_RESPONSE_bio) +#define _d2i_OCSP_REVOKEDINFO BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, d2i_OCSP_REVOKEDINFO) #define _d2i_OCSP_SIGNATURE BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, d2i_OCSP_SIGNATURE) #define _d2i_OCSP_SINGLERESP BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, d2i_OCSP_SINGLERESP) #define _d2i_PKCS12 BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, d2i_PKCS12) @@ -3314,9 +3326,11 @@ #define _i2d_OCSP_REQINFO BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, i2d_OCSP_REQINFO) #define _i2d_OCSP_REQUEST BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, i2d_OCSP_REQUEST) #define _i2d_OCSP_REQUEST_bio BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, i2d_OCSP_REQUEST_bio) +#define _i2d_OCSP_RESPBYTES BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, i2d_OCSP_RESPBYTES) #define _i2d_OCSP_RESPDATA BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, i2d_OCSP_RESPDATA) #define _i2d_OCSP_RESPONSE BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, i2d_OCSP_RESPONSE) #define _i2d_OCSP_RESPONSE_bio BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, i2d_OCSP_RESPONSE_bio) +#define _i2d_OCSP_REVOKEDINFO BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, i2d_OCSP_REVOKEDINFO) #define _i2d_OCSP_SIGNATURE BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, i2d_OCSP_SIGNATURE) #define _i2d_OCSP_SINGLERESP BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, i2d_OCSP_SINGLERESP) #define _i2d_PKCS12 BORINGSSL_ADD_PREFIX_MAC_ASM(BORINGSSL_PREFIX, i2d_PKCS12) diff --git a/aws-lc-sys/generated-include/openssl/boringssl_prefix_symbols_nasm.inc b/aws-lc-sys/generated-include/openssl/boringssl_prefix_symbols_nasm.inc index 1bc656cd309..0843377129b 100644 --- a/aws-lc-sys/generated-include/openssl/boringssl_prefix_symbols_nasm.inc +++ b/aws-lc-sys/generated-include/openssl/boringssl_prefix_symbols_nasm.inc @@ -1544,6 +1544,8 @@ %xdefine _OBJ_sn2nid _ %+ BORINGSSL_PREFIX %+ _OBJ_sn2nid %xdefine _OBJ_txt2nid _ %+ BORINGSSL_PREFIX %+ _OBJ_txt2nid %xdefine _OBJ_txt2obj _ %+ BORINGSSL_PREFIX %+ _OBJ_txt2obj +%xdefine _OCSP_BASICRESP_add_ext _ %+ BORINGSSL_PREFIX %+ _OCSP_BASICRESP_add_ext +%xdefine _OCSP_BASICRESP_delete_ext _ %+ BORINGSSL_PREFIX %+ _OCSP_BASICRESP_delete_ext %xdefine _OCSP_BASICRESP_free _ %+ BORINGSSL_PREFIX %+ _OCSP_BASICRESP_free %xdefine _OCSP_BASICRESP_get_ext _ %+ BORINGSSL_PREFIX %+ _OCSP_BASICRESP_get_ext %xdefine _OCSP_BASICRESP_get_ext_by_NID _ %+ BORINGSSL_PREFIX %+ _OCSP_BASICRESP_get_ext_by_NID @@ -1575,7 +1577,9 @@ %xdefine _OCSP_REQ_CTX_nbio_d2i _ %+ BORINGSSL_PREFIX %+ _OCSP_REQ_CTX_nbio_d2i %xdefine _OCSP_REQ_CTX_new _ %+ BORINGSSL_PREFIX %+ _OCSP_REQ_CTX_new %xdefine _OCSP_REQ_CTX_set1_req _ %+ BORINGSSL_PREFIX %+ _OCSP_REQ_CTX_set1_req +%xdefine _OCSP_RESPBYTES_free _ %+ BORINGSSL_PREFIX %+ _OCSP_RESPBYTES_free %xdefine _OCSP_RESPBYTES_it _ %+ BORINGSSL_PREFIX %+ _OCSP_RESPBYTES_it +%xdefine _OCSP_RESPBYTES_new _ %+ BORINGSSL_PREFIX %+ _OCSP_RESPBYTES_new %xdefine _OCSP_RESPDATA_free _ %+ BORINGSSL_PREFIX %+ _OCSP_RESPDATA_free %xdefine _OCSP_RESPDATA_it _ %+ BORINGSSL_PREFIX %+ _OCSP_RESPDATA_it %xdefine _OCSP_RESPDATA_new _ %+ BORINGSSL_PREFIX %+ _OCSP_RESPDATA_new @@ -1584,7 +1588,9 @@ %xdefine _OCSP_RESPONSE_it _ %+ BORINGSSL_PREFIX %+ _OCSP_RESPONSE_it %xdefine _OCSP_RESPONSE_new _ %+ BORINGSSL_PREFIX %+ _OCSP_RESPONSE_new %xdefine _OCSP_RESPONSE_print _ %+ BORINGSSL_PREFIX %+ _OCSP_RESPONSE_print +%xdefine _OCSP_REVOKEDINFO_free _ %+ BORINGSSL_PREFIX %+ _OCSP_REVOKEDINFO_free %xdefine _OCSP_REVOKEDINFO_it _ %+ BORINGSSL_PREFIX %+ _OCSP_REVOKEDINFO_it +%xdefine _OCSP_REVOKEDINFO_new _ %+ BORINGSSL_PREFIX %+ _OCSP_REVOKEDINFO_new %xdefine _OCSP_SIGNATURE_free _ %+ BORINGSSL_PREFIX %+ _OCSP_SIGNATURE_free %xdefine _OCSP_SIGNATURE_it _ %+ BORINGSSL_PREFIX %+ _OCSP_SIGNATURE_it %xdefine _OCSP_SIGNATURE_new _ %+ BORINGSSL_PREFIX %+ _OCSP_SIGNATURE_new @@ -1596,12 +1602,16 @@ %xdefine _OCSP_SINGLERESP_it _ %+ BORINGSSL_PREFIX %+ _OCSP_SINGLERESP_it %xdefine _OCSP_SINGLERESP_new _ %+ BORINGSSL_PREFIX %+ _OCSP_SINGLERESP_new %xdefine _OCSP_basic_add1_cert _ %+ BORINGSSL_PREFIX %+ _OCSP_basic_add1_cert +%xdefine _OCSP_basic_add1_nonce _ %+ BORINGSSL_PREFIX %+ _OCSP_basic_add1_nonce +%xdefine _OCSP_basic_add1_status _ %+ BORINGSSL_PREFIX %+ _OCSP_basic_add1_status +%xdefine _OCSP_basic_sign _ %+ BORINGSSL_PREFIX %+ _OCSP_basic_sign %xdefine _OCSP_basic_verify _ %+ BORINGSSL_PREFIX %+ _OCSP_basic_verify %xdefine _OCSP_cert_id_new _ %+ BORINGSSL_PREFIX %+ _OCSP_cert_id_new %xdefine _OCSP_cert_status_str _ %+ BORINGSSL_PREFIX %+ _OCSP_cert_status_str %xdefine _OCSP_cert_to_id _ %+ BORINGSSL_PREFIX %+ _OCSP_cert_to_id %xdefine _OCSP_check_nonce _ %+ BORINGSSL_PREFIX %+ _OCSP_check_nonce %xdefine _OCSP_check_validity _ %+ BORINGSSL_PREFIX %+ _OCSP_check_validity +%xdefine _OCSP_copy_nonce _ %+ BORINGSSL_PREFIX %+ _OCSP_copy_nonce %xdefine _OCSP_crl_reason_str _ %+ BORINGSSL_PREFIX %+ _OCSP_crl_reason_str %xdefine _OCSP_id_cmp _ %+ BORINGSSL_PREFIX %+ _OCSP_id_cmp %xdefine _OCSP_id_get0_info _ %+ BORINGSSL_PREFIX %+ _OCSP_id_get0_info @@ -1620,6 +1630,7 @@ %xdefine _OCSP_resp_find _ %+ BORINGSSL_PREFIX %+ _OCSP_resp_find %xdefine _OCSP_resp_find_status _ %+ BORINGSSL_PREFIX %+ _OCSP_resp_find_status %xdefine _OCSP_resp_get0 _ %+ BORINGSSL_PREFIX %+ _OCSP_resp_get0 +%xdefine _OCSP_response_create _ %+ BORINGSSL_PREFIX %+ _OCSP_response_create %xdefine _OCSP_response_get1_basic _ %+ BORINGSSL_PREFIX %+ _OCSP_response_get1_basic %xdefine _OCSP_response_status _ %+ BORINGSSL_PREFIX %+ _OCSP_response_status %xdefine _OCSP_response_status_str _ %+ BORINGSSL_PREFIX %+ _OCSP_response_status_str @@ -2365,7 +2376,6 @@ %xdefine _X509_STORE_CTX_get_ex_new_index _ %+ BORINGSSL_PREFIX %+ _X509_STORE_CTX_get_ex_new_index %xdefine _X509_STORE_CTX_init _ %+ BORINGSSL_PREFIX %+ _X509_STORE_CTX_init %xdefine _X509_STORE_CTX_new _ %+ BORINGSSL_PREFIX %+ _X509_STORE_CTX_new -%xdefine _X509_STORE_CTX_purpose_inherit _ %+ BORINGSSL_PREFIX %+ _X509_STORE_CTX_purpose_inherit %xdefine _X509_STORE_CTX_set0_crls _ %+ BORINGSSL_PREFIX %+ _X509_STORE_CTX_set0_crls %xdefine _X509_STORE_CTX_set0_param _ %+ BORINGSSL_PREFIX %+ _X509_STORE_CTX_set0_param %xdefine _X509_STORE_CTX_set0_trusted_stack _ %+ BORINGSSL_PREFIX %+ _X509_STORE_CTX_set0_trusted_stack @@ -3026,9 +3036,11 @@ %xdefine _d2i_OCSP_REQINFO _ %+ BORINGSSL_PREFIX %+ _d2i_OCSP_REQINFO %xdefine _d2i_OCSP_REQUEST _ %+ BORINGSSL_PREFIX %+ _d2i_OCSP_REQUEST %xdefine _d2i_OCSP_REQUEST_bio _ %+ BORINGSSL_PREFIX %+ _d2i_OCSP_REQUEST_bio +%xdefine _d2i_OCSP_RESPBYTES _ %+ BORINGSSL_PREFIX %+ _d2i_OCSP_RESPBYTES %xdefine _d2i_OCSP_RESPDATA _ %+ BORINGSSL_PREFIX %+ _d2i_OCSP_RESPDATA %xdefine _d2i_OCSP_RESPONSE _ %+ BORINGSSL_PREFIX %+ _d2i_OCSP_RESPONSE %xdefine _d2i_OCSP_RESPONSE_bio _ %+ BORINGSSL_PREFIX %+ _d2i_OCSP_RESPONSE_bio +%xdefine _d2i_OCSP_REVOKEDINFO _ %+ BORINGSSL_PREFIX %+ _d2i_OCSP_REVOKEDINFO %xdefine _d2i_OCSP_SIGNATURE _ %+ BORINGSSL_PREFIX %+ _d2i_OCSP_SIGNATURE %xdefine _d2i_OCSP_SINGLERESP _ %+ BORINGSSL_PREFIX %+ _d2i_OCSP_SINGLERESP %xdefine _d2i_PKCS12 _ %+ BORINGSSL_PREFIX %+ _d2i_PKCS12 @@ -3307,9 +3319,11 @@ %xdefine _i2d_OCSP_REQINFO _ %+ BORINGSSL_PREFIX %+ _i2d_OCSP_REQINFO %xdefine _i2d_OCSP_REQUEST _ %+ BORINGSSL_PREFIX %+ _i2d_OCSP_REQUEST %xdefine _i2d_OCSP_REQUEST_bio _ %+ BORINGSSL_PREFIX %+ _i2d_OCSP_REQUEST_bio +%xdefine _i2d_OCSP_RESPBYTES _ %+ BORINGSSL_PREFIX %+ _i2d_OCSP_RESPBYTES %xdefine _i2d_OCSP_RESPDATA _ %+ BORINGSSL_PREFIX %+ _i2d_OCSP_RESPDATA %xdefine _i2d_OCSP_RESPONSE _ %+ BORINGSSL_PREFIX %+ _i2d_OCSP_RESPONSE %xdefine _i2d_OCSP_RESPONSE_bio _ %+ BORINGSSL_PREFIX %+ _i2d_OCSP_RESPONSE_bio +%xdefine _i2d_OCSP_REVOKEDINFO _ %+ BORINGSSL_PREFIX %+ _i2d_OCSP_REVOKEDINFO %xdefine _i2d_OCSP_SIGNATURE _ %+ BORINGSSL_PREFIX %+ _i2d_OCSP_SIGNATURE %xdefine _i2d_OCSP_SINGLERESP _ %+ BORINGSSL_PREFIX %+ _i2d_OCSP_SINGLERESP %xdefine _i2d_PKCS12 _ %+ BORINGSSL_PREFIX %+ _i2d_PKCS12 @@ -5422,6 +5436,8 @@ %xdefine OBJ_sn2nid BORINGSSL_PREFIX %+ _OBJ_sn2nid %xdefine OBJ_txt2nid BORINGSSL_PREFIX %+ _OBJ_txt2nid %xdefine OBJ_txt2obj BORINGSSL_PREFIX %+ _OBJ_txt2obj +%xdefine OCSP_BASICRESP_add_ext BORINGSSL_PREFIX %+ _OCSP_BASICRESP_add_ext +%xdefine OCSP_BASICRESP_delete_ext BORINGSSL_PREFIX %+ _OCSP_BASICRESP_delete_ext %xdefine OCSP_BASICRESP_free BORINGSSL_PREFIX %+ _OCSP_BASICRESP_free %xdefine OCSP_BASICRESP_get_ext BORINGSSL_PREFIX %+ _OCSP_BASICRESP_get_ext %xdefine OCSP_BASICRESP_get_ext_by_NID BORINGSSL_PREFIX %+ _OCSP_BASICRESP_get_ext_by_NID @@ -5453,7 +5469,9 @@ %xdefine OCSP_REQ_CTX_nbio_d2i BORINGSSL_PREFIX %+ _OCSP_REQ_CTX_nbio_d2i %xdefine OCSP_REQ_CTX_new BORINGSSL_PREFIX %+ _OCSP_REQ_CTX_new %xdefine OCSP_REQ_CTX_set1_req BORINGSSL_PREFIX %+ _OCSP_REQ_CTX_set1_req +%xdefine OCSP_RESPBYTES_free BORINGSSL_PREFIX %+ _OCSP_RESPBYTES_free %xdefine OCSP_RESPBYTES_it BORINGSSL_PREFIX %+ _OCSP_RESPBYTES_it +%xdefine OCSP_RESPBYTES_new BORINGSSL_PREFIX %+ _OCSP_RESPBYTES_new %xdefine OCSP_RESPDATA_free BORINGSSL_PREFIX %+ _OCSP_RESPDATA_free %xdefine OCSP_RESPDATA_it BORINGSSL_PREFIX %+ _OCSP_RESPDATA_it %xdefine OCSP_RESPDATA_new BORINGSSL_PREFIX %+ _OCSP_RESPDATA_new @@ -5462,7 +5480,9 @@ %xdefine OCSP_RESPONSE_it BORINGSSL_PREFIX %+ _OCSP_RESPONSE_it %xdefine OCSP_RESPONSE_new BORINGSSL_PREFIX %+ _OCSP_RESPONSE_new %xdefine OCSP_RESPONSE_print BORINGSSL_PREFIX %+ _OCSP_RESPONSE_print +%xdefine OCSP_REVOKEDINFO_free BORINGSSL_PREFIX %+ _OCSP_REVOKEDINFO_free %xdefine OCSP_REVOKEDINFO_it BORINGSSL_PREFIX %+ _OCSP_REVOKEDINFO_it +%xdefine OCSP_REVOKEDINFO_new BORINGSSL_PREFIX %+ _OCSP_REVOKEDINFO_new %xdefine OCSP_SIGNATURE_free BORINGSSL_PREFIX %+ _OCSP_SIGNATURE_free %xdefine OCSP_SIGNATURE_it BORINGSSL_PREFIX %+ _OCSP_SIGNATURE_it %xdefine OCSP_SIGNATURE_new BORINGSSL_PREFIX %+ _OCSP_SIGNATURE_new @@ -5474,12 +5494,16 @@ %xdefine OCSP_SINGLERESP_it BORINGSSL_PREFIX %+ _OCSP_SINGLERESP_it %xdefine OCSP_SINGLERESP_new BORINGSSL_PREFIX %+ _OCSP_SINGLERESP_new %xdefine OCSP_basic_add1_cert BORINGSSL_PREFIX %+ _OCSP_basic_add1_cert +%xdefine OCSP_basic_add1_nonce BORINGSSL_PREFIX %+ _OCSP_basic_add1_nonce +%xdefine OCSP_basic_add1_status BORINGSSL_PREFIX %+ _OCSP_basic_add1_status +%xdefine OCSP_basic_sign BORINGSSL_PREFIX %+ _OCSP_basic_sign %xdefine OCSP_basic_verify BORINGSSL_PREFIX %+ _OCSP_basic_verify %xdefine OCSP_cert_id_new BORINGSSL_PREFIX %+ _OCSP_cert_id_new %xdefine OCSP_cert_status_str BORINGSSL_PREFIX %+ _OCSP_cert_status_str %xdefine OCSP_cert_to_id BORINGSSL_PREFIX %+ _OCSP_cert_to_id %xdefine OCSP_check_nonce BORINGSSL_PREFIX %+ _OCSP_check_nonce %xdefine OCSP_check_validity BORINGSSL_PREFIX %+ _OCSP_check_validity +%xdefine OCSP_copy_nonce BORINGSSL_PREFIX %+ _OCSP_copy_nonce %xdefine OCSP_crl_reason_str BORINGSSL_PREFIX %+ _OCSP_crl_reason_str %xdefine OCSP_id_cmp BORINGSSL_PREFIX %+ _OCSP_id_cmp %xdefine OCSP_id_get0_info BORINGSSL_PREFIX %+ _OCSP_id_get0_info @@ -5498,6 +5522,7 @@ %xdefine OCSP_resp_find BORINGSSL_PREFIX %+ _OCSP_resp_find %xdefine OCSP_resp_find_status BORINGSSL_PREFIX %+ _OCSP_resp_find_status %xdefine OCSP_resp_get0 BORINGSSL_PREFIX %+ _OCSP_resp_get0 +%xdefine OCSP_response_create BORINGSSL_PREFIX %+ _OCSP_response_create %xdefine OCSP_response_get1_basic BORINGSSL_PREFIX %+ _OCSP_response_get1_basic %xdefine OCSP_response_status BORINGSSL_PREFIX %+ _OCSP_response_status %xdefine OCSP_response_status_str BORINGSSL_PREFIX %+ _OCSP_response_status_str @@ -6243,7 +6268,6 @@ %xdefine X509_STORE_CTX_get_ex_new_index BORINGSSL_PREFIX %+ _X509_STORE_CTX_get_ex_new_index %xdefine X509_STORE_CTX_init BORINGSSL_PREFIX %+ _X509_STORE_CTX_init %xdefine X509_STORE_CTX_new BORINGSSL_PREFIX %+ _X509_STORE_CTX_new -%xdefine X509_STORE_CTX_purpose_inherit BORINGSSL_PREFIX %+ _X509_STORE_CTX_purpose_inherit %xdefine X509_STORE_CTX_set0_crls BORINGSSL_PREFIX %+ _X509_STORE_CTX_set0_crls %xdefine X509_STORE_CTX_set0_param BORINGSSL_PREFIX %+ _X509_STORE_CTX_set0_param %xdefine X509_STORE_CTX_set0_trusted_stack BORINGSSL_PREFIX %+ _X509_STORE_CTX_set0_trusted_stack @@ -6904,9 +6928,11 @@ %xdefine d2i_OCSP_REQINFO BORINGSSL_PREFIX %+ _d2i_OCSP_REQINFO %xdefine d2i_OCSP_REQUEST BORINGSSL_PREFIX %+ _d2i_OCSP_REQUEST %xdefine d2i_OCSP_REQUEST_bio BORINGSSL_PREFIX %+ _d2i_OCSP_REQUEST_bio +%xdefine d2i_OCSP_RESPBYTES BORINGSSL_PREFIX %+ _d2i_OCSP_RESPBYTES %xdefine d2i_OCSP_RESPDATA BORINGSSL_PREFIX %+ _d2i_OCSP_RESPDATA %xdefine d2i_OCSP_RESPONSE BORINGSSL_PREFIX %+ _d2i_OCSP_RESPONSE %xdefine d2i_OCSP_RESPONSE_bio BORINGSSL_PREFIX %+ _d2i_OCSP_RESPONSE_bio +%xdefine d2i_OCSP_REVOKEDINFO BORINGSSL_PREFIX %+ _d2i_OCSP_REVOKEDINFO %xdefine d2i_OCSP_SIGNATURE BORINGSSL_PREFIX %+ _d2i_OCSP_SIGNATURE %xdefine d2i_OCSP_SINGLERESP BORINGSSL_PREFIX %+ _d2i_OCSP_SINGLERESP %xdefine d2i_PKCS12 BORINGSSL_PREFIX %+ _d2i_PKCS12 @@ -7185,9 +7211,11 @@ %xdefine i2d_OCSP_REQINFO BORINGSSL_PREFIX %+ _i2d_OCSP_REQINFO %xdefine i2d_OCSP_REQUEST BORINGSSL_PREFIX %+ _i2d_OCSP_REQUEST %xdefine i2d_OCSP_REQUEST_bio BORINGSSL_PREFIX %+ _i2d_OCSP_REQUEST_bio +%xdefine i2d_OCSP_RESPBYTES BORINGSSL_PREFIX %+ _i2d_OCSP_RESPBYTES %xdefine i2d_OCSP_RESPDATA BORINGSSL_PREFIX %+ _i2d_OCSP_RESPDATA %xdefine i2d_OCSP_RESPONSE BORINGSSL_PREFIX %+ _i2d_OCSP_RESPONSE %xdefine i2d_OCSP_RESPONSE_bio BORINGSSL_PREFIX %+ _i2d_OCSP_RESPONSE_bio +%xdefine i2d_OCSP_REVOKEDINFO BORINGSSL_PREFIX %+ _i2d_OCSP_REVOKEDINFO %xdefine i2d_OCSP_SIGNATURE BORINGSSL_PREFIX %+ _i2d_OCSP_SIGNATURE %xdefine i2d_OCSP_SINGLERESP BORINGSSL_PREFIX %+ _i2d_OCSP_SINGLERESP %xdefine i2d_PKCS12 BORINGSSL_PREFIX %+ _i2d_PKCS12 From d22275bce7c090a12c11b4d1b0167fddfddd7038 Mon Sep 17 00:00:00 2001 From: aws-lc-sys-bindings-generator Date: Wed, 28 Aug 2024 14:39:08 +0000 Subject: [PATCH 18/36] Generated bindings from macos-13-xlarge --- aws-lc-sys/src/aarch64_apple_darwin_crypto.rs | 3591 ++++++++--------- 1 file changed, 1786 insertions(+), 1805 deletions(-) diff --git a/aws-lc-sys/src/aarch64_apple_darwin_crypto.rs b/aws-lc-sys/src/aarch64_apple_darwin_crypto.rs index 79affcbe34d..2c5ecea3d7d 100644 --- a/aws-lc-sys/src/aarch64_apple_darwin_crypto.rs +++ b/aws-lc-sys/src/aarch64_apple_darwin_crypto.rs @@ -111,7 +111,7 @@ pub const AWSLC_VERSION_NAME: &[u8; 7] = b"AWS-LC\0"; pub const OPENSSL_VERSION_NUMBER: i32 = 269488255; pub const SSLEAY_VERSION_NUMBER: i32 = 269488255; pub const AWSLC_API_VERSION: i32 = 29; -pub const AWSLC_VERSION_NUMBER_STRING: &[u8; 7] = b"1.33.0\0"; +pub const AWSLC_VERSION_NUMBER_STRING: &[u8; 7] = b"1.34.2\0"; pub const AES_ENCRYPT: i32 = 1; pub const AES_DECRYPT: i32 = 0; pub const AES_MAXNR: i32 = 14; @@ -132,7 +132,7 @@ pub const CRYPTO_LOCK: i32 = 1; pub const CRYPTO_UNLOCK: i32 = 2; pub const CRYPTO_READ: i32 = 4; pub const CRYPTO_WRITE: i32 = 8; -pub const OPENSSL_VERSION_TEXT: &[u8; 42] = b"OpenSSL 1.1.1 (compatible; AWS-LC 1.33.0)\0"; +pub const OPENSSL_VERSION_TEXT: &[u8; 42] = b"OpenSSL 1.1.1 (compatible; AWS-LC 1.34.2)\0"; pub const OPENSSL_VERSION: i32 = 0; pub const OPENSSL_CFLAGS: i32 = 1; pub const OPENSSL_BUILT_ON: i32 = 2; @@ -3283,6 +3283,14 @@ pub const EVP_PKEY_DH: i32 = 28; pub const HKDF_R_OUTPUT_TOO_LARGE: i32 = 100; pub const MD5_CBLOCK: i32 = 64; pub const MD5_DIGEST_LENGTH: i32 = 16; +pub const HMAC_MD5_PRECOMPUTED_KEY_SIZE: i32 = 32; +pub const HMAC_SHA1_PRECOMPUTED_KEY_SIZE: i32 = 40; +pub const HMAC_SHA224_PRECOMPUTED_KEY_SIZE: i32 = 64; +pub const HMAC_SHA256_PRECOMPUTED_KEY_SIZE: i32 = 64; +pub const HMAC_SHA384_PRECOMPUTED_KEY_SIZE: i32 = 128; +pub const HMAC_SHA512_PRECOMPUTED_KEY_SIZE: i32 = 128; +pub const HMAC_SHA512_224_PRECOMPUTED_KEY_SIZE: i32 = 128; +pub const HMAC_SHA512_256_PRECOMPUTED_KEY_SIZE: i32 = 128; pub const HMAC_MAX_PRECOMPUTED_KEY_SIZE: i32 = 128; pub const HMAC_R_MISSING_PARAMETERS: i32 = 100; pub const HMAC_R_BUFFER_TOO_SMALL: i32 = 102; @@ -3501,63 +3509,6 @@ pub const GEN_EDIPARTY: i32 = 5; pub const GEN_URI: i32 = 6; pub const GEN_IPADD: i32 = 7; pub const GEN_RID: i32 = 8; -pub const X509_FLAG_COMPAT: i32 = 0; -pub const X509_FLAG_NO_HEADER: i32 = 1; -pub const X509_FLAG_NO_VERSION: i32 = 2; -pub const X509_FLAG_NO_SERIAL: i32 = 4; -pub const X509_FLAG_NO_SIGNAME: i32 = 8; -pub const X509_FLAG_NO_ISSUER: i32 = 16; -pub const X509_FLAG_NO_VALIDITY: i32 = 32; -pub const X509_FLAG_NO_SUBJECT: i32 = 64; -pub const X509_FLAG_NO_PUBKEY: i32 = 128; -pub const X509_FLAG_NO_EXTENSIONS: i32 = 256; -pub const X509_FLAG_NO_SIGDUMP: i32 = 512; -pub const X509_FLAG_NO_AUX: i32 = 1024; -pub const X509_FLAG_NO_ATTRIBUTES: i32 = 2048; -pub const X509_FLAG_NO_IDS: i32 = 4096; -pub const X509V3_EXT_UNKNOWN_MASK: i32 = 983040; -pub const X509V3_EXT_DEFAULT: i32 = 0; -pub const X509V3_EXT_ERROR_UNKNOWN: i32 = 65536; -pub const X509V3_EXT_PARSE_UNKNOWN: i32 = 131072; -pub const X509V3_EXT_DUMP_UNKNOWN: i32 = 196608; -pub const XN_FLAG_COMPAT: i32 = 0; -pub const XN_FLAG_SEP_MASK: i32 = 983040; -pub const XN_FLAG_SEP_COMMA_PLUS: i32 = 65536; -pub const XN_FLAG_SEP_CPLUS_SPC: i32 = 131072; -pub const XN_FLAG_SEP_SPLUS_SPC: i32 = 196608; -pub const XN_FLAG_SEP_MULTILINE: i32 = 262144; -pub const XN_FLAG_DN_REV: i32 = 1048576; -pub const XN_FLAG_FN_MASK: i32 = 6291456; -pub const XN_FLAG_FN_SN: i32 = 0; -pub const XN_FLAG_FN_LN: i32 = 2097152; -pub const XN_FLAG_FN_OID: i32 = 4194304; -pub const XN_FLAG_FN_NONE: i32 = 6291456; -pub const XN_FLAG_SPC_EQ: i32 = 8388608; -pub const XN_FLAG_DUMP_UNKNOWN_FIELDS: i32 = 16777216; -pub const XN_FLAG_FN_ALIGN: i32 = 33554432; -pub const XN_FLAG_RFC2253: i32 = 17892119; -pub const XN_FLAG_ONELINE: i32 = 8520479; -pub const XN_FLAG_MULTILINE: i32 = 44302342; -pub const X509V3_CTX_TEST: i32 = 1; -pub const X509_TRUST_DEFAULT: i32 = -1; -pub const X509_TRUST_COMPAT: i32 = 1; -pub const X509_TRUST_SSL_CLIENT: i32 = 2; -pub const X509_TRUST_SSL_SERVER: i32 = 3; -pub const X509_TRUST_EMAIL: i32 = 4; -pub const X509_TRUST_OBJECT_SIGN: i32 = 5; -pub const X509_TRUST_TSA: i32 = 8; -pub const X509_TRUST_TRUSTED: i32 = 1; -pub const X509_TRUST_REJECTED: i32 = 2; -pub const X509_TRUST_UNTRUSTED: i32 = 3; -pub const X509_LU_NONE: i32 = 0; -pub const X509_LU_X509: i32 = 1; -pub const X509_LU_CRL: i32 = 2; -pub const X509_LU_PKEY: i32 = 3; -pub const X509_L_FILE_LOAD: i32 = 1; -pub const X509_L_ADD_DIR: i32 = 2; -pub const X509_FILETYPE_PEM: i32 = 1; -pub const X509_FILETYPE_ASN1: i32 = 2; -pub const X509_FILETYPE_DEFAULT: i32 = 3; pub const X509_V_OK: i32 = 0; pub const X509_V_ERR_UNSPECIFIED: i32 = 1; pub const X509_V_ERR_UNABLE_TO_GET_ISSUER_CERT: i32 = 2; @@ -3619,6 +3570,78 @@ pub const X509_V_ERR_IP_ADDRESS_MISMATCH: i32 = 64; pub const X509_V_ERR_INVALID_CALL: i32 = 65; pub const X509_V_ERR_STORE_LOOKUP: i32 = 66; pub const X509_V_ERR_NAME_CONSTRAINTS_WITHOUT_SANS: i32 = 67; +pub const X509_CHECK_FLAG_NO_WILDCARDS: i32 = 2; +pub const X509_CHECK_FLAG_NEVER_CHECK_SUBJECT: i32 = 32; +pub const X509_PURPOSE_SSL_CLIENT: i32 = 1; +pub const X509_PURPOSE_SSL_SERVER: i32 = 2; +pub const X509_PURPOSE_NS_SSL_SERVER: i32 = 3; +pub const X509_PURPOSE_SMIME_SIGN: i32 = 4; +pub const X509_PURPOSE_SMIME_ENCRYPT: i32 = 5; +pub const X509_PURPOSE_CRL_SIGN: i32 = 6; +pub const X509_PURPOSE_ANY: i32 = 7; +pub const X509_PURPOSE_OCSP_HELPER: i32 = 8; +pub const X509_PURPOSE_TIMESTAMP_SIGN: i32 = 9; +pub const X509_TRUST_COMPAT: i32 = 1; +pub const X509_TRUST_SSL_CLIENT: i32 = 2; +pub const X509_TRUST_SSL_SERVER: i32 = 3; +pub const X509_TRUST_EMAIL: i32 = 4; +pub const X509_TRUST_OBJECT_SIGN: i32 = 5; +pub const X509_TRUST_TSA: i32 = 8; +pub const X509_FLAG_COMPAT: i32 = 0; +pub const X509_FLAG_NO_HEADER: i32 = 1; +pub const X509_FLAG_NO_VERSION: i32 = 2; +pub const X509_FLAG_NO_SERIAL: i32 = 4; +pub const X509_FLAG_NO_SIGNAME: i32 = 8; +pub const X509_FLAG_NO_ISSUER: i32 = 16; +pub const X509_FLAG_NO_VALIDITY: i32 = 32; +pub const X509_FLAG_NO_SUBJECT: i32 = 64; +pub const X509_FLAG_NO_PUBKEY: i32 = 128; +pub const X509_FLAG_NO_EXTENSIONS: i32 = 256; +pub const X509_FLAG_NO_SIGDUMP: i32 = 512; +pub const X509_FLAG_NO_AUX: i32 = 1024; +pub const X509_FLAG_NO_ATTRIBUTES: i32 = 2048; +pub const X509_FLAG_NO_IDS: i32 = 4096; +pub const X509V3_EXT_UNKNOWN_MASK: i32 = 983040; +pub const X509V3_EXT_DEFAULT: i32 = 0; +pub const X509V3_EXT_ERROR_UNKNOWN: i32 = 65536; +pub const X509V3_EXT_PARSE_UNKNOWN: i32 = 131072; +pub const X509V3_EXT_DUMP_UNKNOWN: i32 = 196608; +pub const XN_FLAG_COMPAT: i32 = 0; +pub const XN_FLAG_SEP_MASK: i32 = 983040; +pub const XN_FLAG_SEP_COMMA_PLUS: i32 = 65536; +pub const XN_FLAG_SEP_CPLUS_SPC: i32 = 131072; +pub const XN_FLAG_SEP_SPLUS_SPC: i32 = 196608; +pub const XN_FLAG_SEP_MULTILINE: i32 = 262144; +pub const XN_FLAG_DN_REV: i32 = 1048576; +pub const XN_FLAG_FN_MASK: i32 = 6291456; +pub const XN_FLAG_FN_SN: i32 = 0; +pub const XN_FLAG_FN_LN: i32 = 2097152; +pub const XN_FLAG_FN_OID: i32 = 4194304; +pub const XN_FLAG_FN_NONE: i32 = 6291456; +pub const XN_FLAG_SPC_EQ: i32 = 8388608; +pub const XN_FLAG_DUMP_UNKNOWN_FIELDS: i32 = 16777216; +pub const XN_FLAG_FN_ALIGN: i32 = 33554432; +pub const XN_FLAG_RFC2253: i32 = 17892119; +pub const XN_FLAG_ONELINE: i32 = 8520479; +pub const XN_FLAG_MULTILINE: i32 = 44302342; +pub const X509_TRUST_TRUSTED: i32 = 1; +pub const X509_TRUST_REJECTED: i32 = 2; +pub const X509_TRUST_UNTRUSTED: i32 = 3; +pub const X509V3_CTX_TEST: i32 = 1; +pub const X509_CHECK_FLAG_ALWAYS_CHECK_SUBJECT: i32 = 0; +pub const X509_CHECK_FLAG_MULTI_LABEL_WILDCARDS: i32 = 0; +pub const X509_CHECK_FLAG_SINGLE_LABEL_SUBDOMAINS: i32 = 0; +pub const X509_CHECK_FLAG_NO_PARTIAL_WILDCARDS: i32 = 0; +pub const X509_TRUST_DEFAULT: i32 = -1; +pub const X509_LU_NONE: i32 = 0; +pub const X509_LU_X509: i32 = 1; +pub const X509_LU_CRL: i32 = 2; +pub const X509_LU_PKEY: i32 = 3; +pub const X509_L_FILE_LOAD: i32 = 1; +pub const X509_L_ADD_DIR: i32 = 2; +pub const X509_FILETYPE_PEM: i32 = 1; +pub const X509_FILETYPE_ASN1: i32 = 2; +pub const X509_FILETYPE_DEFAULT: i32 = 3; pub const X509_V_FLAG_CB_ISSUER_CHECK: i32 = 1; pub const X509_V_FLAG_USE_CHECK_TIME: i32 = 2; pub const X509_V_FLAG_CRL_CHECK: i32 = 4; @@ -3650,15 +3673,6 @@ pub const NS_SSL_CA: i32 = 4; pub const NS_SMIME_CA: i32 = 2; pub const NS_OBJSIGN_CA: i32 = 1; pub const NS_ANY_CA: i32 = 7; -pub const X509_PURPOSE_SSL_CLIENT: i32 = 1; -pub const X509_PURPOSE_SSL_SERVER: i32 = 2; -pub const X509_PURPOSE_NS_SSL_SERVER: i32 = 3; -pub const X509_PURPOSE_SMIME_SIGN: i32 = 4; -pub const X509_PURPOSE_SMIME_ENCRYPT: i32 = 5; -pub const X509_PURPOSE_CRL_SIGN: i32 = 6; -pub const X509_PURPOSE_ANY: i32 = 7; -pub const X509_PURPOSE_OCSP_HELPER: i32 = 8; -pub const X509_PURPOSE_TIMESTAMP_SIGN: i32 = 9; pub const X509V3_ADD_OP_MASK: i32 = 15; pub const X509V3_ADD_DEFAULT: i32 = 0; pub const X509V3_ADD_APPEND: i32 = 1; @@ -3667,12 +3681,6 @@ pub const X509V3_ADD_REPLACE_EXISTING: i32 = 3; pub const X509V3_ADD_KEEP_EXISTING: i32 = 4; pub const X509V3_ADD_DELETE: i32 = 5; pub const X509V3_ADD_SILENT: i32 = 16; -pub const X509_CHECK_FLAG_NO_WILDCARDS: i32 = 2; -pub const X509_CHECK_FLAG_NEVER_CHECK_SUBJECT: i32 = 32; -pub const X509_CHECK_FLAG_NO_PARTIAL_WILDCARDS: i32 = 0; -pub const X509_CHECK_FLAG_ALWAYS_CHECK_SUBJECT: i32 = 0; -pub const X509_CHECK_FLAG_MULTI_LABEL_WILDCARDS: i32 = 0; -pub const X509_CHECK_FLAG_SINGLE_LABEL_SUBDOMAINS: i32 = 0; pub const X509_R_AKID_MISMATCH: i32 = 100; pub const X509_R_BAD_PKCS7_VERSION: i32 = 101; pub const X509_R_BAD_X509_FILETYPE: i32 = 102; @@ -13359,24 +13367,6 @@ extern "C" { enc: ::std::os::raw::c_int, ); } -extern "C" { - #[link_name = "\u{1}_aws_lc_0_21_0_DES_decrypt3"] - pub fn DES_decrypt3( - data: *mut u32, - ks1: *const DES_key_schedule, - ks2: *const DES_key_schedule, - ks3: *const DES_key_schedule, - ); -} -extern "C" { - #[link_name = "\u{1}_aws_lc_0_21_0_DES_encrypt3"] - pub fn DES_encrypt3( - data: *mut u32, - ks1: *const DES_key_schedule, - ks2: *const DES_key_schedule, - ks3: *const DES_key_schedule, - ); -} extern "C" { #[link_name = "\u{1}_aws_lc_0_21_0_DH_new"] pub fn DH_new() -> *mut DH; @@ -21381,1751 +21371,1558 @@ extern "C" { idx: ::std::os::raw::c_int, ) -> *mut ASN1_TYPE; } -#[repr(C)] -#[derive(Debug, Copy, Clone, PartialEq, Eq)] -pub struct Netscape_spki_st { - pub spkac: *mut NETSCAPE_SPKAC, - pub sig_algor: *mut X509_ALGOR, - pub signature: *mut ASN1_BIT_STRING, -} -#[test] -fn bindgen_test_layout_Netscape_spki_st() { - const UNINIT: ::std::mem::MaybeUninit = ::std::mem::MaybeUninit::uninit(); - let ptr = UNINIT.as_ptr(); - assert_eq!( - ::std::mem::size_of::(), - 24usize, - concat!("Size of: ", stringify!(Netscape_spki_st)) - ); - assert_eq!( - ::std::mem::align_of::(), - 8usize, - concat!("Alignment of ", stringify!(Netscape_spki_st)) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).spkac) as usize - ptr as usize }, - 0usize, - concat!( - "Offset of field: ", - stringify!(Netscape_spki_st), - "::", - stringify!(spkac) - ) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).sig_algor) as usize - ptr as usize }, - 8usize, - concat!( - "Offset of field: ", - stringify!(Netscape_spki_st), - "::", - stringify!(sig_algor) - ) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).signature) as usize - ptr as usize }, - 16usize, - concat!( - "Offset of field: ", - stringify!(Netscape_spki_st), - "::", - stringify!(signature) - ) - ); +extern "C" { + #[link_name = "\u{1}_aws_lc_0_21_0_X509_STORE_new"] + pub fn X509_STORE_new() -> *mut X509_STORE; } -impl Default for Netscape_spki_st { - fn default() -> Self { - let mut s = ::std::mem::MaybeUninit::::uninit(); - unsafe { - ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() - } - } +extern "C" { + #[link_name = "\u{1}_aws_lc_0_21_0_X509_STORE_up_ref"] + pub fn X509_STORE_up_ref(store: *mut X509_STORE) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_0_21_0_NETSCAPE_SPKI_it"] - pub static NETSCAPE_SPKI_it: ASN1_ITEM; + #[link_name = "\u{1}_aws_lc_0_21_0_X509_STORE_free"] + pub fn X509_STORE_free(store: *mut X509_STORE); } extern "C" { - #[link_name = "\u{1}_aws_lc_0_21_0_NETSCAPE_SPKI_new"] - pub fn NETSCAPE_SPKI_new() -> *mut NETSCAPE_SPKI; + #[link_name = "\u{1}_aws_lc_0_21_0_X509_STORE_add_cert"] + pub fn X509_STORE_add_cert(store: *mut X509_STORE, x509: *mut X509) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_0_21_0_NETSCAPE_SPKI_free"] - pub fn NETSCAPE_SPKI_free(spki: *mut NETSCAPE_SPKI); + #[link_name = "\u{1}_aws_lc_0_21_0_X509_STORE_add_crl"] + pub fn X509_STORE_add_crl(store: *mut X509_STORE, crl: *mut X509_CRL) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_0_21_0_d2i_NETSCAPE_SPKI"] - pub fn d2i_NETSCAPE_SPKI( - out: *mut *mut NETSCAPE_SPKI, - inp: *mut *const u8, - len: ::std::os::raw::c_long, - ) -> *mut NETSCAPE_SPKI; + #[link_name = "\u{1}_aws_lc_0_21_0_X509_STORE_get0_param"] + pub fn X509_STORE_get0_param(store: *mut X509_STORE) -> *mut X509_VERIFY_PARAM; } extern "C" { - #[link_name = "\u{1}_aws_lc_0_21_0_i2d_NETSCAPE_SPKI"] - pub fn i2d_NETSCAPE_SPKI( - spki: *const NETSCAPE_SPKI, - outp: *mut *mut u8, + #[link_name = "\u{1}_aws_lc_0_21_0_X509_STORE_set1_param"] + pub fn X509_STORE_set1_param( + store: *mut X509_STORE, + param: *const X509_VERIFY_PARAM, ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_0_21_0_NETSCAPE_SPKI_verify"] - pub fn NETSCAPE_SPKI_verify( - spki: *mut NETSCAPE_SPKI, - pkey: *mut EVP_PKEY, + #[link_name = "\u{1}_aws_lc_0_21_0_X509_STORE_set_flags"] + pub fn X509_STORE_set_flags( + store: *mut X509_STORE, + flags: ::std::os::raw::c_ulong, ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_0_21_0_NETSCAPE_SPKI_b64_decode"] - pub fn NETSCAPE_SPKI_b64_decode( - str_: *const ::std::os::raw::c_char, - len: ossl_ssize_t, - ) -> *mut NETSCAPE_SPKI; + #[link_name = "\u{1}_aws_lc_0_21_0_X509_STORE_set_depth"] + pub fn X509_STORE_set_depth( + store: *mut X509_STORE, + depth: ::std::os::raw::c_int, + ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_0_21_0_NETSCAPE_SPKI_b64_encode"] - pub fn NETSCAPE_SPKI_b64_encode(spki: *mut NETSCAPE_SPKI) -> *mut ::std::os::raw::c_char; + #[link_name = "\u{1}_aws_lc_0_21_0_X509_STORE_set_purpose"] + pub fn X509_STORE_set_purpose( + store: *mut X509_STORE, + purpose: ::std::os::raw::c_int, + ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_0_21_0_NETSCAPE_SPKI_get_pubkey"] - pub fn NETSCAPE_SPKI_get_pubkey(spki: *const NETSCAPE_SPKI) -> *mut EVP_PKEY; + #[link_name = "\u{1}_aws_lc_0_21_0_X509_STORE_set_trust"] + pub fn X509_STORE_set_trust( + store: *mut X509_STORE, + trust: ::std::os::raw::c_int, + ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_0_21_0_NETSCAPE_SPKI_set_pubkey"] - pub fn NETSCAPE_SPKI_set_pubkey( - spki: *mut NETSCAPE_SPKI, - pkey: *mut EVP_PKEY, - ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}_aws_lc_0_21_0_X509_STORE_CTX_new"] + pub fn X509_STORE_CTX_new() -> *mut X509_STORE_CTX; } extern "C" { - #[link_name = "\u{1}_aws_lc_0_21_0_NETSCAPE_SPKI_sign"] - pub fn NETSCAPE_SPKI_sign( - spki: *mut NETSCAPE_SPKI, - pkey: *mut EVP_PKEY, - md: *const EVP_MD, + #[link_name = "\u{1}_aws_lc_0_21_0_X509_STORE_CTX_free"] + pub fn X509_STORE_CTX_free(ctx: *mut X509_STORE_CTX); +} +extern "C" { + #[link_name = "\u{1}_aws_lc_0_21_0_X509_STORE_CTX_init"] + pub fn X509_STORE_CTX_init( + ctx: *mut X509_STORE_CTX, + store: *mut X509_STORE, + x509: *mut X509, + chain: *mut stack_st_X509, ) -> ::std::os::raw::c_int; } -#[repr(C)] -#[derive(Debug, Copy, Clone, PartialEq, Eq)] -pub struct Netscape_spkac_st { - pub pubkey: *mut X509_PUBKEY, - pub challenge: *mut ASN1_IA5STRING, +extern "C" { + #[link_name = "\u{1}_aws_lc_0_21_0_X509_verify_cert"] + pub fn X509_verify_cert(ctx: *mut X509_STORE_CTX) -> ::std::os::raw::c_int; } -#[test] -fn bindgen_test_layout_Netscape_spkac_st() { - const UNINIT: ::std::mem::MaybeUninit = ::std::mem::MaybeUninit::uninit(); - let ptr = UNINIT.as_ptr(); - assert_eq!( - ::std::mem::size_of::(), - 16usize, - concat!("Size of: ", stringify!(Netscape_spkac_st)) - ); - assert_eq!( - ::std::mem::align_of::(), - 8usize, - concat!("Alignment of ", stringify!(Netscape_spkac_st)) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).pubkey) as usize - ptr as usize }, - 0usize, - concat!( - "Offset of field: ", - stringify!(Netscape_spkac_st), - "::", - stringify!(pubkey) - ) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).challenge) as usize - ptr as usize }, - 8usize, - concat!( - "Offset of field: ", - stringify!(Netscape_spkac_st), - "::", - stringify!(challenge) - ) - ); +extern "C" { + #[link_name = "\u{1}_aws_lc_0_21_0_X509_STORE_CTX_get0_chain"] + pub fn X509_STORE_CTX_get0_chain(ctx: *mut X509_STORE_CTX) -> *mut stack_st_X509; } -impl Default for Netscape_spkac_st { - fn default() -> Self { - let mut s = ::std::mem::MaybeUninit::::uninit(); - unsafe { - ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() - } - } +extern "C" { + #[link_name = "\u{1}_aws_lc_0_21_0_X509_STORE_CTX_get1_chain"] + pub fn X509_STORE_CTX_get1_chain(ctx: *mut X509_STORE_CTX) -> *mut stack_st_X509; } extern "C" { - #[link_name = "\u{1}_aws_lc_0_21_0_NETSCAPE_SPKAC_it"] - pub static NETSCAPE_SPKAC_it: ASN1_ITEM; + #[link_name = "\u{1}_aws_lc_0_21_0_X509_STORE_CTX_set_cert"] + pub fn X509_STORE_CTX_set_cert(c: *mut X509_STORE_CTX, x: *mut X509); } extern "C" { - #[link_name = "\u{1}_aws_lc_0_21_0_NETSCAPE_SPKAC_new"] - pub fn NETSCAPE_SPKAC_new() -> *mut NETSCAPE_SPKAC; + #[link_name = "\u{1}_aws_lc_0_21_0_X509_STORE_CTX_get_error"] + pub fn X509_STORE_CTX_get_error(ctx: *mut X509_STORE_CTX) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_0_21_0_NETSCAPE_SPKAC_free"] - pub fn NETSCAPE_SPKAC_free(spkac: *mut NETSCAPE_SPKAC); + #[link_name = "\u{1}_aws_lc_0_21_0_X509_STORE_CTX_set_error"] + pub fn X509_STORE_CTX_set_error(ctx: *mut X509_STORE_CTX, err: ::std::os::raw::c_int); } extern "C" { - #[link_name = "\u{1}_aws_lc_0_21_0_d2i_NETSCAPE_SPKAC"] - pub fn d2i_NETSCAPE_SPKAC( - out: *mut *mut NETSCAPE_SPKAC, - inp: *mut *const u8, - len: ::std::os::raw::c_long, - ) -> *mut NETSCAPE_SPKAC; + #[link_name = "\u{1}_aws_lc_0_21_0_X509_verify_cert_error_string"] + pub fn X509_verify_cert_error_string( + err: ::std::os::raw::c_long, + ) -> *const ::std::os::raw::c_char; } extern "C" { - #[link_name = "\u{1}_aws_lc_0_21_0_i2d_NETSCAPE_SPKAC"] - pub fn i2d_NETSCAPE_SPKAC( - spkac: *const NETSCAPE_SPKAC, - outp: *mut *mut u8, - ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}_aws_lc_0_21_0_X509_STORE_CTX_get_error_depth"] + pub fn X509_STORE_CTX_get_error_depth(ctx: *mut X509_STORE_CTX) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_0_21_0_NETSCAPE_SPKI_print"] - pub fn NETSCAPE_SPKI_print(out: *mut BIO, spki: *mut NETSCAPE_SPKI) -> ::std::os::raw::c_int; + #[link_name = "\u{1}_aws_lc_0_21_0_X509_STORE_CTX_get_current_cert"] + pub fn X509_STORE_CTX_get_current_cert(ctx: *mut X509_STORE_CTX) -> *mut X509; } -#[repr(C)] -#[derive(Debug, Copy, Clone, PartialEq, Eq)] -pub struct rsa_pss_params_st { - pub hashAlgorithm: *mut X509_ALGOR, - pub maskGenAlgorithm: *mut X509_ALGOR, - pub saltLength: *mut ASN1_INTEGER, - pub trailerField: *mut ASN1_INTEGER, - pub maskHash: *mut X509_ALGOR, +extern "C" { + #[link_name = "\u{1}_aws_lc_0_21_0_X509_STORE_CTX_get0_current_issuer"] + pub fn X509_STORE_CTX_get0_current_issuer(ctx: *mut X509_STORE_CTX) -> *mut X509; } -#[test] -fn bindgen_test_layout_rsa_pss_params_st() { - const UNINIT: ::std::mem::MaybeUninit = ::std::mem::MaybeUninit::uninit(); - let ptr = UNINIT.as_ptr(); - assert_eq!( - ::std::mem::size_of::(), - 40usize, - concat!("Size of: ", stringify!(rsa_pss_params_st)) - ); - assert_eq!( - ::std::mem::align_of::(), - 8usize, - concat!("Alignment of ", stringify!(rsa_pss_params_st)) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).hashAlgorithm) as usize - ptr as usize }, - 0usize, - concat!( - "Offset of field: ", - stringify!(rsa_pss_params_st), - "::", - stringify!(hashAlgorithm) - ) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).maskGenAlgorithm) as usize - ptr as usize }, - 8usize, - concat!( - "Offset of field: ", - stringify!(rsa_pss_params_st), - "::", - stringify!(maskGenAlgorithm) - ) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).saltLength) as usize - ptr as usize }, - 16usize, - concat!( - "Offset of field: ", - stringify!(rsa_pss_params_st), - "::", - stringify!(saltLength) - ) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).trailerField) as usize - ptr as usize }, - 24usize, - concat!( - "Offset of field: ", - stringify!(rsa_pss_params_st), - "::", - stringify!(trailerField) - ) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).maskHash) as usize - ptr as usize }, - 32usize, - concat!( - "Offset of field: ", - stringify!(rsa_pss_params_st), - "::", - stringify!(maskHash) - ) - ); +extern "C" { + #[link_name = "\u{1}_aws_lc_0_21_0_X509_STORE_CTX_get0_current_crl"] + pub fn X509_STORE_CTX_get0_current_crl(ctx: *mut X509_STORE_CTX) -> *mut X509_CRL; } -impl Default for rsa_pss_params_st { - fn default() -> Self { - let mut s = ::std::mem::MaybeUninit::::uninit(); - unsafe { - ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() - } - } +extern "C" { + #[link_name = "\u{1}_aws_lc_0_21_0_X509_STORE_CTX_get0_store"] + pub fn X509_STORE_CTX_get0_store(ctx: *mut X509_STORE_CTX) -> *mut X509_STORE; } extern "C" { - #[link_name = "\u{1}_aws_lc_0_21_0_RSA_PSS_PARAMS_it"] - pub static RSA_PSS_PARAMS_it: ASN1_ITEM; + #[link_name = "\u{1}_aws_lc_0_21_0_X509_STORE_CTX_get0_cert"] + pub fn X509_STORE_CTX_get0_cert(ctx: *mut X509_STORE_CTX) -> *mut X509; } extern "C" { - #[link_name = "\u{1}_aws_lc_0_21_0_RSA_PSS_PARAMS_new"] - pub fn RSA_PSS_PARAMS_new() -> *mut RSA_PSS_PARAMS; + #[link_name = "\u{1}_aws_lc_0_21_0_X509_STORE_CTX_get0_untrusted"] + pub fn X509_STORE_CTX_get0_untrusted(ctx: *mut X509_STORE_CTX) -> *mut stack_st_X509; } extern "C" { - #[link_name = "\u{1}_aws_lc_0_21_0_RSA_PSS_PARAMS_free"] - pub fn RSA_PSS_PARAMS_free(params: *mut RSA_PSS_PARAMS); + #[link_name = "\u{1}_aws_lc_0_21_0_X509_STORE_CTX_set0_trusted_stack"] + pub fn X509_STORE_CTX_set0_trusted_stack(ctx: *mut X509_STORE_CTX, sk: *mut stack_st_X509); } extern "C" { - #[link_name = "\u{1}_aws_lc_0_21_0_d2i_RSA_PSS_PARAMS"] - pub fn d2i_RSA_PSS_PARAMS( - out: *mut *mut RSA_PSS_PARAMS, - inp: *mut *const u8, - len: ::std::os::raw::c_long, - ) -> *mut RSA_PSS_PARAMS; + #[link_name = "\u{1}_aws_lc_0_21_0_X509_STORE_CTX_set0_crls"] + pub fn X509_STORE_CTX_set0_crls(ctx: *mut X509_STORE_CTX, sk: *mut stack_st_X509_CRL); } extern "C" { - #[link_name = "\u{1}_aws_lc_0_21_0_i2d_RSA_PSS_PARAMS"] - pub fn i2d_RSA_PSS_PARAMS( - in_: *const RSA_PSS_PARAMS, - outp: *mut *mut u8, + #[link_name = "\u{1}_aws_lc_0_21_0_X509_STORE_CTX_set_default"] + pub fn X509_STORE_CTX_set_default( + ctx: *mut X509_STORE_CTX, + name: *const ::std::os::raw::c_char, ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_0_21_0_PKCS8_PRIV_KEY_INFO_it"] - pub static PKCS8_PRIV_KEY_INFO_it: ASN1_ITEM; + #[link_name = "\u{1}_aws_lc_0_21_0_X509_STORE_CTX_get0_param"] + pub fn X509_STORE_CTX_get0_param(ctx: *mut X509_STORE_CTX) -> *mut X509_VERIFY_PARAM; } extern "C" { - #[link_name = "\u{1}_aws_lc_0_21_0_PKCS8_PRIV_KEY_INFO_new"] - pub fn PKCS8_PRIV_KEY_INFO_new() -> *mut PKCS8_PRIV_KEY_INFO; -} -extern "C" { - #[link_name = "\u{1}_aws_lc_0_21_0_PKCS8_PRIV_KEY_INFO_free"] - pub fn PKCS8_PRIV_KEY_INFO_free(key: *mut PKCS8_PRIV_KEY_INFO); -} -extern "C" { - #[link_name = "\u{1}_aws_lc_0_21_0_d2i_PKCS8_PRIV_KEY_INFO"] - pub fn d2i_PKCS8_PRIV_KEY_INFO( - out: *mut *mut PKCS8_PRIV_KEY_INFO, - inp: *mut *const u8, - len: ::std::os::raw::c_long, - ) -> *mut PKCS8_PRIV_KEY_INFO; -} -extern "C" { - #[link_name = "\u{1}_aws_lc_0_21_0_i2d_PKCS8_PRIV_KEY_INFO"] - pub fn i2d_PKCS8_PRIV_KEY_INFO( - key: *const PKCS8_PRIV_KEY_INFO, - outp: *mut *mut u8, - ) -> ::std::os::raw::c_int; -} -extern "C" { - #[link_name = "\u{1}_aws_lc_0_21_0_EVP_PKCS82PKEY"] - pub fn EVP_PKCS82PKEY(p8: *const PKCS8_PRIV_KEY_INFO) -> *mut EVP_PKEY; + #[link_name = "\u{1}_aws_lc_0_21_0_X509_STORE_CTX_set0_param"] + pub fn X509_STORE_CTX_set0_param(ctx: *mut X509_STORE_CTX, param: *mut X509_VERIFY_PARAM); } extern "C" { - #[link_name = "\u{1}_aws_lc_0_21_0_EVP_PKEY2PKCS8"] - pub fn EVP_PKEY2PKCS8(pkey: *const EVP_PKEY) -> *mut PKCS8_PRIV_KEY_INFO; + #[link_name = "\u{1}_aws_lc_0_21_0_X509_STORE_CTX_set_flags"] + pub fn X509_STORE_CTX_set_flags(ctx: *mut X509_STORE_CTX, flags: ::std::os::raw::c_ulong); } extern "C" { - #[link_name = "\u{1}_aws_lc_0_21_0_X509_SIG_it"] - pub static X509_SIG_it: ASN1_ITEM; + #[link_name = "\u{1}_aws_lc_0_21_0_X509_STORE_CTX_set_time"] + pub fn X509_STORE_CTX_set_time( + ctx: *mut X509_STORE_CTX, + flags: ::std::os::raw::c_ulong, + t: time_t, + ); } extern "C" { - #[link_name = "\u{1}_aws_lc_0_21_0_X509_SIG_new"] - pub fn X509_SIG_new() -> *mut X509_SIG; + #[link_name = "\u{1}_aws_lc_0_21_0_X509_STORE_CTX_set_time_posix"] + pub fn X509_STORE_CTX_set_time_posix( + ctx: *mut X509_STORE_CTX, + flags: ::std::os::raw::c_ulong, + t: i64, + ); } extern "C" { - #[link_name = "\u{1}_aws_lc_0_21_0_X509_SIG_free"] - pub fn X509_SIG_free(key: *mut X509_SIG); + #[link_name = "\u{1}_aws_lc_0_21_0_X509_STORE_CTX_set_depth"] + pub fn X509_STORE_CTX_set_depth(ctx: *mut X509_STORE_CTX, depth: ::std::os::raw::c_int); } extern "C" { - #[link_name = "\u{1}_aws_lc_0_21_0_d2i_X509_SIG"] - pub fn d2i_X509_SIG( - out: *mut *mut X509_SIG, - inp: *mut *const u8, - len: ::std::os::raw::c_long, - ) -> *mut X509_SIG; + #[link_name = "\u{1}_aws_lc_0_21_0_X509_STORE_CTX_set_purpose"] + pub fn X509_STORE_CTX_set_purpose( + ctx: *mut X509_STORE_CTX, + purpose: ::std::os::raw::c_int, + ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_0_21_0_i2d_X509_SIG"] - pub fn i2d_X509_SIG(sig: *const X509_SIG, outp: *mut *mut u8) -> ::std::os::raw::c_int; + #[link_name = "\u{1}_aws_lc_0_21_0_X509_STORE_CTX_set_trust"] + pub fn X509_STORE_CTX_set_trust( + ctx: *mut X509_STORE_CTX, + trust: ::std::os::raw::c_int, + ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_0_21_0_X509_SIG_get0"] - pub fn X509_SIG_get0( - sig: *const X509_SIG, - out_alg: *mut *const X509_ALGOR, - out_digest: *mut *const ASN1_OCTET_STRING, - ); + #[link_name = "\u{1}_aws_lc_0_21_0_X509_VERIFY_PARAM_new"] + pub fn X509_VERIFY_PARAM_new() -> *mut X509_VERIFY_PARAM; } extern "C" { - #[link_name = "\u{1}_aws_lc_0_21_0_X509_SIG_getm"] - pub fn X509_SIG_getm( - sig: *mut X509_SIG, - out_alg: *mut *mut X509_ALGOR, - out_digest: *mut *mut ASN1_OCTET_STRING, - ); + #[link_name = "\u{1}_aws_lc_0_21_0_X509_VERIFY_PARAM_free"] + pub fn X509_VERIFY_PARAM_free(param: *mut X509_VERIFY_PARAM); } extern "C" { - #[link_name = "\u{1}_aws_lc_0_21_0_X509_print_ex"] - pub fn X509_print_ex( - bp: *mut BIO, - x: *mut X509, - nmflag: ::std::os::raw::c_ulong, - cflag: ::std::os::raw::c_ulong, + #[link_name = "\u{1}_aws_lc_0_21_0_X509_VERIFY_PARAM_inherit"] + pub fn X509_VERIFY_PARAM_inherit( + to: *mut X509_VERIFY_PARAM, + from: *const X509_VERIFY_PARAM, ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_0_21_0_X509_print_ex_fp"] - pub fn X509_print_ex_fp( - fp: *mut FILE, - x: *mut X509, - nmflag: ::std::os::raw::c_ulong, - cflag: ::std::os::raw::c_ulong, + #[link_name = "\u{1}_aws_lc_0_21_0_X509_VERIFY_PARAM_set1"] + pub fn X509_VERIFY_PARAM_set1( + to: *mut X509_VERIFY_PARAM, + from: *const X509_VERIFY_PARAM, ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_0_21_0_X509_print"] - pub fn X509_print(bp: *mut BIO, x: *mut X509) -> ::std::os::raw::c_int; + #[link_name = "\u{1}_aws_lc_0_21_0_X509_VERIFY_PARAM_set_flags"] + pub fn X509_VERIFY_PARAM_set_flags( + param: *mut X509_VERIFY_PARAM, + flags: ::std::os::raw::c_ulong, + ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_0_21_0_X509_print_fp"] - pub fn X509_print_fp(fp: *mut FILE, x: *mut X509) -> ::std::os::raw::c_int; + #[link_name = "\u{1}_aws_lc_0_21_0_X509_VERIFY_PARAM_clear_flags"] + pub fn X509_VERIFY_PARAM_clear_flags( + param: *mut X509_VERIFY_PARAM, + flags: ::std::os::raw::c_ulong, + ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_0_21_0_X509_CRL_print"] - pub fn X509_CRL_print(bp: *mut BIO, x: *mut X509_CRL) -> ::std::os::raw::c_int; + #[link_name = "\u{1}_aws_lc_0_21_0_X509_VERIFY_PARAM_get_flags"] + pub fn X509_VERIFY_PARAM_get_flags(param: *const X509_VERIFY_PARAM) -> ::std::os::raw::c_ulong; } extern "C" { - #[link_name = "\u{1}_aws_lc_0_21_0_X509_CRL_print_fp"] - pub fn X509_CRL_print_fp(fp: *mut FILE, x: *mut X509_CRL) -> ::std::os::raw::c_int; + #[link_name = "\u{1}_aws_lc_0_21_0_X509_VERIFY_PARAM_set_depth"] + pub fn X509_VERIFY_PARAM_set_depth(param: *mut X509_VERIFY_PARAM, depth: ::std::os::raw::c_int); } extern "C" { - #[link_name = "\u{1}_aws_lc_0_21_0_X509_REQ_print_ex"] - pub fn X509_REQ_print_ex( - bp: *mut BIO, - x: *mut X509_REQ, - nmflag: ::std::os::raw::c_ulong, - cflag: ::std::os::raw::c_ulong, - ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}_aws_lc_0_21_0_X509_VERIFY_PARAM_get_depth"] + pub fn X509_VERIFY_PARAM_get_depth(param: *const X509_VERIFY_PARAM) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_0_21_0_X509_REQ_print"] - pub fn X509_REQ_print(bp: *mut BIO, req: *mut X509_REQ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}_aws_lc_0_21_0_X509_VERIFY_PARAM_set_time"] + pub fn X509_VERIFY_PARAM_set_time(param: *mut X509_VERIFY_PARAM, t: time_t); } extern "C" { - #[link_name = "\u{1}_aws_lc_0_21_0_X509_REQ_print_fp"] - pub fn X509_REQ_print_fp(fp: *mut FILE, req: *mut X509_REQ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}_aws_lc_0_21_0_X509_VERIFY_PARAM_set_time_posix"] + pub fn X509_VERIFY_PARAM_set_time_posix(param: *mut X509_VERIFY_PARAM, t: i64); } extern "C" { - #[link_name = "\u{1}_aws_lc_0_21_0_X509_NAME_print_ex"] - pub fn X509_NAME_print_ex( - out: *mut BIO, - nm: *const X509_NAME, - indent: ::std::os::raw::c_int, - flags: ::std::os::raw::c_ulong, + #[link_name = "\u{1}_aws_lc_0_21_0_X509_VERIFY_PARAM_add0_policy"] + pub fn X509_VERIFY_PARAM_add0_policy( + param: *mut X509_VERIFY_PARAM, + policy: *mut ASN1_OBJECT, ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_0_21_0_X509_NAME_print"] - pub fn X509_NAME_print( - bp: *mut BIO, - name: *const X509_NAME, - obase: ::std::os::raw::c_int, + #[link_name = "\u{1}_aws_lc_0_21_0_X509_VERIFY_PARAM_set1_policies"] + pub fn X509_VERIFY_PARAM_set1_policies( + param: *mut X509_VERIFY_PARAM, + policies: *const stack_st_ASN1_OBJECT, ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_0_21_0_X509_NAME_oneline"] - pub fn X509_NAME_oneline( - name: *const X509_NAME, - buf: *mut ::std::os::raw::c_char, - size: ::std::os::raw::c_int, - ) -> *mut ::std::os::raw::c_char; -} -extern "C" { - #[link_name = "\u{1}_aws_lc_0_21_0_X509_NAME_print_ex_fp"] - pub fn X509_NAME_print_ex_fp( - fp: *mut FILE, - nm: *const X509_NAME, - indent: ::std::os::raw::c_int, - flags: ::std::os::raw::c_ulong, + #[link_name = "\u{1}_aws_lc_0_21_0_X509_VERIFY_PARAM_set1_host"] + pub fn X509_VERIFY_PARAM_set1_host( + param: *mut X509_VERIFY_PARAM, + name: *const ::std::os::raw::c_char, + name_len: usize, ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_0_21_0_X509_signature_dump"] - pub fn X509_signature_dump( - bio: *mut BIO, - sig: *const ASN1_STRING, - indent: ::std::os::raw::c_int, + #[link_name = "\u{1}_aws_lc_0_21_0_X509_VERIFY_PARAM_add1_host"] + pub fn X509_VERIFY_PARAM_add1_host( + param: *mut X509_VERIFY_PARAM, + name: *const ::std::os::raw::c_char, + name_len: usize, ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_0_21_0_X509_signature_print"] - pub fn X509_signature_print( - bio: *mut BIO, - alg: *const X509_ALGOR, - sig: *const ASN1_STRING, - ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}_aws_lc_0_21_0_X509_VERIFY_PARAM_set_hostflags"] + pub fn X509_VERIFY_PARAM_set_hostflags( + param: *mut X509_VERIFY_PARAM, + flags: ::std::os::raw::c_uint, + ); } extern "C" { - #[link_name = "\u{1}_aws_lc_0_21_0_X509V3_EXT_print"] - pub fn X509V3_EXT_print( - out: *mut BIO, - ext: *const X509_EXTENSION, - flag: ::std::os::raw::c_ulong, - indent: ::std::os::raw::c_int, + #[link_name = "\u{1}_aws_lc_0_21_0_X509_VERIFY_PARAM_set1_email"] + pub fn X509_VERIFY_PARAM_set1_email( + param: *mut X509_VERIFY_PARAM, + email: *const ::std::os::raw::c_char, + email_len: usize, ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_0_21_0_X509V3_EXT_print_fp"] - pub fn X509V3_EXT_print_fp( - out: *mut FILE, - ext: *const X509_EXTENSION, - flag: ::std::os::raw::c_int, - indent: ::std::os::raw::c_int, + #[link_name = "\u{1}_aws_lc_0_21_0_X509_VERIFY_PARAM_set1_ip"] + pub fn X509_VERIFY_PARAM_set1_ip( + param: *mut X509_VERIFY_PARAM, + ip: *const u8, + ip_len: usize, ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_0_21_0_X509V3_extensions_print"] - pub fn X509V3_extensions_print( - out: *mut BIO, - title: *const ::std::os::raw::c_char, - exts: *const stack_st_X509_EXTENSION, - flag: ::std::os::raw::c_ulong, - indent: ::std::os::raw::c_int, + #[link_name = "\u{1}_aws_lc_0_21_0_X509_VERIFY_PARAM_set1_ip_asc"] + pub fn X509_VERIFY_PARAM_set1_ip_asc( + param: *mut X509_VERIFY_PARAM, + ipasc: *const ::std::os::raw::c_char, ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_0_21_0_GENERAL_NAME_print"] - pub fn GENERAL_NAME_print(out: *mut BIO, gen: *const GENERAL_NAME) -> ::std::os::raw::c_int; -} -extern "C" { - #[link_name = "\u{1}_aws_lc_0_21_0_X509_pubkey_digest"] - pub fn X509_pubkey_digest( - x509: *const X509, - md: *const EVP_MD, - out: *mut u8, - out_len: *mut ::std::os::raw::c_uint, + #[link_name = "\u{1}_aws_lc_0_21_0_X509_VERIFY_PARAM_set_purpose"] + pub fn X509_VERIFY_PARAM_set_purpose( + param: *mut X509_VERIFY_PARAM, + purpose: ::std::os::raw::c_int, ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_0_21_0_X509_digest"] - pub fn X509_digest( - x509: *const X509, - md: *const EVP_MD, - out: *mut u8, - out_len: *mut ::std::os::raw::c_uint, + #[link_name = "\u{1}_aws_lc_0_21_0_X509_VERIFY_PARAM_set_trust"] + pub fn X509_VERIFY_PARAM_set_trust( + param: *mut X509_VERIFY_PARAM, + trust: ::std::os::raw::c_int, ) -> ::std::os::raw::c_int; } -extern "C" { - #[link_name = "\u{1}_aws_lc_0_21_0_X509_CRL_digest"] - pub fn X509_CRL_digest( - crl: *const X509_CRL, - md: *const EVP_MD, - out: *mut u8, - out_len: *mut ::std::os::raw::c_uint, - ) -> ::std::os::raw::c_int; -} -extern "C" { - #[link_name = "\u{1}_aws_lc_0_21_0_X509_REQ_digest"] - pub fn X509_REQ_digest( - req: *const X509_REQ, - md: *const EVP_MD, - out: *mut u8, - out_len: *mut ::std::os::raw::c_uint, - ) -> ::std::os::raw::c_int; -} -extern "C" { - #[link_name = "\u{1}_aws_lc_0_21_0_X509_NAME_digest"] - pub fn X509_NAME_digest( - name: *const X509_NAME, - md: *const EVP_MD, - out: *mut u8, - out_len: *mut ::std::os::raw::c_uint, - ) -> ::std::os::raw::c_int; +#[repr(C)] +#[derive(Debug, Copy, Clone, PartialEq, Eq)] +pub struct Netscape_spki_st { + pub spkac: *mut NETSCAPE_SPKAC, + pub sig_algor: *mut X509_ALGOR, + pub signature: *mut ASN1_BIT_STRING, } -extern "C" { - #[link_name = "\u{1}_aws_lc_0_21_0_d2i_X509_bio"] - pub fn d2i_X509_bio(bp: *mut BIO, x509: *mut *mut X509) -> *mut X509; +#[test] +fn bindgen_test_layout_Netscape_spki_st() { + const UNINIT: ::std::mem::MaybeUninit = ::std::mem::MaybeUninit::uninit(); + let ptr = UNINIT.as_ptr(); + assert_eq!( + ::std::mem::size_of::(), + 24usize, + concat!("Size of: ", stringify!(Netscape_spki_st)) + ); + assert_eq!( + ::std::mem::align_of::(), + 8usize, + concat!("Alignment of ", stringify!(Netscape_spki_st)) + ); + assert_eq!( + unsafe { ::std::ptr::addr_of!((*ptr).spkac) as usize - ptr as usize }, + 0usize, + concat!( + "Offset of field: ", + stringify!(Netscape_spki_st), + "::", + stringify!(spkac) + ) + ); + assert_eq!( + unsafe { ::std::ptr::addr_of!((*ptr).sig_algor) as usize - ptr as usize }, + 8usize, + concat!( + "Offset of field: ", + stringify!(Netscape_spki_st), + "::", + stringify!(sig_algor) + ) + ); + assert_eq!( + unsafe { ::std::ptr::addr_of!((*ptr).signature) as usize - ptr as usize }, + 16usize, + concat!( + "Offset of field: ", + stringify!(Netscape_spki_st), + "::", + stringify!(signature) + ) + ); } -extern "C" { - #[link_name = "\u{1}_aws_lc_0_21_0_d2i_X509_CRL_bio"] - pub fn d2i_X509_CRL_bio(bp: *mut BIO, crl: *mut *mut X509_CRL) -> *mut X509_CRL; +impl Default for Netscape_spki_st { + fn default() -> Self { + let mut s = ::std::mem::MaybeUninit::::uninit(); + unsafe { + ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); + s.assume_init() + } + } } extern "C" { - #[link_name = "\u{1}_aws_lc_0_21_0_d2i_X509_REQ_bio"] - pub fn d2i_X509_REQ_bio(bp: *mut BIO, req: *mut *mut X509_REQ) -> *mut X509_REQ; + #[link_name = "\u{1}_aws_lc_0_21_0_NETSCAPE_SPKI_it"] + pub static NETSCAPE_SPKI_it: ASN1_ITEM; } extern "C" { - #[link_name = "\u{1}_aws_lc_0_21_0_d2i_RSAPrivateKey_bio"] - pub fn d2i_RSAPrivateKey_bio(bp: *mut BIO, rsa: *mut *mut RSA) -> *mut RSA; + #[link_name = "\u{1}_aws_lc_0_21_0_NETSCAPE_SPKI_new"] + pub fn NETSCAPE_SPKI_new() -> *mut NETSCAPE_SPKI; } extern "C" { - #[link_name = "\u{1}_aws_lc_0_21_0_d2i_RSAPublicKey_bio"] - pub fn d2i_RSAPublicKey_bio(bp: *mut BIO, rsa: *mut *mut RSA) -> *mut RSA; + #[link_name = "\u{1}_aws_lc_0_21_0_NETSCAPE_SPKI_free"] + pub fn NETSCAPE_SPKI_free(spki: *mut NETSCAPE_SPKI); } extern "C" { - #[link_name = "\u{1}_aws_lc_0_21_0_d2i_RSA_PUBKEY_bio"] - pub fn d2i_RSA_PUBKEY_bio(bp: *mut BIO, rsa: *mut *mut RSA) -> *mut RSA; + #[link_name = "\u{1}_aws_lc_0_21_0_d2i_NETSCAPE_SPKI"] + pub fn d2i_NETSCAPE_SPKI( + out: *mut *mut NETSCAPE_SPKI, + inp: *mut *const u8, + len: ::std::os::raw::c_long, + ) -> *mut NETSCAPE_SPKI; } extern "C" { - #[link_name = "\u{1}_aws_lc_0_21_0_d2i_DSA_PUBKEY_bio"] - pub fn d2i_DSA_PUBKEY_bio(bp: *mut BIO, dsa: *mut *mut DSA) -> *mut DSA; + #[link_name = "\u{1}_aws_lc_0_21_0_i2d_NETSCAPE_SPKI"] + pub fn i2d_NETSCAPE_SPKI( + spki: *const NETSCAPE_SPKI, + outp: *mut *mut u8, + ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_0_21_0_d2i_DSAPrivateKey_bio"] - pub fn d2i_DSAPrivateKey_bio(bp: *mut BIO, dsa: *mut *mut DSA) -> *mut DSA; + #[link_name = "\u{1}_aws_lc_0_21_0_NETSCAPE_SPKI_verify"] + pub fn NETSCAPE_SPKI_verify( + spki: *mut NETSCAPE_SPKI, + pkey: *mut EVP_PKEY, + ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_0_21_0_d2i_EC_PUBKEY_bio"] - pub fn d2i_EC_PUBKEY_bio(bp: *mut BIO, eckey: *mut *mut EC_KEY) -> *mut EC_KEY; + #[link_name = "\u{1}_aws_lc_0_21_0_NETSCAPE_SPKI_b64_decode"] + pub fn NETSCAPE_SPKI_b64_decode( + str_: *const ::std::os::raw::c_char, + len: ossl_ssize_t, + ) -> *mut NETSCAPE_SPKI; } extern "C" { - #[link_name = "\u{1}_aws_lc_0_21_0_d2i_ECPrivateKey_bio"] - pub fn d2i_ECPrivateKey_bio(bp: *mut BIO, eckey: *mut *mut EC_KEY) -> *mut EC_KEY; + #[link_name = "\u{1}_aws_lc_0_21_0_NETSCAPE_SPKI_b64_encode"] + pub fn NETSCAPE_SPKI_b64_encode(spki: *mut NETSCAPE_SPKI) -> *mut ::std::os::raw::c_char; } extern "C" { - #[link_name = "\u{1}_aws_lc_0_21_0_d2i_PKCS8_bio"] - pub fn d2i_PKCS8_bio(bp: *mut BIO, p8: *mut *mut X509_SIG) -> *mut X509_SIG; + #[link_name = "\u{1}_aws_lc_0_21_0_NETSCAPE_SPKI_get_pubkey"] + pub fn NETSCAPE_SPKI_get_pubkey(spki: *const NETSCAPE_SPKI) -> *mut EVP_PKEY; } extern "C" { - #[link_name = "\u{1}_aws_lc_0_21_0_d2i_PKCS8_PRIV_KEY_INFO_bio"] - pub fn d2i_PKCS8_PRIV_KEY_INFO_bio( - bp: *mut BIO, - p8inf: *mut *mut PKCS8_PRIV_KEY_INFO, - ) -> *mut PKCS8_PRIV_KEY_INFO; + #[link_name = "\u{1}_aws_lc_0_21_0_NETSCAPE_SPKI_set_pubkey"] + pub fn NETSCAPE_SPKI_set_pubkey( + spki: *mut NETSCAPE_SPKI, + pkey: *mut EVP_PKEY, + ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_0_21_0_d2i_PUBKEY_bio"] - pub fn d2i_PUBKEY_bio(bp: *mut BIO, a: *mut *mut EVP_PKEY) -> *mut EVP_PKEY; + #[link_name = "\u{1}_aws_lc_0_21_0_NETSCAPE_SPKI_sign"] + pub fn NETSCAPE_SPKI_sign( + spki: *mut NETSCAPE_SPKI, + pkey: *mut EVP_PKEY, + md: *const EVP_MD, + ) -> ::std::os::raw::c_int; } -extern "C" { - #[link_name = "\u{1}_aws_lc_0_21_0_d2i_DHparams_bio"] - pub fn d2i_DHparams_bio(bp: *mut BIO, dh: *mut *mut DH) -> *mut DH; +#[repr(C)] +#[derive(Debug, Copy, Clone, PartialEq, Eq)] +pub struct Netscape_spkac_st { + pub pubkey: *mut X509_PUBKEY, + pub challenge: *mut ASN1_IA5STRING, } -extern "C" { - #[link_name = "\u{1}_aws_lc_0_21_0_d2i_PrivateKey_bio"] - pub fn d2i_PrivateKey_bio(bp: *mut BIO, a: *mut *mut EVP_PKEY) -> *mut EVP_PKEY; +#[test] +fn bindgen_test_layout_Netscape_spkac_st() { + const UNINIT: ::std::mem::MaybeUninit = ::std::mem::MaybeUninit::uninit(); + let ptr = UNINIT.as_ptr(); + assert_eq!( + ::std::mem::size_of::(), + 16usize, + concat!("Size of: ", stringify!(Netscape_spkac_st)) + ); + assert_eq!( + ::std::mem::align_of::(), + 8usize, + concat!("Alignment of ", stringify!(Netscape_spkac_st)) + ); + assert_eq!( + unsafe { ::std::ptr::addr_of!((*ptr).pubkey) as usize - ptr as usize }, + 0usize, + concat!( + "Offset of field: ", + stringify!(Netscape_spkac_st), + "::", + stringify!(pubkey) + ) + ); + assert_eq!( + unsafe { ::std::ptr::addr_of!((*ptr).challenge) as usize - ptr as usize }, + 8usize, + concat!( + "Offset of field: ", + stringify!(Netscape_spkac_st), + "::", + stringify!(challenge) + ) + ); } -extern "C" { - #[link_name = "\u{1}_aws_lc_0_21_0_i2d_X509_bio"] - pub fn i2d_X509_bio(bp: *mut BIO, x509: *mut X509) -> ::std::os::raw::c_int; +impl Default for Netscape_spkac_st { + fn default() -> Self { + let mut s = ::std::mem::MaybeUninit::::uninit(); + unsafe { + ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); + s.assume_init() + } + } } extern "C" { - #[link_name = "\u{1}_aws_lc_0_21_0_i2d_X509_CRL_bio"] - pub fn i2d_X509_CRL_bio(bp: *mut BIO, crl: *mut X509_CRL) -> ::std::os::raw::c_int; + #[link_name = "\u{1}_aws_lc_0_21_0_NETSCAPE_SPKAC_it"] + pub static NETSCAPE_SPKAC_it: ASN1_ITEM; } extern "C" { - #[link_name = "\u{1}_aws_lc_0_21_0_i2d_X509_REQ_bio"] - pub fn i2d_X509_REQ_bio(bp: *mut BIO, req: *mut X509_REQ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}_aws_lc_0_21_0_NETSCAPE_SPKAC_new"] + pub fn NETSCAPE_SPKAC_new() -> *mut NETSCAPE_SPKAC; } extern "C" { - #[link_name = "\u{1}_aws_lc_0_21_0_i2d_RSAPrivateKey_bio"] - pub fn i2d_RSAPrivateKey_bio(bp: *mut BIO, rsa: *mut RSA) -> ::std::os::raw::c_int; + #[link_name = "\u{1}_aws_lc_0_21_0_NETSCAPE_SPKAC_free"] + pub fn NETSCAPE_SPKAC_free(spkac: *mut NETSCAPE_SPKAC); } extern "C" { - #[link_name = "\u{1}_aws_lc_0_21_0_i2d_RSAPublicKey_bio"] - pub fn i2d_RSAPublicKey_bio(bp: *mut BIO, rsa: *mut RSA) -> ::std::os::raw::c_int; + #[link_name = "\u{1}_aws_lc_0_21_0_d2i_NETSCAPE_SPKAC"] + pub fn d2i_NETSCAPE_SPKAC( + out: *mut *mut NETSCAPE_SPKAC, + inp: *mut *const u8, + len: ::std::os::raw::c_long, + ) -> *mut NETSCAPE_SPKAC; } extern "C" { - #[link_name = "\u{1}_aws_lc_0_21_0_i2d_RSA_PUBKEY_bio"] - pub fn i2d_RSA_PUBKEY_bio(bp: *mut BIO, rsa: *mut RSA) -> ::std::os::raw::c_int; + #[link_name = "\u{1}_aws_lc_0_21_0_i2d_NETSCAPE_SPKAC"] + pub fn i2d_NETSCAPE_SPKAC( + spkac: *const NETSCAPE_SPKAC, + outp: *mut *mut u8, + ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_0_21_0_i2d_DSA_PUBKEY_bio"] - pub fn i2d_DSA_PUBKEY_bio(bp: *mut BIO, dsa: *mut DSA) -> ::std::os::raw::c_int; + #[link_name = "\u{1}_aws_lc_0_21_0_NETSCAPE_SPKI_print"] + pub fn NETSCAPE_SPKI_print(out: *mut BIO, spki: *mut NETSCAPE_SPKI) -> ::std::os::raw::c_int; } -extern "C" { - #[link_name = "\u{1}_aws_lc_0_21_0_i2d_DSAPrivateKey_bio"] - pub fn i2d_DSAPrivateKey_bio(bp: *mut BIO, dsa: *mut DSA) -> ::std::os::raw::c_int; +#[repr(C)] +#[derive(Debug, Copy, Clone, PartialEq, Eq)] +pub struct rsa_pss_params_st { + pub hashAlgorithm: *mut X509_ALGOR, + pub maskGenAlgorithm: *mut X509_ALGOR, + pub saltLength: *mut ASN1_INTEGER, + pub trailerField: *mut ASN1_INTEGER, + pub maskHash: *mut X509_ALGOR, } -extern "C" { - #[link_name = "\u{1}_aws_lc_0_21_0_i2d_EC_PUBKEY_bio"] - pub fn i2d_EC_PUBKEY_bio(bp: *mut BIO, eckey: *mut EC_KEY) -> ::std::os::raw::c_int; -} -extern "C" { - #[link_name = "\u{1}_aws_lc_0_21_0_i2d_ECPrivateKey_bio"] - pub fn i2d_ECPrivateKey_bio(bp: *mut BIO, eckey: *mut EC_KEY) -> ::std::os::raw::c_int; +#[test] +fn bindgen_test_layout_rsa_pss_params_st() { + const UNINIT: ::std::mem::MaybeUninit = ::std::mem::MaybeUninit::uninit(); + let ptr = UNINIT.as_ptr(); + assert_eq!( + ::std::mem::size_of::(), + 40usize, + concat!("Size of: ", stringify!(rsa_pss_params_st)) + ); + assert_eq!( + ::std::mem::align_of::(), + 8usize, + concat!("Alignment of ", stringify!(rsa_pss_params_st)) + ); + assert_eq!( + unsafe { ::std::ptr::addr_of!((*ptr).hashAlgorithm) as usize - ptr as usize }, + 0usize, + concat!( + "Offset of field: ", + stringify!(rsa_pss_params_st), + "::", + stringify!(hashAlgorithm) + ) + ); + assert_eq!( + unsafe { ::std::ptr::addr_of!((*ptr).maskGenAlgorithm) as usize - ptr as usize }, + 8usize, + concat!( + "Offset of field: ", + stringify!(rsa_pss_params_st), + "::", + stringify!(maskGenAlgorithm) + ) + ); + assert_eq!( + unsafe { ::std::ptr::addr_of!((*ptr).saltLength) as usize - ptr as usize }, + 16usize, + concat!( + "Offset of field: ", + stringify!(rsa_pss_params_st), + "::", + stringify!(saltLength) + ) + ); + assert_eq!( + unsafe { ::std::ptr::addr_of!((*ptr).trailerField) as usize - ptr as usize }, + 24usize, + concat!( + "Offset of field: ", + stringify!(rsa_pss_params_st), + "::", + stringify!(trailerField) + ) + ); + assert_eq!( + unsafe { ::std::ptr::addr_of!((*ptr).maskHash) as usize - ptr as usize }, + 32usize, + concat!( + "Offset of field: ", + stringify!(rsa_pss_params_st), + "::", + stringify!(maskHash) + ) + ); } -extern "C" { - #[link_name = "\u{1}_aws_lc_0_21_0_i2d_PKCS8_bio"] - pub fn i2d_PKCS8_bio(bp: *mut BIO, p8: *mut X509_SIG) -> ::std::os::raw::c_int; +impl Default for rsa_pss_params_st { + fn default() -> Self { + let mut s = ::std::mem::MaybeUninit::::uninit(); + unsafe { + ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); + s.assume_init() + } + } } extern "C" { - #[link_name = "\u{1}_aws_lc_0_21_0_i2d_PKCS8_PRIV_KEY_INFO_bio"] - pub fn i2d_PKCS8_PRIV_KEY_INFO_bio( - bp: *mut BIO, - p8inf: *mut PKCS8_PRIV_KEY_INFO, - ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}_aws_lc_0_21_0_RSA_PSS_PARAMS_it"] + pub static RSA_PSS_PARAMS_it: ASN1_ITEM; } extern "C" { - #[link_name = "\u{1}_aws_lc_0_21_0_i2d_PrivateKey_bio"] - pub fn i2d_PrivateKey_bio(bp: *mut BIO, pkey: *mut EVP_PKEY) -> ::std::os::raw::c_int; + #[link_name = "\u{1}_aws_lc_0_21_0_RSA_PSS_PARAMS_new"] + pub fn RSA_PSS_PARAMS_new() -> *mut RSA_PSS_PARAMS; } extern "C" { - #[link_name = "\u{1}_aws_lc_0_21_0_i2d_PUBKEY_bio"] - pub fn i2d_PUBKEY_bio(bp: *mut BIO, pkey: *mut EVP_PKEY) -> ::std::os::raw::c_int; + #[link_name = "\u{1}_aws_lc_0_21_0_RSA_PSS_PARAMS_free"] + pub fn RSA_PSS_PARAMS_free(params: *mut RSA_PSS_PARAMS); } extern "C" { - #[link_name = "\u{1}_aws_lc_0_21_0_i2d_DHparams_bio"] - pub fn i2d_DHparams_bio(bp: *mut BIO, dh: *const DH) -> ::std::os::raw::c_int; + #[link_name = "\u{1}_aws_lc_0_21_0_d2i_RSA_PSS_PARAMS"] + pub fn d2i_RSA_PSS_PARAMS( + out: *mut *mut RSA_PSS_PARAMS, + inp: *mut *const u8, + len: ::std::os::raw::c_long, + ) -> *mut RSA_PSS_PARAMS; } extern "C" { - #[link_name = "\u{1}_aws_lc_0_21_0_i2d_PKCS8PrivateKeyInfo_bio"] - pub fn i2d_PKCS8PrivateKeyInfo_bio(bp: *mut BIO, key: *mut EVP_PKEY) -> ::std::os::raw::c_int; + #[link_name = "\u{1}_aws_lc_0_21_0_i2d_RSA_PSS_PARAMS"] + pub fn i2d_RSA_PSS_PARAMS( + in_: *const RSA_PSS_PARAMS, + outp: *mut *mut u8, + ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_0_21_0_d2i_X509_fp"] - pub fn d2i_X509_fp(fp: *mut FILE, x509: *mut *mut X509) -> *mut X509; + #[link_name = "\u{1}_aws_lc_0_21_0_PKCS8_PRIV_KEY_INFO_it"] + pub static PKCS8_PRIV_KEY_INFO_it: ASN1_ITEM; } extern "C" { - #[link_name = "\u{1}_aws_lc_0_21_0_d2i_X509_CRL_fp"] - pub fn d2i_X509_CRL_fp(fp: *mut FILE, crl: *mut *mut X509_CRL) -> *mut X509_CRL; + #[link_name = "\u{1}_aws_lc_0_21_0_PKCS8_PRIV_KEY_INFO_new"] + pub fn PKCS8_PRIV_KEY_INFO_new() -> *mut PKCS8_PRIV_KEY_INFO; } extern "C" { - #[link_name = "\u{1}_aws_lc_0_21_0_d2i_X509_REQ_fp"] - pub fn d2i_X509_REQ_fp(fp: *mut FILE, req: *mut *mut X509_REQ) -> *mut X509_REQ; + #[link_name = "\u{1}_aws_lc_0_21_0_PKCS8_PRIV_KEY_INFO_free"] + pub fn PKCS8_PRIV_KEY_INFO_free(key: *mut PKCS8_PRIV_KEY_INFO); } extern "C" { - #[link_name = "\u{1}_aws_lc_0_21_0_d2i_RSAPrivateKey_fp"] - pub fn d2i_RSAPrivateKey_fp(fp: *mut FILE, rsa: *mut *mut RSA) -> *mut RSA; + #[link_name = "\u{1}_aws_lc_0_21_0_d2i_PKCS8_PRIV_KEY_INFO"] + pub fn d2i_PKCS8_PRIV_KEY_INFO( + out: *mut *mut PKCS8_PRIV_KEY_INFO, + inp: *mut *const u8, + len: ::std::os::raw::c_long, + ) -> *mut PKCS8_PRIV_KEY_INFO; } extern "C" { - #[link_name = "\u{1}_aws_lc_0_21_0_d2i_RSAPublicKey_fp"] - pub fn d2i_RSAPublicKey_fp(fp: *mut FILE, rsa: *mut *mut RSA) -> *mut RSA; + #[link_name = "\u{1}_aws_lc_0_21_0_i2d_PKCS8_PRIV_KEY_INFO"] + pub fn i2d_PKCS8_PRIV_KEY_INFO( + key: *const PKCS8_PRIV_KEY_INFO, + outp: *mut *mut u8, + ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_0_21_0_d2i_RSA_PUBKEY_fp"] - pub fn d2i_RSA_PUBKEY_fp(fp: *mut FILE, rsa: *mut *mut RSA) -> *mut RSA; + #[link_name = "\u{1}_aws_lc_0_21_0_EVP_PKCS82PKEY"] + pub fn EVP_PKCS82PKEY(p8: *const PKCS8_PRIV_KEY_INFO) -> *mut EVP_PKEY; } extern "C" { - #[link_name = "\u{1}_aws_lc_0_21_0_d2i_DSA_PUBKEY_fp"] - pub fn d2i_DSA_PUBKEY_fp(fp: *mut FILE, dsa: *mut *mut DSA) -> *mut DSA; + #[link_name = "\u{1}_aws_lc_0_21_0_EVP_PKEY2PKCS8"] + pub fn EVP_PKEY2PKCS8(pkey: *const EVP_PKEY) -> *mut PKCS8_PRIV_KEY_INFO; } extern "C" { - #[link_name = "\u{1}_aws_lc_0_21_0_d2i_DSAPrivateKey_fp"] - pub fn d2i_DSAPrivateKey_fp(fp: *mut FILE, dsa: *mut *mut DSA) -> *mut DSA; + #[link_name = "\u{1}_aws_lc_0_21_0_X509_SIG_it"] + pub static X509_SIG_it: ASN1_ITEM; } extern "C" { - #[link_name = "\u{1}_aws_lc_0_21_0_d2i_EC_PUBKEY_fp"] - pub fn d2i_EC_PUBKEY_fp(fp: *mut FILE, eckey: *mut *mut EC_KEY) -> *mut EC_KEY; + #[link_name = "\u{1}_aws_lc_0_21_0_X509_SIG_new"] + pub fn X509_SIG_new() -> *mut X509_SIG; } extern "C" { - #[link_name = "\u{1}_aws_lc_0_21_0_d2i_ECPrivateKey_fp"] - pub fn d2i_ECPrivateKey_fp(fp: *mut FILE, eckey: *mut *mut EC_KEY) -> *mut EC_KEY; + #[link_name = "\u{1}_aws_lc_0_21_0_X509_SIG_free"] + pub fn X509_SIG_free(key: *mut X509_SIG); } extern "C" { - #[link_name = "\u{1}_aws_lc_0_21_0_d2i_PKCS8_fp"] - pub fn d2i_PKCS8_fp(fp: *mut FILE, p8: *mut *mut X509_SIG) -> *mut X509_SIG; + #[link_name = "\u{1}_aws_lc_0_21_0_d2i_X509_SIG"] + pub fn d2i_X509_SIG( + out: *mut *mut X509_SIG, + inp: *mut *const u8, + len: ::std::os::raw::c_long, + ) -> *mut X509_SIG; } extern "C" { - #[link_name = "\u{1}_aws_lc_0_21_0_d2i_PKCS8_PRIV_KEY_INFO_fp"] - pub fn d2i_PKCS8_PRIV_KEY_INFO_fp( - fp: *mut FILE, - p8inf: *mut *mut PKCS8_PRIV_KEY_INFO, - ) -> *mut PKCS8_PRIV_KEY_INFO; + #[link_name = "\u{1}_aws_lc_0_21_0_i2d_X509_SIG"] + pub fn i2d_X509_SIG(sig: *const X509_SIG, outp: *mut *mut u8) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_0_21_0_d2i_PrivateKey_fp"] - pub fn d2i_PrivateKey_fp(fp: *mut FILE, a: *mut *mut EVP_PKEY) -> *mut EVP_PKEY; + #[link_name = "\u{1}_aws_lc_0_21_0_X509_SIG_get0"] + pub fn X509_SIG_get0( + sig: *const X509_SIG, + out_alg: *mut *const X509_ALGOR, + out_digest: *mut *const ASN1_OCTET_STRING, + ); } extern "C" { - #[link_name = "\u{1}_aws_lc_0_21_0_d2i_PUBKEY_fp"] - pub fn d2i_PUBKEY_fp(fp: *mut FILE, a: *mut *mut EVP_PKEY) -> *mut EVP_PKEY; + #[link_name = "\u{1}_aws_lc_0_21_0_X509_SIG_getm"] + pub fn X509_SIG_getm( + sig: *mut X509_SIG, + out_alg: *mut *mut X509_ALGOR, + out_digest: *mut *mut ASN1_OCTET_STRING, + ); } extern "C" { - #[link_name = "\u{1}_aws_lc_0_21_0_i2d_X509_fp"] - pub fn i2d_X509_fp(fp: *mut FILE, x509: *mut X509) -> ::std::os::raw::c_int; + #[link_name = "\u{1}_aws_lc_0_21_0_X509_print_ex"] + pub fn X509_print_ex( + bp: *mut BIO, + x: *mut X509, + nmflag: ::std::os::raw::c_ulong, + cflag: ::std::os::raw::c_ulong, + ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_0_21_0_i2d_X509_CRL_fp"] - pub fn i2d_X509_CRL_fp(fp: *mut FILE, crl: *mut X509_CRL) -> ::std::os::raw::c_int; + #[link_name = "\u{1}_aws_lc_0_21_0_X509_print_ex_fp"] + pub fn X509_print_ex_fp( + fp: *mut FILE, + x: *mut X509, + nmflag: ::std::os::raw::c_ulong, + cflag: ::std::os::raw::c_ulong, + ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_0_21_0_i2d_X509_REQ_fp"] - pub fn i2d_X509_REQ_fp(fp: *mut FILE, req: *mut X509_REQ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}_aws_lc_0_21_0_X509_print"] + pub fn X509_print(bp: *mut BIO, x: *mut X509) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_0_21_0_i2d_RSAPrivateKey_fp"] - pub fn i2d_RSAPrivateKey_fp(fp: *mut FILE, rsa: *mut RSA) -> ::std::os::raw::c_int; + #[link_name = "\u{1}_aws_lc_0_21_0_X509_print_fp"] + pub fn X509_print_fp(fp: *mut FILE, x: *mut X509) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_0_21_0_i2d_RSAPublicKey_fp"] - pub fn i2d_RSAPublicKey_fp(fp: *mut FILE, rsa: *mut RSA) -> ::std::os::raw::c_int; + #[link_name = "\u{1}_aws_lc_0_21_0_X509_CRL_print"] + pub fn X509_CRL_print(bp: *mut BIO, x: *mut X509_CRL) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_0_21_0_i2d_RSA_PUBKEY_fp"] - pub fn i2d_RSA_PUBKEY_fp(fp: *mut FILE, rsa: *mut RSA) -> ::std::os::raw::c_int; + #[link_name = "\u{1}_aws_lc_0_21_0_X509_CRL_print_fp"] + pub fn X509_CRL_print_fp(fp: *mut FILE, x: *mut X509_CRL) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_0_21_0_i2d_DSA_PUBKEY_fp"] - pub fn i2d_DSA_PUBKEY_fp(fp: *mut FILE, dsa: *mut DSA) -> ::std::os::raw::c_int; + #[link_name = "\u{1}_aws_lc_0_21_0_X509_REQ_print_ex"] + pub fn X509_REQ_print_ex( + bp: *mut BIO, + x: *mut X509_REQ, + nmflag: ::std::os::raw::c_ulong, + cflag: ::std::os::raw::c_ulong, + ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_0_21_0_i2d_DSAPrivateKey_fp"] - pub fn i2d_DSAPrivateKey_fp(fp: *mut FILE, dsa: *mut DSA) -> ::std::os::raw::c_int; + #[link_name = "\u{1}_aws_lc_0_21_0_X509_REQ_print"] + pub fn X509_REQ_print(bp: *mut BIO, req: *mut X509_REQ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_0_21_0_i2d_EC_PUBKEY_fp"] - pub fn i2d_EC_PUBKEY_fp(fp: *mut FILE, eckey: *mut EC_KEY) -> ::std::os::raw::c_int; + #[link_name = "\u{1}_aws_lc_0_21_0_X509_REQ_print_fp"] + pub fn X509_REQ_print_fp(fp: *mut FILE, req: *mut X509_REQ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_0_21_0_i2d_ECPrivateKey_fp"] - pub fn i2d_ECPrivateKey_fp(fp: *mut FILE, eckey: *mut EC_KEY) -> ::std::os::raw::c_int; + #[link_name = "\u{1}_aws_lc_0_21_0_X509_NAME_print_ex"] + pub fn X509_NAME_print_ex( + out: *mut BIO, + nm: *const X509_NAME, + indent: ::std::os::raw::c_int, + flags: ::std::os::raw::c_ulong, + ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_0_21_0_i2d_PKCS8_fp"] - pub fn i2d_PKCS8_fp(fp: *mut FILE, p8: *mut X509_SIG) -> ::std::os::raw::c_int; + #[link_name = "\u{1}_aws_lc_0_21_0_X509_NAME_print"] + pub fn X509_NAME_print( + bp: *mut BIO, + name: *const X509_NAME, + obase: ::std::os::raw::c_int, + ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_0_21_0_i2d_PKCS8_PRIV_KEY_INFO_fp"] - pub fn i2d_PKCS8_PRIV_KEY_INFO_fp( + #[link_name = "\u{1}_aws_lc_0_21_0_X509_NAME_oneline"] + pub fn X509_NAME_oneline( + name: *const X509_NAME, + buf: *mut ::std::os::raw::c_char, + size: ::std::os::raw::c_int, + ) -> *mut ::std::os::raw::c_char; +} +extern "C" { + #[link_name = "\u{1}_aws_lc_0_21_0_X509_NAME_print_ex_fp"] + pub fn X509_NAME_print_ex_fp( fp: *mut FILE, - p8inf: *mut PKCS8_PRIV_KEY_INFO, + nm: *const X509_NAME, + indent: ::std::os::raw::c_int, + flags: ::std::os::raw::c_ulong, ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_0_21_0_i2d_PKCS8PrivateKeyInfo_fp"] - pub fn i2d_PKCS8PrivateKeyInfo_fp(fp: *mut FILE, key: *mut EVP_PKEY) -> ::std::os::raw::c_int; + #[link_name = "\u{1}_aws_lc_0_21_0_X509_signature_dump"] + pub fn X509_signature_dump( + bio: *mut BIO, + sig: *const ASN1_STRING, + indent: ::std::os::raw::c_int, + ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_0_21_0_i2d_PrivateKey_fp"] - pub fn i2d_PrivateKey_fp(fp: *mut FILE, pkey: *mut EVP_PKEY) -> ::std::os::raw::c_int; + #[link_name = "\u{1}_aws_lc_0_21_0_X509_signature_print"] + pub fn X509_signature_print( + bio: *mut BIO, + alg: *const X509_ALGOR, + sig: *const ASN1_STRING, + ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_0_21_0_i2d_PUBKEY_fp"] - pub fn i2d_PUBKEY_fp(fp: *mut FILE, pkey: *mut EVP_PKEY) -> ::std::os::raw::c_int; + #[link_name = "\u{1}_aws_lc_0_21_0_X509V3_EXT_print"] + pub fn X509V3_EXT_print( + out: *mut BIO, + ext: *const X509_EXTENSION, + flag: ::std::os::raw::c_ulong, + indent: ::std::os::raw::c_int, + ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_0_21_0_X509_find_by_issuer_and_serial"] - pub fn X509_find_by_issuer_and_serial( - sk: *const stack_st_X509, - name: *mut X509_NAME, - serial: *const ASN1_INTEGER, - ) -> *mut X509; + #[link_name = "\u{1}_aws_lc_0_21_0_X509V3_EXT_print_fp"] + pub fn X509V3_EXT_print_fp( + out: *mut FILE, + ext: *const X509_EXTENSION, + flag: ::std::os::raw::c_int, + indent: ::std::os::raw::c_int, + ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_0_21_0_X509_find_by_subject"] - pub fn X509_find_by_subject(sk: *const stack_st_X509, name: *mut X509_NAME) -> *mut X509; + #[link_name = "\u{1}_aws_lc_0_21_0_X509V3_extensions_print"] + pub fn X509V3_extensions_print( + out: *mut BIO, + title: *const ::std::os::raw::c_char, + exts: *const stack_st_X509_EXTENSION, + flag: ::std::os::raw::c_ulong, + indent: ::std::os::raw::c_int, + ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_0_21_0_X509_cmp_time"] - pub fn X509_cmp_time(s: *const ASN1_TIME, t: *const time_t) -> ::std::os::raw::c_int; + #[link_name = "\u{1}_aws_lc_0_21_0_GENERAL_NAME_print"] + pub fn GENERAL_NAME_print(out: *mut BIO, gen: *const GENERAL_NAME) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_0_21_0_X509_cmp_time_posix"] - pub fn X509_cmp_time_posix(s: *const ASN1_TIME, t: i64) -> ::std::os::raw::c_int; + #[link_name = "\u{1}_aws_lc_0_21_0_X509_pubkey_digest"] + pub fn X509_pubkey_digest( + x509: *const X509, + md: *const EVP_MD, + out: *mut u8, + out_len: *mut ::std::os::raw::c_uint, + ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_0_21_0_X509_cmp_current_time"] - pub fn X509_cmp_current_time(s: *const ASN1_TIME) -> ::std::os::raw::c_int; + #[link_name = "\u{1}_aws_lc_0_21_0_X509_digest"] + pub fn X509_digest( + x509: *const X509, + md: *const EVP_MD, + out: *mut u8, + out_len: *mut ::std::os::raw::c_uint, + ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_0_21_0_X509_time_adj"] - pub fn X509_time_adj( - s: *mut ASN1_TIME, - offset_sec: ::std::os::raw::c_long, - t: *const time_t, - ) -> *mut ASN1_TIME; + #[link_name = "\u{1}_aws_lc_0_21_0_X509_CRL_digest"] + pub fn X509_CRL_digest( + crl: *const X509_CRL, + md: *const EVP_MD, + out: *mut u8, + out_len: *mut ::std::os::raw::c_uint, + ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_0_21_0_X509_time_adj_ex"] - pub fn X509_time_adj_ex( - s: *mut ASN1_TIME, - offset_day: ::std::os::raw::c_int, - offset_sec: ::std::os::raw::c_long, - t: *const time_t, - ) -> *mut ASN1_TIME; + #[link_name = "\u{1}_aws_lc_0_21_0_X509_REQ_digest"] + pub fn X509_REQ_digest( + req: *const X509_REQ, + md: *const EVP_MD, + out: *mut u8, + out_len: *mut ::std::os::raw::c_uint, + ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_0_21_0_X509_gmtime_adj"] - pub fn X509_gmtime_adj(s: *mut ASN1_TIME, offset_sec: ::std::os::raw::c_long) - -> *mut ASN1_TIME; + #[link_name = "\u{1}_aws_lc_0_21_0_X509_NAME_digest"] + pub fn X509_NAME_digest( + name: *const X509_NAME, + md: *const EVP_MD, + out: *mut u8, + out_len: *mut ::std::os::raw::c_uint, + ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_0_21_0_X509_issuer_name_cmp"] - pub fn X509_issuer_name_cmp(a: *const X509, b: *const X509) -> ::std::os::raw::c_int; + #[link_name = "\u{1}_aws_lc_0_21_0_d2i_X509_bio"] + pub fn d2i_X509_bio(bp: *mut BIO, x509: *mut *mut X509) -> *mut X509; } extern "C" { - #[link_name = "\u{1}_aws_lc_0_21_0_X509_subject_name_cmp"] - pub fn X509_subject_name_cmp(a: *const X509, b: *const X509) -> ::std::os::raw::c_int; + #[link_name = "\u{1}_aws_lc_0_21_0_d2i_X509_CRL_bio"] + pub fn d2i_X509_CRL_bio(bp: *mut BIO, crl: *mut *mut X509_CRL) -> *mut X509_CRL; } extern "C" { - #[link_name = "\u{1}_aws_lc_0_21_0_X509_CRL_cmp"] - pub fn X509_CRL_cmp(a: *const X509_CRL, b: *const X509_CRL) -> ::std::os::raw::c_int; + #[link_name = "\u{1}_aws_lc_0_21_0_d2i_X509_REQ_bio"] + pub fn d2i_X509_REQ_bio(bp: *mut BIO, req: *mut *mut X509_REQ) -> *mut X509_REQ; } extern "C" { - #[link_name = "\u{1}_aws_lc_0_21_0_X509_issuer_name_hash"] - pub fn X509_issuer_name_hash(x509: *mut X509) -> u32; + #[link_name = "\u{1}_aws_lc_0_21_0_d2i_RSAPrivateKey_bio"] + pub fn d2i_RSAPrivateKey_bio(bp: *mut BIO, rsa: *mut *mut RSA) -> *mut RSA; } extern "C" { - #[link_name = "\u{1}_aws_lc_0_21_0_X509_subject_name_hash"] - pub fn X509_subject_name_hash(x509: *mut X509) -> u32; + #[link_name = "\u{1}_aws_lc_0_21_0_d2i_RSAPublicKey_bio"] + pub fn d2i_RSAPublicKey_bio(bp: *mut BIO, rsa: *mut *mut RSA) -> *mut RSA; } extern "C" { - #[link_name = "\u{1}_aws_lc_0_21_0_X509_issuer_name_hash_old"] - pub fn X509_issuer_name_hash_old(x509: *mut X509) -> u32; + #[link_name = "\u{1}_aws_lc_0_21_0_d2i_RSA_PUBKEY_bio"] + pub fn d2i_RSA_PUBKEY_bio(bp: *mut BIO, rsa: *mut *mut RSA) -> *mut RSA; } extern "C" { - #[link_name = "\u{1}_aws_lc_0_21_0_X509_subject_name_hash_old"] - pub fn X509_subject_name_hash_old(x509: *mut X509) -> u32; + #[link_name = "\u{1}_aws_lc_0_21_0_d2i_DSA_PUBKEY_bio"] + pub fn d2i_DSA_PUBKEY_bio(bp: *mut BIO, dsa: *mut *mut DSA) -> *mut DSA; } extern "C" { - #[link_name = "\u{1}_aws_lc_0_21_0_X509_get_ex_new_index"] - pub fn X509_get_ex_new_index( - argl: ::std::os::raw::c_long, - argp: *mut ::std::os::raw::c_void, - unused: *mut CRYPTO_EX_unused, - dup_unused: CRYPTO_EX_dup, - free_func: CRYPTO_EX_free, - ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}_aws_lc_0_21_0_d2i_DSAPrivateKey_bio"] + pub fn d2i_DSAPrivateKey_bio(bp: *mut BIO, dsa: *mut *mut DSA) -> *mut DSA; } extern "C" { - #[link_name = "\u{1}_aws_lc_0_21_0_X509_set_ex_data"] - pub fn X509_set_ex_data( - r: *mut X509, - idx: ::std::os::raw::c_int, - arg: *mut ::std::os::raw::c_void, - ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}_aws_lc_0_21_0_d2i_EC_PUBKEY_bio"] + pub fn d2i_EC_PUBKEY_bio(bp: *mut BIO, eckey: *mut *mut EC_KEY) -> *mut EC_KEY; } extern "C" { - #[link_name = "\u{1}_aws_lc_0_21_0_X509_get_ex_data"] - pub fn X509_get_ex_data( - r: *mut X509, - idx: ::std::os::raw::c_int, - ) -> *mut ::std::os::raw::c_void; + #[link_name = "\u{1}_aws_lc_0_21_0_d2i_ECPrivateKey_bio"] + pub fn d2i_ECPrivateKey_bio(bp: *mut BIO, eckey: *mut *mut EC_KEY) -> *mut EC_KEY; } extern "C" { - #[link_name = "\u{1}_aws_lc_0_21_0_X509_STORE_CTX_get_ex_new_index"] - pub fn X509_STORE_CTX_get_ex_new_index( - argl: ::std::os::raw::c_long, - argp: *mut ::std::os::raw::c_void, - unused: *mut CRYPTO_EX_unused, - dup_unused: CRYPTO_EX_dup, - free_func: CRYPTO_EX_free, - ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}_aws_lc_0_21_0_d2i_PKCS8_bio"] + pub fn d2i_PKCS8_bio(bp: *mut BIO, p8: *mut *mut X509_SIG) -> *mut X509_SIG; } extern "C" { - #[link_name = "\u{1}_aws_lc_0_21_0_X509_STORE_CTX_set_ex_data"] - pub fn X509_STORE_CTX_set_ex_data( - ctx: *mut X509_STORE_CTX, - idx: ::std::os::raw::c_int, - data: *mut ::std::os::raw::c_void, - ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}_aws_lc_0_21_0_d2i_PKCS8_PRIV_KEY_INFO_bio"] + pub fn d2i_PKCS8_PRIV_KEY_INFO_bio( + bp: *mut BIO, + p8inf: *mut *mut PKCS8_PRIV_KEY_INFO, + ) -> *mut PKCS8_PRIV_KEY_INFO; } extern "C" { - #[link_name = "\u{1}_aws_lc_0_21_0_X509_STORE_CTX_get_ex_data"] - pub fn X509_STORE_CTX_get_ex_data( - ctx: *mut X509_STORE_CTX, - idx: ::std::os::raw::c_int, - ) -> *mut ::std::os::raw::c_void; + #[link_name = "\u{1}_aws_lc_0_21_0_d2i_PUBKEY_bio"] + pub fn d2i_PUBKEY_bio(bp: *mut BIO, a: *mut *mut EVP_PKEY) -> *mut EVP_PKEY; } extern "C" { - #[link_name = "\u{1}_aws_lc_0_21_0_X509_STORE_get_ex_new_index"] - pub fn X509_STORE_get_ex_new_index( - argl: ::std::os::raw::c_long, - argp: *mut ::std::os::raw::c_void, - unused: *mut CRYPTO_EX_unused, - dup_unused: CRYPTO_EX_dup, - free_func: CRYPTO_EX_free, - ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}_aws_lc_0_21_0_d2i_DHparams_bio"] + pub fn d2i_DHparams_bio(bp: *mut BIO, dh: *mut *mut DH) -> *mut DH; } extern "C" { - #[link_name = "\u{1}_aws_lc_0_21_0_X509_STORE_set_ex_data"] - pub fn X509_STORE_set_ex_data( - ctx: *mut X509_STORE, - idx: ::std::os::raw::c_int, - data: *mut ::std::os::raw::c_void, - ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}_aws_lc_0_21_0_d2i_PrivateKey_bio"] + pub fn d2i_PrivateKey_bio(bp: *mut BIO, a: *mut *mut EVP_PKEY) -> *mut EVP_PKEY; } extern "C" { - #[link_name = "\u{1}_aws_lc_0_21_0_X509_STORE_get_ex_data"] - pub fn X509_STORE_get_ex_data( - ctx: *mut X509_STORE, - idx: ::std::os::raw::c_int, - ) -> *mut ::std::os::raw::c_void; + #[link_name = "\u{1}_aws_lc_0_21_0_i2d_X509_bio"] + pub fn i2d_X509_bio(bp: *mut BIO, x509: *mut X509) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_0_21_0_ASN1_digest"] - pub fn ASN1_digest( - i2d: i2d_of_void, - type_: *const EVP_MD, - data: *mut ::std::os::raw::c_char, - md: *mut ::std::os::raw::c_uchar, - len: *mut ::std::os::raw::c_uint, - ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}_aws_lc_0_21_0_i2d_X509_CRL_bio"] + pub fn i2d_X509_CRL_bio(bp: *mut BIO, crl: *mut X509_CRL) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_0_21_0_ASN1_item_digest"] - pub fn ASN1_item_digest( - it: *const ASN1_ITEM, - type_: *const EVP_MD, - data: *mut ::std::os::raw::c_void, - md: *mut ::std::os::raw::c_uchar, - len: *mut ::std::os::raw::c_uint, - ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}_aws_lc_0_21_0_i2d_X509_REQ_bio"] + pub fn i2d_X509_REQ_bio(bp: *mut BIO, req: *mut X509_REQ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_0_21_0_ASN1_item_verify"] - pub fn ASN1_item_verify( - it: *const ASN1_ITEM, - algor1: *const X509_ALGOR, - signature: *const ASN1_BIT_STRING, - data: *mut ::std::os::raw::c_void, - pkey: *mut EVP_PKEY, - ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}_aws_lc_0_21_0_i2d_RSAPrivateKey_bio"] + pub fn i2d_RSAPrivateKey_bio(bp: *mut BIO, rsa: *mut RSA) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_0_21_0_ASN1_item_sign"] - pub fn ASN1_item_sign( - it: *const ASN1_ITEM, - algor1: *mut X509_ALGOR, - algor2: *mut X509_ALGOR, - signature: *mut ASN1_BIT_STRING, - data: *mut ::std::os::raw::c_void, - pkey: *mut EVP_PKEY, - type_: *const EVP_MD, - ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}_aws_lc_0_21_0_i2d_RSAPublicKey_bio"] + pub fn i2d_RSAPublicKey_bio(bp: *mut BIO, rsa: *mut RSA) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_0_21_0_ASN1_item_sign_ctx"] - pub fn ASN1_item_sign_ctx( - it: *const ASN1_ITEM, - algor1: *mut X509_ALGOR, - algor2: *mut X509_ALGOR, - signature: *mut ASN1_BIT_STRING, - asn: *mut ::std::os::raw::c_void, - ctx: *mut EVP_MD_CTX, - ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}_aws_lc_0_21_0_i2d_RSA_PUBKEY_bio"] + pub fn i2d_RSA_PUBKEY_bio(bp: *mut BIO, rsa: *mut RSA) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_0_21_0_X509_supported_extension"] - pub fn X509_supported_extension(ex: *const X509_EXTENSION) -> ::std::os::raw::c_int; + #[link_name = "\u{1}_aws_lc_0_21_0_i2d_DSA_PUBKEY_bio"] + pub fn i2d_DSA_PUBKEY_bio(bp: *mut BIO, dsa: *mut DSA) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_0_21_0_X509_check_ca"] - pub fn X509_check_ca(x509: *mut X509) -> ::std::os::raw::c_int; + #[link_name = "\u{1}_aws_lc_0_21_0_i2d_DSAPrivateKey_bio"] + pub fn i2d_DSAPrivateKey_bio(bp: *mut BIO, dsa: *mut DSA) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_0_21_0_X509_check_issued"] - pub fn X509_check_issued(issuer: *mut X509, subject: *mut X509) -> ::std::os::raw::c_int; + #[link_name = "\u{1}_aws_lc_0_21_0_i2d_EC_PUBKEY_bio"] + pub fn i2d_EC_PUBKEY_bio(bp: *mut BIO, eckey: *mut EC_KEY) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_0_21_0_NAME_CONSTRAINTS_check"] - pub fn NAME_CONSTRAINTS_check( - x509: *mut X509, - nc: *mut NAME_CONSTRAINTS, - ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}_aws_lc_0_21_0_i2d_ECPrivateKey_bio"] + pub fn i2d_ECPrivateKey_bio(bp: *mut BIO, eckey: *mut EC_KEY) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_0_21_0_X509_check_host"] - pub fn X509_check_host( - x509: *const X509, - chk: *const ::std::os::raw::c_char, - chklen: usize, - flags: ::std::os::raw::c_uint, - out_peername: *mut *mut ::std::os::raw::c_char, - ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}_aws_lc_0_21_0_i2d_PKCS8_bio"] + pub fn i2d_PKCS8_bio(bp: *mut BIO, p8: *mut X509_SIG) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_0_21_0_X509_check_email"] - pub fn X509_check_email( - x509: *const X509, - chk: *const ::std::os::raw::c_char, - chklen: usize, - flags: ::std::os::raw::c_uint, + #[link_name = "\u{1}_aws_lc_0_21_0_i2d_PKCS8_PRIV_KEY_INFO_bio"] + pub fn i2d_PKCS8_PRIV_KEY_INFO_bio( + bp: *mut BIO, + p8inf: *mut PKCS8_PRIV_KEY_INFO, ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_0_21_0_X509_check_ip"] - pub fn X509_check_ip( - x509: *const X509, - chk: *const u8, - chklen: usize, - flags: ::std::os::raw::c_uint, - ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}_aws_lc_0_21_0_i2d_PrivateKey_bio"] + pub fn i2d_PrivateKey_bio(bp: *mut BIO, pkey: *mut EVP_PKEY) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_0_21_0_X509_check_ip_asc"] - pub fn X509_check_ip_asc( - x509: *const X509, - ipasc: *const ::std::os::raw::c_char, - flags: ::std::os::raw::c_uint, - ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}_aws_lc_0_21_0_i2d_PUBKEY_bio"] + pub fn i2d_PUBKEY_bio(bp: *mut BIO, pkey: *mut EVP_PKEY) -> ::std::os::raw::c_int; } -#[repr(C)] -#[derive(Debug, Copy, Clone, PartialEq, Eq)] -pub struct private_key_st { - pub dec_pkey: *mut EVP_PKEY, +extern "C" { + #[link_name = "\u{1}_aws_lc_0_21_0_i2d_DHparams_bio"] + pub fn i2d_DHparams_bio(bp: *mut BIO, dh: *const DH) -> ::std::os::raw::c_int; } -#[test] -fn bindgen_test_layout_private_key_st() { - const UNINIT: ::std::mem::MaybeUninit = ::std::mem::MaybeUninit::uninit(); - let ptr = UNINIT.as_ptr(); - assert_eq!( - ::std::mem::size_of::(), - 8usize, - concat!("Size of: ", stringify!(private_key_st)) - ); - assert_eq!( - ::std::mem::align_of::(), - 8usize, - concat!("Alignment of ", stringify!(private_key_st)) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).dec_pkey) as usize - ptr as usize }, - 0usize, - concat!( - "Offset of field: ", - stringify!(private_key_st), - "::", - stringify!(dec_pkey) - ) - ); +extern "C" { + #[link_name = "\u{1}_aws_lc_0_21_0_i2d_PKCS8PrivateKeyInfo_bio"] + pub fn i2d_PKCS8PrivateKeyInfo_bio(bp: *mut BIO, key: *mut EVP_PKEY) -> ::std::os::raw::c_int; } -impl Default for private_key_st { - fn default() -> Self { - let mut s = ::std::mem::MaybeUninit::::uninit(); - unsafe { - ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() - } - } +extern "C" { + #[link_name = "\u{1}_aws_lc_0_21_0_d2i_X509_fp"] + pub fn d2i_X509_fp(fp: *mut FILE, x509: *mut *mut X509) -> *mut X509; } -#[repr(C)] -#[derive(Debug, Copy, Clone, PartialEq, Eq)] -pub struct X509_info_st { - pub x509: *mut X509, - pub crl: *mut X509_CRL, - pub x_pkey: *mut X509_PKEY, - pub enc_cipher: EVP_CIPHER_INFO, - pub enc_len: ::std::os::raw::c_int, - pub enc_data: *mut ::std::os::raw::c_char, +extern "C" { + #[link_name = "\u{1}_aws_lc_0_21_0_d2i_X509_CRL_fp"] + pub fn d2i_X509_CRL_fp(fp: *mut FILE, crl: *mut *mut X509_CRL) -> *mut X509_CRL; } -#[test] -fn bindgen_test_layout_X509_info_st() { - const UNINIT: ::std::mem::MaybeUninit = ::std::mem::MaybeUninit::uninit(); - let ptr = UNINIT.as_ptr(); - assert_eq!( - ::std::mem::size_of::(), - 64usize, - concat!("Size of: ", stringify!(X509_info_st)) - ); - assert_eq!( - ::std::mem::align_of::(), - 8usize, - concat!("Alignment of ", stringify!(X509_info_st)) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).x509) as usize - ptr as usize }, - 0usize, - concat!( - "Offset of field: ", - stringify!(X509_info_st), - "::", - stringify!(x509) - ) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).crl) as usize - ptr as usize }, - 8usize, - concat!( - "Offset of field: ", - stringify!(X509_info_st), - "::", - stringify!(crl) - ) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).x_pkey) as usize - ptr as usize }, - 16usize, - concat!( - "Offset of field: ", - stringify!(X509_info_st), - "::", - stringify!(x_pkey) - ) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).enc_cipher) as usize - ptr as usize }, - 24usize, - concat!( - "Offset of field: ", - stringify!(X509_info_st), - "::", - stringify!(enc_cipher) - ) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).enc_len) as usize - ptr as usize }, - 48usize, - concat!( - "Offset of field: ", - stringify!(X509_info_st), - "::", - stringify!(enc_len) - ) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).enc_data) as usize - ptr as usize }, - 56usize, - concat!( - "Offset of field: ", - stringify!(X509_info_st), - "::", - stringify!(enc_data) - ) - ); +extern "C" { + #[link_name = "\u{1}_aws_lc_0_21_0_d2i_X509_REQ_fp"] + pub fn d2i_X509_REQ_fp(fp: *mut FILE, req: *mut *mut X509_REQ) -> *mut X509_REQ; } -impl Default for X509_info_st { - fn default() -> Self { - let mut s = ::std::mem::MaybeUninit::::uninit(); - unsafe { - ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() - } - } +extern "C" { + #[link_name = "\u{1}_aws_lc_0_21_0_d2i_RSAPrivateKey_fp"] + pub fn d2i_RSAPrivateKey_fp(fp: *mut FILE, rsa: *mut *mut RSA) -> *mut RSA; } -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct stack_st_X509_INFO { - _unused: [u8; 0], +extern "C" { + #[link_name = "\u{1}_aws_lc_0_21_0_d2i_RSAPublicKey_fp"] + pub fn d2i_RSAPublicKey_fp(fp: *mut FILE, rsa: *mut *mut RSA) -> *mut RSA; } -pub type sk_X509_INFO_free_func = ::std::option::Option; -pub type sk_X509_INFO_copy_func = - ::std::option::Option *mut X509_INFO>; -pub type sk_X509_INFO_cmp_func = ::std::option::Option< - unsafe extern "C" fn( - arg1: *const *const X509_INFO, - arg2: *const *const X509_INFO, - ) -> ::std::os::raw::c_int, ->; -pub type sk_X509_INFO_delete_if_func = ::std::option::Option< - unsafe extern "C" fn( - arg1: *mut X509_INFO, - arg2: *mut ::std::os::raw::c_void, - ) -> ::std::os::raw::c_int, ->; extern "C" { - #[link_name = "\u{1}_aws_lc_0_21_0_X509_INFO_free"] - pub fn X509_INFO_free(info: *mut X509_INFO); -} -#[repr(C)] -#[derive(Debug, Copy, Clone, PartialEq, Eq)] -pub struct v3_ext_ctx { - pub flags: ::std::os::raw::c_int, - pub issuer_cert: *const X509, - pub subject_cert: *const X509, - pub subject_req: *const X509_REQ, - pub crl: *const X509_CRL, - pub db: *const CONF, -} -#[test] -fn bindgen_test_layout_v3_ext_ctx() { - const UNINIT: ::std::mem::MaybeUninit = ::std::mem::MaybeUninit::uninit(); - let ptr = UNINIT.as_ptr(); - assert_eq!( - ::std::mem::size_of::(), - 48usize, - concat!("Size of: ", stringify!(v3_ext_ctx)) - ); - assert_eq!( - ::std::mem::align_of::(), - 8usize, - concat!("Alignment of ", stringify!(v3_ext_ctx)) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).flags) as usize - ptr as usize }, - 0usize, - concat!( - "Offset of field: ", - stringify!(v3_ext_ctx), - "::", - stringify!(flags) - ) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).issuer_cert) as usize - ptr as usize }, - 8usize, - concat!( - "Offset of field: ", - stringify!(v3_ext_ctx), - "::", - stringify!(issuer_cert) - ) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).subject_cert) as usize - ptr as usize }, - 16usize, - concat!( - "Offset of field: ", - stringify!(v3_ext_ctx), - "::", - stringify!(subject_cert) - ) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).subject_req) as usize - ptr as usize }, - 24usize, - concat!( - "Offset of field: ", - stringify!(v3_ext_ctx), - "::", - stringify!(subject_req) - ) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).crl) as usize - ptr as usize }, - 32usize, - concat!( - "Offset of field: ", - stringify!(v3_ext_ctx), - "::", - stringify!(crl) - ) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).db) as usize - ptr as usize }, - 40usize, - concat!( - "Offset of field: ", - stringify!(v3_ext_ctx), - "::", - stringify!(db) - ) - ); -} -impl Default for v3_ext_ctx { - fn default() -> Self { - let mut s = ::std::mem::MaybeUninit::::uninit(); - unsafe { - ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() - } - } + #[link_name = "\u{1}_aws_lc_0_21_0_d2i_RSA_PUBKEY_fp"] + pub fn d2i_RSA_PUBKEY_fp(fp: *mut FILE, rsa: *mut *mut RSA) -> *mut RSA; } extern "C" { - #[link_name = "\u{1}_aws_lc_0_21_0_X509V3_set_ctx"] - pub fn X509V3_set_ctx( - ctx: *mut X509V3_CTX, - issuer: *const X509, - subject: *const X509, - req: *const X509_REQ, - crl: *const X509_CRL, - flags: ::std::os::raw::c_int, - ); + #[link_name = "\u{1}_aws_lc_0_21_0_d2i_DSA_PUBKEY_fp"] + pub fn d2i_DSA_PUBKEY_fp(fp: *mut FILE, dsa: *mut *mut DSA) -> *mut DSA; } extern "C" { - #[link_name = "\u{1}_aws_lc_0_21_0_X509V3_set_nconf"] - pub fn X509V3_set_nconf(ctx: *mut X509V3_CTX, conf: *const CONF); + #[link_name = "\u{1}_aws_lc_0_21_0_d2i_DSAPrivateKey_fp"] + pub fn d2i_DSAPrivateKey_fp(fp: *mut FILE, dsa: *mut *mut DSA) -> *mut DSA; } extern "C" { - #[link_name = "\u{1}_aws_lc_0_21_0_X509V3_EXT_nconf"] - pub fn X509V3_EXT_nconf( - conf: *const CONF, - ctx: *const X509V3_CTX, - name: *const ::std::os::raw::c_char, - value: *const ::std::os::raw::c_char, - ) -> *mut X509_EXTENSION; + #[link_name = "\u{1}_aws_lc_0_21_0_d2i_EC_PUBKEY_fp"] + pub fn d2i_EC_PUBKEY_fp(fp: *mut FILE, eckey: *mut *mut EC_KEY) -> *mut EC_KEY; } extern "C" { - #[link_name = "\u{1}_aws_lc_0_21_0_X509V3_EXT_nconf_nid"] - pub fn X509V3_EXT_nconf_nid( - conf: *const CONF, - ctx: *const X509V3_CTX, - ext_nid: ::std::os::raw::c_int, - value: *const ::std::os::raw::c_char, - ) -> *mut X509_EXTENSION; + #[link_name = "\u{1}_aws_lc_0_21_0_d2i_ECPrivateKey_fp"] + pub fn d2i_ECPrivateKey_fp(fp: *mut FILE, eckey: *mut *mut EC_KEY) -> *mut EC_KEY; } extern "C" { - #[link_name = "\u{1}_aws_lc_0_21_0_X509V3_EXT_conf_nid"] - pub fn X509V3_EXT_conf_nid( - conf: *mut lhash_st_CONF_VALUE, - ctx: *const X509V3_CTX, - ext_nid: ::std::os::raw::c_int, - value: *const ::std::os::raw::c_char, - ) -> *mut X509_EXTENSION; + #[link_name = "\u{1}_aws_lc_0_21_0_d2i_PKCS8_fp"] + pub fn d2i_PKCS8_fp(fp: *mut FILE, p8: *mut *mut X509_SIG) -> *mut X509_SIG; } extern "C" { - #[link_name = "\u{1}_aws_lc_0_21_0_X509V3_EXT_add_nconf_sk"] - pub fn X509V3_EXT_add_nconf_sk( - conf: *const CONF, - ctx: *const X509V3_CTX, - section: *const ::std::os::raw::c_char, - sk: *mut *mut stack_st_X509_EXTENSION, - ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}_aws_lc_0_21_0_d2i_PKCS8_PRIV_KEY_INFO_fp"] + pub fn d2i_PKCS8_PRIV_KEY_INFO_fp( + fp: *mut FILE, + p8inf: *mut *mut PKCS8_PRIV_KEY_INFO, + ) -> *mut PKCS8_PRIV_KEY_INFO; } extern "C" { - #[link_name = "\u{1}_aws_lc_0_21_0_X509V3_EXT_add_nconf"] - pub fn X509V3_EXT_add_nconf( - conf: *const CONF, - ctx: *const X509V3_CTX, - section: *const ::std::os::raw::c_char, - cert: *mut X509, - ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}_aws_lc_0_21_0_d2i_PrivateKey_fp"] + pub fn d2i_PrivateKey_fp(fp: *mut FILE, a: *mut *mut EVP_PKEY) -> *mut EVP_PKEY; } extern "C" { - #[link_name = "\u{1}_aws_lc_0_21_0_X509V3_EXT_REQ_add_nconf"] - pub fn X509V3_EXT_REQ_add_nconf( - conf: *const CONF, - ctx: *const X509V3_CTX, - section: *const ::std::os::raw::c_char, - req: *mut X509_REQ, - ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}_aws_lc_0_21_0_d2i_PUBKEY_fp"] + pub fn d2i_PUBKEY_fp(fp: *mut FILE, a: *mut *mut EVP_PKEY) -> *mut EVP_PKEY; } extern "C" { - #[link_name = "\u{1}_aws_lc_0_21_0_X509V3_EXT_CRL_add_nconf"] - pub fn X509V3_EXT_CRL_add_nconf( - conf: *const CONF, - ctx: *const X509V3_CTX, - section: *const ::std::os::raw::c_char, - crl: *mut X509_CRL, - ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}_aws_lc_0_21_0_i2d_X509_fp"] + pub fn i2d_X509_fp(fp: *mut FILE, x509: *mut X509) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_0_21_0_X509V3_EXT_conf"] - pub fn X509V3_EXT_conf( - conf: *mut lhash_st_CONF_VALUE, - ctx: *mut X509V3_CTX, - name: *const ::std::os::raw::c_char, - value: *const ::std::os::raw::c_char, - ) -> *mut X509_EXTENSION; + #[link_name = "\u{1}_aws_lc_0_21_0_i2d_X509_CRL_fp"] + pub fn i2d_X509_CRL_fp(fp: *mut FILE, crl: *mut X509_CRL) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_0_21_0_i2s_ASN1_OCTET_STRING"] - pub fn i2s_ASN1_OCTET_STRING( - method: *const X509V3_EXT_METHOD, - oct: *const ASN1_OCTET_STRING, - ) -> *mut ::std::os::raw::c_char; + #[link_name = "\u{1}_aws_lc_0_21_0_i2d_X509_REQ_fp"] + pub fn i2d_X509_REQ_fp(fp: *mut FILE, req: *mut X509_REQ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_0_21_0_s2i_ASN1_OCTET_STRING"] - pub fn s2i_ASN1_OCTET_STRING( - method: *const X509V3_EXT_METHOD, - ctx: *const X509V3_CTX, - str_: *const ::std::os::raw::c_char, - ) -> *mut ASN1_OCTET_STRING; + #[link_name = "\u{1}_aws_lc_0_21_0_i2d_RSAPrivateKey_fp"] + pub fn i2d_RSAPrivateKey_fp(fp: *mut FILE, rsa: *mut RSA) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_0_21_0_i2s_ASN1_INTEGER"] - pub fn i2s_ASN1_INTEGER( - method: *const X509V3_EXT_METHOD, - aint: *const ASN1_INTEGER, - ) -> *mut ::std::os::raw::c_char; + #[link_name = "\u{1}_aws_lc_0_21_0_i2d_RSAPublicKey_fp"] + pub fn i2d_RSAPublicKey_fp(fp: *mut FILE, rsa: *mut RSA) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_0_21_0_s2i_ASN1_INTEGER"] - pub fn s2i_ASN1_INTEGER( - method: *const X509V3_EXT_METHOD, - value: *const ::std::os::raw::c_char, - ) -> *mut ASN1_INTEGER; + #[link_name = "\u{1}_aws_lc_0_21_0_i2d_RSA_PUBKEY_fp"] + pub fn i2d_RSA_PUBKEY_fp(fp: *mut FILE, rsa: *mut RSA) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_0_21_0_i2s_ASN1_ENUMERATED"] - pub fn i2s_ASN1_ENUMERATED( - method: *const X509V3_EXT_METHOD, - aint: *const ASN1_ENUMERATED, - ) -> *mut ::std::os::raw::c_char; + #[link_name = "\u{1}_aws_lc_0_21_0_i2d_DSA_PUBKEY_fp"] + pub fn i2d_DSA_PUBKEY_fp(fp: *mut FILE, dsa: *mut DSA) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_0_21_0_X509V3_conf_free"] - pub fn X509V3_conf_free(val: *mut CONF_VALUE); + #[link_name = "\u{1}_aws_lc_0_21_0_i2d_DSAPrivateKey_fp"] + pub fn i2d_DSAPrivateKey_fp(fp: *mut FILE, dsa: *mut DSA) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_0_21_0_i2v_GENERAL_NAME"] - pub fn i2v_GENERAL_NAME( - method: *const X509V3_EXT_METHOD, - gen: *const GENERAL_NAME, - ret: *mut stack_st_CONF_VALUE, - ) -> *mut stack_st_CONF_VALUE; + #[link_name = "\u{1}_aws_lc_0_21_0_i2d_EC_PUBKEY_fp"] + pub fn i2d_EC_PUBKEY_fp(fp: *mut FILE, eckey: *mut EC_KEY) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_0_21_0_i2v_GENERAL_NAMES"] - pub fn i2v_GENERAL_NAMES( - method: *const X509V3_EXT_METHOD, - gen: *const GENERAL_NAMES, - extlist: *mut stack_st_CONF_VALUE, - ) -> *mut stack_st_CONF_VALUE; + #[link_name = "\u{1}_aws_lc_0_21_0_i2d_ECPrivateKey_fp"] + pub fn i2d_ECPrivateKey_fp(fp: *mut FILE, eckey: *mut EC_KEY) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_0_21_0_a2i_IPADDRESS"] - pub fn a2i_IPADDRESS(ipasc: *const ::std::os::raw::c_char) -> *mut ASN1_OCTET_STRING; + #[link_name = "\u{1}_aws_lc_0_21_0_i2d_PKCS8_fp"] + pub fn i2d_PKCS8_fp(fp: *mut FILE, p8: *mut X509_SIG) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_0_21_0_a2i_IPADDRESS_NC"] - pub fn a2i_IPADDRESS_NC(ipasc: *const ::std::os::raw::c_char) -> *mut ASN1_OCTET_STRING; + #[link_name = "\u{1}_aws_lc_0_21_0_i2d_PKCS8_PRIV_KEY_INFO_fp"] + pub fn i2d_PKCS8_PRIV_KEY_INFO_fp( + fp: *mut FILE, + p8inf: *mut PKCS8_PRIV_KEY_INFO, + ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_0_21_0_X509_get_notBefore"] - pub fn X509_get_notBefore(x509: *const X509) -> *mut ASN1_TIME; + #[link_name = "\u{1}_aws_lc_0_21_0_i2d_PKCS8PrivateKeyInfo_fp"] + pub fn i2d_PKCS8PrivateKeyInfo_fp(fp: *mut FILE, key: *mut EVP_PKEY) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_0_21_0_X509_get_notAfter"] - pub fn X509_get_notAfter(x509: *const X509) -> *mut ASN1_TIME; + #[link_name = "\u{1}_aws_lc_0_21_0_i2d_PrivateKey_fp"] + pub fn i2d_PrivateKey_fp(fp: *mut FILE, pkey: *mut EVP_PKEY) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_0_21_0_X509_set_notBefore"] - pub fn X509_set_notBefore(x509: *mut X509, tm: *const ASN1_TIME) -> ::std::os::raw::c_int; + #[link_name = "\u{1}_aws_lc_0_21_0_i2d_PUBKEY_fp"] + pub fn i2d_PUBKEY_fp(fp: *mut FILE, pkey: *mut EVP_PKEY) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_0_21_0_X509_set_notAfter"] - pub fn X509_set_notAfter(x509: *mut X509, tm: *const ASN1_TIME) -> ::std::os::raw::c_int; + #[link_name = "\u{1}_aws_lc_0_21_0_X509_find_by_issuer_and_serial"] + pub fn X509_find_by_issuer_and_serial( + sk: *const stack_st_X509, + name: *mut X509_NAME, + serial: *const ASN1_INTEGER, + ) -> *mut X509; } extern "C" { - #[link_name = "\u{1}_aws_lc_0_21_0_X509_CRL_get_lastUpdate"] - pub fn X509_CRL_get_lastUpdate(crl: *mut X509_CRL) -> *mut ASN1_TIME; + #[link_name = "\u{1}_aws_lc_0_21_0_X509_find_by_subject"] + pub fn X509_find_by_subject(sk: *const stack_st_X509, name: *mut X509_NAME) -> *mut X509; } extern "C" { - #[link_name = "\u{1}_aws_lc_0_21_0_X509_CRL_get_nextUpdate"] - pub fn X509_CRL_get_nextUpdate(crl: *mut X509_CRL) -> *mut ASN1_TIME; + #[link_name = "\u{1}_aws_lc_0_21_0_X509_cmp_time"] + pub fn X509_cmp_time(s: *const ASN1_TIME, t: *const time_t) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_0_21_0_X509_get_serialNumber"] - pub fn X509_get_serialNumber(x509: *mut X509) -> *mut ASN1_INTEGER; + #[link_name = "\u{1}_aws_lc_0_21_0_X509_cmp_time_posix"] + pub fn X509_cmp_time_posix(s: *const ASN1_TIME, t: i64) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_0_21_0_X509_NAME_get_text_by_OBJ"] - pub fn X509_NAME_get_text_by_OBJ( - name: *const X509_NAME, - obj: *const ASN1_OBJECT, - buf: *mut ::std::os::raw::c_char, - len: ::std::os::raw::c_int, - ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}_aws_lc_0_21_0_X509_cmp_current_time"] + pub fn X509_cmp_current_time(s: *const ASN1_TIME) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_0_21_0_X509_NAME_get_text_by_NID"] - pub fn X509_NAME_get_text_by_NID( - name: *const X509_NAME, - nid: ::std::os::raw::c_int, - buf: *mut ::std::os::raw::c_char, - len: ::std::os::raw::c_int, - ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}_aws_lc_0_21_0_X509_time_adj"] + pub fn X509_time_adj( + s: *mut ASN1_TIME, + offset_sec: ::std::os::raw::c_long, + t: *const time_t, + ) -> *mut ASN1_TIME; } extern "C" { - #[link_name = "\u{1}_aws_lc_0_21_0_X509_STORE_CTX_get0_parent_ctx"] - pub fn X509_STORE_CTX_get0_parent_ctx(ctx: *mut X509_STORE_CTX) -> *mut X509_STORE_CTX; + #[link_name = "\u{1}_aws_lc_0_21_0_X509_time_adj_ex"] + pub fn X509_time_adj_ex( + s: *mut ASN1_TIME, + offset_day: ::std::os::raw::c_int, + offset_sec: ::std::os::raw::c_long, + t: *const time_t, + ) -> *mut ASN1_TIME; } extern "C" { - #[link_name = "\u{1}_aws_lc_0_21_0_X509_LOOKUP_free"] - pub fn X509_LOOKUP_free(ctx: *mut X509_LOOKUP); + #[link_name = "\u{1}_aws_lc_0_21_0_X509_gmtime_adj"] + pub fn X509_gmtime_adj(s: *mut ASN1_TIME, offset_sec: ::std::os::raw::c_long) + -> *mut ASN1_TIME; } extern "C" { - #[link_name = "\u{1}_aws_lc_0_21_0_X509_STORE_CTX_cleanup"] - pub fn X509_STORE_CTX_cleanup(ctx: *mut X509_STORE_CTX); + #[link_name = "\u{1}_aws_lc_0_21_0_X509_issuer_name_cmp"] + pub fn X509_issuer_name_cmp(a: *const X509, b: *const X509) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_0_21_0_X509V3_add_standard_extensions"] - pub fn X509V3_add_standard_extensions() -> ::std::os::raw::c_int; + #[link_name = "\u{1}_aws_lc_0_21_0_X509_subject_name_cmp"] + pub fn X509_subject_name_cmp(a: *const X509, b: *const X509) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_0_21_0_X509V3_parse_list"] - pub fn X509V3_parse_list(line: *const ::std::os::raw::c_char) -> *mut stack_st_CONF_VALUE; + #[link_name = "\u{1}_aws_lc_0_21_0_X509_CRL_cmp"] + pub fn X509_CRL_cmp(a: *const X509_CRL, b: *const X509_CRL) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_0_21_0_X509_STORE_CTX_get_chain"] - pub fn X509_STORE_CTX_get_chain(ctx: *mut X509_STORE_CTX) -> *mut stack_st_X509; + #[link_name = "\u{1}_aws_lc_0_21_0_X509_issuer_name_hash"] + pub fn X509_issuer_name_hash(x509: *mut X509) -> u32; } extern "C" { - #[link_name = "\u{1}_aws_lc_0_21_0_X509_STORE_CTX_trusted_stack"] - pub fn X509_STORE_CTX_trusted_stack(ctx: *mut X509_STORE_CTX, sk: *mut stack_st_X509); + #[link_name = "\u{1}_aws_lc_0_21_0_X509_subject_name_hash"] + pub fn X509_subject_name_hash(x509: *mut X509) -> u32; } -pub type X509_STORE_CTX_verify_cb = ::std::option::Option< - unsafe extern "C" fn( - arg1: ::std::os::raw::c_int, - arg2: *mut X509_STORE_CTX, - ) -> ::std::os::raw::c_int, ->; extern "C" { - #[link_name = "\u{1}_aws_lc_0_21_0_X509_STORE_CTX_set_verify_cb"] - pub fn X509_STORE_CTX_set_verify_cb( - ctx: *mut X509_STORE_CTX, - verify_cb: ::std::option::Option< - unsafe extern "C" fn( - ok: ::std::os::raw::c_int, - ctx: *mut X509_STORE_CTX, - ) -> ::std::os::raw::c_int, - >, - ); + #[link_name = "\u{1}_aws_lc_0_21_0_X509_issuer_name_hash_old"] + pub fn X509_issuer_name_hash_old(x509: *mut X509) -> u32; } extern "C" { - #[link_name = "\u{1}_aws_lc_0_21_0_X509_STORE_set_verify_cb"] - pub fn X509_STORE_set_verify_cb(store: *mut X509_STORE, verify_cb: X509_STORE_CTX_verify_cb); + #[link_name = "\u{1}_aws_lc_0_21_0_X509_subject_name_hash_old"] + pub fn X509_subject_name_hash_old(x509: *mut X509) -> u32; } -pub type X509_STORE_CTX_get_crl_fn = ::std::option::Option< - unsafe extern "C" fn( - ctx: *mut X509_STORE_CTX, - crl: *mut *mut X509_CRL, - x: *mut X509, - ) -> ::std::os::raw::c_int, ->; -pub type X509_STORE_CTX_check_crl_fn = ::std::option::Option< - unsafe extern "C" fn(ctx: *mut X509_STORE_CTX, crl: *mut X509_CRL) -> ::std::os::raw::c_int, ->; extern "C" { - #[link_name = "\u{1}_aws_lc_0_21_0_X509_STORE_set_get_crl"] - pub fn X509_STORE_set_get_crl(store: *mut X509_STORE, get_crl: X509_STORE_CTX_get_crl_fn); + #[link_name = "\u{1}_aws_lc_0_21_0_X509_get_ex_new_index"] + pub fn X509_get_ex_new_index( + argl: ::std::os::raw::c_long, + argp: *mut ::std::os::raw::c_void, + unused: *mut CRYPTO_EX_unused, + dup_unused: CRYPTO_EX_dup, + free_func: CRYPTO_EX_free, + ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_0_21_0_X509_STORE_set_check_crl"] - pub fn X509_STORE_set_check_crl(store: *mut X509_STORE, check_crl: X509_STORE_CTX_check_crl_fn); + #[link_name = "\u{1}_aws_lc_0_21_0_X509_set_ex_data"] + pub fn X509_set_ex_data( + r: *mut X509, + idx: ::std::os::raw::c_int, + arg: *mut ::std::os::raw::c_void, + ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_0_21_0_X509_STORE_CTX_set_chain"] - pub fn X509_STORE_CTX_set_chain(ctx: *mut X509_STORE_CTX, sk: *mut stack_st_X509); + #[link_name = "\u{1}_aws_lc_0_21_0_X509_get_ex_data"] + pub fn X509_get_ex_data( + r: *mut X509, + idx: ::std::os::raw::c_int, + ) -> *mut ::std::os::raw::c_void; } -#[repr(C)] -#[derive(Debug, Copy, Clone, PartialEq, Eq)] -pub struct X509_algor_st { - pub algorithm: *mut ASN1_OBJECT, - pub parameter: *mut ASN1_TYPE, +extern "C" { + #[link_name = "\u{1}_aws_lc_0_21_0_X509_STORE_CTX_get_ex_new_index"] + pub fn X509_STORE_CTX_get_ex_new_index( + argl: ::std::os::raw::c_long, + argp: *mut ::std::os::raw::c_void, + unused: *mut CRYPTO_EX_unused, + dup_unused: CRYPTO_EX_dup, + free_func: CRYPTO_EX_free, + ) -> ::std::os::raw::c_int; } -#[test] -fn bindgen_test_layout_X509_algor_st() { - const UNINIT: ::std::mem::MaybeUninit = ::std::mem::MaybeUninit::uninit(); - let ptr = UNINIT.as_ptr(); - assert_eq!( - ::std::mem::size_of::(), - 16usize, - concat!("Size of: ", stringify!(X509_algor_st)) - ); - assert_eq!( - ::std::mem::align_of::(), - 8usize, - concat!("Alignment of ", stringify!(X509_algor_st)) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).algorithm) as usize - ptr as usize }, - 0usize, - concat!( - "Offset of field: ", - stringify!(X509_algor_st), - "::", - stringify!(algorithm) - ) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).parameter) as usize - ptr as usize }, - 8usize, - concat!( - "Offset of field: ", - stringify!(X509_algor_st), - "::", - stringify!(parameter) - ) - ); +extern "C" { + #[link_name = "\u{1}_aws_lc_0_21_0_X509_STORE_CTX_set_ex_data"] + pub fn X509_STORE_CTX_set_ex_data( + ctx: *mut X509_STORE_CTX, + idx: ::std::os::raw::c_int, + data: *mut ::std::os::raw::c_void, + ) -> ::std::os::raw::c_int; } -impl Default for X509_algor_st { - fn default() -> Self { - let mut s = ::std::mem::MaybeUninit::::uninit(); - unsafe { - ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() - } - } +extern "C" { + #[link_name = "\u{1}_aws_lc_0_21_0_X509_STORE_CTX_get_ex_data"] + pub fn X509_STORE_CTX_get_ex_data( + ctx: *mut X509_STORE_CTX, + idx: ::std::os::raw::c_int, + ) -> *mut ::std::os::raw::c_void; } -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct stack_st_DIST_POINT { - _unused: [u8; 0], +extern "C" { + #[link_name = "\u{1}_aws_lc_0_21_0_X509_STORE_get_ex_new_index"] + pub fn X509_STORE_get_ex_new_index( + argl: ::std::os::raw::c_long, + argp: *mut ::std::os::raw::c_void, + unused: *mut CRYPTO_EX_unused, + dup_unused: CRYPTO_EX_dup, + free_func: CRYPTO_EX_free, + ) -> ::std::os::raw::c_int; } -#[repr(C)] -#[derive(Debug, Copy, Clone, PartialEq, Eq)] -pub struct x509_trust_st { - pub trust: ::std::os::raw::c_int, - pub flags: ::std::os::raw::c_int, - pub check_trust: ::std::option::Option< - unsafe extern "C" fn( - arg1: *const X509_TRUST, - arg2: *mut X509, - arg3: ::std::os::raw::c_int, - ) -> ::std::os::raw::c_int, - >, - pub name: *mut ::std::os::raw::c_char, - pub arg1: ::std::os::raw::c_int, - pub arg2: *mut ::std::os::raw::c_void, +extern "C" { + #[link_name = "\u{1}_aws_lc_0_21_0_X509_STORE_set_ex_data"] + pub fn X509_STORE_set_ex_data( + ctx: *mut X509_STORE, + idx: ::std::os::raw::c_int, + data: *mut ::std::os::raw::c_void, + ) -> ::std::os::raw::c_int; } -#[test] -fn bindgen_test_layout_x509_trust_st() { - const UNINIT: ::std::mem::MaybeUninit = ::std::mem::MaybeUninit::uninit(); - let ptr = UNINIT.as_ptr(); - assert_eq!( - ::std::mem::size_of::(), - 40usize, - concat!("Size of: ", stringify!(x509_trust_st)) - ); - assert_eq!( - ::std::mem::align_of::(), - 8usize, - concat!("Alignment of ", stringify!(x509_trust_st)) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).trust) as usize - ptr as usize }, +extern "C" { + #[link_name = "\u{1}_aws_lc_0_21_0_X509_STORE_get_ex_data"] + pub fn X509_STORE_get_ex_data( + ctx: *mut X509_STORE, + idx: ::std::os::raw::c_int, + ) -> *mut ::std::os::raw::c_void; +} +extern "C" { + #[link_name = "\u{1}_aws_lc_0_21_0_ASN1_digest"] + pub fn ASN1_digest( + i2d: i2d_of_void, + type_: *const EVP_MD, + data: *mut ::std::os::raw::c_char, + md: *mut ::std::os::raw::c_uchar, + len: *mut ::std::os::raw::c_uint, + ) -> ::std::os::raw::c_int; +} +extern "C" { + #[link_name = "\u{1}_aws_lc_0_21_0_ASN1_item_digest"] + pub fn ASN1_item_digest( + it: *const ASN1_ITEM, + type_: *const EVP_MD, + data: *mut ::std::os::raw::c_void, + md: *mut ::std::os::raw::c_uchar, + len: *mut ::std::os::raw::c_uint, + ) -> ::std::os::raw::c_int; +} +extern "C" { + #[link_name = "\u{1}_aws_lc_0_21_0_ASN1_item_verify"] + pub fn ASN1_item_verify( + it: *const ASN1_ITEM, + algor1: *const X509_ALGOR, + signature: *const ASN1_BIT_STRING, + data: *mut ::std::os::raw::c_void, + pkey: *mut EVP_PKEY, + ) -> ::std::os::raw::c_int; +} +extern "C" { + #[link_name = "\u{1}_aws_lc_0_21_0_ASN1_item_sign"] + pub fn ASN1_item_sign( + it: *const ASN1_ITEM, + algor1: *mut X509_ALGOR, + algor2: *mut X509_ALGOR, + signature: *mut ASN1_BIT_STRING, + data: *mut ::std::os::raw::c_void, + pkey: *mut EVP_PKEY, + type_: *const EVP_MD, + ) -> ::std::os::raw::c_int; +} +extern "C" { + #[link_name = "\u{1}_aws_lc_0_21_0_ASN1_item_sign_ctx"] + pub fn ASN1_item_sign_ctx( + it: *const ASN1_ITEM, + algor1: *mut X509_ALGOR, + algor2: *mut X509_ALGOR, + signature: *mut ASN1_BIT_STRING, + asn: *mut ::std::os::raw::c_void, + ctx: *mut EVP_MD_CTX, + ) -> ::std::os::raw::c_int; +} +extern "C" { + #[link_name = "\u{1}_aws_lc_0_21_0_X509_supported_extension"] + pub fn X509_supported_extension(ex: *const X509_EXTENSION) -> ::std::os::raw::c_int; +} +extern "C" { + #[link_name = "\u{1}_aws_lc_0_21_0_X509_check_ca"] + pub fn X509_check_ca(x509: *mut X509) -> ::std::os::raw::c_int; +} +extern "C" { + #[link_name = "\u{1}_aws_lc_0_21_0_X509_check_issued"] + pub fn X509_check_issued(issuer: *mut X509, subject: *mut X509) -> ::std::os::raw::c_int; +} +extern "C" { + #[link_name = "\u{1}_aws_lc_0_21_0_NAME_CONSTRAINTS_check"] + pub fn NAME_CONSTRAINTS_check( + x509: *mut X509, + nc: *mut NAME_CONSTRAINTS, + ) -> ::std::os::raw::c_int; +} +extern "C" { + #[link_name = "\u{1}_aws_lc_0_21_0_X509_check_host"] + pub fn X509_check_host( + x509: *const X509, + chk: *const ::std::os::raw::c_char, + chklen: usize, + flags: ::std::os::raw::c_uint, + out_peername: *mut *mut ::std::os::raw::c_char, + ) -> ::std::os::raw::c_int; +} +extern "C" { + #[link_name = "\u{1}_aws_lc_0_21_0_X509_check_email"] + pub fn X509_check_email( + x509: *const X509, + chk: *const ::std::os::raw::c_char, + chklen: usize, + flags: ::std::os::raw::c_uint, + ) -> ::std::os::raw::c_int; +} +extern "C" { + #[link_name = "\u{1}_aws_lc_0_21_0_X509_check_ip"] + pub fn X509_check_ip( + x509: *const X509, + chk: *const u8, + chklen: usize, + flags: ::std::os::raw::c_uint, + ) -> ::std::os::raw::c_int; +} +extern "C" { + #[link_name = "\u{1}_aws_lc_0_21_0_X509_check_ip_asc"] + pub fn X509_check_ip_asc( + x509: *const X509, + ipasc: *const ::std::os::raw::c_char, + flags: ::std::os::raw::c_uint, + ) -> ::std::os::raw::c_int; +} +extern "C" { + #[link_name = "\u{1}_aws_lc_0_21_0_X509_STORE_CTX_get1_issuer"] + pub fn X509_STORE_CTX_get1_issuer( + out_issuer: *mut *mut X509, + ctx: *mut X509_STORE_CTX, + x509: *mut X509, + ) -> ::std::os::raw::c_int; +} +extern "C" { + #[link_name = "\u{1}_aws_lc_0_21_0_X509_check_purpose"] + pub fn X509_check_purpose( + x509: *mut X509, + purpose: ::std::os::raw::c_int, + ca: ::std::os::raw::c_int, + ) -> ::std::os::raw::c_int; +} +extern "C" { + #[link_name = "\u{1}_aws_lc_0_21_0_X509_check_trust"] + pub fn X509_check_trust( + x509: *mut X509, + id: ::std::os::raw::c_int, + flags: ::std::os::raw::c_int, + ) -> ::std::os::raw::c_int; +} +#[repr(C)] +#[derive(Debug, Copy, Clone, PartialEq, Eq)] +pub struct private_key_st { + pub dec_pkey: *mut EVP_PKEY, +} +#[test] +fn bindgen_test_layout_private_key_st() { + const UNINIT: ::std::mem::MaybeUninit = ::std::mem::MaybeUninit::uninit(); + let ptr = UNINIT.as_ptr(); + assert_eq!( + ::std::mem::size_of::(), + 8usize, + concat!("Size of: ", stringify!(private_key_st)) + ); + assert_eq!( + ::std::mem::align_of::(), + 8usize, + concat!("Alignment of ", stringify!(private_key_st)) + ); + assert_eq!( + unsafe { ::std::ptr::addr_of!((*ptr).dec_pkey) as usize - ptr as usize }, 0usize, concat!( "Offset of field: ", - stringify!(x509_trust_st), + stringify!(private_key_st), "::", - stringify!(trust) + stringify!(dec_pkey) ) ); +} +impl Default for private_key_st { + fn default() -> Self { + let mut s = ::std::mem::MaybeUninit::::uninit(); + unsafe { + ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); + s.assume_init() + } + } +} +#[repr(C)] +#[derive(Debug, Copy, Clone, PartialEq, Eq)] +pub struct X509_info_st { + pub x509: *mut X509, + pub crl: *mut X509_CRL, + pub x_pkey: *mut X509_PKEY, + pub enc_cipher: EVP_CIPHER_INFO, + pub enc_len: ::std::os::raw::c_int, + pub enc_data: *mut ::std::os::raw::c_char, +} +#[test] +fn bindgen_test_layout_X509_info_st() { + const UNINIT: ::std::mem::MaybeUninit = ::std::mem::MaybeUninit::uninit(); + let ptr = UNINIT.as_ptr(); assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).flags) as usize - ptr as usize }, - 4usize, + ::std::mem::size_of::(), + 64usize, + concat!("Size of: ", stringify!(X509_info_st)) + ); + assert_eq!( + ::std::mem::align_of::(), + 8usize, + concat!("Alignment of ", stringify!(X509_info_st)) + ); + assert_eq!( + unsafe { ::std::ptr::addr_of!((*ptr).x509) as usize - ptr as usize }, + 0usize, concat!( "Offset of field: ", - stringify!(x509_trust_st), + stringify!(X509_info_st), "::", - stringify!(flags) + stringify!(x509) ) ); assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).check_trust) as usize - ptr as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).crl) as usize - ptr as usize }, 8usize, concat!( "Offset of field: ", - stringify!(x509_trust_st), + stringify!(X509_info_st), "::", - stringify!(check_trust) + stringify!(crl) ) ); assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).name) as usize - ptr as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).x_pkey) as usize - ptr as usize }, 16usize, concat!( "Offset of field: ", - stringify!(x509_trust_st), + stringify!(X509_info_st), "::", - stringify!(name) + stringify!(x_pkey) ) ); assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).arg1) as usize - ptr as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).enc_cipher) as usize - ptr as usize }, 24usize, concat!( "Offset of field: ", - stringify!(x509_trust_st), + stringify!(X509_info_st), "::", - stringify!(arg1) + stringify!(enc_cipher) ) ); assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).arg2) as usize - ptr as usize }, - 32usize, + unsafe { ::std::ptr::addr_of!((*ptr).enc_len) as usize - ptr as usize }, + 48usize, concat!( "Offset of field: ", - stringify!(x509_trust_st), + stringify!(X509_info_st), "::", - stringify!(arg2) + stringify!(enc_len) + ) + ); + assert_eq!( + unsafe { ::std::ptr::addr_of!((*ptr).enc_data) as usize - ptr as usize }, + 56usize, + concat!( + "Offset of field: ", + stringify!(X509_info_st), + "::", + stringify!(enc_data) ) ); } -impl Default for x509_trust_st { +impl Default for X509_info_st { fn default() -> Self { let mut s = ::std::mem::MaybeUninit::::uninit(); unsafe { @@ -23136,609 +22933,801 @@ impl Default for x509_trust_st { } #[repr(C)] #[derive(Debug, Copy, Clone)] -pub struct stack_st_X509_TRUST { +pub struct stack_st_X509_INFO { _unused: [u8; 0], } -pub type sk_X509_TRUST_free_func = - ::std::option::Option; -pub type sk_X509_TRUST_copy_func = - ::std::option::Option *mut X509_TRUST>; -pub type sk_X509_TRUST_cmp_func = ::std::option::Option< +pub type sk_X509_INFO_free_func = ::std::option::Option; +pub type sk_X509_INFO_copy_func = + ::std::option::Option *mut X509_INFO>; +pub type sk_X509_INFO_cmp_func = ::std::option::Option< unsafe extern "C" fn( - arg1: *const *const X509_TRUST, - arg2: *const *const X509_TRUST, + arg1: *const *const X509_INFO, + arg2: *const *const X509_INFO, ) -> ::std::os::raw::c_int, >; -pub type sk_X509_TRUST_delete_if_func = ::std::option::Option< +pub type sk_X509_INFO_delete_if_func = ::std::option::Option< unsafe extern "C" fn( - arg1: *mut X509_TRUST, + arg1: *mut X509_INFO, arg2: *mut ::std::os::raw::c_void, ) -> ::std::os::raw::c_int, >; extern "C" { - #[link_name = "\u{1}_aws_lc_0_21_0_X509_verify_cert_error_string"] - pub fn X509_verify_cert_error_string( - err: ::std::os::raw::c_long, - ) -> *const ::std::os::raw::c_char; + #[link_name = "\u{1}_aws_lc_0_21_0_X509_INFO_free"] + pub fn X509_INFO_free(info: *mut X509_INFO); } -extern "C" { - #[link_name = "\u{1}_aws_lc_0_21_0_X509_get_default_cert_area"] - pub fn X509_get_default_cert_area() -> *const ::std::os::raw::c_char; +#[repr(C)] +#[derive(Debug, Copy, Clone, PartialEq, Eq)] +pub struct v3_ext_ctx { + pub flags: ::std::os::raw::c_int, + pub issuer_cert: *const X509, + pub subject_cert: *const X509, + pub subject_req: *const X509_REQ, + pub crl: *const X509_CRL, + pub db: *const CONF, +} +#[test] +fn bindgen_test_layout_v3_ext_ctx() { + const UNINIT: ::std::mem::MaybeUninit = ::std::mem::MaybeUninit::uninit(); + let ptr = UNINIT.as_ptr(); + assert_eq!( + ::std::mem::size_of::(), + 48usize, + concat!("Size of: ", stringify!(v3_ext_ctx)) + ); + assert_eq!( + ::std::mem::align_of::(), + 8usize, + concat!("Alignment of ", stringify!(v3_ext_ctx)) + ); + assert_eq!( + unsafe { ::std::ptr::addr_of!((*ptr).flags) as usize - ptr as usize }, + 0usize, + concat!( + "Offset of field: ", + stringify!(v3_ext_ctx), + "::", + stringify!(flags) + ) + ); + assert_eq!( + unsafe { ::std::ptr::addr_of!((*ptr).issuer_cert) as usize - ptr as usize }, + 8usize, + concat!( + "Offset of field: ", + stringify!(v3_ext_ctx), + "::", + stringify!(issuer_cert) + ) + ); + assert_eq!( + unsafe { ::std::ptr::addr_of!((*ptr).subject_cert) as usize - ptr as usize }, + 16usize, + concat!( + "Offset of field: ", + stringify!(v3_ext_ctx), + "::", + stringify!(subject_cert) + ) + ); + assert_eq!( + unsafe { ::std::ptr::addr_of!((*ptr).subject_req) as usize - ptr as usize }, + 24usize, + concat!( + "Offset of field: ", + stringify!(v3_ext_ctx), + "::", + stringify!(subject_req) + ) + ); + assert_eq!( + unsafe { ::std::ptr::addr_of!((*ptr).crl) as usize - ptr as usize }, + 32usize, + concat!( + "Offset of field: ", + stringify!(v3_ext_ctx), + "::", + stringify!(crl) + ) + ); + assert_eq!( + unsafe { ::std::ptr::addr_of!((*ptr).db) as usize - ptr as usize }, + 40usize, + concat!( + "Offset of field: ", + stringify!(v3_ext_ctx), + "::", + stringify!(db) + ) + ); +} +impl Default for v3_ext_ctx { + fn default() -> Self { + let mut s = ::std::mem::MaybeUninit::::uninit(); + unsafe { + ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); + s.assume_init() + } + } } extern "C" { - #[link_name = "\u{1}_aws_lc_0_21_0_X509_get_default_cert_dir"] - pub fn X509_get_default_cert_dir() -> *const ::std::os::raw::c_char; + #[link_name = "\u{1}_aws_lc_0_21_0_X509V3_set_ctx"] + pub fn X509V3_set_ctx( + ctx: *mut X509V3_CTX, + issuer: *const X509, + subject: *const X509, + req: *const X509_REQ, + crl: *const X509_CRL, + flags: ::std::os::raw::c_int, + ); } extern "C" { - #[link_name = "\u{1}_aws_lc_0_21_0_X509_get_default_cert_file"] - pub fn X509_get_default_cert_file() -> *const ::std::os::raw::c_char; + #[link_name = "\u{1}_aws_lc_0_21_0_X509V3_set_nconf"] + pub fn X509V3_set_nconf(ctx: *mut X509V3_CTX, conf: *const CONF); } extern "C" { - #[link_name = "\u{1}_aws_lc_0_21_0_X509_get_default_cert_dir_env"] - pub fn X509_get_default_cert_dir_env() -> *const ::std::os::raw::c_char; + #[link_name = "\u{1}_aws_lc_0_21_0_X509V3_EXT_nconf"] + pub fn X509V3_EXT_nconf( + conf: *const CONF, + ctx: *const X509V3_CTX, + name: *const ::std::os::raw::c_char, + value: *const ::std::os::raw::c_char, + ) -> *mut X509_EXTENSION; } extern "C" { - #[link_name = "\u{1}_aws_lc_0_21_0_X509_get_default_cert_file_env"] - pub fn X509_get_default_cert_file_env() -> *const ::std::os::raw::c_char; + #[link_name = "\u{1}_aws_lc_0_21_0_X509V3_EXT_nconf_nid"] + pub fn X509V3_EXT_nconf_nid( + conf: *const CONF, + ctx: *const X509V3_CTX, + ext_nid: ::std::os::raw::c_int, + value: *const ::std::os::raw::c_char, + ) -> *mut X509_EXTENSION; } extern "C" { - #[link_name = "\u{1}_aws_lc_0_21_0_X509_get_default_private_dir"] - pub fn X509_get_default_private_dir() -> *const ::std::os::raw::c_char; + #[link_name = "\u{1}_aws_lc_0_21_0_X509V3_EXT_conf_nid"] + pub fn X509V3_EXT_conf_nid( + conf: *mut lhash_st_CONF_VALUE, + ctx: *const X509V3_CTX, + ext_nid: ::std::os::raw::c_int, + value: *const ::std::os::raw::c_char, + ) -> *mut X509_EXTENSION; } extern "C" { - #[link_name = "\u{1}_aws_lc_0_21_0_X509_TRUST_set"] - pub fn X509_TRUST_set( - t: *mut ::std::os::raw::c_int, - trust: ::std::os::raw::c_int, + #[link_name = "\u{1}_aws_lc_0_21_0_X509V3_EXT_add_nconf_sk"] + pub fn X509V3_EXT_add_nconf_sk( + conf: *const CONF, + ctx: *const X509V3_CTX, + section: *const ::std::os::raw::c_char, + sk: *mut *mut stack_st_X509_EXTENSION, ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_0_21_0_X509_cmp"] - pub fn X509_cmp(a: *const X509, b: *const X509) -> ::std::os::raw::c_int; + #[link_name = "\u{1}_aws_lc_0_21_0_X509V3_EXT_add_nconf"] + pub fn X509V3_EXT_add_nconf( + conf: *const CONF, + ctx: *const X509V3_CTX, + section: *const ::std::os::raw::c_char, + cert: *mut X509, + ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_0_21_0_X509_NAME_hash"] - pub fn X509_NAME_hash(name: *mut X509_NAME) -> u32; + #[link_name = "\u{1}_aws_lc_0_21_0_X509V3_EXT_REQ_add_nconf"] + pub fn X509V3_EXT_REQ_add_nconf( + conf: *const CONF, + ctx: *const X509V3_CTX, + section: *const ::std::os::raw::c_char, + req: *mut X509_REQ, + ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_0_21_0_X509_NAME_hash_old"] - pub fn X509_NAME_hash_old(name: *mut X509_NAME) -> u32; + #[link_name = "\u{1}_aws_lc_0_21_0_X509V3_EXT_CRL_add_nconf"] + pub fn X509V3_EXT_CRL_add_nconf( + conf: *const CONF, + ctx: *const X509V3_CTX, + section: *const ::std::os::raw::c_char, + crl: *mut X509_CRL, + ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_0_21_0_X509_CRL_match"] - pub fn X509_CRL_match(a: *const X509_CRL, b: *const X509_CRL) -> ::std::os::raw::c_int; + #[link_name = "\u{1}_aws_lc_0_21_0_X509V3_EXT_conf"] + pub fn X509V3_EXT_conf( + conf: *mut lhash_st_CONF_VALUE, + ctx: *mut X509V3_CTX, + name: *const ::std::os::raw::c_char, + value: *const ::std::os::raw::c_char, + ) -> *mut X509_EXTENSION; } extern "C" { - #[link_name = "\u{1}_aws_lc_0_21_0_X509_verify_cert"] - pub fn X509_verify_cert(ctx: *mut X509_STORE_CTX) -> ::std::os::raw::c_int; + #[link_name = "\u{1}_aws_lc_0_21_0_i2s_ASN1_OCTET_STRING"] + pub fn i2s_ASN1_OCTET_STRING( + method: *const X509V3_EXT_METHOD, + oct: *const ASN1_OCTET_STRING, + ) -> *mut ::std::os::raw::c_char; } extern "C" { - #[link_name = "\u{1}_aws_lc_0_21_0_X509_check_trust"] - pub fn X509_check_trust( - x: *mut X509, - id: ::std::os::raw::c_int, - flags: ::std::os::raw::c_int, - ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}_aws_lc_0_21_0_s2i_ASN1_OCTET_STRING"] + pub fn s2i_ASN1_OCTET_STRING( + method: *const X509V3_EXT_METHOD, + ctx: *const X509V3_CTX, + str_: *const ::std::os::raw::c_char, + ) -> *mut ASN1_OCTET_STRING; } extern "C" { - #[link_name = "\u{1}_aws_lc_0_21_0_X509_TRUST_get_count"] - pub fn X509_TRUST_get_count() -> ::std::os::raw::c_int; + #[link_name = "\u{1}_aws_lc_0_21_0_i2s_ASN1_INTEGER"] + pub fn i2s_ASN1_INTEGER( + method: *const X509V3_EXT_METHOD, + aint: *const ASN1_INTEGER, + ) -> *mut ::std::os::raw::c_char; } extern "C" { - #[link_name = "\u{1}_aws_lc_0_21_0_X509_TRUST_get0"] - pub fn X509_TRUST_get0(idx: ::std::os::raw::c_int) -> *const X509_TRUST; + #[link_name = "\u{1}_aws_lc_0_21_0_s2i_ASN1_INTEGER"] + pub fn s2i_ASN1_INTEGER( + method: *const X509V3_EXT_METHOD, + value: *const ::std::os::raw::c_char, + ) -> *mut ASN1_INTEGER; } extern "C" { - #[link_name = "\u{1}_aws_lc_0_21_0_X509_TRUST_get_by_id"] - pub fn X509_TRUST_get_by_id(id: ::std::os::raw::c_int) -> ::std::os::raw::c_int; + #[link_name = "\u{1}_aws_lc_0_21_0_i2s_ASN1_ENUMERATED"] + pub fn i2s_ASN1_ENUMERATED( + method: *const X509V3_EXT_METHOD, + aint: *const ASN1_ENUMERATED, + ) -> *mut ::std::os::raw::c_char; } extern "C" { - #[link_name = "\u{1}_aws_lc_0_21_0_X509_TRUST_get_flags"] - pub fn X509_TRUST_get_flags(xp: *const X509_TRUST) -> ::std::os::raw::c_int; + #[link_name = "\u{1}_aws_lc_0_21_0_X509V3_conf_free"] + pub fn X509V3_conf_free(val: *mut CONF_VALUE); } extern "C" { - #[link_name = "\u{1}_aws_lc_0_21_0_X509_TRUST_get0_name"] - pub fn X509_TRUST_get0_name(xp: *const X509_TRUST) -> *mut ::std::os::raw::c_char; + #[link_name = "\u{1}_aws_lc_0_21_0_i2v_GENERAL_NAME"] + pub fn i2v_GENERAL_NAME( + method: *const X509V3_EXT_METHOD, + gen: *const GENERAL_NAME, + ret: *mut stack_st_CONF_VALUE, + ) -> *mut stack_st_CONF_VALUE; } extern "C" { - #[link_name = "\u{1}_aws_lc_0_21_0_X509_TRUST_get_trust"] - pub fn X509_TRUST_get_trust(xp: *const X509_TRUST) -> ::std::os::raw::c_int; + #[link_name = "\u{1}_aws_lc_0_21_0_i2v_GENERAL_NAMES"] + pub fn i2v_GENERAL_NAMES( + method: *const X509V3_EXT_METHOD, + gen: *const GENERAL_NAMES, + extlist: *mut stack_st_CONF_VALUE, + ) -> *mut stack_st_CONF_VALUE; } -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct stack_st_X509_OBJECT { - _unused: [u8; 0], -} -pub type sk_X509_OBJECT_free_func = - ::std::option::Option; -pub type sk_X509_OBJECT_copy_func = - ::std::option::Option *mut X509_OBJECT>; -pub type sk_X509_OBJECT_cmp_func = ::std::option::Option< - unsafe extern "C" fn( - arg1: *const *const X509_OBJECT, - arg2: *const *const X509_OBJECT, - ) -> ::std::os::raw::c_int, ->; -pub type sk_X509_OBJECT_delete_if_func = ::std::option::Option< - unsafe extern "C" fn( - arg1: *mut X509_OBJECT, - arg2: *mut ::std::os::raw::c_void, - ) -> ::std::os::raw::c_int, ->; extern "C" { - #[link_name = "\u{1}_aws_lc_0_21_0_X509_STORE_set_depth"] - pub fn X509_STORE_set_depth( - store: *mut X509_STORE, - depth: ::std::os::raw::c_int, - ) -> ::std::os::raw::c_int; -} -extern "C" { - #[link_name = "\u{1}_aws_lc_0_21_0_X509_STORE_CTX_set_depth"] - pub fn X509_STORE_CTX_set_depth(ctx: *mut X509_STORE_CTX, depth: ::std::os::raw::c_int); + #[link_name = "\u{1}_aws_lc_0_21_0_a2i_IPADDRESS"] + pub fn a2i_IPADDRESS(ipasc: *const ::std::os::raw::c_char) -> *mut ASN1_OCTET_STRING; } extern "C" { - #[link_name = "\u{1}_aws_lc_0_21_0_X509_LOOKUP_load_file"] - pub fn X509_LOOKUP_load_file( - lookup: *mut X509_LOOKUP, - path: *const ::std::os::raw::c_char, - type_: ::std::os::raw::c_int, - ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}_aws_lc_0_21_0_a2i_IPADDRESS_NC"] + pub fn a2i_IPADDRESS_NC(ipasc: *const ::std::os::raw::c_char) -> *mut ASN1_OCTET_STRING; } extern "C" { - #[link_name = "\u{1}_aws_lc_0_21_0_X509_LOOKUP_add_dir"] - pub fn X509_LOOKUP_add_dir( - lookup: *mut X509_LOOKUP, - path: *const ::std::os::raw::c_char, - type_: ::std::os::raw::c_int, - ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}_aws_lc_0_21_0_X509_get_notBefore"] + pub fn X509_get_notBefore(x509: *const X509) -> *mut ASN1_TIME; } extern "C" { - #[link_name = "\u{1}_aws_lc_0_21_0_X509_OBJECT_new"] - pub fn X509_OBJECT_new() -> *mut X509_OBJECT; + #[link_name = "\u{1}_aws_lc_0_21_0_X509_get_notAfter"] + pub fn X509_get_notAfter(x509: *const X509) -> *mut ASN1_TIME; } extern "C" { - #[link_name = "\u{1}_aws_lc_0_21_0_X509_OBJECT_free"] - pub fn X509_OBJECT_free(obj: *mut X509_OBJECT); + #[link_name = "\u{1}_aws_lc_0_21_0_X509_set_notBefore"] + pub fn X509_set_notBefore(x509: *mut X509, tm: *const ASN1_TIME) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_0_21_0_X509_OBJECT_get_type"] - pub fn X509_OBJECT_get_type(obj: *const X509_OBJECT) -> ::std::os::raw::c_int; + #[link_name = "\u{1}_aws_lc_0_21_0_X509_set_notAfter"] + pub fn X509_set_notAfter(x509: *mut X509, tm: *const ASN1_TIME) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_0_21_0_X509_OBJECT_get0_X509"] - pub fn X509_OBJECT_get0_X509(obj: *const X509_OBJECT) -> *mut X509; + #[link_name = "\u{1}_aws_lc_0_21_0_X509_CRL_get_lastUpdate"] + pub fn X509_CRL_get_lastUpdate(crl: *mut X509_CRL) -> *mut ASN1_TIME; } extern "C" { - #[link_name = "\u{1}_aws_lc_0_21_0_X509_OBJECT_get0_X509_CRL"] - pub fn X509_OBJECT_get0_X509_CRL(a: *const X509_OBJECT) -> *mut X509_CRL; + #[link_name = "\u{1}_aws_lc_0_21_0_X509_CRL_get_nextUpdate"] + pub fn X509_CRL_get_nextUpdate(crl: *mut X509_CRL) -> *mut ASN1_TIME; } extern "C" { - #[link_name = "\u{1}_aws_lc_0_21_0_X509_OBJECT_set1_X509"] - pub fn X509_OBJECT_set1_X509(a: *mut X509_OBJECT, obj: *mut X509) -> ::std::os::raw::c_int; + #[link_name = "\u{1}_aws_lc_0_21_0_X509_get_serialNumber"] + pub fn X509_get_serialNumber(x509: *mut X509) -> *mut ASN1_INTEGER; } extern "C" { - #[link_name = "\u{1}_aws_lc_0_21_0_X509_OBJECT_set1_X509_CRL"] - pub fn X509_OBJECT_set1_X509_CRL( - a: *mut X509_OBJECT, - obj: *mut X509_CRL, + #[link_name = "\u{1}_aws_lc_0_21_0_X509_NAME_get_text_by_OBJ"] + pub fn X509_NAME_get_text_by_OBJ( + name: *const X509_NAME, + obj: *const ASN1_OBJECT, + buf: *mut ::std::os::raw::c_char, + len: ::std::os::raw::c_int, ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_0_21_0_X509_STORE_lock"] - pub fn X509_STORE_lock(v: *mut X509_STORE) -> ::std::os::raw::c_int; -} -extern "C" { - #[link_name = "\u{1}_aws_lc_0_21_0_X509_STORE_unlock"] - pub fn X509_STORE_unlock(v: *mut X509_STORE) -> ::std::os::raw::c_int; -} -extern "C" { - #[link_name = "\u{1}_aws_lc_0_21_0_X509_STORE_new"] - pub fn X509_STORE_new() -> *mut X509_STORE; -} -extern "C" { - #[link_name = "\u{1}_aws_lc_0_21_0_X509_STORE_up_ref"] - pub fn X509_STORE_up_ref(store: *mut X509_STORE) -> ::std::os::raw::c_int; -} -extern "C" { - #[link_name = "\u{1}_aws_lc_0_21_0_X509_STORE_free"] - pub fn X509_STORE_free(store: *mut X509_STORE); -} -extern "C" { - #[link_name = "\u{1}_aws_lc_0_21_0_X509_STORE_get0_objects"] - pub fn X509_STORE_get0_objects(st: *mut X509_STORE) -> *mut stack_st_X509_OBJECT; -} -extern "C" { - #[link_name = "\u{1}_aws_lc_0_21_0_X509_STORE_CTX_get1_certs"] - pub fn X509_STORE_CTX_get1_certs( - st: *mut X509_STORE_CTX, - nm: *mut X509_NAME, - ) -> *mut stack_st_X509; -} -extern "C" { - #[link_name = "\u{1}_aws_lc_0_21_0_X509_STORE_CTX_get1_crls"] - pub fn X509_STORE_CTX_get1_crls( - st: *mut X509_STORE_CTX, - nm: *mut X509_NAME, - ) -> *mut stack_st_X509_CRL; -} -extern "C" { - #[link_name = "\u{1}_aws_lc_0_21_0_X509_STORE_set_flags"] - pub fn X509_STORE_set_flags( - store: *mut X509_STORE, - flags: ::std::os::raw::c_ulong, + #[link_name = "\u{1}_aws_lc_0_21_0_X509_NAME_get_text_by_NID"] + pub fn X509_NAME_get_text_by_NID( + name: *const X509_NAME, + nid: ::std::os::raw::c_int, + buf: *mut ::std::os::raw::c_char, + len: ::std::os::raw::c_int, ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_0_21_0_X509_STORE_set_purpose"] - pub fn X509_STORE_set_purpose( - store: *mut X509_STORE, - purpose: ::std::os::raw::c_int, - ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}_aws_lc_0_21_0_X509_STORE_CTX_get0_parent_ctx"] + pub fn X509_STORE_CTX_get0_parent_ctx(ctx: *mut X509_STORE_CTX) -> *mut X509_STORE_CTX; } extern "C" { - #[link_name = "\u{1}_aws_lc_0_21_0_X509_STORE_set_trust"] - pub fn X509_STORE_set_trust( - store: *mut X509_STORE, - trust: ::std::os::raw::c_int, - ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}_aws_lc_0_21_0_X509_LOOKUP_free"] + pub fn X509_LOOKUP_free(ctx: *mut X509_LOOKUP); } extern "C" { - #[link_name = "\u{1}_aws_lc_0_21_0_X509_STORE_set1_param"] - pub fn X509_STORE_set1_param( - store: *mut X509_STORE, - param: *const X509_VERIFY_PARAM, - ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}_aws_lc_0_21_0_X509_STORE_CTX_cleanup"] + pub fn X509_STORE_CTX_cleanup(ctx: *mut X509_STORE_CTX); } extern "C" { - #[link_name = "\u{1}_aws_lc_0_21_0_X509_STORE_get0_param"] - pub fn X509_STORE_get0_param(store: *mut X509_STORE) -> *mut X509_VERIFY_PARAM; + #[link_name = "\u{1}_aws_lc_0_21_0_X509V3_add_standard_extensions"] + pub fn X509V3_add_standard_extensions() -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_0_21_0_X509_STORE_CTX_new"] - pub fn X509_STORE_CTX_new() -> *mut X509_STORE_CTX; + #[link_name = "\u{1}_aws_lc_0_21_0_X509V3_parse_list"] + pub fn X509V3_parse_list(line: *const ::std::os::raw::c_char) -> *mut stack_st_CONF_VALUE; } extern "C" { - #[link_name = "\u{1}_aws_lc_0_21_0_X509_STORE_CTX_get1_issuer"] - pub fn X509_STORE_CTX_get1_issuer( - issuer: *mut *mut X509, - ctx: *mut X509_STORE_CTX, - x: *mut X509, - ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}_aws_lc_0_21_0_X509_STORE_CTX_get_chain"] + pub fn X509_STORE_CTX_get_chain(ctx: *mut X509_STORE_CTX) -> *mut stack_st_X509; } extern "C" { - #[link_name = "\u{1}_aws_lc_0_21_0_X509_STORE_CTX_free"] - pub fn X509_STORE_CTX_free(ctx: *mut X509_STORE_CTX); + #[link_name = "\u{1}_aws_lc_0_21_0_X509_STORE_CTX_trusted_stack"] + pub fn X509_STORE_CTX_trusted_stack(ctx: *mut X509_STORE_CTX, sk: *mut stack_st_X509); } +pub type X509_STORE_CTX_verify_cb = ::std::option::Option< + unsafe extern "C" fn( + arg1: ::std::os::raw::c_int, + arg2: *mut X509_STORE_CTX, + ) -> ::std::os::raw::c_int, +>; extern "C" { - #[link_name = "\u{1}_aws_lc_0_21_0_X509_STORE_CTX_init"] - pub fn X509_STORE_CTX_init( + #[link_name = "\u{1}_aws_lc_0_21_0_X509_STORE_CTX_set_verify_cb"] + pub fn X509_STORE_CTX_set_verify_cb( ctx: *mut X509_STORE_CTX, - store: *mut X509_STORE, - x509: *mut X509, - chain: *mut stack_st_X509, - ) -> ::std::os::raw::c_int; -} -extern "C" { - #[link_name = "\u{1}_aws_lc_0_21_0_X509_STORE_CTX_set0_trusted_stack"] - pub fn X509_STORE_CTX_set0_trusted_stack(ctx: *mut X509_STORE_CTX, sk: *mut stack_st_X509); -} -extern "C" { - #[link_name = "\u{1}_aws_lc_0_21_0_X509_STORE_CTX_get0_store"] - pub fn X509_STORE_CTX_get0_store(ctx: *mut X509_STORE_CTX) -> *mut X509_STORE; -} -extern "C" { - #[link_name = "\u{1}_aws_lc_0_21_0_X509_STORE_CTX_get0_cert"] - pub fn X509_STORE_CTX_get0_cert(ctx: *mut X509_STORE_CTX) -> *mut X509; -} -extern "C" { - #[link_name = "\u{1}_aws_lc_0_21_0_X509_STORE_add_lookup"] - pub fn X509_STORE_add_lookup( - v: *mut X509_STORE, - m: *const X509_LOOKUP_METHOD, - ) -> *mut X509_LOOKUP; + verify_cb: ::std::option::Option< + unsafe extern "C" fn( + ok: ::std::os::raw::c_int, + ctx: *mut X509_STORE_CTX, + ) -> ::std::os::raw::c_int, + >, + ); } extern "C" { - #[link_name = "\u{1}_aws_lc_0_21_0_X509_LOOKUP_hash_dir"] - pub fn X509_LOOKUP_hash_dir() -> *const X509_LOOKUP_METHOD; + #[link_name = "\u{1}_aws_lc_0_21_0_X509_STORE_set_verify_cb"] + pub fn X509_STORE_set_verify_cb(store: *mut X509_STORE, verify_cb: X509_STORE_CTX_verify_cb); } +pub type X509_STORE_CTX_get_crl_fn = ::std::option::Option< + unsafe extern "C" fn( + ctx: *mut X509_STORE_CTX, + crl: *mut *mut X509_CRL, + x: *mut X509, + ) -> ::std::os::raw::c_int, +>; +pub type X509_STORE_CTX_check_crl_fn = ::std::option::Option< + unsafe extern "C" fn(ctx: *mut X509_STORE_CTX, crl: *mut X509_CRL) -> ::std::os::raw::c_int, +>; extern "C" { - #[link_name = "\u{1}_aws_lc_0_21_0_X509_LOOKUP_file"] - pub fn X509_LOOKUP_file() -> *const X509_LOOKUP_METHOD; + #[link_name = "\u{1}_aws_lc_0_21_0_X509_STORE_set_get_crl"] + pub fn X509_STORE_set_get_crl(store: *mut X509_STORE, get_crl: X509_STORE_CTX_get_crl_fn); } extern "C" { - #[link_name = "\u{1}_aws_lc_0_21_0_X509_STORE_add_cert"] - pub fn X509_STORE_add_cert(ctx: *mut X509_STORE, x: *mut X509) -> ::std::os::raw::c_int; + #[link_name = "\u{1}_aws_lc_0_21_0_X509_STORE_set_check_crl"] + pub fn X509_STORE_set_check_crl(store: *mut X509_STORE, check_crl: X509_STORE_CTX_check_crl_fn); } extern "C" { - #[link_name = "\u{1}_aws_lc_0_21_0_X509_STORE_add_crl"] - pub fn X509_STORE_add_crl(ctx: *mut X509_STORE, x: *mut X509_CRL) -> ::std::os::raw::c_int; + #[link_name = "\u{1}_aws_lc_0_21_0_X509_STORE_CTX_set_chain"] + pub fn X509_STORE_CTX_set_chain(ctx: *mut X509_STORE_CTX, sk: *mut stack_st_X509); } -extern "C" { - #[link_name = "\u{1}_aws_lc_0_21_0_X509_LOOKUP_ctrl"] - pub fn X509_LOOKUP_ctrl( - ctx: *mut X509_LOOKUP, - cmd: ::std::os::raw::c_int, - argc: *const ::std::os::raw::c_char, - argl: ::std::os::raw::c_long, - ret: *mut *mut ::std::os::raw::c_char, - ) -> ::std::os::raw::c_int; +#[repr(C)] +#[derive(Debug, Copy, Clone, PartialEq, Eq)] +pub struct X509_algor_st { + pub algorithm: *mut ASN1_OBJECT, + pub parameter: *mut ASN1_TYPE, } -extern "C" { - #[link_name = "\u{1}_aws_lc_0_21_0_X509_load_cert_file"] - pub fn X509_load_cert_file( - ctx: *mut X509_LOOKUP, - file: *const ::std::os::raw::c_char, - type_: ::std::os::raw::c_int, - ) -> ::std::os::raw::c_int; +#[test] +fn bindgen_test_layout_X509_algor_st() { + const UNINIT: ::std::mem::MaybeUninit = ::std::mem::MaybeUninit::uninit(); + let ptr = UNINIT.as_ptr(); + assert_eq!( + ::std::mem::size_of::(), + 16usize, + concat!("Size of: ", stringify!(X509_algor_st)) + ); + assert_eq!( + ::std::mem::align_of::(), + 8usize, + concat!("Alignment of ", stringify!(X509_algor_st)) + ); + assert_eq!( + unsafe { ::std::ptr::addr_of!((*ptr).algorithm) as usize - ptr as usize }, + 0usize, + concat!( + "Offset of field: ", + stringify!(X509_algor_st), + "::", + stringify!(algorithm) + ) + ); + assert_eq!( + unsafe { ::std::ptr::addr_of!((*ptr).parameter) as usize - ptr as usize }, + 8usize, + concat!( + "Offset of field: ", + stringify!(X509_algor_st), + "::", + stringify!(parameter) + ) + ); } -extern "C" { - #[link_name = "\u{1}_aws_lc_0_21_0_X509_load_crl_file"] - pub fn X509_load_crl_file( - ctx: *mut X509_LOOKUP, - file: *const ::std::os::raw::c_char, - type_: ::std::os::raw::c_int, - ) -> ::std::os::raw::c_int; +impl Default for X509_algor_st { + fn default() -> Self { + let mut s = ::std::mem::MaybeUninit::::uninit(); + unsafe { + ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); + s.assume_init() + } + } } -extern "C" { - #[link_name = "\u{1}_aws_lc_0_21_0_X509_load_cert_crl_file"] - pub fn X509_load_cert_crl_file( - ctx: *mut X509_LOOKUP, - file: *const ::std::os::raw::c_char, - type_: ::std::os::raw::c_int, - ) -> ::std::os::raw::c_int; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct stack_st_DIST_POINT { + _unused: [u8; 0], } -extern "C" { - #[link_name = "\u{1}_aws_lc_0_21_0_X509_STORE_load_locations"] - pub fn X509_STORE_load_locations( - ctx: *mut X509_STORE, - file: *const ::std::os::raw::c_char, - dir: *const ::std::os::raw::c_char, - ) -> ::std::os::raw::c_int; +#[repr(C)] +#[derive(Debug, Copy, Clone, PartialEq, Eq)] +pub struct x509_trust_st { + pub trust: ::std::os::raw::c_int, + pub flags: ::std::os::raw::c_int, + pub check_trust: ::std::option::Option< + unsafe extern "C" fn( + arg1: *const X509_TRUST, + arg2: *mut X509, + arg3: ::std::os::raw::c_int, + ) -> ::std::os::raw::c_int, + >, + pub name: *mut ::std::os::raw::c_char, + pub arg1: ::std::os::raw::c_int, + pub arg2: *mut ::std::os::raw::c_void, } -extern "C" { - #[link_name = "\u{1}_aws_lc_0_21_0_X509_STORE_set_default_paths"] - pub fn X509_STORE_set_default_paths(ctx: *mut X509_STORE) -> ::std::os::raw::c_int; +#[test] +fn bindgen_test_layout_x509_trust_st() { + const UNINIT: ::std::mem::MaybeUninit = ::std::mem::MaybeUninit::uninit(); + let ptr = UNINIT.as_ptr(); + assert_eq!( + ::std::mem::size_of::(), + 40usize, + concat!("Size of: ", stringify!(x509_trust_st)) + ); + assert_eq!( + ::std::mem::align_of::(), + 8usize, + concat!("Alignment of ", stringify!(x509_trust_st)) + ); + assert_eq!( + unsafe { ::std::ptr::addr_of!((*ptr).trust) as usize - ptr as usize }, + 0usize, + concat!( + "Offset of field: ", + stringify!(x509_trust_st), + "::", + stringify!(trust) + ) + ); + assert_eq!( + unsafe { ::std::ptr::addr_of!((*ptr).flags) as usize - ptr as usize }, + 4usize, + concat!( + "Offset of field: ", + stringify!(x509_trust_st), + "::", + stringify!(flags) + ) + ); + assert_eq!( + unsafe { ::std::ptr::addr_of!((*ptr).check_trust) as usize - ptr as usize }, + 8usize, + concat!( + "Offset of field: ", + stringify!(x509_trust_st), + "::", + stringify!(check_trust) + ) + ); + assert_eq!( + unsafe { ::std::ptr::addr_of!((*ptr).name) as usize - ptr as usize }, + 16usize, + concat!( + "Offset of field: ", + stringify!(x509_trust_st), + "::", + stringify!(name) + ) + ); + assert_eq!( + unsafe { ::std::ptr::addr_of!((*ptr).arg1) as usize - ptr as usize }, + 24usize, + concat!( + "Offset of field: ", + stringify!(x509_trust_st), + "::", + stringify!(arg1) + ) + ); + assert_eq!( + unsafe { ::std::ptr::addr_of!((*ptr).arg2) as usize - ptr as usize }, + 32usize, + concat!( + "Offset of field: ", + stringify!(x509_trust_st), + "::", + stringify!(arg2) + ) + ); } -extern "C" { - #[link_name = "\u{1}_aws_lc_0_21_0_X509_STORE_CTX_get_error"] - pub fn X509_STORE_CTX_get_error(ctx: *mut X509_STORE_CTX) -> ::std::os::raw::c_int; +impl Default for x509_trust_st { + fn default() -> Self { + let mut s = ::std::mem::MaybeUninit::::uninit(); + unsafe { + ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); + s.assume_init() + } + } } -extern "C" { - #[link_name = "\u{1}_aws_lc_0_21_0_X509_STORE_CTX_set_error"] - pub fn X509_STORE_CTX_set_error(ctx: *mut X509_STORE_CTX, s: ::std::os::raw::c_int); +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct stack_st_X509_TRUST { + _unused: [u8; 0], } +pub type sk_X509_TRUST_free_func = + ::std::option::Option; +pub type sk_X509_TRUST_copy_func = + ::std::option::Option *mut X509_TRUST>; +pub type sk_X509_TRUST_cmp_func = ::std::option::Option< + unsafe extern "C" fn( + arg1: *const *const X509_TRUST, + arg2: *const *const X509_TRUST, + ) -> ::std::os::raw::c_int, +>; +pub type sk_X509_TRUST_delete_if_func = ::std::option::Option< + unsafe extern "C" fn( + arg1: *mut X509_TRUST, + arg2: *mut ::std::os::raw::c_void, + ) -> ::std::os::raw::c_int, +>; extern "C" { - #[link_name = "\u{1}_aws_lc_0_21_0_X509_STORE_CTX_get_error_depth"] - pub fn X509_STORE_CTX_get_error_depth(ctx: *mut X509_STORE_CTX) -> ::std::os::raw::c_int; + #[link_name = "\u{1}_aws_lc_0_21_0_X509_get_default_cert_area"] + pub fn X509_get_default_cert_area() -> *const ::std::os::raw::c_char; } extern "C" { - #[link_name = "\u{1}_aws_lc_0_21_0_X509_STORE_CTX_get_current_cert"] - pub fn X509_STORE_CTX_get_current_cert(ctx: *mut X509_STORE_CTX) -> *mut X509; + #[link_name = "\u{1}_aws_lc_0_21_0_X509_get_default_cert_dir"] + pub fn X509_get_default_cert_dir() -> *const ::std::os::raw::c_char; } extern "C" { - #[link_name = "\u{1}_aws_lc_0_21_0_X509_STORE_CTX_get0_current_issuer"] - pub fn X509_STORE_CTX_get0_current_issuer(ctx: *mut X509_STORE_CTX) -> *mut X509; + #[link_name = "\u{1}_aws_lc_0_21_0_X509_get_default_cert_file"] + pub fn X509_get_default_cert_file() -> *const ::std::os::raw::c_char; } extern "C" { - #[link_name = "\u{1}_aws_lc_0_21_0_X509_STORE_CTX_get0_current_crl"] - pub fn X509_STORE_CTX_get0_current_crl(ctx: *mut X509_STORE_CTX) -> *mut X509_CRL; + #[link_name = "\u{1}_aws_lc_0_21_0_X509_get_default_cert_dir_env"] + pub fn X509_get_default_cert_dir_env() -> *const ::std::os::raw::c_char; } extern "C" { - #[link_name = "\u{1}_aws_lc_0_21_0_X509_STORE_CTX_get0_chain"] - pub fn X509_STORE_CTX_get0_chain(ctx: *mut X509_STORE_CTX) -> *mut stack_st_X509; + #[link_name = "\u{1}_aws_lc_0_21_0_X509_get_default_cert_file_env"] + pub fn X509_get_default_cert_file_env() -> *const ::std::os::raw::c_char; } extern "C" { - #[link_name = "\u{1}_aws_lc_0_21_0_X509_STORE_CTX_get1_chain"] - pub fn X509_STORE_CTX_get1_chain(ctx: *mut X509_STORE_CTX) -> *mut stack_st_X509; + #[link_name = "\u{1}_aws_lc_0_21_0_X509_get_default_private_dir"] + pub fn X509_get_default_private_dir() -> *const ::std::os::raw::c_char; } extern "C" { - #[link_name = "\u{1}_aws_lc_0_21_0_X509_STORE_CTX_set_cert"] - pub fn X509_STORE_CTX_set_cert(c: *mut X509_STORE_CTX, x: *mut X509); + #[link_name = "\u{1}_aws_lc_0_21_0_X509_TRUST_set"] + pub fn X509_TRUST_set( + t: *mut ::std::os::raw::c_int, + trust: ::std::os::raw::c_int, + ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_0_21_0_X509_STORE_CTX_get0_untrusted"] - pub fn X509_STORE_CTX_get0_untrusted(ctx: *mut X509_STORE_CTX) -> *mut stack_st_X509; + #[link_name = "\u{1}_aws_lc_0_21_0_X509_cmp"] + pub fn X509_cmp(a: *const X509, b: *const X509) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_0_21_0_X509_STORE_CTX_set0_crls"] - pub fn X509_STORE_CTX_set0_crls(c: *mut X509_STORE_CTX, sk: *mut stack_st_X509_CRL); + #[link_name = "\u{1}_aws_lc_0_21_0_X509_NAME_hash"] + pub fn X509_NAME_hash(name: *mut X509_NAME) -> u32; } extern "C" { - #[link_name = "\u{1}_aws_lc_0_21_0_X509_STORE_CTX_set_purpose"] - pub fn X509_STORE_CTX_set_purpose( - ctx: *mut X509_STORE_CTX, - purpose: ::std::os::raw::c_int, - ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}_aws_lc_0_21_0_X509_NAME_hash_old"] + pub fn X509_NAME_hash_old(name: *mut X509_NAME) -> u32; } extern "C" { - #[link_name = "\u{1}_aws_lc_0_21_0_X509_STORE_CTX_set_trust"] - pub fn X509_STORE_CTX_set_trust( - ctx: *mut X509_STORE_CTX, - trust: ::std::os::raw::c_int, - ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}_aws_lc_0_21_0_X509_CRL_match"] + pub fn X509_CRL_match(a: *const X509_CRL, b: *const X509_CRL) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_0_21_0_X509_STORE_CTX_purpose_inherit"] - pub fn X509_STORE_CTX_purpose_inherit( - ctx: *mut X509_STORE_CTX, - def_purpose: ::std::os::raw::c_int, - purpose: ::std::os::raw::c_int, - trust: ::std::os::raw::c_int, - ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}_aws_lc_0_21_0_X509_TRUST_get_count"] + pub fn X509_TRUST_get_count() -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_0_21_0_X509_STORE_CTX_set_flags"] - pub fn X509_STORE_CTX_set_flags(ctx: *mut X509_STORE_CTX, flags: ::std::os::raw::c_ulong); + #[link_name = "\u{1}_aws_lc_0_21_0_X509_TRUST_get0"] + pub fn X509_TRUST_get0(idx: ::std::os::raw::c_int) -> *const X509_TRUST; } extern "C" { - #[link_name = "\u{1}_aws_lc_0_21_0_X509_STORE_CTX_set_time"] - pub fn X509_STORE_CTX_set_time( - ctx: *mut X509_STORE_CTX, - flags: ::std::os::raw::c_ulong, - t: time_t, - ); + #[link_name = "\u{1}_aws_lc_0_21_0_X509_TRUST_get_by_id"] + pub fn X509_TRUST_get_by_id(id: ::std::os::raw::c_int) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_0_21_0_X509_STORE_CTX_set_time_posix"] - pub fn X509_STORE_CTX_set_time_posix( - ctx: *mut X509_STORE_CTX, - flags: ::std::os::raw::c_ulong, - t: i64, - ); + #[link_name = "\u{1}_aws_lc_0_21_0_X509_TRUST_get_flags"] + pub fn X509_TRUST_get_flags(xp: *const X509_TRUST) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_0_21_0_X509_STORE_CTX_get0_param"] - pub fn X509_STORE_CTX_get0_param(ctx: *mut X509_STORE_CTX) -> *mut X509_VERIFY_PARAM; + #[link_name = "\u{1}_aws_lc_0_21_0_X509_TRUST_get0_name"] + pub fn X509_TRUST_get0_name(xp: *const X509_TRUST) -> *mut ::std::os::raw::c_char; } extern "C" { - #[link_name = "\u{1}_aws_lc_0_21_0_X509_STORE_CTX_set0_param"] - pub fn X509_STORE_CTX_set0_param(ctx: *mut X509_STORE_CTX, param: *mut X509_VERIFY_PARAM); + #[link_name = "\u{1}_aws_lc_0_21_0_X509_TRUST_get_trust"] + pub fn X509_TRUST_get_trust(xp: *const X509_TRUST) -> ::std::os::raw::c_int; +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct stack_st_X509_OBJECT { + _unused: [u8; 0], } +pub type sk_X509_OBJECT_free_func = + ::std::option::Option; +pub type sk_X509_OBJECT_copy_func = + ::std::option::Option *mut X509_OBJECT>; +pub type sk_X509_OBJECT_cmp_func = ::std::option::Option< + unsafe extern "C" fn( + arg1: *const *const X509_OBJECT, + arg2: *const *const X509_OBJECT, + ) -> ::std::os::raw::c_int, +>; +pub type sk_X509_OBJECT_delete_if_func = ::std::option::Option< + unsafe extern "C" fn( + arg1: *mut X509_OBJECT, + arg2: *mut ::std::os::raw::c_void, + ) -> ::std::os::raw::c_int, +>; extern "C" { - #[link_name = "\u{1}_aws_lc_0_21_0_X509_STORE_CTX_set_default"] - pub fn X509_STORE_CTX_set_default( - ctx: *mut X509_STORE_CTX, - name: *const ::std::os::raw::c_char, + #[link_name = "\u{1}_aws_lc_0_21_0_X509_LOOKUP_load_file"] + pub fn X509_LOOKUP_load_file( + lookup: *mut X509_LOOKUP, + path: *const ::std::os::raw::c_char, + type_: ::std::os::raw::c_int, ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_0_21_0_X509_STORE_CTX_get_by_subject"] - pub fn X509_STORE_CTX_get_by_subject( - vs: *mut X509_STORE_CTX, + #[link_name = "\u{1}_aws_lc_0_21_0_X509_LOOKUP_add_dir"] + pub fn X509_LOOKUP_add_dir( + lookup: *mut X509_LOOKUP, + path: *const ::std::os::raw::c_char, type_: ::std::os::raw::c_int, - name: *mut X509_NAME, - ret: *mut X509_OBJECT, ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_0_21_0_X509_VERIFY_PARAM_new"] - pub fn X509_VERIFY_PARAM_new() -> *mut X509_VERIFY_PARAM; + #[link_name = "\u{1}_aws_lc_0_21_0_X509_OBJECT_new"] + pub fn X509_OBJECT_new() -> *mut X509_OBJECT; } extern "C" { - #[link_name = "\u{1}_aws_lc_0_21_0_X509_VERIFY_PARAM_free"] - pub fn X509_VERIFY_PARAM_free(param: *mut X509_VERIFY_PARAM); + #[link_name = "\u{1}_aws_lc_0_21_0_X509_OBJECT_free"] + pub fn X509_OBJECT_free(obj: *mut X509_OBJECT); } extern "C" { - #[link_name = "\u{1}_aws_lc_0_21_0_X509_VERIFY_PARAM_inherit"] - pub fn X509_VERIFY_PARAM_inherit( - to: *mut X509_VERIFY_PARAM, - from: *const X509_VERIFY_PARAM, - ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}_aws_lc_0_21_0_X509_OBJECT_get_type"] + pub fn X509_OBJECT_get_type(obj: *const X509_OBJECT) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_0_21_0_X509_VERIFY_PARAM_set1"] - pub fn X509_VERIFY_PARAM_set1( - to: *mut X509_VERIFY_PARAM, - from: *const X509_VERIFY_PARAM, - ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}_aws_lc_0_21_0_X509_OBJECT_get0_X509"] + pub fn X509_OBJECT_get0_X509(obj: *const X509_OBJECT) -> *mut X509; } extern "C" { - #[link_name = "\u{1}_aws_lc_0_21_0_X509_VERIFY_PARAM_set_flags"] - pub fn X509_VERIFY_PARAM_set_flags( - param: *mut X509_VERIFY_PARAM, - flags: ::std::os::raw::c_ulong, - ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}_aws_lc_0_21_0_X509_OBJECT_get0_X509_CRL"] + pub fn X509_OBJECT_get0_X509_CRL(a: *const X509_OBJECT) -> *mut X509_CRL; } extern "C" { - #[link_name = "\u{1}_aws_lc_0_21_0_X509_VERIFY_PARAM_clear_flags"] - pub fn X509_VERIFY_PARAM_clear_flags( - param: *mut X509_VERIFY_PARAM, - flags: ::std::os::raw::c_ulong, + #[link_name = "\u{1}_aws_lc_0_21_0_X509_OBJECT_set1_X509"] + pub fn X509_OBJECT_set1_X509(a: *mut X509_OBJECT, obj: *mut X509) -> ::std::os::raw::c_int; +} +extern "C" { + #[link_name = "\u{1}_aws_lc_0_21_0_X509_OBJECT_set1_X509_CRL"] + pub fn X509_OBJECT_set1_X509_CRL( + a: *mut X509_OBJECT, + obj: *mut X509_CRL, ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_0_21_0_X509_VERIFY_PARAM_get_flags"] - pub fn X509_VERIFY_PARAM_get_flags(param: *const X509_VERIFY_PARAM) -> ::std::os::raw::c_ulong; + #[link_name = "\u{1}_aws_lc_0_21_0_X509_STORE_lock"] + pub fn X509_STORE_lock(v: *mut X509_STORE) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_0_21_0_X509_VERIFY_PARAM_set_purpose"] - pub fn X509_VERIFY_PARAM_set_purpose( - param: *mut X509_VERIFY_PARAM, - purpose: ::std::os::raw::c_int, - ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}_aws_lc_0_21_0_X509_STORE_unlock"] + pub fn X509_STORE_unlock(v: *mut X509_STORE) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_0_21_0_X509_VERIFY_PARAM_set_trust"] - pub fn X509_VERIFY_PARAM_set_trust( - param: *mut X509_VERIFY_PARAM, - trust: ::std::os::raw::c_int, - ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}_aws_lc_0_21_0_X509_STORE_get0_objects"] + pub fn X509_STORE_get0_objects(st: *mut X509_STORE) -> *mut stack_st_X509_OBJECT; } extern "C" { - #[link_name = "\u{1}_aws_lc_0_21_0_X509_VERIFY_PARAM_set_depth"] - pub fn X509_VERIFY_PARAM_set_depth(param: *mut X509_VERIFY_PARAM, depth: ::std::os::raw::c_int); + #[link_name = "\u{1}_aws_lc_0_21_0_X509_STORE_CTX_get1_certs"] + pub fn X509_STORE_CTX_get1_certs( + st: *mut X509_STORE_CTX, + nm: *mut X509_NAME, + ) -> *mut stack_st_X509; } extern "C" { - #[link_name = "\u{1}_aws_lc_0_21_0_X509_VERIFY_PARAM_set_time"] - pub fn X509_VERIFY_PARAM_set_time(param: *mut X509_VERIFY_PARAM, t: time_t); + #[link_name = "\u{1}_aws_lc_0_21_0_X509_STORE_CTX_get1_crls"] + pub fn X509_STORE_CTX_get1_crls( + st: *mut X509_STORE_CTX, + nm: *mut X509_NAME, + ) -> *mut stack_st_X509_CRL; } extern "C" { - #[link_name = "\u{1}_aws_lc_0_21_0_X509_VERIFY_PARAM_set_time_posix"] - pub fn X509_VERIFY_PARAM_set_time_posix(param: *mut X509_VERIFY_PARAM, t: i64); + #[link_name = "\u{1}_aws_lc_0_21_0_X509_STORE_add_lookup"] + pub fn X509_STORE_add_lookup( + v: *mut X509_STORE, + m: *const X509_LOOKUP_METHOD, + ) -> *mut X509_LOOKUP; } extern "C" { - #[link_name = "\u{1}_aws_lc_0_21_0_X509_VERIFY_PARAM_add0_policy"] - pub fn X509_VERIFY_PARAM_add0_policy( - param: *mut X509_VERIFY_PARAM, - policy: *mut ASN1_OBJECT, - ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}_aws_lc_0_21_0_X509_LOOKUP_hash_dir"] + pub fn X509_LOOKUP_hash_dir() -> *const X509_LOOKUP_METHOD; } extern "C" { - #[link_name = "\u{1}_aws_lc_0_21_0_X509_VERIFY_PARAM_set1_policies"] - pub fn X509_VERIFY_PARAM_set1_policies( - param: *mut X509_VERIFY_PARAM, - policies: *const stack_st_ASN1_OBJECT, - ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}_aws_lc_0_21_0_X509_LOOKUP_file"] + pub fn X509_LOOKUP_file() -> *const X509_LOOKUP_METHOD; } extern "C" { - #[link_name = "\u{1}_aws_lc_0_21_0_X509_VERIFY_PARAM_set1_host"] - pub fn X509_VERIFY_PARAM_set1_host( - param: *mut X509_VERIFY_PARAM, - name: *const ::std::os::raw::c_char, - namelen: usize, + #[link_name = "\u{1}_aws_lc_0_21_0_X509_STORE_CTX_get_by_subject"] + pub fn X509_STORE_CTX_get_by_subject( + vs: *mut X509_STORE_CTX, + type_: ::std::os::raw::c_int, + name: *mut X509_NAME, + ret: *mut X509_OBJECT, ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_0_21_0_X509_VERIFY_PARAM_add1_host"] - pub fn X509_VERIFY_PARAM_add1_host( - param: *mut X509_VERIFY_PARAM, - name: *const ::std::os::raw::c_char, - name_len: usize, + #[link_name = "\u{1}_aws_lc_0_21_0_X509_LOOKUP_ctrl"] + pub fn X509_LOOKUP_ctrl( + ctx: *mut X509_LOOKUP, + cmd: ::std::os::raw::c_int, + argc: *const ::std::os::raw::c_char, + argl: ::std::os::raw::c_long, + ret: *mut *mut ::std::os::raw::c_char, ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_0_21_0_X509_VERIFY_PARAM_set_hostflags"] - pub fn X509_VERIFY_PARAM_set_hostflags( - param: *mut X509_VERIFY_PARAM, - flags: ::std::os::raw::c_uint, - ); + #[link_name = "\u{1}_aws_lc_0_21_0_X509_load_cert_file"] + pub fn X509_load_cert_file( + ctx: *mut X509_LOOKUP, + file: *const ::std::os::raw::c_char, + type_: ::std::os::raw::c_int, + ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_0_21_0_X509_VERIFY_PARAM_set1_email"] - pub fn X509_VERIFY_PARAM_set1_email( - param: *mut X509_VERIFY_PARAM, - email: *const ::std::os::raw::c_char, - emaillen: usize, + #[link_name = "\u{1}_aws_lc_0_21_0_X509_load_crl_file"] + pub fn X509_load_crl_file( + ctx: *mut X509_LOOKUP, + file: *const ::std::os::raw::c_char, + type_: ::std::os::raw::c_int, ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_0_21_0_X509_VERIFY_PARAM_set1_ip"] - pub fn X509_VERIFY_PARAM_set1_ip( - param: *mut X509_VERIFY_PARAM, - ip: *const ::std::os::raw::c_uchar, - iplen: usize, + #[link_name = "\u{1}_aws_lc_0_21_0_X509_load_cert_crl_file"] + pub fn X509_load_cert_crl_file( + ctx: *mut X509_LOOKUP, + file: *const ::std::os::raw::c_char, + type_: ::std::os::raw::c_int, ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_0_21_0_X509_VERIFY_PARAM_set1_ip_asc"] - pub fn X509_VERIFY_PARAM_set1_ip_asc( - param: *mut X509_VERIFY_PARAM, - ipasc: *const ::std::os::raw::c_char, + #[link_name = "\u{1}_aws_lc_0_21_0_X509_STORE_load_locations"] + pub fn X509_STORE_load_locations( + ctx: *mut X509_STORE, + file: *const ::std::os::raw::c_char, + dir: *const ::std::os::raw::c_char, ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_0_21_0_X509_VERIFY_PARAM_get_depth"] - pub fn X509_VERIFY_PARAM_get_depth(param: *const X509_VERIFY_PARAM) -> ::std::os::raw::c_int; + #[link_name = "\u{1}_aws_lc_0_21_0_X509_STORE_set_default_paths"] + pub fn X509_STORE_set_default_paths(ctx: *mut X509_STORE) -> ::std::os::raw::c_int; } pub type X509V3_EXT_NEW = ::std::option::Option *mut ::std::os::raw::c_void>; @@ -25680,14 +25669,6 @@ extern "C" { flags: ::std::os::raw::c_ulong, ) -> ::std::os::raw::c_int; } -extern "C" { - #[link_name = "\u{1}_aws_lc_0_21_0_X509_check_purpose"] - pub fn X509_check_purpose( - x: *mut X509, - id: ::std::os::raw::c_int, - ca: ::std::os::raw::c_int, - ) -> ::std::os::raw::c_int; -} extern "C" { #[link_name = "\u{1}_aws_lc_0_21_0_X509_PURPOSE_set"] pub fn X509_PURPOSE_set( From e29de62daf56409ae093badadb10ce93c64c1f8c Mon Sep 17 00:00:00 2001 From: aws-lc-sys-bindings-generator Date: Wed, 28 Aug 2024 14:39:39 +0000 Subject: [PATCH 19/36] Generated bindings from ubuntu-latest --- .../src/x86_64_unknown_linux_gnu_crypto.rs | 3591 ++++++++--------- 1 file changed, 1786 insertions(+), 1805 deletions(-) diff --git a/aws-lc-sys/src/x86_64_unknown_linux_gnu_crypto.rs b/aws-lc-sys/src/x86_64_unknown_linux_gnu_crypto.rs index d0aa33dee22..182a73985cb 100644 --- a/aws-lc-sys/src/x86_64_unknown_linux_gnu_crypto.rs +++ b/aws-lc-sys/src/x86_64_unknown_linux_gnu_crypto.rs @@ -111,7 +111,7 @@ pub const AWSLC_VERSION_NAME: &[u8; 7] = b"AWS-LC\0"; pub const OPENSSL_VERSION_NUMBER: i32 = 269488255; pub const SSLEAY_VERSION_NUMBER: i32 = 269488255; pub const AWSLC_API_VERSION: i32 = 29; -pub const AWSLC_VERSION_NUMBER_STRING: &[u8; 7] = b"1.33.0\0"; +pub const AWSLC_VERSION_NUMBER_STRING: &[u8; 7] = b"1.34.2\0"; pub const AES_ENCRYPT: i32 = 1; pub const AES_DECRYPT: i32 = 0; pub const AES_MAXNR: i32 = 14; @@ -132,7 +132,7 @@ pub const CRYPTO_LOCK: i32 = 1; pub const CRYPTO_UNLOCK: i32 = 2; pub const CRYPTO_READ: i32 = 4; pub const CRYPTO_WRITE: i32 = 8; -pub const OPENSSL_VERSION_TEXT: &[u8; 42] = b"OpenSSL 1.1.1 (compatible; AWS-LC 1.33.0)\0"; +pub const OPENSSL_VERSION_TEXT: &[u8; 42] = b"OpenSSL 1.1.1 (compatible; AWS-LC 1.34.2)\0"; pub const OPENSSL_VERSION: i32 = 0; pub const OPENSSL_CFLAGS: i32 = 1; pub const OPENSSL_BUILT_ON: i32 = 2; @@ -3283,6 +3283,14 @@ pub const EVP_PKEY_DH: i32 = 28; pub const HKDF_R_OUTPUT_TOO_LARGE: i32 = 100; pub const MD5_CBLOCK: i32 = 64; pub const MD5_DIGEST_LENGTH: i32 = 16; +pub const HMAC_MD5_PRECOMPUTED_KEY_SIZE: i32 = 32; +pub const HMAC_SHA1_PRECOMPUTED_KEY_SIZE: i32 = 40; +pub const HMAC_SHA224_PRECOMPUTED_KEY_SIZE: i32 = 64; +pub const HMAC_SHA256_PRECOMPUTED_KEY_SIZE: i32 = 64; +pub const HMAC_SHA384_PRECOMPUTED_KEY_SIZE: i32 = 128; +pub const HMAC_SHA512_PRECOMPUTED_KEY_SIZE: i32 = 128; +pub const HMAC_SHA512_224_PRECOMPUTED_KEY_SIZE: i32 = 128; +pub const HMAC_SHA512_256_PRECOMPUTED_KEY_SIZE: i32 = 128; pub const HMAC_MAX_PRECOMPUTED_KEY_SIZE: i32 = 128; pub const HMAC_R_MISSING_PARAMETERS: i32 = 100; pub const HMAC_R_BUFFER_TOO_SMALL: i32 = 102; @@ -3501,63 +3509,6 @@ pub const GEN_EDIPARTY: i32 = 5; pub const GEN_URI: i32 = 6; pub const GEN_IPADD: i32 = 7; pub const GEN_RID: i32 = 8; -pub const X509_FLAG_COMPAT: i32 = 0; -pub const X509_FLAG_NO_HEADER: i32 = 1; -pub const X509_FLAG_NO_VERSION: i32 = 2; -pub const X509_FLAG_NO_SERIAL: i32 = 4; -pub const X509_FLAG_NO_SIGNAME: i32 = 8; -pub const X509_FLAG_NO_ISSUER: i32 = 16; -pub const X509_FLAG_NO_VALIDITY: i32 = 32; -pub const X509_FLAG_NO_SUBJECT: i32 = 64; -pub const X509_FLAG_NO_PUBKEY: i32 = 128; -pub const X509_FLAG_NO_EXTENSIONS: i32 = 256; -pub const X509_FLAG_NO_SIGDUMP: i32 = 512; -pub const X509_FLAG_NO_AUX: i32 = 1024; -pub const X509_FLAG_NO_ATTRIBUTES: i32 = 2048; -pub const X509_FLAG_NO_IDS: i32 = 4096; -pub const X509V3_EXT_UNKNOWN_MASK: i32 = 983040; -pub const X509V3_EXT_DEFAULT: i32 = 0; -pub const X509V3_EXT_ERROR_UNKNOWN: i32 = 65536; -pub const X509V3_EXT_PARSE_UNKNOWN: i32 = 131072; -pub const X509V3_EXT_DUMP_UNKNOWN: i32 = 196608; -pub const XN_FLAG_COMPAT: i32 = 0; -pub const XN_FLAG_SEP_MASK: i32 = 983040; -pub const XN_FLAG_SEP_COMMA_PLUS: i32 = 65536; -pub const XN_FLAG_SEP_CPLUS_SPC: i32 = 131072; -pub const XN_FLAG_SEP_SPLUS_SPC: i32 = 196608; -pub const XN_FLAG_SEP_MULTILINE: i32 = 262144; -pub const XN_FLAG_DN_REV: i32 = 1048576; -pub const XN_FLAG_FN_MASK: i32 = 6291456; -pub const XN_FLAG_FN_SN: i32 = 0; -pub const XN_FLAG_FN_LN: i32 = 2097152; -pub const XN_FLAG_FN_OID: i32 = 4194304; -pub const XN_FLAG_FN_NONE: i32 = 6291456; -pub const XN_FLAG_SPC_EQ: i32 = 8388608; -pub const XN_FLAG_DUMP_UNKNOWN_FIELDS: i32 = 16777216; -pub const XN_FLAG_FN_ALIGN: i32 = 33554432; -pub const XN_FLAG_RFC2253: i32 = 17892119; -pub const XN_FLAG_ONELINE: i32 = 8520479; -pub const XN_FLAG_MULTILINE: i32 = 44302342; -pub const X509V3_CTX_TEST: i32 = 1; -pub const X509_TRUST_DEFAULT: i32 = -1; -pub const X509_TRUST_COMPAT: i32 = 1; -pub const X509_TRUST_SSL_CLIENT: i32 = 2; -pub const X509_TRUST_SSL_SERVER: i32 = 3; -pub const X509_TRUST_EMAIL: i32 = 4; -pub const X509_TRUST_OBJECT_SIGN: i32 = 5; -pub const X509_TRUST_TSA: i32 = 8; -pub const X509_TRUST_TRUSTED: i32 = 1; -pub const X509_TRUST_REJECTED: i32 = 2; -pub const X509_TRUST_UNTRUSTED: i32 = 3; -pub const X509_LU_NONE: i32 = 0; -pub const X509_LU_X509: i32 = 1; -pub const X509_LU_CRL: i32 = 2; -pub const X509_LU_PKEY: i32 = 3; -pub const X509_L_FILE_LOAD: i32 = 1; -pub const X509_L_ADD_DIR: i32 = 2; -pub const X509_FILETYPE_PEM: i32 = 1; -pub const X509_FILETYPE_ASN1: i32 = 2; -pub const X509_FILETYPE_DEFAULT: i32 = 3; pub const X509_V_OK: i32 = 0; pub const X509_V_ERR_UNSPECIFIED: i32 = 1; pub const X509_V_ERR_UNABLE_TO_GET_ISSUER_CERT: i32 = 2; @@ -3619,6 +3570,78 @@ pub const X509_V_ERR_IP_ADDRESS_MISMATCH: i32 = 64; pub const X509_V_ERR_INVALID_CALL: i32 = 65; pub const X509_V_ERR_STORE_LOOKUP: i32 = 66; pub const X509_V_ERR_NAME_CONSTRAINTS_WITHOUT_SANS: i32 = 67; +pub const X509_CHECK_FLAG_NO_WILDCARDS: i32 = 2; +pub const X509_CHECK_FLAG_NEVER_CHECK_SUBJECT: i32 = 32; +pub const X509_PURPOSE_SSL_CLIENT: i32 = 1; +pub const X509_PURPOSE_SSL_SERVER: i32 = 2; +pub const X509_PURPOSE_NS_SSL_SERVER: i32 = 3; +pub const X509_PURPOSE_SMIME_SIGN: i32 = 4; +pub const X509_PURPOSE_SMIME_ENCRYPT: i32 = 5; +pub const X509_PURPOSE_CRL_SIGN: i32 = 6; +pub const X509_PURPOSE_ANY: i32 = 7; +pub const X509_PURPOSE_OCSP_HELPER: i32 = 8; +pub const X509_PURPOSE_TIMESTAMP_SIGN: i32 = 9; +pub const X509_TRUST_COMPAT: i32 = 1; +pub const X509_TRUST_SSL_CLIENT: i32 = 2; +pub const X509_TRUST_SSL_SERVER: i32 = 3; +pub const X509_TRUST_EMAIL: i32 = 4; +pub const X509_TRUST_OBJECT_SIGN: i32 = 5; +pub const X509_TRUST_TSA: i32 = 8; +pub const X509_FLAG_COMPAT: i32 = 0; +pub const X509_FLAG_NO_HEADER: i32 = 1; +pub const X509_FLAG_NO_VERSION: i32 = 2; +pub const X509_FLAG_NO_SERIAL: i32 = 4; +pub const X509_FLAG_NO_SIGNAME: i32 = 8; +pub const X509_FLAG_NO_ISSUER: i32 = 16; +pub const X509_FLAG_NO_VALIDITY: i32 = 32; +pub const X509_FLAG_NO_SUBJECT: i32 = 64; +pub const X509_FLAG_NO_PUBKEY: i32 = 128; +pub const X509_FLAG_NO_EXTENSIONS: i32 = 256; +pub const X509_FLAG_NO_SIGDUMP: i32 = 512; +pub const X509_FLAG_NO_AUX: i32 = 1024; +pub const X509_FLAG_NO_ATTRIBUTES: i32 = 2048; +pub const X509_FLAG_NO_IDS: i32 = 4096; +pub const X509V3_EXT_UNKNOWN_MASK: i32 = 983040; +pub const X509V3_EXT_DEFAULT: i32 = 0; +pub const X509V3_EXT_ERROR_UNKNOWN: i32 = 65536; +pub const X509V3_EXT_PARSE_UNKNOWN: i32 = 131072; +pub const X509V3_EXT_DUMP_UNKNOWN: i32 = 196608; +pub const XN_FLAG_COMPAT: i32 = 0; +pub const XN_FLAG_SEP_MASK: i32 = 983040; +pub const XN_FLAG_SEP_COMMA_PLUS: i32 = 65536; +pub const XN_FLAG_SEP_CPLUS_SPC: i32 = 131072; +pub const XN_FLAG_SEP_SPLUS_SPC: i32 = 196608; +pub const XN_FLAG_SEP_MULTILINE: i32 = 262144; +pub const XN_FLAG_DN_REV: i32 = 1048576; +pub const XN_FLAG_FN_MASK: i32 = 6291456; +pub const XN_FLAG_FN_SN: i32 = 0; +pub const XN_FLAG_FN_LN: i32 = 2097152; +pub const XN_FLAG_FN_OID: i32 = 4194304; +pub const XN_FLAG_FN_NONE: i32 = 6291456; +pub const XN_FLAG_SPC_EQ: i32 = 8388608; +pub const XN_FLAG_DUMP_UNKNOWN_FIELDS: i32 = 16777216; +pub const XN_FLAG_FN_ALIGN: i32 = 33554432; +pub const XN_FLAG_RFC2253: i32 = 17892119; +pub const XN_FLAG_ONELINE: i32 = 8520479; +pub const XN_FLAG_MULTILINE: i32 = 44302342; +pub const X509_TRUST_TRUSTED: i32 = 1; +pub const X509_TRUST_REJECTED: i32 = 2; +pub const X509_TRUST_UNTRUSTED: i32 = 3; +pub const X509V3_CTX_TEST: i32 = 1; +pub const X509_CHECK_FLAG_ALWAYS_CHECK_SUBJECT: i32 = 0; +pub const X509_CHECK_FLAG_MULTI_LABEL_WILDCARDS: i32 = 0; +pub const X509_CHECK_FLAG_SINGLE_LABEL_SUBDOMAINS: i32 = 0; +pub const X509_CHECK_FLAG_NO_PARTIAL_WILDCARDS: i32 = 0; +pub const X509_TRUST_DEFAULT: i32 = -1; +pub const X509_LU_NONE: i32 = 0; +pub const X509_LU_X509: i32 = 1; +pub const X509_LU_CRL: i32 = 2; +pub const X509_LU_PKEY: i32 = 3; +pub const X509_L_FILE_LOAD: i32 = 1; +pub const X509_L_ADD_DIR: i32 = 2; +pub const X509_FILETYPE_PEM: i32 = 1; +pub const X509_FILETYPE_ASN1: i32 = 2; +pub const X509_FILETYPE_DEFAULT: i32 = 3; pub const X509_V_FLAG_CB_ISSUER_CHECK: i32 = 1; pub const X509_V_FLAG_USE_CHECK_TIME: i32 = 2; pub const X509_V_FLAG_CRL_CHECK: i32 = 4; @@ -3650,15 +3673,6 @@ pub const NS_SSL_CA: i32 = 4; pub const NS_SMIME_CA: i32 = 2; pub const NS_OBJSIGN_CA: i32 = 1; pub const NS_ANY_CA: i32 = 7; -pub const X509_PURPOSE_SSL_CLIENT: i32 = 1; -pub const X509_PURPOSE_SSL_SERVER: i32 = 2; -pub const X509_PURPOSE_NS_SSL_SERVER: i32 = 3; -pub const X509_PURPOSE_SMIME_SIGN: i32 = 4; -pub const X509_PURPOSE_SMIME_ENCRYPT: i32 = 5; -pub const X509_PURPOSE_CRL_SIGN: i32 = 6; -pub const X509_PURPOSE_ANY: i32 = 7; -pub const X509_PURPOSE_OCSP_HELPER: i32 = 8; -pub const X509_PURPOSE_TIMESTAMP_SIGN: i32 = 9; pub const X509V3_ADD_OP_MASK: i32 = 15; pub const X509V3_ADD_DEFAULT: i32 = 0; pub const X509V3_ADD_APPEND: i32 = 1; @@ -3667,12 +3681,6 @@ pub const X509V3_ADD_REPLACE_EXISTING: i32 = 3; pub const X509V3_ADD_KEEP_EXISTING: i32 = 4; pub const X509V3_ADD_DELETE: i32 = 5; pub const X509V3_ADD_SILENT: i32 = 16; -pub const X509_CHECK_FLAG_NO_WILDCARDS: i32 = 2; -pub const X509_CHECK_FLAG_NEVER_CHECK_SUBJECT: i32 = 32; -pub const X509_CHECK_FLAG_NO_PARTIAL_WILDCARDS: i32 = 0; -pub const X509_CHECK_FLAG_ALWAYS_CHECK_SUBJECT: i32 = 0; -pub const X509_CHECK_FLAG_MULTI_LABEL_WILDCARDS: i32 = 0; -pub const X509_CHECK_FLAG_SINGLE_LABEL_SUBDOMAINS: i32 = 0; pub const X509_R_AKID_MISMATCH: i32 = 100; pub const X509_R_BAD_PKCS7_VERSION: i32 = 101; pub const X509_R_BAD_X509_FILETYPE: i32 = 102; @@ -13394,24 +13402,6 @@ extern "C" { enc: ::std::os::raw::c_int, ); } -extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_DES_decrypt3"] - pub fn DES_decrypt3( - data: *mut u32, - ks1: *const DES_key_schedule, - ks2: *const DES_key_schedule, - ks3: *const DES_key_schedule, - ); -} -extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_DES_encrypt3"] - pub fn DES_encrypt3( - data: *mut u32, - ks1: *const DES_key_schedule, - ks2: *const DES_key_schedule, - ks3: *const DES_key_schedule, - ); -} extern "C" { #[link_name = "\u{1}aws_lc_0_21_0_DH_new"] pub fn DH_new() -> *mut DH; @@ -21416,1751 +21406,1558 @@ extern "C" { idx: ::std::os::raw::c_int, ) -> *mut ASN1_TYPE; } -#[repr(C)] -#[derive(Debug, Copy, Clone, PartialEq, Eq)] -pub struct Netscape_spki_st { - pub spkac: *mut NETSCAPE_SPKAC, - pub sig_algor: *mut X509_ALGOR, - pub signature: *mut ASN1_BIT_STRING, -} -#[test] -fn bindgen_test_layout_Netscape_spki_st() { - const UNINIT: ::std::mem::MaybeUninit = ::std::mem::MaybeUninit::uninit(); - let ptr = UNINIT.as_ptr(); - assert_eq!( - ::std::mem::size_of::(), - 24usize, - concat!("Size of: ", stringify!(Netscape_spki_st)) - ); - assert_eq!( - ::std::mem::align_of::(), - 8usize, - concat!("Alignment of ", stringify!(Netscape_spki_st)) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).spkac) as usize - ptr as usize }, - 0usize, - concat!( - "Offset of field: ", - stringify!(Netscape_spki_st), - "::", - stringify!(spkac) - ) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).sig_algor) as usize - ptr as usize }, - 8usize, - concat!( - "Offset of field: ", - stringify!(Netscape_spki_st), - "::", - stringify!(sig_algor) - ) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).signature) as usize - ptr as usize }, - 16usize, - concat!( - "Offset of field: ", - stringify!(Netscape_spki_st), - "::", - stringify!(signature) - ) - ); +extern "C" { + #[link_name = "\u{1}aws_lc_0_21_0_X509_STORE_new"] + pub fn X509_STORE_new() -> *mut X509_STORE; } -impl Default for Netscape_spki_st { - fn default() -> Self { - let mut s = ::std::mem::MaybeUninit::::uninit(); - unsafe { - ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() - } - } +extern "C" { + #[link_name = "\u{1}aws_lc_0_21_0_X509_STORE_up_ref"] + pub fn X509_STORE_up_ref(store: *mut X509_STORE) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_NETSCAPE_SPKI_it"] - pub static NETSCAPE_SPKI_it: ASN1_ITEM; + #[link_name = "\u{1}aws_lc_0_21_0_X509_STORE_free"] + pub fn X509_STORE_free(store: *mut X509_STORE); } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_NETSCAPE_SPKI_new"] - pub fn NETSCAPE_SPKI_new() -> *mut NETSCAPE_SPKI; + #[link_name = "\u{1}aws_lc_0_21_0_X509_STORE_add_cert"] + pub fn X509_STORE_add_cert(store: *mut X509_STORE, x509: *mut X509) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_NETSCAPE_SPKI_free"] - pub fn NETSCAPE_SPKI_free(spki: *mut NETSCAPE_SPKI); + #[link_name = "\u{1}aws_lc_0_21_0_X509_STORE_add_crl"] + pub fn X509_STORE_add_crl(store: *mut X509_STORE, crl: *mut X509_CRL) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_d2i_NETSCAPE_SPKI"] - pub fn d2i_NETSCAPE_SPKI( - out: *mut *mut NETSCAPE_SPKI, - inp: *mut *const u8, - len: ::std::os::raw::c_long, - ) -> *mut NETSCAPE_SPKI; + #[link_name = "\u{1}aws_lc_0_21_0_X509_STORE_get0_param"] + pub fn X509_STORE_get0_param(store: *mut X509_STORE) -> *mut X509_VERIFY_PARAM; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_i2d_NETSCAPE_SPKI"] - pub fn i2d_NETSCAPE_SPKI( - spki: *const NETSCAPE_SPKI, - outp: *mut *mut u8, + #[link_name = "\u{1}aws_lc_0_21_0_X509_STORE_set1_param"] + pub fn X509_STORE_set1_param( + store: *mut X509_STORE, + param: *const X509_VERIFY_PARAM, ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_NETSCAPE_SPKI_verify"] - pub fn NETSCAPE_SPKI_verify( - spki: *mut NETSCAPE_SPKI, - pkey: *mut EVP_PKEY, + #[link_name = "\u{1}aws_lc_0_21_0_X509_STORE_set_flags"] + pub fn X509_STORE_set_flags( + store: *mut X509_STORE, + flags: ::std::os::raw::c_ulong, ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_NETSCAPE_SPKI_b64_decode"] - pub fn NETSCAPE_SPKI_b64_decode( - str_: *const ::std::os::raw::c_char, - len: ossl_ssize_t, - ) -> *mut NETSCAPE_SPKI; + #[link_name = "\u{1}aws_lc_0_21_0_X509_STORE_set_depth"] + pub fn X509_STORE_set_depth( + store: *mut X509_STORE, + depth: ::std::os::raw::c_int, + ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_NETSCAPE_SPKI_b64_encode"] - pub fn NETSCAPE_SPKI_b64_encode(spki: *mut NETSCAPE_SPKI) -> *mut ::std::os::raw::c_char; + #[link_name = "\u{1}aws_lc_0_21_0_X509_STORE_set_purpose"] + pub fn X509_STORE_set_purpose( + store: *mut X509_STORE, + purpose: ::std::os::raw::c_int, + ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_NETSCAPE_SPKI_get_pubkey"] - pub fn NETSCAPE_SPKI_get_pubkey(spki: *const NETSCAPE_SPKI) -> *mut EVP_PKEY; + #[link_name = "\u{1}aws_lc_0_21_0_X509_STORE_set_trust"] + pub fn X509_STORE_set_trust( + store: *mut X509_STORE, + trust: ::std::os::raw::c_int, + ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_NETSCAPE_SPKI_set_pubkey"] - pub fn NETSCAPE_SPKI_set_pubkey( - spki: *mut NETSCAPE_SPKI, - pkey: *mut EVP_PKEY, - ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_0_21_0_X509_STORE_CTX_new"] + pub fn X509_STORE_CTX_new() -> *mut X509_STORE_CTX; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_NETSCAPE_SPKI_sign"] - pub fn NETSCAPE_SPKI_sign( - spki: *mut NETSCAPE_SPKI, - pkey: *mut EVP_PKEY, - md: *const EVP_MD, + #[link_name = "\u{1}aws_lc_0_21_0_X509_STORE_CTX_free"] + pub fn X509_STORE_CTX_free(ctx: *mut X509_STORE_CTX); +} +extern "C" { + #[link_name = "\u{1}aws_lc_0_21_0_X509_STORE_CTX_init"] + pub fn X509_STORE_CTX_init( + ctx: *mut X509_STORE_CTX, + store: *mut X509_STORE, + x509: *mut X509, + chain: *mut stack_st_X509, ) -> ::std::os::raw::c_int; } -#[repr(C)] -#[derive(Debug, Copy, Clone, PartialEq, Eq)] -pub struct Netscape_spkac_st { - pub pubkey: *mut X509_PUBKEY, - pub challenge: *mut ASN1_IA5STRING, +extern "C" { + #[link_name = "\u{1}aws_lc_0_21_0_X509_verify_cert"] + pub fn X509_verify_cert(ctx: *mut X509_STORE_CTX) -> ::std::os::raw::c_int; } -#[test] -fn bindgen_test_layout_Netscape_spkac_st() { - const UNINIT: ::std::mem::MaybeUninit = ::std::mem::MaybeUninit::uninit(); - let ptr = UNINIT.as_ptr(); - assert_eq!( - ::std::mem::size_of::(), - 16usize, - concat!("Size of: ", stringify!(Netscape_spkac_st)) - ); - assert_eq!( - ::std::mem::align_of::(), - 8usize, - concat!("Alignment of ", stringify!(Netscape_spkac_st)) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).pubkey) as usize - ptr as usize }, - 0usize, - concat!( - "Offset of field: ", - stringify!(Netscape_spkac_st), - "::", - stringify!(pubkey) - ) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).challenge) as usize - ptr as usize }, - 8usize, - concat!( - "Offset of field: ", - stringify!(Netscape_spkac_st), - "::", - stringify!(challenge) - ) - ); +extern "C" { + #[link_name = "\u{1}aws_lc_0_21_0_X509_STORE_CTX_get0_chain"] + pub fn X509_STORE_CTX_get0_chain(ctx: *mut X509_STORE_CTX) -> *mut stack_st_X509; } -impl Default for Netscape_spkac_st { - fn default() -> Self { - let mut s = ::std::mem::MaybeUninit::::uninit(); - unsafe { - ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() - } - } +extern "C" { + #[link_name = "\u{1}aws_lc_0_21_0_X509_STORE_CTX_get1_chain"] + pub fn X509_STORE_CTX_get1_chain(ctx: *mut X509_STORE_CTX) -> *mut stack_st_X509; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_NETSCAPE_SPKAC_it"] - pub static NETSCAPE_SPKAC_it: ASN1_ITEM; + #[link_name = "\u{1}aws_lc_0_21_0_X509_STORE_CTX_set_cert"] + pub fn X509_STORE_CTX_set_cert(c: *mut X509_STORE_CTX, x: *mut X509); } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_NETSCAPE_SPKAC_new"] - pub fn NETSCAPE_SPKAC_new() -> *mut NETSCAPE_SPKAC; + #[link_name = "\u{1}aws_lc_0_21_0_X509_STORE_CTX_get_error"] + pub fn X509_STORE_CTX_get_error(ctx: *mut X509_STORE_CTX) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_NETSCAPE_SPKAC_free"] - pub fn NETSCAPE_SPKAC_free(spkac: *mut NETSCAPE_SPKAC); + #[link_name = "\u{1}aws_lc_0_21_0_X509_STORE_CTX_set_error"] + pub fn X509_STORE_CTX_set_error(ctx: *mut X509_STORE_CTX, err: ::std::os::raw::c_int); } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_d2i_NETSCAPE_SPKAC"] - pub fn d2i_NETSCAPE_SPKAC( - out: *mut *mut NETSCAPE_SPKAC, - inp: *mut *const u8, - len: ::std::os::raw::c_long, - ) -> *mut NETSCAPE_SPKAC; + #[link_name = "\u{1}aws_lc_0_21_0_X509_verify_cert_error_string"] + pub fn X509_verify_cert_error_string( + err: ::std::os::raw::c_long, + ) -> *const ::std::os::raw::c_char; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_i2d_NETSCAPE_SPKAC"] - pub fn i2d_NETSCAPE_SPKAC( - spkac: *const NETSCAPE_SPKAC, - outp: *mut *mut u8, - ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_0_21_0_X509_STORE_CTX_get_error_depth"] + pub fn X509_STORE_CTX_get_error_depth(ctx: *mut X509_STORE_CTX) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_NETSCAPE_SPKI_print"] - pub fn NETSCAPE_SPKI_print(out: *mut BIO, spki: *mut NETSCAPE_SPKI) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_0_21_0_X509_STORE_CTX_get_current_cert"] + pub fn X509_STORE_CTX_get_current_cert(ctx: *mut X509_STORE_CTX) -> *mut X509; } -#[repr(C)] -#[derive(Debug, Copy, Clone, PartialEq, Eq)] -pub struct rsa_pss_params_st { - pub hashAlgorithm: *mut X509_ALGOR, - pub maskGenAlgorithm: *mut X509_ALGOR, - pub saltLength: *mut ASN1_INTEGER, - pub trailerField: *mut ASN1_INTEGER, - pub maskHash: *mut X509_ALGOR, +extern "C" { + #[link_name = "\u{1}aws_lc_0_21_0_X509_STORE_CTX_get0_current_issuer"] + pub fn X509_STORE_CTX_get0_current_issuer(ctx: *mut X509_STORE_CTX) -> *mut X509; } -#[test] -fn bindgen_test_layout_rsa_pss_params_st() { - const UNINIT: ::std::mem::MaybeUninit = ::std::mem::MaybeUninit::uninit(); - let ptr = UNINIT.as_ptr(); - assert_eq!( - ::std::mem::size_of::(), - 40usize, - concat!("Size of: ", stringify!(rsa_pss_params_st)) - ); - assert_eq!( - ::std::mem::align_of::(), - 8usize, - concat!("Alignment of ", stringify!(rsa_pss_params_st)) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).hashAlgorithm) as usize - ptr as usize }, - 0usize, - concat!( - "Offset of field: ", - stringify!(rsa_pss_params_st), - "::", - stringify!(hashAlgorithm) - ) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).maskGenAlgorithm) as usize - ptr as usize }, - 8usize, - concat!( - "Offset of field: ", - stringify!(rsa_pss_params_st), - "::", - stringify!(maskGenAlgorithm) - ) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).saltLength) as usize - ptr as usize }, - 16usize, - concat!( - "Offset of field: ", - stringify!(rsa_pss_params_st), - "::", - stringify!(saltLength) - ) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).trailerField) as usize - ptr as usize }, - 24usize, - concat!( - "Offset of field: ", - stringify!(rsa_pss_params_st), - "::", - stringify!(trailerField) - ) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).maskHash) as usize - ptr as usize }, - 32usize, - concat!( - "Offset of field: ", - stringify!(rsa_pss_params_st), - "::", - stringify!(maskHash) - ) - ); +extern "C" { + #[link_name = "\u{1}aws_lc_0_21_0_X509_STORE_CTX_get0_current_crl"] + pub fn X509_STORE_CTX_get0_current_crl(ctx: *mut X509_STORE_CTX) -> *mut X509_CRL; } -impl Default for rsa_pss_params_st { - fn default() -> Self { - let mut s = ::std::mem::MaybeUninit::::uninit(); - unsafe { - ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() - } - } +extern "C" { + #[link_name = "\u{1}aws_lc_0_21_0_X509_STORE_CTX_get0_store"] + pub fn X509_STORE_CTX_get0_store(ctx: *mut X509_STORE_CTX) -> *mut X509_STORE; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_RSA_PSS_PARAMS_it"] - pub static RSA_PSS_PARAMS_it: ASN1_ITEM; + #[link_name = "\u{1}aws_lc_0_21_0_X509_STORE_CTX_get0_cert"] + pub fn X509_STORE_CTX_get0_cert(ctx: *mut X509_STORE_CTX) -> *mut X509; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_RSA_PSS_PARAMS_new"] - pub fn RSA_PSS_PARAMS_new() -> *mut RSA_PSS_PARAMS; + #[link_name = "\u{1}aws_lc_0_21_0_X509_STORE_CTX_get0_untrusted"] + pub fn X509_STORE_CTX_get0_untrusted(ctx: *mut X509_STORE_CTX) -> *mut stack_st_X509; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_RSA_PSS_PARAMS_free"] - pub fn RSA_PSS_PARAMS_free(params: *mut RSA_PSS_PARAMS); + #[link_name = "\u{1}aws_lc_0_21_0_X509_STORE_CTX_set0_trusted_stack"] + pub fn X509_STORE_CTX_set0_trusted_stack(ctx: *mut X509_STORE_CTX, sk: *mut stack_st_X509); } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_d2i_RSA_PSS_PARAMS"] - pub fn d2i_RSA_PSS_PARAMS( - out: *mut *mut RSA_PSS_PARAMS, - inp: *mut *const u8, - len: ::std::os::raw::c_long, - ) -> *mut RSA_PSS_PARAMS; + #[link_name = "\u{1}aws_lc_0_21_0_X509_STORE_CTX_set0_crls"] + pub fn X509_STORE_CTX_set0_crls(ctx: *mut X509_STORE_CTX, sk: *mut stack_st_X509_CRL); } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_i2d_RSA_PSS_PARAMS"] - pub fn i2d_RSA_PSS_PARAMS( - in_: *const RSA_PSS_PARAMS, - outp: *mut *mut u8, + #[link_name = "\u{1}aws_lc_0_21_0_X509_STORE_CTX_set_default"] + pub fn X509_STORE_CTX_set_default( + ctx: *mut X509_STORE_CTX, + name: *const ::std::os::raw::c_char, ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_PKCS8_PRIV_KEY_INFO_it"] - pub static PKCS8_PRIV_KEY_INFO_it: ASN1_ITEM; + #[link_name = "\u{1}aws_lc_0_21_0_X509_STORE_CTX_get0_param"] + pub fn X509_STORE_CTX_get0_param(ctx: *mut X509_STORE_CTX) -> *mut X509_VERIFY_PARAM; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_PKCS8_PRIV_KEY_INFO_new"] - pub fn PKCS8_PRIV_KEY_INFO_new() -> *mut PKCS8_PRIV_KEY_INFO; -} -extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_PKCS8_PRIV_KEY_INFO_free"] - pub fn PKCS8_PRIV_KEY_INFO_free(key: *mut PKCS8_PRIV_KEY_INFO); -} -extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_d2i_PKCS8_PRIV_KEY_INFO"] - pub fn d2i_PKCS8_PRIV_KEY_INFO( - out: *mut *mut PKCS8_PRIV_KEY_INFO, - inp: *mut *const u8, - len: ::std::os::raw::c_long, - ) -> *mut PKCS8_PRIV_KEY_INFO; -} -extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_i2d_PKCS8_PRIV_KEY_INFO"] - pub fn i2d_PKCS8_PRIV_KEY_INFO( - key: *const PKCS8_PRIV_KEY_INFO, - outp: *mut *mut u8, - ) -> ::std::os::raw::c_int; -} -extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_EVP_PKCS82PKEY"] - pub fn EVP_PKCS82PKEY(p8: *const PKCS8_PRIV_KEY_INFO) -> *mut EVP_PKEY; + #[link_name = "\u{1}aws_lc_0_21_0_X509_STORE_CTX_set0_param"] + pub fn X509_STORE_CTX_set0_param(ctx: *mut X509_STORE_CTX, param: *mut X509_VERIFY_PARAM); } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_EVP_PKEY2PKCS8"] - pub fn EVP_PKEY2PKCS8(pkey: *const EVP_PKEY) -> *mut PKCS8_PRIV_KEY_INFO; + #[link_name = "\u{1}aws_lc_0_21_0_X509_STORE_CTX_set_flags"] + pub fn X509_STORE_CTX_set_flags(ctx: *mut X509_STORE_CTX, flags: ::std::os::raw::c_ulong); } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_X509_SIG_it"] - pub static X509_SIG_it: ASN1_ITEM; + #[link_name = "\u{1}aws_lc_0_21_0_X509_STORE_CTX_set_time"] + pub fn X509_STORE_CTX_set_time( + ctx: *mut X509_STORE_CTX, + flags: ::std::os::raw::c_ulong, + t: time_t, + ); } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_X509_SIG_new"] - pub fn X509_SIG_new() -> *mut X509_SIG; + #[link_name = "\u{1}aws_lc_0_21_0_X509_STORE_CTX_set_time_posix"] + pub fn X509_STORE_CTX_set_time_posix( + ctx: *mut X509_STORE_CTX, + flags: ::std::os::raw::c_ulong, + t: i64, + ); } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_X509_SIG_free"] - pub fn X509_SIG_free(key: *mut X509_SIG); + #[link_name = "\u{1}aws_lc_0_21_0_X509_STORE_CTX_set_depth"] + pub fn X509_STORE_CTX_set_depth(ctx: *mut X509_STORE_CTX, depth: ::std::os::raw::c_int); } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_d2i_X509_SIG"] - pub fn d2i_X509_SIG( - out: *mut *mut X509_SIG, - inp: *mut *const u8, - len: ::std::os::raw::c_long, - ) -> *mut X509_SIG; + #[link_name = "\u{1}aws_lc_0_21_0_X509_STORE_CTX_set_purpose"] + pub fn X509_STORE_CTX_set_purpose( + ctx: *mut X509_STORE_CTX, + purpose: ::std::os::raw::c_int, + ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_i2d_X509_SIG"] - pub fn i2d_X509_SIG(sig: *const X509_SIG, outp: *mut *mut u8) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_0_21_0_X509_STORE_CTX_set_trust"] + pub fn X509_STORE_CTX_set_trust( + ctx: *mut X509_STORE_CTX, + trust: ::std::os::raw::c_int, + ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_X509_SIG_get0"] - pub fn X509_SIG_get0( - sig: *const X509_SIG, - out_alg: *mut *const X509_ALGOR, - out_digest: *mut *const ASN1_OCTET_STRING, - ); + #[link_name = "\u{1}aws_lc_0_21_0_X509_VERIFY_PARAM_new"] + pub fn X509_VERIFY_PARAM_new() -> *mut X509_VERIFY_PARAM; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_X509_SIG_getm"] - pub fn X509_SIG_getm( - sig: *mut X509_SIG, - out_alg: *mut *mut X509_ALGOR, - out_digest: *mut *mut ASN1_OCTET_STRING, - ); + #[link_name = "\u{1}aws_lc_0_21_0_X509_VERIFY_PARAM_free"] + pub fn X509_VERIFY_PARAM_free(param: *mut X509_VERIFY_PARAM); } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_X509_print_ex"] - pub fn X509_print_ex( - bp: *mut BIO, - x: *mut X509, - nmflag: ::std::os::raw::c_ulong, - cflag: ::std::os::raw::c_ulong, + #[link_name = "\u{1}aws_lc_0_21_0_X509_VERIFY_PARAM_inherit"] + pub fn X509_VERIFY_PARAM_inherit( + to: *mut X509_VERIFY_PARAM, + from: *const X509_VERIFY_PARAM, ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_X509_print_ex_fp"] - pub fn X509_print_ex_fp( - fp: *mut FILE, - x: *mut X509, - nmflag: ::std::os::raw::c_ulong, - cflag: ::std::os::raw::c_ulong, + #[link_name = "\u{1}aws_lc_0_21_0_X509_VERIFY_PARAM_set1"] + pub fn X509_VERIFY_PARAM_set1( + to: *mut X509_VERIFY_PARAM, + from: *const X509_VERIFY_PARAM, ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_X509_print"] - pub fn X509_print(bp: *mut BIO, x: *mut X509) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_0_21_0_X509_VERIFY_PARAM_set_flags"] + pub fn X509_VERIFY_PARAM_set_flags( + param: *mut X509_VERIFY_PARAM, + flags: ::std::os::raw::c_ulong, + ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_X509_print_fp"] - pub fn X509_print_fp(fp: *mut FILE, x: *mut X509) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_0_21_0_X509_VERIFY_PARAM_clear_flags"] + pub fn X509_VERIFY_PARAM_clear_flags( + param: *mut X509_VERIFY_PARAM, + flags: ::std::os::raw::c_ulong, + ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_X509_CRL_print"] - pub fn X509_CRL_print(bp: *mut BIO, x: *mut X509_CRL) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_0_21_0_X509_VERIFY_PARAM_get_flags"] + pub fn X509_VERIFY_PARAM_get_flags(param: *const X509_VERIFY_PARAM) -> ::std::os::raw::c_ulong; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_X509_CRL_print_fp"] - pub fn X509_CRL_print_fp(fp: *mut FILE, x: *mut X509_CRL) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_0_21_0_X509_VERIFY_PARAM_set_depth"] + pub fn X509_VERIFY_PARAM_set_depth(param: *mut X509_VERIFY_PARAM, depth: ::std::os::raw::c_int); } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_X509_REQ_print_ex"] - pub fn X509_REQ_print_ex( - bp: *mut BIO, - x: *mut X509_REQ, - nmflag: ::std::os::raw::c_ulong, - cflag: ::std::os::raw::c_ulong, - ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_0_21_0_X509_VERIFY_PARAM_get_depth"] + pub fn X509_VERIFY_PARAM_get_depth(param: *const X509_VERIFY_PARAM) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_X509_REQ_print"] - pub fn X509_REQ_print(bp: *mut BIO, req: *mut X509_REQ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_0_21_0_X509_VERIFY_PARAM_set_time"] + pub fn X509_VERIFY_PARAM_set_time(param: *mut X509_VERIFY_PARAM, t: time_t); } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_X509_REQ_print_fp"] - pub fn X509_REQ_print_fp(fp: *mut FILE, req: *mut X509_REQ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_0_21_0_X509_VERIFY_PARAM_set_time_posix"] + pub fn X509_VERIFY_PARAM_set_time_posix(param: *mut X509_VERIFY_PARAM, t: i64); } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_X509_NAME_print_ex"] - pub fn X509_NAME_print_ex( - out: *mut BIO, - nm: *const X509_NAME, - indent: ::std::os::raw::c_int, - flags: ::std::os::raw::c_ulong, + #[link_name = "\u{1}aws_lc_0_21_0_X509_VERIFY_PARAM_add0_policy"] + pub fn X509_VERIFY_PARAM_add0_policy( + param: *mut X509_VERIFY_PARAM, + policy: *mut ASN1_OBJECT, ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_X509_NAME_print"] - pub fn X509_NAME_print( - bp: *mut BIO, - name: *const X509_NAME, - obase: ::std::os::raw::c_int, + #[link_name = "\u{1}aws_lc_0_21_0_X509_VERIFY_PARAM_set1_policies"] + pub fn X509_VERIFY_PARAM_set1_policies( + param: *mut X509_VERIFY_PARAM, + policies: *const stack_st_ASN1_OBJECT, ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_X509_NAME_oneline"] - pub fn X509_NAME_oneline( - name: *const X509_NAME, - buf: *mut ::std::os::raw::c_char, - size: ::std::os::raw::c_int, - ) -> *mut ::std::os::raw::c_char; -} -extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_X509_NAME_print_ex_fp"] - pub fn X509_NAME_print_ex_fp( - fp: *mut FILE, - nm: *const X509_NAME, - indent: ::std::os::raw::c_int, - flags: ::std::os::raw::c_ulong, + #[link_name = "\u{1}aws_lc_0_21_0_X509_VERIFY_PARAM_set1_host"] + pub fn X509_VERIFY_PARAM_set1_host( + param: *mut X509_VERIFY_PARAM, + name: *const ::std::os::raw::c_char, + name_len: usize, ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_X509_signature_dump"] - pub fn X509_signature_dump( - bio: *mut BIO, - sig: *const ASN1_STRING, - indent: ::std::os::raw::c_int, + #[link_name = "\u{1}aws_lc_0_21_0_X509_VERIFY_PARAM_add1_host"] + pub fn X509_VERIFY_PARAM_add1_host( + param: *mut X509_VERIFY_PARAM, + name: *const ::std::os::raw::c_char, + name_len: usize, ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_X509_signature_print"] - pub fn X509_signature_print( - bio: *mut BIO, - alg: *const X509_ALGOR, - sig: *const ASN1_STRING, - ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_0_21_0_X509_VERIFY_PARAM_set_hostflags"] + pub fn X509_VERIFY_PARAM_set_hostflags( + param: *mut X509_VERIFY_PARAM, + flags: ::std::os::raw::c_uint, + ); } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_X509V3_EXT_print"] - pub fn X509V3_EXT_print( - out: *mut BIO, - ext: *const X509_EXTENSION, - flag: ::std::os::raw::c_ulong, - indent: ::std::os::raw::c_int, + #[link_name = "\u{1}aws_lc_0_21_0_X509_VERIFY_PARAM_set1_email"] + pub fn X509_VERIFY_PARAM_set1_email( + param: *mut X509_VERIFY_PARAM, + email: *const ::std::os::raw::c_char, + email_len: usize, ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_X509V3_EXT_print_fp"] - pub fn X509V3_EXT_print_fp( - out: *mut FILE, - ext: *const X509_EXTENSION, - flag: ::std::os::raw::c_int, - indent: ::std::os::raw::c_int, + #[link_name = "\u{1}aws_lc_0_21_0_X509_VERIFY_PARAM_set1_ip"] + pub fn X509_VERIFY_PARAM_set1_ip( + param: *mut X509_VERIFY_PARAM, + ip: *const u8, + ip_len: usize, ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_X509V3_extensions_print"] - pub fn X509V3_extensions_print( - out: *mut BIO, - title: *const ::std::os::raw::c_char, - exts: *const stack_st_X509_EXTENSION, - flag: ::std::os::raw::c_ulong, - indent: ::std::os::raw::c_int, + #[link_name = "\u{1}aws_lc_0_21_0_X509_VERIFY_PARAM_set1_ip_asc"] + pub fn X509_VERIFY_PARAM_set1_ip_asc( + param: *mut X509_VERIFY_PARAM, + ipasc: *const ::std::os::raw::c_char, ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_GENERAL_NAME_print"] - pub fn GENERAL_NAME_print(out: *mut BIO, gen: *const GENERAL_NAME) -> ::std::os::raw::c_int; -} -extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_X509_pubkey_digest"] - pub fn X509_pubkey_digest( - x509: *const X509, - md: *const EVP_MD, - out: *mut u8, - out_len: *mut ::std::os::raw::c_uint, + #[link_name = "\u{1}aws_lc_0_21_0_X509_VERIFY_PARAM_set_purpose"] + pub fn X509_VERIFY_PARAM_set_purpose( + param: *mut X509_VERIFY_PARAM, + purpose: ::std::os::raw::c_int, ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_X509_digest"] - pub fn X509_digest( - x509: *const X509, - md: *const EVP_MD, - out: *mut u8, - out_len: *mut ::std::os::raw::c_uint, + #[link_name = "\u{1}aws_lc_0_21_0_X509_VERIFY_PARAM_set_trust"] + pub fn X509_VERIFY_PARAM_set_trust( + param: *mut X509_VERIFY_PARAM, + trust: ::std::os::raw::c_int, ) -> ::std::os::raw::c_int; } -extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_X509_CRL_digest"] - pub fn X509_CRL_digest( - crl: *const X509_CRL, - md: *const EVP_MD, - out: *mut u8, - out_len: *mut ::std::os::raw::c_uint, - ) -> ::std::os::raw::c_int; -} -extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_X509_REQ_digest"] - pub fn X509_REQ_digest( - req: *const X509_REQ, - md: *const EVP_MD, - out: *mut u8, - out_len: *mut ::std::os::raw::c_uint, - ) -> ::std::os::raw::c_int; -} -extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_X509_NAME_digest"] - pub fn X509_NAME_digest( - name: *const X509_NAME, - md: *const EVP_MD, - out: *mut u8, - out_len: *mut ::std::os::raw::c_uint, - ) -> ::std::os::raw::c_int; +#[repr(C)] +#[derive(Debug, Copy, Clone, PartialEq, Eq)] +pub struct Netscape_spki_st { + pub spkac: *mut NETSCAPE_SPKAC, + pub sig_algor: *mut X509_ALGOR, + pub signature: *mut ASN1_BIT_STRING, } -extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_d2i_X509_bio"] - pub fn d2i_X509_bio(bp: *mut BIO, x509: *mut *mut X509) -> *mut X509; +#[test] +fn bindgen_test_layout_Netscape_spki_st() { + const UNINIT: ::std::mem::MaybeUninit = ::std::mem::MaybeUninit::uninit(); + let ptr = UNINIT.as_ptr(); + assert_eq!( + ::std::mem::size_of::(), + 24usize, + concat!("Size of: ", stringify!(Netscape_spki_st)) + ); + assert_eq!( + ::std::mem::align_of::(), + 8usize, + concat!("Alignment of ", stringify!(Netscape_spki_st)) + ); + assert_eq!( + unsafe { ::std::ptr::addr_of!((*ptr).spkac) as usize - ptr as usize }, + 0usize, + concat!( + "Offset of field: ", + stringify!(Netscape_spki_st), + "::", + stringify!(spkac) + ) + ); + assert_eq!( + unsafe { ::std::ptr::addr_of!((*ptr).sig_algor) as usize - ptr as usize }, + 8usize, + concat!( + "Offset of field: ", + stringify!(Netscape_spki_st), + "::", + stringify!(sig_algor) + ) + ); + assert_eq!( + unsafe { ::std::ptr::addr_of!((*ptr).signature) as usize - ptr as usize }, + 16usize, + concat!( + "Offset of field: ", + stringify!(Netscape_spki_st), + "::", + stringify!(signature) + ) + ); } -extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_d2i_X509_CRL_bio"] - pub fn d2i_X509_CRL_bio(bp: *mut BIO, crl: *mut *mut X509_CRL) -> *mut X509_CRL; +impl Default for Netscape_spki_st { + fn default() -> Self { + let mut s = ::std::mem::MaybeUninit::::uninit(); + unsafe { + ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); + s.assume_init() + } + } } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_d2i_X509_REQ_bio"] - pub fn d2i_X509_REQ_bio(bp: *mut BIO, req: *mut *mut X509_REQ) -> *mut X509_REQ; + #[link_name = "\u{1}aws_lc_0_21_0_NETSCAPE_SPKI_it"] + pub static NETSCAPE_SPKI_it: ASN1_ITEM; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_d2i_RSAPrivateKey_bio"] - pub fn d2i_RSAPrivateKey_bio(bp: *mut BIO, rsa: *mut *mut RSA) -> *mut RSA; + #[link_name = "\u{1}aws_lc_0_21_0_NETSCAPE_SPKI_new"] + pub fn NETSCAPE_SPKI_new() -> *mut NETSCAPE_SPKI; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_d2i_RSAPublicKey_bio"] - pub fn d2i_RSAPublicKey_bio(bp: *mut BIO, rsa: *mut *mut RSA) -> *mut RSA; + #[link_name = "\u{1}aws_lc_0_21_0_NETSCAPE_SPKI_free"] + pub fn NETSCAPE_SPKI_free(spki: *mut NETSCAPE_SPKI); } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_d2i_RSA_PUBKEY_bio"] - pub fn d2i_RSA_PUBKEY_bio(bp: *mut BIO, rsa: *mut *mut RSA) -> *mut RSA; + #[link_name = "\u{1}aws_lc_0_21_0_d2i_NETSCAPE_SPKI"] + pub fn d2i_NETSCAPE_SPKI( + out: *mut *mut NETSCAPE_SPKI, + inp: *mut *const u8, + len: ::std::os::raw::c_long, + ) -> *mut NETSCAPE_SPKI; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_d2i_DSA_PUBKEY_bio"] - pub fn d2i_DSA_PUBKEY_bio(bp: *mut BIO, dsa: *mut *mut DSA) -> *mut DSA; + #[link_name = "\u{1}aws_lc_0_21_0_i2d_NETSCAPE_SPKI"] + pub fn i2d_NETSCAPE_SPKI( + spki: *const NETSCAPE_SPKI, + outp: *mut *mut u8, + ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_d2i_DSAPrivateKey_bio"] - pub fn d2i_DSAPrivateKey_bio(bp: *mut BIO, dsa: *mut *mut DSA) -> *mut DSA; + #[link_name = "\u{1}aws_lc_0_21_0_NETSCAPE_SPKI_verify"] + pub fn NETSCAPE_SPKI_verify( + spki: *mut NETSCAPE_SPKI, + pkey: *mut EVP_PKEY, + ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_d2i_EC_PUBKEY_bio"] - pub fn d2i_EC_PUBKEY_bio(bp: *mut BIO, eckey: *mut *mut EC_KEY) -> *mut EC_KEY; + #[link_name = "\u{1}aws_lc_0_21_0_NETSCAPE_SPKI_b64_decode"] + pub fn NETSCAPE_SPKI_b64_decode( + str_: *const ::std::os::raw::c_char, + len: ossl_ssize_t, + ) -> *mut NETSCAPE_SPKI; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_d2i_ECPrivateKey_bio"] - pub fn d2i_ECPrivateKey_bio(bp: *mut BIO, eckey: *mut *mut EC_KEY) -> *mut EC_KEY; + #[link_name = "\u{1}aws_lc_0_21_0_NETSCAPE_SPKI_b64_encode"] + pub fn NETSCAPE_SPKI_b64_encode(spki: *mut NETSCAPE_SPKI) -> *mut ::std::os::raw::c_char; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_d2i_PKCS8_bio"] - pub fn d2i_PKCS8_bio(bp: *mut BIO, p8: *mut *mut X509_SIG) -> *mut X509_SIG; + #[link_name = "\u{1}aws_lc_0_21_0_NETSCAPE_SPKI_get_pubkey"] + pub fn NETSCAPE_SPKI_get_pubkey(spki: *const NETSCAPE_SPKI) -> *mut EVP_PKEY; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_d2i_PKCS8_PRIV_KEY_INFO_bio"] - pub fn d2i_PKCS8_PRIV_KEY_INFO_bio( - bp: *mut BIO, - p8inf: *mut *mut PKCS8_PRIV_KEY_INFO, - ) -> *mut PKCS8_PRIV_KEY_INFO; + #[link_name = "\u{1}aws_lc_0_21_0_NETSCAPE_SPKI_set_pubkey"] + pub fn NETSCAPE_SPKI_set_pubkey( + spki: *mut NETSCAPE_SPKI, + pkey: *mut EVP_PKEY, + ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_d2i_PUBKEY_bio"] - pub fn d2i_PUBKEY_bio(bp: *mut BIO, a: *mut *mut EVP_PKEY) -> *mut EVP_PKEY; + #[link_name = "\u{1}aws_lc_0_21_0_NETSCAPE_SPKI_sign"] + pub fn NETSCAPE_SPKI_sign( + spki: *mut NETSCAPE_SPKI, + pkey: *mut EVP_PKEY, + md: *const EVP_MD, + ) -> ::std::os::raw::c_int; } -extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_d2i_DHparams_bio"] - pub fn d2i_DHparams_bio(bp: *mut BIO, dh: *mut *mut DH) -> *mut DH; +#[repr(C)] +#[derive(Debug, Copy, Clone, PartialEq, Eq)] +pub struct Netscape_spkac_st { + pub pubkey: *mut X509_PUBKEY, + pub challenge: *mut ASN1_IA5STRING, } -extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_d2i_PrivateKey_bio"] - pub fn d2i_PrivateKey_bio(bp: *mut BIO, a: *mut *mut EVP_PKEY) -> *mut EVP_PKEY; +#[test] +fn bindgen_test_layout_Netscape_spkac_st() { + const UNINIT: ::std::mem::MaybeUninit = ::std::mem::MaybeUninit::uninit(); + let ptr = UNINIT.as_ptr(); + assert_eq!( + ::std::mem::size_of::(), + 16usize, + concat!("Size of: ", stringify!(Netscape_spkac_st)) + ); + assert_eq!( + ::std::mem::align_of::(), + 8usize, + concat!("Alignment of ", stringify!(Netscape_spkac_st)) + ); + assert_eq!( + unsafe { ::std::ptr::addr_of!((*ptr).pubkey) as usize - ptr as usize }, + 0usize, + concat!( + "Offset of field: ", + stringify!(Netscape_spkac_st), + "::", + stringify!(pubkey) + ) + ); + assert_eq!( + unsafe { ::std::ptr::addr_of!((*ptr).challenge) as usize - ptr as usize }, + 8usize, + concat!( + "Offset of field: ", + stringify!(Netscape_spkac_st), + "::", + stringify!(challenge) + ) + ); } -extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_i2d_X509_bio"] - pub fn i2d_X509_bio(bp: *mut BIO, x509: *mut X509) -> ::std::os::raw::c_int; +impl Default for Netscape_spkac_st { + fn default() -> Self { + let mut s = ::std::mem::MaybeUninit::::uninit(); + unsafe { + ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); + s.assume_init() + } + } } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_i2d_X509_CRL_bio"] - pub fn i2d_X509_CRL_bio(bp: *mut BIO, crl: *mut X509_CRL) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_0_21_0_NETSCAPE_SPKAC_it"] + pub static NETSCAPE_SPKAC_it: ASN1_ITEM; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_i2d_X509_REQ_bio"] - pub fn i2d_X509_REQ_bio(bp: *mut BIO, req: *mut X509_REQ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_0_21_0_NETSCAPE_SPKAC_new"] + pub fn NETSCAPE_SPKAC_new() -> *mut NETSCAPE_SPKAC; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_i2d_RSAPrivateKey_bio"] - pub fn i2d_RSAPrivateKey_bio(bp: *mut BIO, rsa: *mut RSA) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_0_21_0_NETSCAPE_SPKAC_free"] + pub fn NETSCAPE_SPKAC_free(spkac: *mut NETSCAPE_SPKAC); } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_i2d_RSAPublicKey_bio"] - pub fn i2d_RSAPublicKey_bio(bp: *mut BIO, rsa: *mut RSA) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_0_21_0_d2i_NETSCAPE_SPKAC"] + pub fn d2i_NETSCAPE_SPKAC( + out: *mut *mut NETSCAPE_SPKAC, + inp: *mut *const u8, + len: ::std::os::raw::c_long, + ) -> *mut NETSCAPE_SPKAC; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_i2d_RSA_PUBKEY_bio"] - pub fn i2d_RSA_PUBKEY_bio(bp: *mut BIO, rsa: *mut RSA) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_0_21_0_i2d_NETSCAPE_SPKAC"] + pub fn i2d_NETSCAPE_SPKAC( + spkac: *const NETSCAPE_SPKAC, + outp: *mut *mut u8, + ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_i2d_DSA_PUBKEY_bio"] - pub fn i2d_DSA_PUBKEY_bio(bp: *mut BIO, dsa: *mut DSA) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_0_21_0_NETSCAPE_SPKI_print"] + pub fn NETSCAPE_SPKI_print(out: *mut BIO, spki: *mut NETSCAPE_SPKI) -> ::std::os::raw::c_int; } -extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_i2d_DSAPrivateKey_bio"] - pub fn i2d_DSAPrivateKey_bio(bp: *mut BIO, dsa: *mut DSA) -> ::std::os::raw::c_int; +#[repr(C)] +#[derive(Debug, Copy, Clone, PartialEq, Eq)] +pub struct rsa_pss_params_st { + pub hashAlgorithm: *mut X509_ALGOR, + pub maskGenAlgorithm: *mut X509_ALGOR, + pub saltLength: *mut ASN1_INTEGER, + pub trailerField: *mut ASN1_INTEGER, + pub maskHash: *mut X509_ALGOR, } -extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_i2d_EC_PUBKEY_bio"] - pub fn i2d_EC_PUBKEY_bio(bp: *mut BIO, eckey: *mut EC_KEY) -> ::std::os::raw::c_int; -} -extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_i2d_ECPrivateKey_bio"] - pub fn i2d_ECPrivateKey_bio(bp: *mut BIO, eckey: *mut EC_KEY) -> ::std::os::raw::c_int; +#[test] +fn bindgen_test_layout_rsa_pss_params_st() { + const UNINIT: ::std::mem::MaybeUninit = ::std::mem::MaybeUninit::uninit(); + let ptr = UNINIT.as_ptr(); + assert_eq!( + ::std::mem::size_of::(), + 40usize, + concat!("Size of: ", stringify!(rsa_pss_params_st)) + ); + assert_eq!( + ::std::mem::align_of::(), + 8usize, + concat!("Alignment of ", stringify!(rsa_pss_params_st)) + ); + assert_eq!( + unsafe { ::std::ptr::addr_of!((*ptr).hashAlgorithm) as usize - ptr as usize }, + 0usize, + concat!( + "Offset of field: ", + stringify!(rsa_pss_params_st), + "::", + stringify!(hashAlgorithm) + ) + ); + assert_eq!( + unsafe { ::std::ptr::addr_of!((*ptr).maskGenAlgorithm) as usize - ptr as usize }, + 8usize, + concat!( + "Offset of field: ", + stringify!(rsa_pss_params_st), + "::", + stringify!(maskGenAlgorithm) + ) + ); + assert_eq!( + unsafe { ::std::ptr::addr_of!((*ptr).saltLength) as usize - ptr as usize }, + 16usize, + concat!( + "Offset of field: ", + stringify!(rsa_pss_params_st), + "::", + stringify!(saltLength) + ) + ); + assert_eq!( + unsafe { ::std::ptr::addr_of!((*ptr).trailerField) as usize - ptr as usize }, + 24usize, + concat!( + "Offset of field: ", + stringify!(rsa_pss_params_st), + "::", + stringify!(trailerField) + ) + ); + assert_eq!( + unsafe { ::std::ptr::addr_of!((*ptr).maskHash) as usize - ptr as usize }, + 32usize, + concat!( + "Offset of field: ", + stringify!(rsa_pss_params_st), + "::", + stringify!(maskHash) + ) + ); } -extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_i2d_PKCS8_bio"] - pub fn i2d_PKCS8_bio(bp: *mut BIO, p8: *mut X509_SIG) -> ::std::os::raw::c_int; +impl Default for rsa_pss_params_st { + fn default() -> Self { + let mut s = ::std::mem::MaybeUninit::::uninit(); + unsafe { + ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); + s.assume_init() + } + } } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_i2d_PKCS8_PRIV_KEY_INFO_bio"] - pub fn i2d_PKCS8_PRIV_KEY_INFO_bio( - bp: *mut BIO, - p8inf: *mut PKCS8_PRIV_KEY_INFO, - ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_0_21_0_RSA_PSS_PARAMS_it"] + pub static RSA_PSS_PARAMS_it: ASN1_ITEM; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_i2d_PrivateKey_bio"] - pub fn i2d_PrivateKey_bio(bp: *mut BIO, pkey: *mut EVP_PKEY) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_0_21_0_RSA_PSS_PARAMS_new"] + pub fn RSA_PSS_PARAMS_new() -> *mut RSA_PSS_PARAMS; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_i2d_PUBKEY_bio"] - pub fn i2d_PUBKEY_bio(bp: *mut BIO, pkey: *mut EVP_PKEY) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_0_21_0_RSA_PSS_PARAMS_free"] + pub fn RSA_PSS_PARAMS_free(params: *mut RSA_PSS_PARAMS); } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_i2d_DHparams_bio"] - pub fn i2d_DHparams_bio(bp: *mut BIO, dh: *const DH) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_0_21_0_d2i_RSA_PSS_PARAMS"] + pub fn d2i_RSA_PSS_PARAMS( + out: *mut *mut RSA_PSS_PARAMS, + inp: *mut *const u8, + len: ::std::os::raw::c_long, + ) -> *mut RSA_PSS_PARAMS; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_i2d_PKCS8PrivateKeyInfo_bio"] - pub fn i2d_PKCS8PrivateKeyInfo_bio(bp: *mut BIO, key: *mut EVP_PKEY) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_0_21_0_i2d_RSA_PSS_PARAMS"] + pub fn i2d_RSA_PSS_PARAMS( + in_: *const RSA_PSS_PARAMS, + outp: *mut *mut u8, + ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_d2i_X509_fp"] - pub fn d2i_X509_fp(fp: *mut FILE, x509: *mut *mut X509) -> *mut X509; + #[link_name = "\u{1}aws_lc_0_21_0_PKCS8_PRIV_KEY_INFO_it"] + pub static PKCS8_PRIV_KEY_INFO_it: ASN1_ITEM; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_d2i_X509_CRL_fp"] - pub fn d2i_X509_CRL_fp(fp: *mut FILE, crl: *mut *mut X509_CRL) -> *mut X509_CRL; + #[link_name = "\u{1}aws_lc_0_21_0_PKCS8_PRIV_KEY_INFO_new"] + pub fn PKCS8_PRIV_KEY_INFO_new() -> *mut PKCS8_PRIV_KEY_INFO; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_d2i_X509_REQ_fp"] - pub fn d2i_X509_REQ_fp(fp: *mut FILE, req: *mut *mut X509_REQ) -> *mut X509_REQ; + #[link_name = "\u{1}aws_lc_0_21_0_PKCS8_PRIV_KEY_INFO_free"] + pub fn PKCS8_PRIV_KEY_INFO_free(key: *mut PKCS8_PRIV_KEY_INFO); } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_d2i_RSAPrivateKey_fp"] - pub fn d2i_RSAPrivateKey_fp(fp: *mut FILE, rsa: *mut *mut RSA) -> *mut RSA; + #[link_name = "\u{1}aws_lc_0_21_0_d2i_PKCS8_PRIV_KEY_INFO"] + pub fn d2i_PKCS8_PRIV_KEY_INFO( + out: *mut *mut PKCS8_PRIV_KEY_INFO, + inp: *mut *const u8, + len: ::std::os::raw::c_long, + ) -> *mut PKCS8_PRIV_KEY_INFO; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_d2i_RSAPublicKey_fp"] - pub fn d2i_RSAPublicKey_fp(fp: *mut FILE, rsa: *mut *mut RSA) -> *mut RSA; + #[link_name = "\u{1}aws_lc_0_21_0_i2d_PKCS8_PRIV_KEY_INFO"] + pub fn i2d_PKCS8_PRIV_KEY_INFO( + key: *const PKCS8_PRIV_KEY_INFO, + outp: *mut *mut u8, + ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_d2i_RSA_PUBKEY_fp"] - pub fn d2i_RSA_PUBKEY_fp(fp: *mut FILE, rsa: *mut *mut RSA) -> *mut RSA; + #[link_name = "\u{1}aws_lc_0_21_0_EVP_PKCS82PKEY"] + pub fn EVP_PKCS82PKEY(p8: *const PKCS8_PRIV_KEY_INFO) -> *mut EVP_PKEY; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_d2i_DSA_PUBKEY_fp"] - pub fn d2i_DSA_PUBKEY_fp(fp: *mut FILE, dsa: *mut *mut DSA) -> *mut DSA; + #[link_name = "\u{1}aws_lc_0_21_0_EVP_PKEY2PKCS8"] + pub fn EVP_PKEY2PKCS8(pkey: *const EVP_PKEY) -> *mut PKCS8_PRIV_KEY_INFO; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_d2i_DSAPrivateKey_fp"] - pub fn d2i_DSAPrivateKey_fp(fp: *mut FILE, dsa: *mut *mut DSA) -> *mut DSA; + #[link_name = "\u{1}aws_lc_0_21_0_X509_SIG_it"] + pub static X509_SIG_it: ASN1_ITEM; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_d2i_EC_PUBKEY_fp"] - pub fn d2i_EC_PUBKEY_fp(fp: *mut FILE, eckey: *mut *mut EC_KEY) -> *mut EC_KEY; + #[link_name = "\u{1}aws_lc_0_21_0_X509_SIG_new"] + pub fn X509_SIG_new() -> *mut X509_SIG; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_d2i_ECPrivateKey_fp"] - pub fn d2i_ECPrivateKey_fp(fp: *mut FILE, eckey: *mut *mut EC_KEY) -> *mut EC_KEY; + #[link_name = "\u{1}aws_lc_0_21_0_X509_SIG_free"] + pub fn X509_SIG_free(key: *mut X509_SIG); } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_d2i_PKCS8_fp"] - pub fn d2i_PKCS8_fp(fp: *mut FILE, p8: *mut *mut X509_SIG) -> *mut X509_SIG; + #[link_name = "\u{1}aws_lc_0_21_0_d2i_X509_SIG"] + pub fn d2i_X509_SIG( + out: *mut *mut X509_SIG, + inp: *mut *const u8, + len: ::std::os::raw::c_long, + ) -> *mut X509_SIG; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_d2i_PKCS8_PRIV_KEY_INFO_fp"] - pub fn d2i_PKCS8_PRIV_KEY_INFO_fp( - fp: *mut FILE, - p8inf: *mut *mut PKCS8_PRIV_KEY_INFO, - ) -> *mut PKCS8_PRIV_KEY_INFO; + #[link_name = "\u{1}aws_lc_0_21_0_i2d_X509_SIG"] + pub fn i2d_X509_SIG(sig: *const X509_SIG, outp: *mut *mut u8) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_d2i_PrivateKey_fp"] - pub fn d2i_PrivateKey_fp(fp: *mut FILE, a: *mut *mut EVP_PKEY) -> *mut EVP_PKEY; + #[link_name = "\u{1}aws_lc_0_21_0_X509_SIG_get0"] + pub fn X509_SIG_get0( + sig: *const X509_SIG, + out_alg: *mut *const X509_ALGOR, + out_digest: *mut *const ASN1_OCTET_STRING, + ); } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_d2i_PUBKEY_fp"] - pub fn d2i_PUBKEY_fp(fp: *mut FILE, a: *mut *mut EVP_PKEY) -> *mut EVP_PKEY; + #[link_name = "\u{1}aws_lc_0_21_0_X509_SIG_getm"] + pub fn X509_SIG_getm( + sig: *mut X509_SIG, + out_alg: *mut *mut X509_ALGOR, + out_digest: *mut *mut ASN1_OCTET_STRING, + ); } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_i2d_X509_fp"] - pub fn i2d_X509_fp(fp: *mut FILE, x509: *mut X509) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_0_21_0_X509_print_ex"] + pub fn X509_print_ex( + bp: *mut BIO, + x: *mut X509, + nmflag: ::std::os::raw::c_ulong, + cflag: ::std::os::raw::c_ulong, + ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_i2d_X509_CRL_fp"] - pub fn i2d_X509_CRL_fp(fp: *mut FILE, crl: *mut X509_CRL) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_0_21_0_X509_print_ex_fp"] + pub fn X509_print_ex_fp( + fp: *mut FILE, + x: *mut X509, + nmflag: ::std::os::raw::c_ulong, + cflag: ::std::os::raw::c_ulong, + ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_i2d_X509_REQ_fp"] - pub fn i2d_X509_REQ_fp(fp: *mut FILE, req: *mut X509_REQ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_0_21_0_X509_print"] + pub fn X509_print(bp: *mut BIO, x: *mut X509) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_i2d_RSAPrivateKey_fp"] - pub fn i2d_RSAPrivateKey_fp(fp: *mut FILE, rsa: *mut RSA) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_0_21_0_X509_print_fp"] + pub fn X509_print_fp(fp: *mut FILE, x: *mut X509) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_i2d_RSAPublicKey_fp"] - pub fn i2d_RSAPublicKey_fp(fp: *mut FILE, rsa: *mut RSA) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_0_21_0_X509_CRL_print"] + pub fn X509_CRL_print(bp: *mut BIO, x: *mut X509_CRL) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_i2d_RSA_PUBKEY_fp"] - pub fn i2d_RSA_PUBKEY_fp(fp: *mut FILE, rsa: *mut RSA) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_0_21_0_X509_CRL_print_fp"] + pub fn X509_CRL_print_fp(fp: *mut FILE, x: *mut X509_CRL) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_i2d_DSA_PUBKEY_fp"] - pub fn i2d_DSA_PUBKEY_fp(fp: *mut FILE, dsa: *mut DSA) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_0_21_0_X509_REQ_print_ex"] + pub fn X509_REQ_print_ex( + bp: *mut BIO, + x: *mut X509_REQ, + nmflag: ::std::os::raw::c_ulong, + cflag: ::std::os::raw::c_ulong, + ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_i2d_DSAPrivateKey_fp"] - pub fn i2d_DSAPrivateKey_fp(fp: *mut FILE, dsa: *mut DSA) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_0_21_0_X509_REQ_print"] + pub fn X509_REQ_print(bp: *mut BIO, req: *mut X509_REQ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_i2d_EC_PUBKEY_fp"] - pub fn i2d_EC_PUBKEY_fp(fp: *mut FILE, eckey: *mut EC_KEY) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_0_21_0_X509_REQ_print_fp"] + pub fn X509_REQ_print_fp(fp: *mut FILE, req: *mut X509_REQ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_i2d_ECPrivateKey_fp"] - pub fn i2d_ECPrivateKey_fp(fp: *mut FILE, eckey: *mut EC_KEY) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_0_21_0_X509_NAME_print_ex"] + pub fn X509_NAME_print_ex( + out: *mut BIO, + nm: *const X509_NAME, + indent: ::std::os::raw::c_int, + flags: ::std::os::raw::c_ulong, + ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_i2d_PKCS8_fp"] - pub fn i2d_PKCS8_fp(fp: *mut FILE, p8: *mut X509_SIG) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_0_21_0_X509_NAME_print"] + pub fn X509_NAME_print( + bp: *mut BIO, + name: *const X509_NAME, + obase: ::std::os::raw::c_int, + ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_i2d_PKCS8_PRIV_KEY_INFO_fp"] - pub fn i2d_PKCS8_PRIV_KEY_INFO_fp( + #[link_name = "\u{1}aws_lc_0_21_0_X509_NAME_oneline"] + pub fn X509_NAME_oneline( + name: *const X509_NAME, + buf: *mut ::std::os::raw::c_char, + size: ::std::os::raw::c_int, + ) -> *mut ::std::os::raw::c_char; +} +extern "C" { + #[link_name = "\u{1}aws_lc_0_21_0_X509_NAME_print_ex_fp"] + pub fn X509_NAME_print_ex_fp( fp: *mut FILE, - p8inf: *mut PKCS8_PRIV_KEY_INFO, + nm: *const X509_NAME, + indent: ::std::os::raw::c_int, + flags: ::std::os::raw::c_ulong, ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_i2d_PKCS8PrivateKeyInfo_fp"] - pub fn i2d_PKCS8PrivateKeyInfo_fp(fp: *mut FILE, key: *mut EVP_PKEY) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_0_21_0_X509_signature_dump"] + pub fn X509_signature_dump( + bio: *mut BIO, + sig: *const ASN1_STRING, + indent: ::std::os::raw::c_int, + ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_i2d_PrivateKey_fp"] - pub fn i2d_PrivateKey_fp(fp: *mut FILE, pkey: *mut EVP_PKEY) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_0_21_0_X509_signature_print"] + pub fn X509_signature_print( + bio: *mut BIO, + alg: *const X509_ALGOR, + sig: *const ASN1_STRING, + ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_i2d_PUBKEY_fp"] - pub fn i2d_PUBKEY_fp(fp: *mut FILE, pkey: *mut EVP_PKEY) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_0_21_0_X509V3_EXT_print"] + pub fn X509V3_EXT_print( + out: *mut BIO, + ext: *const X509_EXTENSION, + flag: ::std::os::raw::c_ulong, + indent: ::std::os::raw::c_int, + ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_X509_find_by_issuer_and_serial"] - pub fn X509_find_by_issuer_and_serial( - sk: *const stack_st_X509, - name: *mut X509_NAME, - serial: *const ASN1_INTEGER, - ) -> *mut X509; + #[link_name = "\u{1}aws_lc_0_21_0_X509V3_EXT_print_fp"] + pub fn X509V3_EXT_print_fp( + out: *mut FILE, + ext: *const X509_EXTENSION, + flag: ::std::os::raw::c_int, + indent: ::std::os::raw::c_int, + ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_X509_find_by_subject"] - pub fn X509_find_by_subject(sk: *const stack_st_X509, name: *mut X509_NAME) -> *mut X509; + #[link_name = "\u{1}aws_lc_0_21_0_X509V3_extensions_print"] + pub fn X509V3_extensions_print( + out: *mut BIO, + title: *const ::std::os::raw::c_char, + exts: *const stack_st_X509_EXTENSION, + flag: ::std::os::raw::c_ulong, + indent: ::std::os::raw::c_int, + ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_X509_cmp_time"] - pub fn X509_cmp_time(s: *const ASN1_TIME, t: *const time_t) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_0_21_0_GENERAL_NAME_print"] + pub fn GENERAL_NAME_print(out: *mut BIO, gen: *const GENERAL_NAME) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_X509_cmp_time_posix"] - pub fn X509_cmp_time_posix(s: *const ASN1_TIME, t: i64) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_0_21_0_X509_pubkey_digest"] + pub fn X509_pubkey_digest( + x509: *const X509, + md: *const EVP_MD, + out: *mut u8, + out_len: *mut ::std::os::raw::c_uint, + ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_X509_cmp_current_time"] - pub fn X509_cmp_current_time(s: *const ASN1_TIME) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_0_21_0_X509_digest"] + pub fn X509_digest( + x509: *const X509, + md: *const EVP_MD, + out: *mut u8, + out_len: *mut ::std::os::raw::c_uint, + ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_X509_time_adj"] - pub fn X509_time_adj( - s: *mut ASN1_TIME, - offset_sec: ::std::os::raw::c_long, - t: *const time_t, - ) -> *mut ASN1_TIME; + #[link_name = "\u{1}aws_lc_0_21_0_X509_CRL_digest"] + pub fn X509_CRL_digest( + crl: *const X509_CRL, + md: *const EVP_MD, + out: *mut u8, + out_len: *mut ::std::os::raw::c_uint, + ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_X509_time_adj_ex"] - pub fn X509_time_adj_ex( - s: *mut ASN1_TIME, - offset_day: ::std::os::raw::c_int, - offset_sec: ::std::os::raw::c_long, - t: *const time_t, - ) -> *mut ASN1_TIME; + #[link_name = "\u{1}aws_lc_0_21_0_X509_REQ_digest"] + pub fn X509_REQ_digest( + req: *const X509_REQ, + md: *const EVP_MD, + out: *mut u8, + out_len: *mut ::std::os::raw::c_uint, + ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_X509_gmtime_adj"] - pub fn X509_gmtime_adj(s: *mut ASN1_TIME, offset_sec: ::std::os::raw::c_long) - -> *mut ASN1_TIME; + #[link_name = "\u{1}aws_lc_0_21_0_X509_NAME_digest"] + pub fn X509_NAME_digest( + name: *const X509_NAME, + md: *const EVP_MD, + out: *mut u8, + out_len: *mut ::std::os::raw::c_uint, + ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_X509_issuer_name_cmp"] - pub fn X509_issuer_name_cmp(a: *const X509, b: *const X509) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_0_21_0_d2i_X509_bio"] + pub fn d2i_X509_bio(bp: *mut BIO, x509: *mut *mut X509) -> *mut X509; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_X509_subject_name_cmp"] - pub fn X509_subject_name_cmp(a: *const X509, b: *const X509) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_0_21_0_d2i_X509_CRL_bio"] + pub fn d2i_X509_CRL_bio(bp: *mut BIO, crl: *mut *mut X509_CRL) -> *mut X509_CRL; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_X509_CRL_cmp"] - pub fn X509_CRL_cmp(a: *const X509_CRL, b: *const X509_CRL) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_0_21_0_d2i_X509_REQ_bio"] + pub fn d2i_X509_REQ_bio(bp: *mut BIO, req: *mut *mut X509_REQ) -> *mut X509_REQ; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_X509_issuer_name_hash"] - pub fn X509_issuer_name_hash(x509: *mut X509) -> u32; + #[link_name = "\u{1}aws_lc_0_21_0_d2i_RSAPrivateKey_bio"] + pub fn d2i_RSAPrivateKey_bio(bp: *mut BIO, rsa: *mut *mut RSA) -> *mut RSA; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_X509_subject_name_hash"] - pub fn X509_subject_name_hash(x509: *mut X509) -> u32; + #[link_name = "\u{1}aws_lc_0_21_0_d2i_RSAPublicKey_bio"] + pub fn d2i_RSAPublicKey_bio(bp: *mut BIO, rsa: *mut *mut RSA) -> *mut RSA; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_X509_issuer_name_hash_old"] - pub fn X509_issuer_name_hash_old(x509: *mut X509) -> u32; + #[link_name = "\u{1}aws_lc_0_21_0_d2i_RSA_PUBKEY_bio"] + pub fn d2i_RSA_PUBKEY_bio(bp: *mut BIO, rsa: *mut *mut RSA) -> *mut RSA; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_X509_subject_name_hash_old"] - pub fn X509_subject_name_hash_old(x509: *mut X509) -> u32; + #[link_name = "\u{1}aws_lc_0_21_0_d2i_DSA_PUBKEY_bio"] + pub fn d2i_DSA_PUBKEY_bio(bp: *mut BIO, dsa: *mut *mut DSA) -> *mut DSA; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_X509_get_ex_new_index"] - pub fn X509_get_ex_new_index( - argl: ::std::os::raw::c_long, - argp: *mut ::std::os::raw::c_void, - unused: *mut CRYPTO_EX_unused, - dup_unused: CRYPTO_EX_dup, - free_func: CRYPTO_EX_free, - ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_0_21_0_d2i_DSAPrivateKey_bio"] + pub fn d2i_DSAPrivateKey_bio(bp: *mut BIO, dsa: *mut *mut DSA) -> *mut DSA; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_X509_set_ex_data"] - pub fn X509_set_ex_data( - r: *mut X509, - idx: ::std::os::raw::c_int, - arg: *mut ::std::os::raw::c_void, - ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_0_21_0_d2i_EC_PUBKEY_bio"] + pub fn d2i_EC_PUBKEY_bio(bp: *mut BIO, eckey: *mut *mut EC_KEY) -> *mut EC_KEY; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_X509_get_ex_data"] - pub fn X509_get_ex_data( - r: *mut X509, - idx: ::std::os::raw::c_int, - ) -> *mut ::std::os::raw::c_void; + #[link_name = "\u{1}aws_lc_0_21_0_d2i_ECPrivateKey_bio"] + pub fn d2i_ECPrivateKey_bio(bp: *mut BIO, eckey: *mut *mut EC_KEY) -> *mut EC_KEY; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_X509_STORE_CTX_get_ex_new_index"] - pub fn X509_STORE_CTX_get_ex_new_index( - argl: ::std::os::raw::c_long, - argp: *mut ::std::os::raw::c_void, - unused: *mut CRYPTO_EX_unused, - dup_unused: CRYPTO_EX_dup, - free_func: CRYPTO_EX_free, - ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_0_21_0_d2i_PKCS8_bio"] + pub fn d2i_PKCS8_bio(bp: *mut BIO, p8: *mut *mut X509_SIG) -> *mut X509_SIG; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_X509_STORE_CTX_set_ex_data"] - pub fn X509_STORE_CTX_set_ex_data( - ctx: *mut X509_STORE_CTX, - idx: ::std::os::raw::c_int, - data: *mut ::std::os::raw::c_void, - ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_0_21_0_d2i_PKCS8_PRIV_KEY_INFO_bio"] + pub fn d2i_PKCS8_PRIV_KEY_INFO_bio( + bp: *mut BIO, + p8inf: *mut *mut PKCS8_PRIV_KEY_INFO, + ) -> *mut PKCS8_PRIV_KEY_INFO; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_X509_STORE_CTX_get_ex_data"] - pub fn X509_STORE_CTX_get_ex_data( - ctx: *mut X509_STORE_CTX, - idx: ::std::os::raw::c_int, - ) -> *mut ::std::os::raw::c_void; + #[link_name = "\u{1}aws_lc_0_21_0_d2i_PUBKEY_bio"] + pub fn d2i_PUBKEY_bio(bp: *mut BIO, a: *mut *mut EVP_PKEY) -> *mut EVP_PKEY; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_X509_STORE_get_ex_new_index"] - pub fn X509_STORE_get_ex_new_index( - argl: ::std::os::raw::c_long, - argp: *mut ::std::os::raw::c_void, - unused: *mut CRYPTO_EX_unused, - dup_unused: CRYPTO_EX_dup, - free_func: CRYPTO_EX_free, - ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_0_21_0_d2i_DHparams_bio"] + pub fn d2i_DHparams_bio(bp: *mut BIO, dh: *mut *mut DH) -> *mut DH; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_X509_STORE_set_ex_data"] - pub fn X509_STORE_set_ex_data( - ctx: *mut X509_STORE, - idx: ::std::os::raw::c_int, - data: *mut ::std::os::raw::c_void, - ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_0_21_0_d2i_PrivateKey_bio"] + pub fn d2i_PrivateKey_bio(bp: *mut BIO, a: *mut *mut EVP_PKEY) -> *mut EVP_PKEY; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_X509_STORE_get_ex_data"] - pub fn X509_STORE_get_ex_data( - ctx: *mut X509_STORE, - idx: ::std::os::raw::c_int, - ) -> *mut ::std::os::raw::c_void; + #[link_name = "\u{1}aws_lc_0_21_0_i2d_X509_bio"] + pub fn i2d_X509_bio(bp: *mut BIO, x509: *mut X509) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_ASN1_digest"] - pub fn ASN1_digest( - i2d: i2d_of_void, - type_: *const EVP_MD, - data: *mut ::std::os::raw::c_char, - md: *mut ::std::os::raw::c_uchar, - len: *mut ::std::os::raw::c_uint, - ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_0_21_0_i2d_X509_CRL_bio"] + pub fn i2d_X509_CRL_bio(bp: *mut BIO, crl: *mut X509_CRL) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_ASN1_item_digest"] - pub fn ASN1_item_digest( - it: *const ASN1_ITEM, - type_: *const EVP_MD, - data: *mut ::std::os::raw::c_void, - md: *mut ::std::os::raw::c_uchar, - len: *mut ::std::os::raw::c_uint, - ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_0_21_0_i2d_X509_REQ_bio"] + pub fn i2d_X509_REQ_bio(bp: *mut BIO, req: *mut X509_REQ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_ASN1_item_verify"] - pub fn ASN1_item_verify( - it: *const ASN1_ITEM, - algor1: *const X509_ALGOR, - signature: *const ASN1_BIT_STRING, - data: *mut ::std::os::raw::c_void, - pkey: *mut EVP_PKEY, - ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_0_21_0_i2d_RSAPrivateKey_bio"] + pub fn i2d_RSAPrivateKey_bio(bp: *mut BIO, rsa: *mut RSA) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_ASN1_item_sign"] - pub fn ASN1_item_sign( - it: *const ASN1_ITEM, - algor1: *mut X509_ALGOR, - algor2: *mut X509_ALGOR, - signature: *mut ASN1_BIT_STRING, - data: *mut ::std::os::raw::c_void, - pkey: *mut EVP_PKEY, - type_: *const EVP_MD, - ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_0_21_0_i2d_RSAPublicKey_bio"] + pub fn i2d_RSAPublicKey_bio(bp: *mut BIO, rsa: *mut RSA) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_ASN1_item_sign_ctx"] - pub fn ASN1_item_sign_ctx( - it: *const ASN1_ITEM, - algor1: *mut X509_ALGOR, - algor2: *mut X509_ALGOR, - signature: *mut ASN1_BIT_STRING, - asn: *mut ::std::os::raw::c_void, - ctx: *mut EVP_MD_CTX, - ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_0_21_0_i2d_RSA_PUBKEY_bio"] + pub fn i2d_RSA_PUBKEY_bio(bp: *mut BIO, rsa: *mut RSA) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_X509_supported_extension"] - pub fn X509_supported_extension(ex: *const X509_EXTENSION) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_0_21_0_i2d_DSA_PUBKEY_bio"] + pub fn i2d_DSA_PUBKEY_bio(bp: *mut BIO, dsa: *mut DSA) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_X509_check_ca"] - pub fn X509_check_ca(x509: *mut X509) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_0_21_0_i2d_DSAPrivateKey_bio"] + pub fn i2d_DSAPrivateKey_bio(bp: *mut BIO, dsa: *mut DSA) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_X509_check_issued"] - pub fn X509_check_issued(issuer: *mut X509, subject: *mut X509) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_0_21_0_i2d_EC_PUBKEY_bio"] + pub fn i2d_EC_PUBKEY_bio(bp: *mut BIO, eckey: *mut EC_KEY) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_NAME_CONSTRAINTS_check"] - pub fn NAME_CONSTRAINTS_check( - x509: *mut X509, - nc: *mut NAME_CONSTRAINTS, - ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_0_21_0_i2d_ECPrivateKey_bio"] + pub fn i2d_ECPrivateKey_bio(bp: *mut BIO, eckey: *mut EC_KEY) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_X509_check_host"] - pub fn X509_check_host( - x509: *const X509, - chk: *const ::std::os::raw::c_char, - chklen: usize, - flags: ::std::os::raw::c_uint, - out_peername: *mut *mut ::std::os::raw::c_char, - ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_0_21_0_i2d_PKCS8_bio"] + pub fn i2d_PKCS8_bio(bp: *mut BIO, p8: *mut X509_SIG) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_X509_check_email"] - pub fn X509_check_email( - x509: *const X509, - chk: *const ::std::os::raw::c_char, - chklen: usize, - flags: ::std::os::raw::c_uint, + #[link_name = "\u{1}aws_lc_0_21_0_i2d_PKCS8_PRIV_KEY_INFO_bio"] + pub fn i2d_PKCS8_PRIV_KEY_INFO_bio( + bp: *mut BIO, + p8inf: *mut PKCS8_PRIV_KEY_INFO, ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_X509_check_ip"] - pub fn X509_check_ip( - x509: *const X509, - chk: *const u8, - chklen: usize, - flags: ::std::os::raw::c_uint, - ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_0_21_0_i2d_PrivateKey_bio"] + pub fn i2d_PrivateKey_bio(bp: *mut BIO, pkey: *mut EVP_PKEY) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_X509_check_ip_asc"] - pub fn X509_check_ip_asc( - x509: *const X509, - ipasc: *const ::std::os::raw::c_char, - flags: ::std::os::raw::c_uint, - ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_0_21_0_i2d_PUBKEY_bio"] + pub fn i2d_PUBKEY_bio(bp: *mut BIO, pkey: *mut EVP_PKEY) -> ::std::os::raw::c_int; } -#[repr(C)] -#[derive(Debug, Copy, Clone, PartialEq, Eq)] -pub struct private_key_st { - pub dec_pkey: *mut EVP_PKEY, +extern "C" { + #[link_name = "\u{1}aws_lc_0_21_0_i2d_DHparams_bio"] + pub fn i2d_DHparams_bio(bp: *mut BIO, dh: *const DH) -> ::std::os::raw::c_int; } -#[test] -fn bindgen_test_layout_private_key_st() { - const UNINIT: ::std::mem::MaybeUninit = ::std::mem::MaybeUninit::uninit(); - let ptr = UNINIT.as_ptr(); - assert_eq!( - ::std::mem::size_of::(), - 8usize, - concat!("Size of: ", stringify!(private_key_st)) - ); - assert_eq!( - ::std::mem::align_of::(), - 8usize, - concat!("Alignment of ", stringify!(private_key_st)) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).dec_pkey) as usize - ptr as usize }, - 0usize, - concat!( - "Offset of field: ", - stringify!(private_key_st), - "::", - stringify!(dec_pkey) - ) - ); +extern "C" { + #[link_name = "\u{1}aws_lc_0_21_0_i2d_PKCS8PrivateKeyInfo_bio"] + pub fn i2d_PKCS8PrivateKeyInfo_bio(bp: *mut BIO, key: *mut EVP_PKEY) -> ::std::os::raw::c_int; } -impl Default for private_key_st { - fn default() -> Self { - let mut s = ::std::mem::MaybeUninit::::uninit(); - unsafe { - ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() - } - } +extern "C" { + #[link_name = "\u{1}aws_lc_0_21_0_d2i_X509_fp"] + pub fn d2i_X509_fp(fp: *mut FILE, x509: *mut *mut X509) -> *mut X509; } -#[repr(C)] -#[derive(Debug, Copy, Clone, PartialEq, Eq)] -pub struct X509_info_st { - pub x509: *mut X509, - pub crl: *mut X509_CRL, - pub x_pkey: *mut X509_PKEY, - pub enc_cipher: EVP_CIPHER_INFO, - pub enc_len: ::std::os::raw::c_int, - pub enc_data: *mut ::std::os::raw::c_char, +extern "C" { + #[link_name = "\u{1}aws_lc_0_21_0_d2i_X509_CRL_fp"] + pub fn d2i_X509_CRL_fp(fp: *mut FILE, crl: *mut *mut X509_CRL) -> *mut X509_CRL; } -#[test] -fn bindgen_test_layout_X509_info_st() { - const UNINIT: ::std::mem::MaybeUninit = ::std::mem::MaybeUninit::uninit(); - let ptr = UNINIT.as_ptr(); - assert_eq!( - ::std::mem::size_of::(), - 64usize, - concat!("Size of: ", stringify!(X509_info_st)) - ); - assert_eq!( - ::std::mem::align_of::(), - 8usize, - concat!("Alignment of ", stringify!(X509_info_st)) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).x509) as usize - ptr as usize }, - 0usize, - concat!( - "Offset of field: ", - stringify!(X509_info_st), - "::", - stringify!(x509) - ) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).crl) as usize - ptr as usize }, - 8usize, - concat!( - "Offset of field: ", - stringify!(X509_info_st), - "::", - stringify!(crl) - ) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).x_pkey) as usize - ptr as usize }, - 16usize, - concat!( - "Offset of field: ", - stringify!(X509_info_st), - "::", - stringify!(x_pkey) - ) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).enc_cipher) as usize - ptr as usize }, - 24usize, - concat!( - "Offset of field: ", - stringify!(X509_info_st), - "::", - stringify!(enc_cipher) - ) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).enc_len) as usize - ptr as usize }, - 48usize, - concat!( - "Offset of field: ", - stringify!(X509_info_st), - "::", - stringify!(enc_len) - ) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).enc_data) as usize - ptr as usize }, - 56usize, - concat!( - "Offset of field: ", - stringify!(X509_info_st), - "::", - stringify!(enc_data) - ) - ); +extern "C" { + #[link_name = "\u{1}aws_lc_0_21_0_d2i_X509_REQ_fp"] + pub fn d2i_X509_REQ_fp(fp: *mut FILE, req: *mut *mut X509_REQ) -> *mut X509_REQ; } -impl Default for X509_info_st { - fn default() -> Self { - let mut s = ::std::mem::MaybeUninit::::uninit(); - unsafe { - ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() - } - } +extern "C" { + #[link_name = "\u{1}aws_lc_0_21_0_d2i_RSAPrivateKey_fp"] + pub fn d2i_RSAPrivateKey_fp(fp: *mut FILE, rsa: *mut *mut RSA) -> *mut RSA; } -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct stack_st_X509_INFO { - _unused: [u8; 0], +extern "C" { + #[link_name = "\u{1}aws_lc_0_21_0_d2i_RSAPublicKey_fp"] + pub fn d2i_RSAPublicKey_fp(fp: *mut FILE, rsa: *mut *mut RSA) -> *mut RSA; } -pub type sk_X509_INFO_free_func = ::std::option::Option; -pub type sk_X509_INFO_copy_func = - ::std::option::Option *mut X509_INFO>; -pub type sk_X509_INFO_cmp_func = ::std::option::Option< - unsafe extern "C" fn( - arg1: *const *const X509_INFO, - arg2: *const *const X509_INFO, - ) -> ::std::os::raw::c_int, ->; -pub type sk_X509_INFO_delete_if_func = ::std::option::Option< - unsafe extern "C" fn( - arg1: *mut X509_INFO, - arg2: *mut ::std::os::raw::c_void, - ) -> ::std::os::raw::c_int, ->; extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_X509_INFO_free"] - pub fn X509_INFO_free(info: *mut X509_INFO); -} -#[repr(C)] -#[derive(Debug, Copy, Clone, PartialEq, Eq)] -pub struct v3_ext_ctx { - pub flags: ::std::os::raw::c_int, - pub issuer_cert: *const X509, - pub subject_cert: *const X509, - pub subject_req: *const X509_REQ, - pub crl: *const X509_CRL, - pub db: *const CONF, -} -#[test] -fn bindgen_test_layout_v3_ext_ctx() { - const UNINIT: ::std::mem::MaybeUninit = ::std::mem::MaybeUninit::uninit(); - let ptr = UNINIT.as_ptr(); - assert_eq!( - ::std::mem::size_of::(), - 48usize, - concat!("Size of: ", stringify!(v3_ext_ctx)) - ); - assert_eq!( - ::std::mem::align_of::(), - 8usize, - concat!("Alignment of ", stringify!(v3_ext_ctx)) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).flags) as usize - ptr as usize }, - 0usize, - concat!( - "Offset of field: ", - stringify!(v3_ext_ctx), - "::", - stringify!(flags) - ) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).issuer_cert) as usize - ptr as usize }, - 8usize, - concat!( - "Offset of field: ", - stringify!(v3_ext_ctx), - "::", - stringify!(issuer_cert) - ) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).subject_cert) as usize - ptr as usize }, - 16usize, - concat!( - "Offset of field: ", - stringify!(v3_ext_ctx), - "::", - stringify!(subject_cert) - ) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).subject_req) as usize - ptr as usize }, - 24usize, - concat!( - "Offset of field: ", - stringify!(v3_ext_ctx), - "::", - stringify!(subject_req) - ) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).crl) as usize - ptr as usize }, - 32usize, - concat!( - "Offset of field: ", - stringify!(v3_ext_ctx), - "::", - stringify!(crl) - ) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).db) as usize - ptr as usize }, - 40usize, - concat!( - "Offset of field: ", - stringify!(v3_ext_ctx), - "::", - stringify!(db) - ) - ); -} -impl Default for v3_ext_ctx { - fn default() -> Self { - let mut s = ::std::mem::MaybeUninit::::uninit(); - unsafe { - ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() - } - } + #[link_name = "\u{1}aws_lc_0_21_0_d2i_RSA_PUBKEY_fp"] + pub fn d2i_RSA_PUBKEY_fp(fp: *mut FILE, rsa: *mut *mut RSA) -> *mut RSA; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_X509V3_set_ctx"] - pub fn X509V3_set_ctx( - ctx: *mut X509V3_CTX, - issuer: *const X509, - subject: *const X509, - req: *const X509_REQ, - crl: *const X509_CRL, - flags: ::std::os::raw::c_int, - ); + #[link_name = "\u{1}aws_lc_0_21_0_d2i_DSA_PUBKEY_fp"] + pub fn d2i_DSA_PUBKEY_fp(fp: *mut FILE, dsa: *mut *mut DSA) -> *mut DSA; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_X509V3_set_nconf"] - pub fn X509V3_set_nconf(ctx: *mut X509V3_CTX, conf: *const CONF); + #[link_name = "\u{1}aws_lc_0_21_0_d2i_DSAPrivateKey_fp"] + pub fn d2i_DSAPrivateKey_fp(fp: *mut FILE, dsa: *mut *mut DSA) -> *mut DSA; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_X509V3_EXT_nconf"] - pub fn X509V3_EXT_nconf( - conf: *const CONF, - ctx: *const X509V3_CTX, - name: *const ::std::os::raw::c_char, - value: *const ::std::os::raw::c_char, - ) -> *mut X509_EXTENSION; + #[link_name = "\u{1}aws_lc_0_21_0_d2i_EC_PUBKEY_fp"] + pub fn d2i_EC_PUBKEY_fp(fp: *mut FILE, eckey: *mut *mut EC_KEY) -> *mut EC_KEY; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_X509V3_EXT_nconf_nid"] - pub fn X509V3_EXT_nconf_nid( - conf: *const CONF, - ctx: *const X509V3_CTX, - ext_nid: ::std::os::raw::c_int, - value: *const ::std::os::raw::c_char, - ) -> *mut X509_EXTENSION; + #[link_name = "\u{1}aws_lc_0_21_0_d2i_ECPrivateKey_fp"] + pub fn d2i_ECPrivateKey_fp(fp: *mut FILE, eckey: *mut *mut EC_KEY) -> *mut EC_KEY; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_X509V3_EXT_conf_nid"] - pub fn X509V3_EXT_conf_nid( - conf: *mut lhash_st_CONF_VALUE, - ctx: *const X509V3_CTX, - ext_nid: ::std::os::raw::c_int, - value: *const ::std::os::raw::c_char, - ) -> *mut X509_EXTENSION; + #[link_name = "\u{1}aws_lc_0_21_0_d2i_PKCS8_fp"] + pub fn d2i_PKCS8_fp(fp: *mut FILE, p8: *mut *mut X509_SIG) -> *mut X509_SIG; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_X509V3_EXT_add_nconf_sk"] - pub fn X509V3_EXT_add_nconf_sk( - conf: *const CONF, - ctx: *const X509V3_CTX, - section: *const ::std::os::raw::c_char, - sk: *mut *mut stack_st_X509_EXTENSION, - ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_0_21_0_d2i_PKCS8_PRIV_KEY_INFO_fp"] + pub fn d2i_PKCS8_PRIV_KEY_INFO_fp( + fp: *mut FILE, + p8inf: *mut *mut PKCS8_PRIV_KEY_INFO, + ) -> *mut PKCS8_PRIV_KEY_INFO; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_X509V3_EXT_add_nconf"] - pub fn X509V3_EXT_add_nconf( - conf: *const CONF, - ctx: *const X509V3_CTX, - section: *const ::std::os::raw::c_char, - cert: *mut X509, - ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_0_21_0_d2i_PrivateKey_fp"] + pub fn d2i_PrivateKey_fp(fp: *mut FILE, a: *mut *mut EVP_PKEY) -> *mut EVP_PKEY; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_X509V3_EXT_REQ_add_nconf"] - pub fn X509V3_EXT_REQ_add_nconf( - conf: *const CONF, - ctx: *const X509V3_CTX, - section: *const ::std::os::raw::c_char, - req: *mut X509_REQ, - ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_0_21_0_d2i_PUBKEY_fp"] + pub fn d2i_PUBKEY_fp(fp: *mut FILE, a: *mut *mut EVP_PKEY) -> *mut EVP_PKEY; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_X509V3_EXT_CRL_add_nconf"] - pub fn X509V3_EXT_CRL_add_nconf( - conf: *const CONF, - ctx: *const X509V3_CTX, - section: *const ::std::os::raw::c_char, - crl: *mut X509_CRL, - ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_0_21_0_i2d_X509_fp"] + pub fn i2d_X509_fp(fp: *mut FILE, x509: *mut X509) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_X509V3_EXT_conf"] - pub fn X509V3_EXT_conf( - conf: *mut lhash_st_CONF_VALUE, - ctx: *mut X509V3_CTX, - name: *const ::std::os::raw::c_char, - value: *const ::std::os::raw::c_char, - ) -> *mut X509_EXTENSION; + #[link_name = "\u{1}aws_lc_0_21_0_i2d_X509_CRL_fp"] + pub fn i2d_X509_CRL_fp(fp: *mut FILE, crl: *mut X509_CRL) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_i2s_ASN1_OCTET_STRING"] - pub fn i2s_ASN1_OCTET_STRING( - method: *const X509V3_EXT_METHOD, - oct: *const ASN1_OCTET_STRING, - ) -> *mut ::std::os::raw::c_char; + #[link_name = "\u{1}aws_lc_0_21_0_i2d_X509_REQ_fp"] + pub fn i2d_X509_REQ_fp(fp: *mut FILE, req: *mut X509_REQ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_s2i_ASN1_OCTET_STRING"] - pub fn s2i_ASN1_OCTET_STRING( - method: *const X509V3_EXT_METHOD, - ctx: *const X509V3_CTX, - str_: *const ::std::os::raw::c_char, - ) -> *mut ASN1_OCTET_STRING; + #[link_name = "\u{1}aws_lc_0_21_0_i2d_RSAPrivateKey_fp"] + pub fn i2d_RSAPrivateKey_fp(fp: *mut FILE, rsa: *mut RSA) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_i2s_ASN1_INTEGER"] - pub fn i2s_ASN1_INTEGER( - method: *const X509V3_EXT_METHOD, - aint: *const ASN1_INTEGER, - ) -> *mut ::std::os::raw::c_char; + #[link_name = "\u{1}aws_lc_0_21_0_i2d_RSAPublicKey_fp"] + pub fn i2d_RSAPublicKey_fp(fp: *mut FILE, rsa: *mut RSA) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_s2i_ASN1_INTEGER"] - pub fn s2i_ASN1_INTEGER( - method: *const X509V3_EXT_METHOD, - value: *const ::std::os::raw::c_char, - ) -> *mut ASN1_INTEGER; + #[link_name = "\u{1}aws_lc_0_21_0_i2d_RSA_PUBKEY_fp"] + pub fn i2d_RSA_PUBKEY_fp(fp: *mut FILE, rsa: *mut RSA) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_i2s_ASN1_ENUMERATED"] - pub fn i2s_ASN1_ENUMERATED( - method: *const X509V3_EXT_METHOD, - aint: *const ASN1_ENUMERATED, - ) -> *mut ::std::os::raw::c_char; + #[link_name = "\u{1}aws_lc_0_21_0_i2d_DSA_PUBKEY_fp"] + pub fn i2d_DSA_PUBKEY_fp(fp: *mut FILE, dsa: *mut DSA) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_X509V3_conf_free"] - pub fn X509V3_conf_free(val: *mut CONF_VALUE); + #[link_name = "\u{1}aws_lc_0_21_0_i2d_DSAPrivateKey_fp"] + pub fn i2d_DSAPrivateKey_fp(fp: *mut FILE, dsa: *mut DSA) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_i2v_GENERAL_NAME"] - pub fn i2v_GENERAL_NAME( - method: *const X509V3_EXT_METHOD, - gen: *const GENERAL_NAME, - ret: *mut stack_st_CONF_VALUE, - ) -> *mut stack_st_CONF_VALUE; + #[link_name = "\u{1}aws_lc_0_21_0_i2d_EC_PUBKEY_fp"] + pub fn i2d_EC_PUBKEY_fp(fp: *mut FILE, eckey: *mut EC_KEY) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_i2v_GENERAL_NAMES"] - pub fn i2v_GENERAL_NAMES( - method: *const X509V3_EXT_METHOD, - gen: *const GENERAL_NAMES, - extlist: *mut stack_st_CONF_VALUE, - ) -> *mut stack_st_CONF_VALUE; + #[link_name = "\u{1}aws_lc_0_21_0_i2d_ECPrivateKey_fp"] + pub fn i2d_ECPrivateKey_fp(fp: *mut FILE, eckey: *mut EC_KEY) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_a2i_IPADDRESS"] - pub fn a2i_IPADDRESS(ipasc: *const ::std::os::raw::c_char) -> *mut ASN1_OCTET_STRING; + #[link_name = "\u{1}aws_lc_0_21_0_i2d_PKCS8_fp"] + pub fn i2d_PKCS8_fp(fp: *mut FILE, p8: *mut X509_SIG) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_a2i_IPADDRESS_NC"] - pub fn a2i_IPADDRESS_NC(ipasc: *const ::std::os::raw::c_char) -> *mut ASN1_OCTET_STRING; + #[link_name = "\u{1}aws_lc_0_21_0_i2d_PKCS8_PRIV_KEY_INFO_fp"] + pub fn i2d_PKCS8_PRIV_KEY_INFO_fp( + fp: *mut FILE, + p8inf: *mut PKCS8_PRIV_KEY_INFO, + ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_X509_get_notBefore"] - pub fn X509_get_notBefore(x509: *const X509) -> *mut ASN1_TIME; + #[link_name = "\u{1}aws_lc_0_21_0_i2d_PKCS8PrivateKeyInfo_fp"] + pub fn i2d_PKCS8PrivateKeyInfo_fp(fp: *mut FILE, key: *mut EVP_PKEY) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_X509_get_notAfter"] - pub fn X509_get_notAfter(x509: *const X509) -> *mut ASN1_TIME; + #[link_name = "\u{1}aws_lc_0_21_0_i2d_PrivateKey_fp"] + pub fn i2d_PrivateKey_fp(fp: *mut FILE, pkey: *mut EVP_PKEY) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_X509_set_notBefore"] - pub fn X509_set_notBefore(x509: *mut X509, tm: *const ASN1_TIME) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_0_21_0_i2d_PUBKEY_fp"] + pub fn i2d_PUBKEY_fp(fp: *mut FILE, pkey: *mut EVP_PKEY) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_X509_set_notAfter"] - pub fn X509_set_notAfter(x509: *mut X509, tm: *const ASN1_TIME) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_0_21_0_X509_find_by_issuer_and_serial"] + pub fn X509_find_by_issuer_and_serial( + sk: *const stack_st_X509, + name: *mut X509_NAME, + serial: *const ASN1_INTEGER, + ) -> *mut X509; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_X509_CRL_get_lastUpdate"] - pub fn X509_CRL_get_lastUpdate(crl: *mut X509_CRL) -> *mut ASN1_TIME; + #[link_name = "\u{1}aws_lc_0_21_0_X509_find_by_subject"] + pub fn X509_find_by_subject(sk: *const stack_st_X509, name: *mut X509_NAME) -> *mut X509; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_X509_CRL_get_nextUpdate"] - pub fn X509_CRL_get_nextUpdate(crl: *mut X509_CRL) -> *mut ASN1_TIME; + #[link_name = "\u{1}aws_lc_0_21_0_X509_cmp_time"] + pub fn X509_cmp_time(s: *const ASN1_TIME, t: *const time_t) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_X509_get_serialNumber"] - pub fn X509_get_serialNumber(x509: *mut X509) -> *mut ASN1_INTEGER; + #[link_name = "\u{1}aws_lc_0_21_0_X509_cmp_time_posix"] + pub fn X509_cmp_time_posix(s: *const ASN1_TIME, t: i64) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_X509_NAME_get_text_by_OBJ"] - pub fn X509_NAME_get_text_by_OBJ( - name: *const X509_NAME, - obj: *const ASN1_OBJECT, - buf: *mut ::std::os::raw::c_char, - len: ::std::os::raw::c_int, - ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_0_21_0_X509_cmp_current_time"] + pub fn X509_cmp_current_time(s: *const ASN1_TIME) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_X509_NAME_get_text_by_NID"] - pub fn X509_NAME_get_text_by_NID( - name: *const X509_NAME, - nid: ::std::os::raw::c_int, - buf: *mut ::std::os::raw::c_char, - len: ::std::os::raw::c_int, - ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_0_21_0_X509_time_adj"] + pub fn X509_time_adj( + s: *mut ASN1_TIME, + offset_sec: ::std::os::raw::c_long, + t: *const time_t, + ) -> *mut ASN1_TIME; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_X509_STORE_CTX_get0_parent_ctx"] - pub fn X509_STORE_CTX_get0_parent_ctx(ctx: *mut X509_STORE_CTX) -> *mut X509_STORE_CTX; + #[link_name = "\u{1}aws_lc_0_21_0_X509_time_adj_ex"] + pub fn X509_time_adj_ex( + s: *mut ASN1_TIME, + offset_day: ::std::os::raw::c_int, + offset_sec: ::std::os::raw::c_long, + t: *const time_t, + ) -> *mut ASN1_TIME; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_X509_LOOKUP_free"] - pub fn X509_LOOKUP_free(ctx: *mut X509_LOOKUP); + #[link_name = "\u{1}aws_lc_0_21_0_X509_gmtime_adj"] + pub fn X509_gmtime_adj(s: *mut ASN1_TIME, offset_sec: ::std::os::raw::c_long) + -> *mut ASN1_TIME; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_X509_STORE_CTX_cleanup"] - pub fn X509_STORE_CTX_cleanup(ctx: *mut X509_STORE_CTX); + #[link_name = "\u{1}aws_lc_0_21_0_X509_issuer_name_cmp"] + pub fn X509_issuer_name_cmp(a: *const X509, b: *const X509) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_X509V3_add_standard_extensions"] - pub fn X509V3_add_standard_extensions() -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_0_21_0_X509_subject_name_cmp"] + pub fn X509_subject_name_cmp(a: *const X509, b: *const X509) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_X509V3_parse_list"] - pub fn X509V3_parse_list(line: *const ::std::os::raw::c_char) -> *mut stack_st_CONF_VALUE; + #[link_name = "\u{1}aws_lc_0_21_0_X509_CRL_cmp"] + pub fn X509_CRL_cmp(a: *const X509_CRL, b: *const X509_CRL) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_X509_STORE_CTX_get_chain"] - pub fn X509_STORE_CTX_get_chain(ctx: *mut X509_STORE_CTX) -> *mut stack_st_X509; + #[link_name = "\u{1}aws_lc_0_21_0_X509_issuer_name_hash"] + pub fn X509_issuer_name_hash(x509: *mut X509) -> u32; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_X509_STORE_CTX_trusted_stack"] - pub fn X509_STORE_CTX_trusted_stack(ctx: *mut X509_STORE_CTX, sk: *mut stack_st_X509); + #[link_name = "\u{1}aws_lc_0_21_0_X509_subject_name_hash"] + pub fn X509_subject_name_hash(x509: *mut X509) -> u32; } -pub type X509_STORE_CTX_verify_cb = ::std::option::Option< - unsafe extern "C" fn( - arg1: ::std::os::raw::c_int, - arg2: *mut X509_STORE_CTX, - ) -> ::std::os::raw::c_int, ->; extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_X509_STORE_CTX_set_verify_cb"] - pub fn X509_STORE_CTX_set_verify_cb( - ctx: *mut X509_STORE_CTX, - verify_cb: ::std::option::Option< - unsafe extern "C" fn( - ok: ::std::os::raw::c_int, - ctx: *mut X509_STORE_CTX, - ) -> ::std::os::raw::c_int, - >, - ); + #[link_name = "\u{1}aws_lc_0_21_0_X509_issuer_name_hash_old"] + pub fn X509_issuer_name_hash_old(x509: *mut X509) -> u32; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_X509_STORE_set_verify_cb"] - pub fn X509_STORE_set_verify_cb(store: *mut X509_STORE, verify_cb: X509_STORE_CTX_verify_cb); + #[link_name = "\u{1}aws_lc_0_21_0_X509_subject_name_hash_old"] + pub fn X509_subject_name_hash_old(x509: *mut X509) -> u32; } -pub type X509_STORE_CTX_get_crl_fn = ::std::option::Option< - unsafe extern "C" fn( - ctx: *mut X509_STORE_CTX, - crl: *mut *mut X509_CRL, - x: *mut X509, - ) -> ::std::os::raw::c_int, ->; -pub type X509_STORE_CTX_check_crl_fn = ::std::option::Option< - unsafe extern "C" fn(ctx: *mut X509_STORE_CTX, crl: *mut X509_CRL) -> ::std::os::raw::c_int, ->; extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_X509_STORE_set_get_crl"] - pub fn X509_STORE_set_get_crl(store: *mut X509_STORE, get_crl: X509_STORE_CTX_get_crl_fn); + #[link_name = "\u{1}aws_lc_0_21_0_X509_get_ex_new_index"] + pub fn X509_get_ex_new_index( + argl: ::std::os::raw::c_long, + argp: *mut ::std::os::raw::c_void, + unused: *mut CRYPTO_EX_unused, + dup_unused: CRYPTO_EX_dup, + free_func: CRYPTO_EX_free, + ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_X509_STORE_set_check_crl"] - pub fn X509_STORE_set_check_crl(store: *mut X509_STORE, check_crl: X509_STORE_CTX_check_crl_fn); + #[link_name = "\u{1}aws_lc_0_21_0_X509_set_ex_data"] + pub fn X509_set_ex_data( + r: *mut X509, + idx: ::std::os::raw::c_int, + arg: *mut ::std::os::raw::c_void, + ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_X509_STORE_CTX_set_chain"] - pub fn X509_STORE_CTX_set_chain(ctx: *mut X509_STORE_CTX, sk: *mut stack_st_X509); + #[link_name = "\u{1}aws_lc_0_21_0_X509_get_ex_data"] + pub fn X509_get_ex_data( + r: *mut X509, + idx: ::std::os::raw::c_int, + ) -> *mut ::std::os::raw::c_void; } -#[repr(C)] -#[derive(Debug, Copy, Clone, PartialEq, Eq)] -pub struct X509_algor_st { - pub algorithm: *mut ASN1_OBJECT, - pub parameter: *mut ASN1_TYPE, +extern "C" { + #[link_name = "\u{1}aws_lc_0_21_0_X509_STORE_CTX_get_ex_new_index"] + pub fn X509_STORE_CTX_get_ex_new_index( + argl: ::std::os::raw::c_long, + argp: *mut ::std::os::raw::c_void, + unused: *mut CRYPTO_EX_unused, + dup_unused: CRYPTO_EX_dup, + free_func: CRYPTO_EX_free, + ) -> ::std::os::raw::c_int; } -#[test] -fn bindgen_test_layout_X509_algor_st() { - const UNINIT: ::std::mem::MaybeUninit = ::std::mem::MaybeUninit::uninit(); - let ptr = UNINIT.as_ptr(); - assert_eq!( - ::std::mem::size_of::(), - 16usize, - concat!("Size of: ", stringify!(X509_algor_st)) - ); - assert_eq!( - ::std::mem::align_of::(), - 8usize, - concat!("Alignment of ", stringify!(X509_algor_st)) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).algorithm) as usize - ptr as usize }, - 0usize, - concat!( - "Offset of field: ", - stringify!(X509_algor_st), - "::", - stringify!(algorithm) - ) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).parameter) as usize - ptr as usize }, - 8usize, - concat!( - "Offset of field: ", - stringify!(X509_algor_st), - "::", - stringify!(parameter) - ) - ); +extern "C" { + #[link_name = "\u{1}aws_lc_0_21_0_X509_STORE_CTX_set_ex_data"] + pub fn X509_STORE_CTX_set_ex_data( + ctx: *mut X509_STORE_CTX, + idx: ::std::os::raw::c_int, + data: *mut ::std::os::raw::c_void, + ) -> ::std::os::raw::c_int; } -impl Default for X509_algor_st { - fn default() -> Self { - let mut s = ::std::mem::MaybeUninit::::uninit(); - unsafe { - ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() - } - } +extern "C" { + #[link_name = "\u{1}aws_lc_0_21_0_X509_STORE_CTX_get_ex_data"] + pub fn X509_STORE_CTX_get_ex_data( + ctx: *mut X509_STORE_CTX, + idx: ::std::os::raw::c_int, + ) -> *mut ::std::os::raw::c_void; } -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct stack_st_DIST_POINT { - _unused: [u8; 0], +extern "C" { + #[link_name = "\u{1}aws_lc_0_21_0_X509_STORE_get_ex_new_index"] + pub fn X509_STORE_get_ex_new_index( + argl: ::std::os::raw::c_long, + argp: *mut ::std::os::raw::c_void, + unused: *mut CRYPTO_EX_unused, + dup_unused: CRYPTO_EX_dup, + free_func: CRYPTO_EX_free, + ) -> ::std::os::raw::c_int; } -#[repr(C)] -#[derive(Debug, Copy, Clone, PartialEq, Eq)] -pub struct x509_trust_st { - pub trust: ::std::os::raw::c_int, - pub flags: ::std::os::raw::c_int, - pub check_trust: ::std::option::Option< - unsafe extern "C" fn( - arg1: *const X509_TRUST, - arg2: *mut X509, - arg3: ::std::os::raw::c_int, - ) -> ::std::os::raw::c_int, - >, - pub name: *mut ::std::os::raw::c_char, - pub arg1: ::std::os::raw::c_int, - pub arg2: *mut ::std::os::raw::c_void, +extern "C" { + #[link_name = "\u{1}aws_lc_0_21_0_X509_STORE_set_ex_data"] + pub fn X509_STORE_set_ex_data( + ctx: *mut X509_STORE, + idx: ::std::os::raw::c_int, + data: *mut ::std::os::raw::c_void, + ) -> ::std::os::raw::c_int; } -#[test] -fn bindgen_test_layout_x509_trust_st() { - const UNINIT: ::std::mem::MaybeUninit = ::std::mem::MaybeUninit::uninit(); - let ptr = UNINIT.as_ptr(); - assert_eq!( - ::std::mem::size_of::(), - 40usize, - concat!("Size of: ", stringify!(x509_trust_st)) - ); - assert_eq!( - ::std::mem::align_of::(), - 8usize, - concat!("Alignment of ", stringify!(x509_trust_st)) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).trust) as usize - ptr as usize }, +extern "C" { + #[link_name = "\u{1}aws_lc_0_21_0_X509_STORE_get_ex_data"] + pub fn X509_STORE_get_ex_data( + ctx: *mut X509_STORE, + idx: ::std::os::raw::c_int, + ) -> *mut ::std::os::raw::c_void; +} +extern "C" { + #[link_name = "\u{1}aws_lc_0_21_0_ASN1_digest"] + pub fn ASN1_digest( + i2d: i2d_of_void, + type_: *const EVP_MD, + data: *mut ::std::os::raw::c_char, + md: *mut ::std::os::raw::c_uchar, + len: *mut ::std::os::raw::c_uint, + ) -> ::std::os::raw::c_int; +} +extern "C" { + #[link_name = "\u{1}aws_lc_0_21_0_ASN1_item_digest"] + pub fn ASN1_item_digest( + it: *const ASN1_ITEM, + type_: *const EVP_MD, + data: *mut ::std::os::raw::c_void, + md: *mut ::std::os::raw::c_uchar, + len: *mut ::std::os::raw::c_uint, + ) -> ::std::os::raw::c_int; +} +extern "C" { + #[link_name = "\u{1}aws_lc_0_21_0_ASN1_item_verify"] + pub fn ASN1_item_verify( + it: *const ASN1_ITEM, + algor1: *const X509_ALGOR, + signature: *const ASN1_BIT_STRING, + data: *mut ::std::os::raw::c_void, + pkey: *mut EVP_PKEY, + ) -> ::std::os::raw::c_int; +} +extern "C" { + #[link_name = "\u{1}aws_lc_0_21_0_ASN1_item_sign"] + pub fn ASN1_item_sign( + it: *const ASN1_ITEM, + algor1: *mut X509_ALGOR, + algor2: *mut X509_ALGOR, + signature: *mut ASN1_BIT_STRING, + data: *mut ::std::os::raw::c_void, + pkey: *mut EVP_PKEY, + type_: *const EVP_MD, + ) -> ::std::os::raw::c_int; +} +extern "C" { + #[link_name = "\u{1}aws_lc_0_21_0_ASN1_item_sign_ctx"] + pub fn ASN1_item_sign_ctx( + it: *const ASN1_ITEM, + algor1: *mut X509_ALGOR, + algor2: *mut X509_ALGOR, + signature: *mut ASN1_BIT_STRING, + asn: *mut ::std::os::raw::c_void, + ctx: *mut EVP_MD_CTX, + ) -> ::std::os::raw::c_int; +} +extern "C" { + #[link_name = "\u{1}aws_lc_0_21_0_X509_supported_extension"] + pub fn X509_supported_extension(ex: *const X509_EXTENSION) -> ::std::os::raw::c_int; +} +extern "C" { + #[link_name = "\u{1}aws_lc_0_21_0_X509_check_ca"] + pub fn X509_check_ca(x509: *mut X509) -> ::std::os::raw::c_int; +} +extern "C" { + #[link_name = "\u{1}aws_lc_0_21_0_X509_check_issued"] + pub fn X509_check_issued(issuer: *mut X509, subject: *mut X509) -> ::std::os::raw::c_int; +} +extern "C" { + #[link_name = "\u{1}aws_lc_0_21_0_NAME_CONSTRAINTS_check"] + pub fn NAME_CONSTRAINTS_check( + x509: *mut X509, + nc: *mut NAME_CONSTRAINTS, + ) -> ::std::os::raw::c_int; +} +extern "C" { + #[link_name = "\u{1}aws_lc_0_21_0_X509_check_host"] + pub fn X509_check_host( + x509: *const X509, + chk: *const ::std::os::raw::c_char, + chklen: usize, + flags: ::std::os::raw::c_uint, + out_peername: *mut *mut ::std::os::raw::c_char, + ) -> ::std::os::raw::c_int; +} +extern "C" { + #[link_name = "\u{1}aws_lc_0_21_0_X509_check_email"] + pub fn X509_check_email( + x509: *const X509, + chk: *const ::std::os::raw::c_char, + chklen: usize, + flags: ::std::os::raw::c_uint, + ) -> ::std::os::raw::c_int; +} +extern "C" { + #[link_name = "\u{1}aws_lc_0_21_0_X509_check_ip"] + pub fn X509_check_ip( + x509: *const X509, + chk: *const u8, + chklen: usize, + flags: ::std::os::raw::c_uint, + ) -> ::std::os::raw::c_int; +} +extern "C" { + #[link_name = "\u{1}aws_lc_0_21_0_X509_check_ip_asc"] + pub fn X509_check_ip_asc( + x509: *const X509, + ipasc: *const ::std::os::raw::c_char, + flags: ::std::os::raw::c_uint, + ) -> ::std::os::raw::c_int; +} +extern "C" { + #[link_name = "\u{1}aws_lc_0_21_0_X509_STORE_CTX_get1_issuer"] + pub fn X509_STORE_CTX_get1_issuer( + out_issuer: *mut *mut X509, + ctx: *mut X509_STORE_CTX, + x509: *mut X509, + ) -> ::std::os::raw::c_int; +} +extern "C" { + #[link_name = "\u{1}aws_lc_0_21_0_X509_check_purpose"] + pub fn X509_check_purpose( + x509: *mut X509, + purpose: ::std::os::raw::c_int, + ca: ::std::os::raw::c_int, + ) -> ::std::os::raw::c_int; +} +extern "C" { + #[link_name = "\u{1}aws_lc_0_21_0_X509_check_trust"] + pub fn X509_check_trust( + x509: *mut X509, + id: ::std::os::raw::c_int, + flags: ::std::os::raw::c_int, + ) -> ::std::os::raw::c_int; +} +#[repr(C)] +#[derive(Debug, Copy, Clone, PartialEq, Eq)] +pub struct private_key_st { + pub dec_pkey: *mut EVP_PKEY, +} +#[test] +fn bindgen_test_layout_private_key_st() { + const UNINIT: ::std::mem::MaybeUninit = ::std::mem::MaybeUninit::uninit(); + let ptr = UNINIT.as_ptr(); + assert_eq!( + ::std::mem::size_of::(), + 8usize, + concat!("Size of: ", stringify!(private_key_st)) + ); + assert_eq!( + ::std::mem::align_of::(), + 8usize, + concat!("Alignment of ", stringify!(private_key_st)) + ); + assert_eq!( + unsafe { ::std::ptr::addr_of!((*ptr).dec_pkey) as usize - ptr as usize }, 0usize, concat!( "Offset of field: ", - stringify!(x509_trust_st), + stringify!(private_key_st), "::", - stringify!(trust) + stringify!(dec_pkey) ) ); +} +impl Default for private_key_st { + fn default() -> Self { + let mut s = ::std::mem::MaybeUninit::::uninit(); + unsafe { + ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); + s.assume_init() + } + } +} +#[repr(C)] +#[derive(Debug, Copy, Clone, PartialEq, Eq)] +pub struct X509_info_st { + pub x509: *mut X509, + pub crl: *mut X509_CRL, + pub x_pkey: *mut X509_PKEY, + pub enc_cipher: EVP_CIPHER_INFO, + pub enc_len: ::std::os::raw::c_int, + pub enc_data: *mut ::std::os::raw::c_char, +} +#[test] +fn bindgen_test_layout_X509_info_st() { + const UNINIT: ::std::mem::MaybeUninit = ::std::mem::MaybeUninit::uninit(); + let ptr = UNINIT.as_ptr(); assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).flags) as usize - ptr as usize }, - 4usize, + ::std::mem::size_of::(), + 64usize, + concat!("Size of: ", stringify!(X509_info_st)) + ); + assert_eq!( + ::std::mem::align_of::(), + 8usize, + concat!("Alignment of ", stringify!(X509_info_st)) + ); + assert_eq!( + unsafe { ::std::ptr::addr_of!((*ptr).x509) as usize - ptr as usize }, + 0usize, concat!( "Offset of field: ", - stringify!(x509_trust_st), + stringify!(X509_info_st), "::", - stringify!(flags) + stringify!(x509) ) ); assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).check_trust) as usize - ptr as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).crl) as usize - ptr as usize }, 8usize, concat!( "Offset of field: ", - stringify!(x509_trust_st), + stringify!(X509_info_st), "::", - stringify!(check_trust) + stringify!(crl) ) ); assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).name) as usize - ptr as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).x_pkey) as usize - ptr as usize }, 16usize, concat!( "Offset of field: ", - stringify!(x509_trust_st), + stringify!(X509_info_st), "::", - stringify!(name) + stringify!(x_pkey) ) ); assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).arg1) as usize - ptr as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).enc_cipher) as usize - ptr as usize }, 24usize, concat!( "Offset of field: ", - stringify!(x509_trust_st), + stringify!(X509_info_st), "::", - stringify!(arg1) + stringify!(enc_cipher) ) ); assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).arg2) as usize - ptr as usize }, - 32usize, + unsafe { ::std::ptr::addr_of!((*ptr).enc_len) as usize - ptr as usize }, + 48usize, concat!( "Offset of field: ", - stringify!(x509_trust_st), + stringify!(X509_info_st), "::", - stringify!(arg2) + stringify!(enc_len) + ) + ); + assert_eq!( + unsafe { ::std::ptr::addr_of!((*ptr).enc_data) as usize - ptr as usize }, + 56usize, + concat!( + "Offset of field: ", + stringify!(X509_info_st), + "::", + stringify!(enc_data) ) ); } -impl Default for x509_trust_st { +impl Default for X509_info_st { fn default() -> Self { let mut s = ::std::mem::MaybeUninit::::uninit(); unsafe { @@ -23171,609 +22968,801 @@ impl Default for x509_trust_st { } #[repr(C)] #[derive(Debug, Copy, Clone)] -pub struct stack_st_X509_TRUST { +pub struct stack_st_X509_INFO { _unused: [u8; 0], } -pub type sk_X509_TRUST_free_func = - ::std::option::Option; -pub type sk_X509_TRUST_copy_func = - ::std::option::Option *mut X509_TRUST>; -pub type sk_X509_TRUST_cmp_func = ::std::option::Option< +pub type sk_X509_INFO_free_func = ::std::option::Option; +pub type sk_X509_INFO_copy_func = + ::std::option::Option *mut X509_INFO>; +pub type sk_X509_INFO_cmp_func = ::std::option::Option< unsafe extern "C" fn( - arg1: *const *const X509_TRUST, - arg2: *const *const X509_TRUST, + arg1: *const *const X509_INFO, + arg2: *const *const X509_INFO, ) -> ::std::os::raw::c_int, >; -pub type sk_X509_TRUST_delete_if_func = ::std::option::Option< +pub type sk_X509_INFO_delete_if_func = ::std::option::Option< unsafe extern "C" fn( - arg1: *mut X509_TRUST, + arg1: *mut X509_INFO, arg2: *mut ::std::os::raw::c_void, ) -> ::std::os::raw::c_int, >; extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_X509_verify_cert_error_string"] - pub fn X509_verify_cert_error_string( - err: ::std::os::raw::c_long, - ) -> *const ::std::os::raw::c_char; + #[link_name = "\u{1}aws_lc_0_21_0_X509_INFO_free"] + pub fn X509_INFO_free(info: *mut X509_INFO); } -extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_X509_get_default_cert_area"] - pub fn X509_get_default_cert_area() -> *const ::std::os::raw::c_char; +#[repr(C)] +#[derive(Debug, Copy, Clone, PartialEq, Eq)] +pub struct v3_ext_ctx { + pub flags: ::std::os::raw::c_int, + pub issuer_cert: *const X509, + pub subject_cert: *const X509, + pub subject_req: *const X509_REQ, + pub crl: *const X509_CRL, + pub db: *const CONF, +} +#[test] +fn bindgen_test_layout_v3_ext_ctx() { + const UNINIT: ::std::mem::MaybeUninit = ::std::mem::MaybeUninit::uninit(); + let ptr = UNINIT.as_ptr(); + assert_eq!( + ::std::mem::size_of::(), + 48usize, + concat!("Size of: ", stringify!(v3_ext_ctx)) + ); + assert_eq!( + ::std::mem::align_of::(), + 8usize, + concat!("Alignment of ", stringify!(v3_ext_ctx)) + ); + assert_eq!( + unsafe { ::std::ptr::addr_of!((*ptr).flags) as usize - ptr as usize }, + 0usize, + concat!( + "Offset of field: ", + stringify!(v3_ext_ctx), + "::", + stringify!(flags) + ) + ); + assert_eq!( + unsafe { ::std::ptr::addr_of!((*ptr).issuer_cert) as usize - ptr as usize }, + 8usize, + concat!( + "Offset of field: ", + stringify!(v3_ext_ctx), + "::", + stringify!(issuer_cert) + ) + ); + assert_eq!( + unsafe { ::std::ptr::addr_of!((*ptr).subject_cert) as usize - ptr as usize }, + 16usize, + concat!( + "Offset of field: ", + stringify!(v3_ext_ctx), + "::", + stringify!(subject_cert) + ) + ); + assert_eq!( + unsafe { ::std::ptr::addr_of!((*ptr).subject_req) as usize - ptr as usize }, + 24usize, + concat!( + "Offset of field: ", + stringify!(v3_ext_ctx), + "::", + stringify!(subject_req) + ) + ); + assert_eq!( + unsafe { ::std::ptr::addr_of!((*ptr).crl) as usize - ptr as usize }, + 32usize, + concat!( + "Offset of field: ", + stringify!(v3_ext_ctx), + "::", + stringify!(crl) + ) + ); + assert_eq!( + unsafe { ::std::ptr::addr_of!((*ptr).db) as usize - ptr as usize }, + 40usize, + concat!( + "Offset of field: ", + stringify!(v3_ext_ctx), + "::", + stringify!(db) + ) + ); +} +impl Default for v3_ext_ctx { + fn default() -> Self { + let mut s = ::std::mem::MaybeUninit::::uninit(); + unsafe { + ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); + s.assume_init() + } + } } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_X509_get_default_cert_dir"] - pub fn X509_get_default_cert_dir() -> *const ::std::os::raw::c_char; + #[link_name = "\u{1}aws_lc_0_21_0_X509V3_set_ctx"] + pub fn X509V3_set_ctx( + ctx: *mut X509V3_CTX, + issuer: *const X509, + subject: *const X509, + req: *const X509_REQ, + crl: *const X509_CRL, + flags: ::std::os::raw::c_int, + ); } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_X509_get_default_cert_file"] - pub fn X509_get_default_cert_file() -> *const ::std::os::raw::c_char; + #[link_name = "\u{1}aws_lc_0_21_0_X509V3_set_nconf"] + pub fn X509V3_set_nconf(ctx: *mut X509V3_CTX, conf: *const CONF); } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_X509_get_default_cert_dir_env"] - pub fn X509_get_default_cert_dir_env() -> *const ::std::os::raw::c_char; + #[link_name = "\u{1}aws_lc_0_21_0_X509V3_EXT_nconf"] + pub fn X509V3_EXT_nconf( + conf: *const CONF, + ctx: *const X509V3_CTX, + name: *const ::std::os::raw::c_char, + value: *const ::std::os::raw::c_char, + ) -> *mut X509_EXTENSION; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_X509_get_default_cert_file_env"] - pub fn X509_get_default_cert_file_env() -> *const ::std::os::raw::c_char; + #[link_name = "\u{1}aws_lc_0_21_0_X509V3_EXT_nconf_nid"] + pub fn X509V3_EXT_nconf_nid( + conf: *const CONF, + ctx: *const X509V3_CTX, + ext_nid: ::std::os::raw::c_int, + value: *const ::std::os::raw::c_char, + ) -> *mut X509_EXTENSION; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_X509_get_default_private_dir"] - pub fn X509_get_default_private_dir() -> *const ::std::os::raw::c_char; + #[link_name = "\u{1}aws_lc_0_21_0_X509V3_EXT_conf_nid"] + pub fn X509V3_EXT_conf_nid( + conf: *mut lhash_st_CONF_VALUE, + ctx: *const X509V3_CTX, + ext_nid: ::std::os::raw::c_int, + value: *const ::std::os::raw::c_char, + ) -> *mut X509_EXTENSION; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_X509_TRUST_set"] - pub fn X509_TRUST_set( - t: *mut ::std::os::raw::c_int, - trust: ::std::os::raw::c_int, + #[link_name = "\u{1}aws_lc_0_21_0_X509V3_EXT_add_nconf_sk"] + pub fn X509V3_EXT_add_nconf_sk( + conf: *const CONF, + ctx: *const X509V3_CTX, + section: *const ::std::os::raw::c_char, + sk: *mut *mut stack_st_X509_EXTENSION, ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_X509_cmp"] - pub fn X509_cmp(a: *const X509, b: *const X509) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_0_21_0_X509V3_EXT_add_nconf"] + pub fn X509V3_EXT_add_nconf( + conf: *const CONF, + ctx: *const X509V3_CTX, + section: *const ::std::os::raw::c_char, + cert: *mut X509, + ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_X509_NAME_hash"] - pub fn X509_NAME_hash(name: *mut X509_NAME) -> u32; + #[link_name = "\u{1}aws_lc_0_21_0_X509V3_EXT_REQ_add_nconf"] + pub fn X509V3_EXT_REQ_add_nconf( + conf: *const CONF, + ctx: *const X509V3_CTX, + section: *const ::std::os::raw::c_char, + req: *mut X509_REQ, + ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_X509_NAME_hash_old"] - pub fn X509_NAME_hash_old(name: *mut X509_NAME) -> u32; + #[link_name = "\u{1}aws_lc_0_21_0_X509V3_EXT_CRL_add_nconf"] + pub fn X509V3_EXT_CRL_add_nconf( + conf: *const CONF, + ctx: *const X509V3_CTX, + section: *const ::std::os::raw::c_char, + crl: *mut X509_CRL, + ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_X509_CRL_match"] - pub fn X509_CRL_match(a: *const X509_CRL, b: *const X509_CRL) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_0_21_0_X509V3_EXT_conf"] + pub fn X509V3_EXT_conf( + conf: *mut lhash_st_CONF_VALUE, + ctx: *mut X509V3_CTX, + name: *const ::std::os::raw::c_char, + value: *const ::std::os::raw::c_char, + ) -> *mut X509_EXTENSION; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_X509_verify_cert"] - pub fn X509_verify_cert(ctx: *mut X509_STORE_CTX) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_0_21_0_i2s_ASN1_OCTET_STRING"] + pub fn i2s_ASN1_OCTET_STRING( + method: *const X509V3_EXT_METHOD, + oct: *const ASN1_OCTET_STRING, + ) -> *mut ::std::os::raw::c_char; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_X509_check_trust"] - pub fn X509_check_trust( - x: *mut X509, - id: ::std::os::raw::c_int, - flags: ::std::os::raw::c_int, - ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_0_21_0_s2i_ASN1_OCTET_STRING"] + pub fn s2i_ASN1_OCTET_STRING( + method: *const X509V3_EXT_METHOD, + ctx: *const X509V3_CTX, + str_: *const ::std::os::raw::c_char, + ) -> *mut ASN1_OCTET_STRING; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_X509_TRUST_get_count"] - pub fn X509_TRUST_get_count() -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_0_21_0_i2s_ASN1_INTEGER"] + pub fn i2s_ASN1_INTEGER( + method: *const X509V3_EXT_METHOD, + aint: *const ASN1_INTEGER, + ) -> *mut ::std::os::raw::c_char; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_X509_TRUST_get0"] - pub fn X509_TRUST_get0(idx: ::std::os::raw::c_int) -> *const X509_TRUST; + #[link_name = "\u{1}aws_lc_0_21_0_s2i_ASN1_INTEGER"] + pub fn s2i_ASN1_INTEGER( + method: *const X509V3_EXT_METHOD, + value: *const ::std::os::raw::c_char, + ) -> *mut ASN1_INTEGER; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_X509_TRUST_get_by_id"] - pub fn X509_TRUST_get_by_id(id: ::std::os::raw::c_int) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_0_21_0_i2s_ASN1_ENUMERATED"] + pub fn i2s_ASN1_ENUMERATED( + method: *const X509V3_EXT_METHOD, + aint: *const ASN1_ENUMERATED, + ) -> *mut ::std::os::raw::c_char; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_X509_TRUST_get_flags"] - pub fn X509_TRUST_get_flags(xp: *const X509_TRUST) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_0_21_0_X509V3_conf_free"] + pub fn X509V3_conf_free(val: *mut CONF_VALUE); } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_X509_TRUST_get0_name"] - pub fn X509_TRUST_get0_name(xp: *const X509_TRUST) -> *mut ::std::os::raw::c_char; + #[link_name = "\u{1}aws_lc_0_21_0_i2v_GENERAL_NAME"] + pub fn i2v_GENERAL_NAME( + method: *const X509V3_EXT_METHOD, + gen: *const GENERAL_NAME, + ret: *mut stack_st_CONF_VALUE, + ) -> *mut stack_st_CONF_VALUE; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_X509_TRUST_get_trust"] - pub fn X509_TRUST_get_trust(xp: *const X509_TRUST) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_0_21_0_i2v_GENERAL_NAMES"] + pub fn i2v_GENERAL_NAMES( + method: *const X509V3_EXT_METHOD, + gen: *const GENERAL_NAMES, + extlist: *mut stack_st_CONF_VALUE, + ) -> *mut stack_st_CONF_VALUE; } -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct stack_st_X509_OBJECT { - _unused: [u8; 0], -} -pub type sk_X509_OBJECT_free_func = - ::std::option::Option; -pub type sk_X509_OBJECT_copy_func = - ::std::option::Option *mut X509_OBJECT>; -pub type sk_X509_OBJECT_cmp_func = ::std::option::Option< - unsafe extern "C" fn( - arg1: *const *const X509_OBJECT, - arg2: *const *const X509_OBJECT, - ) -> ::std::os::raw::c_int, ->; -pub type sk_X509_OBJECT_delete_if_func = ::std::option::Option< - unsafe extern "C" fn( - arg1: *mut X509_OBJECT, - arg2: *mut ::std::os::raw::c_void, - ) -> ::std::os::raw::c_int, ->; extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_X509_STORE_set_depth"] - pub fn X509_STORE_set_depth( - store: *mut X509_STORE, - depth: ::std::os::raw::c_int, - ) -> ::std::os::raw::c_int; -} -extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_X509_STORE_CTX_set_depth"] - pub fn X509_STORE_CTX_set_depth(ctx: *mut X509_STORE_CTX, depth: ::std::os::raw::c_int); + #[link_name = "\u{1}aws_lc_0_21_0_a2i_IPADDRESS"] + pub fn a2i_IPADDRESS(ipasc: *const ::std::os::raw::c_char) -> *mut ASN1_OCTET_STRING; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_X509_LOOKUP_load_file"] - pub fn X509_LOOKUP_load_file( - lookup: *mut X509_LOOKUP, - path: *const ::std::os::raw::c_char, - type_: ::std::os::raw::c_int, - ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_0_21_0_a2i_IPADDRESS_NC"] + pub fn a2i_IPADDRESS_NC(ipasc: *const ::std::os::raw::c_char) -> *mut ASN1_OCTET_STRING; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_X509_LOOKUP_add_dir"] - pub fn X509_LOOKUP_add_dir( - lookup: *mut X509_LOOKUP, - path: *const ::std::os::raw::c_char, - type_: ::std::os::raw::c_int, - ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_0_21_0_X509_get_notBefore"] + pub fn X509_get_notBefore(x509: *const X509) -> *mut ASN1_TIME; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_X509_OBJECT_new"] - pub fn X509_OBJECT_new() -> *mut X509_OBJECT; + #[link_name = "\u{1}aws_lc_0_21_0_X509_get_notAfter"] + pub fn X509_get_notAfter(x509: *const X509) -> *mut ASN1_TIME; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_X509_OBJECT_free"] - pub fn X509_OBJECT_free(obj: *mut X509_OBJECT); + #[link_name = "\u{1}aws_lc_0_21_0_X509_set_notBefore"] + pub fn X509_set_notBefore(x509: *mut X509, tm: *const ASN1_TIME) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_X509_OBJECT_get_type"] - pub fn X509_OBJECT_get_type(obj: *const X509_OBJECT) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_0_21_0_X509_set_notAfter"] + pub fn X509_set_notAfter(x509: *mut X509, tm: *const ASN1_TIME) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_X509_OBJECT_get0_X509"] - pub fn X509_OBJECT_get0_X509(obj: *const X509_OBJECT) -> *mut X509; + #[link_name = "\u{1}aws_lc_0_21_0_X509_CRL_get_lastUpdate"] + pub fn X509_CRL_get_lastUpdate(crl: *mut X509_CRL) -> *mut ASN1_TIME; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_X509_OBJECT_get0_X509_CRL"] - pub fn X509_OBJECT_get0_X509_CRL(a: *const X509_OBJECT) -> *mut X509_CRL; + #[link_name = "\u{1}aws_lc_0_21_0_X509_CRL_get_nextUpdate"] + pub fn X509_CRL_get_nextUpdate(crl: *mut X509_CRL) -> *mut ASN1_TIME; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_X509_OBJECT_set1_X509"] - pub fn X509_OBJECT_set1_X509(a: *mut X509_OBJECT, obj: *mut X509) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_0_21_0_X509_get_serialNumber"] + pub fn X509_get_serialNumber(x509: *mut X509) -> *mut ASN1_INTEGER; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_X509_OBJECT_set1_X509_CRL"] - pub fn X509_OBJECT_set1_X509_CRL( - a: *mut X509_OBJECT, - obj: *mut X509_CRL, + #[link_name = "\u{1}aws_lc_0_21_0_X509_NAME_get_text_by_OBJ"] + pub fn X509_NAME_get_text_by_OBJ( + name: *const X509_NAME, + obj: *const ASN1_OBJECT, + buf: *mut ::std::os::raw::c_char, + len: ::std::os::raw::c_int, ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_X509_STORE_lock"] - pub fn X509_STORE_lock(v: *mut X509_STORE) -> ::std::os::raw::c_int; -} -extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_X509_STORE_unlock"] - pub fn X509_STORE_unlock(v: *mut X509_STORE) -> ::std::os::raw::c_int; -} -extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_X509_STORE_new"] - pub fn X509_STORE_new() -> *mut X509_STORE; -} -extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_X509_STORE_up_ref"] - pub fn X509_STORE_up_ref(store: *mut X509_STORE) -> ::std::os::raw::c_int; -} -extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_X509_STORE_free"] - pub fn X509_STORE_free(store: *mut X509_STORE); -} -extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_X509_STORE_get0_objects"] - pub fn X509_STORE_get0_objects(st: *mut X509_STORE) -> *mut stack_st_X509_OBJECT; -} -extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_X509_STORE_CTX_get1_certs"] - pub fn X509_STORE_CTX_get1_certs( - st: *mut X509_STORE_CTX, - nm: *mut X509_NAME, - ) -> *mut stack_st_X509; -} -extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_X509_STORE_CTX_get1_crls"] - pub fn X509_STORE_CTX_get1_crls( - st: *mut X509_STORE_CTX, - nm: *mut X509_NAME, - ) -> *mut stack_st_X509_CRL; -} -extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_X509_STORE_set_flags"] - pub fn X509_STORE_set_flags( - store: *mut X509_STORE, - flags: ::std::os::raw::c_ulong, + #[link_name = "\u{1}aws_lc_0_21_0_X509_NAME_get_text_by_NID"] + pub fn X509_NAME_get_text_by_NID( + name: *const X509_NAME, + nid: ::std::os::raw::c_int, + buf: *mut ::std::os::raw::c_char, + len: ::std::os::raw::c_int, ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_X509_STORE_set_purpose"] - pub fn X509_STORE_set_purpose( - store: *mut X509_STORE, - purpose: ::std::os::raw::c_int, - ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_0_21_0_X509_STORE_CTX_get0_parent_ctx"] + pub fn X509_STORE_CTX_get0_parent_ctx(ctx: *mut X509_STORE_CTX) -> *mut X509_STORE_CTX; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_X509_STORE_set_trust"] - pub fn X509_STORE_set_trust( - store: *mut X509_STORE, - trust: ::std::os::raw::c_int, - ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_0_21_0_X509_LOOKUP_free"] + pub fn X509_LOOKUP_free(ctx: *mut X509_LOOKUP); } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_X509_STORE_set1_param"] - pub fn X509_STORE_set1_param( - store: *mut X509_STORE, - param: *const X509_VERIFY_PARAM, - ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_0_21_0_X509_STORE_CTX_cleanup"] + pub fn X509_STORE_CTX_cleanup(ctx: *mut X509_STORE_CTX); } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_X509_STORE_get0_param"] - pub fn X509_STORE_get0_param(store: *mut X509_STORE) -> *mut X509_VERIFY_PARAM; + #[link_name = "\u{1}aws_lc_0_21_0_X509V3_add_standard_extensions"] + pub fn X509V3_add_standard_extensions() -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_X509_STORE_CTX_new"] - pub fn X509_STORE_CTX_new() -> *mut X509_STORE_CTX; + #[link_name = "\u{1}aws_lc_0_21_0_X509V3_parse_list"] + pub fn X509V3_parse_list(line: *const ::std::os::raw::c_char) -> *mut stack_st_CONF_VALUE; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_X509_STORE_CTX_get1_issuer"] - pub fn X509_STORE_CTX_get1_issuer( - issuer: *mut *mut X509, - ctx: *mut X509_STORE_CTX, - x: *mut X509, - ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_0_21_0_X509_STORE_CTX_get_chain"] + pub fn X509_STORE_CTX_get_chain(ctx: *mut X509_STORE_CTX) -> *mut stack_st_X509; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_X509_STORE_CTX_free"] - pub fn X509_STORE_CTX_free(ctx: *mut X509_STORE_CTX); + #[link_name = "\u{1}aws_lc_0_21_0_X509_STORE_CTX_trusted_stack"] + pub fn X509_STORE_CTX_trusted_stack(ctx: *mut X509_STORE_CTX, sk: *mut stack_st_X509); } +pub type X509_STORE_CTX_verify_cb = ::std::option::Option< + unsafe extern "C" fn( + arg1: ::std::os::raw::c_int, + arg2: *mut X509_STORE_CTX, + ) -> ::std::os::raw::c_int, +>; extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_X509_STORE_CTX_init"] - pub fn X509_STORE_CTX_init( + #[link_name = "\u{1}aws_lc_0_21_0_X509_STORE_CTX_set_verify_cb"] + pub fn X509_STORE_CTX_set_verify_cb( ctx: *mut X509_STORE_CTX, - store: *mut X509_STORE, - x509: *mut X509, - chain: *mut stack_st_X509, - ) -> ::std::os::raw::c_int; -} -extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_X509_STORE_CTX_set0_trusted_stack"] - pub fn X509_STORE_CTX_set0_trusted_stack(ctx: *mut X509_STORE_CTX, sk: *mut stack_st_X509); -} -extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_X509_STORE_CTX_get0_store"] - pub fn X509_STORE_CTX_get0_store(ctx: *mut X509_STORE_CTX) -> *mut X509_STORE; -} -extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_X509_STORE_CTX_get0_cert"] - pub fn X509_STORE_CTX_get0_cert(ctx: *mut X509_STORE_CTX) -> *mut X509; -} -extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_X509_STORE_add_lookup"] - pub fn X509_STORE_add_lookup( - v: *mut X509_STORE, - m: *const X509_LOOKUP_METHOD, - ) -> *mut X509_LOOKUP; + verify_cb: ::std::option::Option< + unsafe extern "C" fn( + ok: ::std::os::raw::c_int, + ctx: *mut X509_STORE_CTX, + ) -> ::std::os::raw::c_int, + >, + ); } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_X509_LOOKUP_hash_dir"] - pub fn X509_LOOKUP_hash_dir() -> *const X509_LOOKUP_METHOD; + #[link_name = "\u{1}aws_lc_0_21_0_X509_STORE_set_verify_cb"] + pub fn X509_STORE_set_verify_cb(store: *mut X509_STORE, verify_cb: X509_STORE_CTX_verify_cb); } +pub type X509_STORE_CTX_get_crl_fn = ::std::option::Option< + unsafe extern "C" fn( + ctx: *mut X509_STORE_CTX, + crl: *mut *mut X509_CRL, + x: *mut X509, + ) -> ::std::os::raw::c_int, +>; +pub type X509_STORE_CTX_check_crl_fn = ::std::option::Option< + unsafe extern "C" fn(ctx: *mut X509_STORE_CTX, crl: *mut X509_CRL) -> ::std::os::raw::c_int, +>; extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_X509_LOOKUP_file"] - pub fn X509_LOOKUP_file() -> *const X509_LOOKUP_METHOD; + #[link_name = "\u{1}aws_lc_0_21_0_X509_STORE_set_get_crl"] + pub fn X509_STORE_set_get_crl(store: *mut X509_STORE, get_crl: X509_STORE_CTX_get_crl_fn); } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_X509_STORE_add_cert"] - pub fn X509_STORE_add_cert(ctx: *mut X509_STORE, x: *mut X509) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_0_21_0_X509_STORE_set_check_crl"] + pub fn X509_STORE_set_check_crl(store: *mut X509_STORE, check_crl: X509_STORE_CTX_check_crl_fn); } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_X509_STORE_add_crl"] - pub fn X509_STORE_add_crl(ctx: *mut X509_STORE, x: *mut X509_CRL) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_0_21_0_X509_STORE_CTX_set_chain"] + pub fn X509_STORE_CTX_set_chain(ctx: *mut X509_STORE_CTX, sk: *mut stack_st_X509); } -extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_X509_LOOKUP_ctrl"] - pub fn X509_LOOKUP_ctrl( - ctx: *mut X509_LOOKUP, - cmd: ::std::os::raw::c_int, - argc: *const ::std::os::raw::c_char, - argl: ::std::os::raw::c_long, - ret: *mut *mut ::std::os::raw::c_char, - ) -> ::std::os::raw::c_int; +#[repr(C)] +#[derive(Debug, Copy, Clone, PartialEq, Eq)] +pub struct X509_algor_st { + pub algorithm: *mut ASN1_OBJECT, + pub parameter: *mut ASN1_TYPE, } -extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_X509_load_cert_file"] - pub fn X509_load_cert_file( - ctx: *mut X509_LOOKUP, - file: *const ::std::os::raw::c_char, - type_: ::std::os::raw::c_int, - ) -> ::std::os::raw::c_int; +#[test] +fn bindgen_test_layout_X509_algor_st() { + const UNINIT: ::std::mem::MaybeUninit = ::std::mem::MaybeUninit::uninit(); + let ptr = UNINIT.as_ptr(); + assert_eq!( + ::std::mem::size_of::(), + 16usize, + concat!("Size of: ", stringify!(X509_algor_st)) + ); + assert_eq!( + ::std::mem::align_of::(), + 8usize, + concat!("Alignment of ", stringify!(X509_algor_st)) + ); + assert_eq!( + unsafe { ::std::ptr::addr_of!((*ptr).algorithm) as usize - ptr as usize }, + 0usize, + concat!( + "Offset of field: ", + stringify!(X509_algor_st), + "::", + stringify!(algorithm) + ) + ); + assert_eq!( + unsafe { ::std::ptr::addr_of!((*ptr).parameter) as usize - ptr as usize }, + 8usize, + concat!( + "Offset of field: ", + stringify!(X509_algor_st), + "::", + stringify!(parameter) + ) + ); } -extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_X509_load_crl_file"] - pub fn X509_load_crl_file( - ctx: *mut X509_LOOKUP, - file: *const ::std::os::raw::c_char, - type_: ::std::os::raw::c_int, - ) -> ::std::os::raw::c_int; +impl Default for X509_algor_st { + fn default() -> Self { + let mut s = ::std::mem::MaybeUninit::::uninit(); + unsafe { + ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); + s.assume_init() + } + } } -extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_X509_load_cert_crl_file"] - pub fn X509_load_cert_crl_file( - ctx: *mut X509_LOOKUP, - file: *const ::std::os::raw::c_char, - type_: ::std::os::raw::c_int, - ) -> ::std::os::raw::c_int; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct stack_st_DIST_POINT { + _unused: [u8; 0], } -extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_X509_STORE_load_locations"] - pub fn X509_STORE_load_locations( - ctx: *mut X509_STORE, - file: *const ::std::os::raw::c_char, - dir: *const ::std::os::raw::c_char, - ) -> ::std::os::raw::c_int; +#[repr(C)] +#[derive(Debug, Copy, Clone, PartialEq, Eq)] +pub struct x509_trust_st { + pub trust: ::std::os::raw::c_int, + pub flags: ::std::os::raw::c_int, + pub check_trust: ::std::option::Option< + unsafe extern "C" fn( + arg1: *const X509_TRUST, + arg2: *mut X509, + arg3: ::std::os::raw::c_int, + ) -> ::std::os::raw::c_int, + >, + pub name: *mut ::std::os::raw::c_char, + pub arg1: ::std::os::raw::c_int, + pub arg2: *mut ::std::os::raw::c_void, } -extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_X509_STORE_set_default_paths"] - pub fn X509_STORE_set_default_paths(ctx: *mut X509_STORE) -> ::std::os::raw::c_int; +#[test] +fn bindgen_test_layout_x509_trust_st() { + const UNINIT: ::std::mem::MaybeUninit = ::std::mem::MaybeUninit::uninit(); + let ptr = UNINIT.as_ptr(); + assert_eq!( + ::std::mem::size_of::(), + 40usize, + concat!("Size of: ", stringify!(x509_trust_st)) + ); + assert_eq!( + ::std::mem::align_of::(), + 8usize, + concat!("Alignment of ", stringify!(x509_trust_st)) + ); + assert_eq!( + unsafe { ::std::ptr::addr_of!((*ptr).trust) as usize - ptr as usize }, + 0usize, + concat!( + "Offset of field: ", + stringify!(x509_trust_st), + "::", + stringify!(trust) + ) + ); + assert_eq!( + unsafe { ::std::ptr::addr_of!((*ptr).flags) as usize - ptr as usize }, + 4usize, + concat!( + "Offset of field: ", + stringify!(x509_trust_st), + "::", + stringify!(flags) + ) + ); + assert_eq!( + unsafe { ::std::ptr::addr_of!((*ptr).check_trust) as usize - ptr as usize }, + 8usize, + concat!( + "Offset of field: ", + stringify!(x509_trust_st), + "::", + stringify!(check_trust) + ) + ); + assert_eq!( + unsafe { ::std::ptr::addr_of!((*ptr).name) as usize - ptr as usize }, + 16usize, + concat!( + "Offset of field: ", + stringify!(x509_trust_st), + "::", + stringify!(name) + ) + ); + assert_eq!( + unsafe { ::std::ptr::addr_of!((*ptr).arg1) as usize - ptr as usize }, + 24usize, + concat!( + "Offset of field: ", + stringify!(x509_trust_st), + "::", + stringify!(arg1) + ) + ); + assert_eq!( + unsafe { ::std::ptr::addr_of!((*ptr).arg2) as usize - ptr as usize }, + 32usize, + concat!( + "Offset of field: ", + stringify!(x509_trust_st), + "::", + stringify!(arg2) + ) + ); } -extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_X509_STORE_CTX_get_error"] - pub fn X509_STORE_CTX_get_error(ctx: *mut X509_STORE_CTX) -> ::std::os::raw::c_int; +impl Default for x509_trust_st { + fn default() -> Self { + let mut s = ::std::mem::MaybeUninit::::uninit(); + unsafe { + ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); + s.assume_init() + } + } } -extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_X509_STORE_CTX_set_error"] - pub fn X509_STORE_CTX_set_error(ctx: *mut X509_STORE_CTX, s: ::std::os::raw::c_int); +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct stack_st_X509_TRUST { + _unused: [u8; 0], } +pub type sk_X509_TRUST_free_func = + ::std::option::Option; +pub type sk_X509_TRUST_copy_func = + ::std::option::Option *mut X509_TRUST>; +pub type sk_X509_TRUST_cmp_func = ::std::option::Option< + unsafe extern "C" fn( + arg1: *const *const X509_TRUST, + arg2: *const *const X509_TRUST, + ) -> ::std::os::raw::c_int, +>; +pub type sk_X509_TRUST_delete_if_func = ::std::option::Option< + unsafe extern "C" fn( + arg1: *mut X509_TRUST, + arg2: *mut ::std::os::raw::c_void, + ) -> ::std::os::raw::c_int, +>; extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_X509_STORE_CTX_get_error_depth"] - pub fn X509_STORE_CTX_get_error_depth(ctx: *mut X509_STORE_CTX) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_0_21_0_X509_get_default_cert_area"] + pub fn X509_get_default_cert_area() -> *const ::std::os::raw::c_char; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_X509_STORE_CTX_get_current_cert"] - pub fn X509_STORE_CTX_get_current_cert(ctx: *mut X509_STORE_CTX) -> *mut X509; + #[link_name = "\u{1}aws_lc_0_21_0_X509_get_default_cert_dir"] + pub fn X509_get_default_cert_dir() -> *const ::std::os::raw::c_char; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_X509_STORE_CTX_get0_current_issuer"] - pub fn X509_STORE_CTX_get0_current_issuer(ctx: *mut X509_STORE_CTX) -> *mut X509; + #[link_name = "\u{1}aws_lc_0_21_0_X509_get_default_cert_file"] + pub fn X509_get_default_cert_file() -> *const ::std::os::raw::c_char; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_X509_STORE_CTX_get0_current_crl"] - pub fn X509_STORE_CTX_get0_current_crl(ctx: *mut X509_STORE_CTX) -> *mut X509_CRL; + #[link_name = "\u{1}aws_lc_0_21_0_X509_get_default_cert_dir_env"] + pub fn X509_get_default_cert_dir_env() -> *const ::std::os::raw::c_char; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_X509_STORE_CTX_get0_chain"] - pub fn X509_STORE_CTX_get0_chain(ctx: *mut X509_STORE_CTX) -> *mut stack_st_X509; + #[link_name = "\u{1}aws_lc_0_21_0_X509_get_default_cert_file_env"] + pub fn X509_get_default_cert_file_env() -> *const ::std::os::raw::c_char; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_X509_STORE_CTX_get1_chain"] - pub fn X509_STORE_CTX_get1_chain(ctx: *mut X509_STORE_CTX) -> *mut stack_st_X509; + #[link_name = "\u{1}aws_lc_0_21_0_X509_get_default_private_dir"] + pub fn X509_get_default_private_dir() -> *const ::std::os::raw::c_char; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_X509_STORE_CTX_set_cert"] - pub fn X509_STORE_CTX_set_cert(c: *mut X509_STORE_CTX, x: *mut X509); + #[link_name = "\u{1}aws_lc_0_21_0_X509_TRUST_set"] + pub fn X509_TRUST_set( + t: *mut ::std::os::raw::c_int, + trust: ::std::os::raw::c_int, + ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_X509_STORE_CTX_get0_untrusted"] - pub fn X509_STORE_CTX_get0_untrusted(ctx: *mut X509_STORE_CTX) -> *mut stack_st_X509; + #[link_name = "\u{1}aws_lc_0_21_0_X509_cmp"] + pub fn X509_cmp(a: *const X509, b: *const X509) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_X509_STORE_CTX_set0_crls"] - pub fn X509_STORE_CTX_set0_crls(c: *mut X509_STORE_CTX, sk: *mut stack_st_X509_CRL); + #[link_name = "\u{1}aws_lc_0_21_0_X509_NAME_hash"] + pub fn X509_NAME_hash(name: *mut X509_NAME) -> u32; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_X509_STORE_CTX_set_purpose"] - pub fn X509_STORE_CTX_set_purpose( - ctx: *mut X509_STORE_CTX, - purpose: ::std::os::raw::c_int, - ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_0_21_0_X509_NAME_hash_old"] + pub fn X509_NAME_hash_old(name: *mut X509_NAME) -> u32; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_X509_STORE_CTX_set_trust"] - pub fn X509_STORE_CTX_set_trust( - ctx: *mut X509_STORE_CTX, - trust: ::std::os::raw::c_int, - ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_0_21_0_X509_CRL_match"] + pub fn X509_CRL_match(a: *const X509_CRL, b: *const X509_CRL) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_X509_STORE_CTX_purpose_inherit"] - pub fn X509_STORE_CTX_purpose_inherit( - ctx: *mut X509_STORE_CTX, - def_purpose: ::std::os::raw::c_int, - purpose: ::std::os::raw::c_int, - trust: ::std::os::raw::c_int, - ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_0_21_0_X509_TRUST_get_count"] + pub fn X509_TRUST_get_count() -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_X509_STORE_CTX_set_flags"] - pub fn X509_STORE_CTX_set_flags(ctx: *mut X509_STORE_CTX, flags: ::std::os::raw::c_ulong); + #[link_name = "\u{1}aws_lc_0_21_0_X509_TRUST_get0"] + pub fn X509_TRUST_get0(idx: ::std::os::raw::c_int) -> *const X509_TRUST; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_X509_STORE_CTX_set_time"] - pub fn X509_STORE_CTX_set_time( - ctx: *mut X509_STORE_CTX, - flags: ::std::os::raw::c_ulong, - t: time_t, - ); + #[link_name = "\u{1}aws_lc_0_21_0_X509_TRUST_get_by_id"] + pub fn X509_TRUST_get_by_id(id: ::std::os::raw::c_int) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_X509_STORE_CTX_set_time_posix"] - pub fn X509_STORE_CTX_set_time_posix( - ctx: *mut X509_STORE_CTX, - flags: ::std::os::raw::c_ulong, - t: i64, - ); + #[link_name = "\u{1}aws_lc_0_21_0_X509_TRUST_get_flags"] + pub fn X509_TRUST_get_flags(xp: *const X509_TRUST) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_X509_STORE_CTX_get0_param"] - pub fn X509_STORE_CTX_get0_param(ctx: *mut X509_STORE_CTX) -> *mut X509_VERIFY_PARAM; + #[link_name = "\u{1}aws_lc_0_21_0_X509_TRUST_get0_name"] + pub fn X509_TRUST_get0_name(xp: *const X509_TRUST) -> *mut ::std::os::raw::c_char; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_X509_STORE_CTX_set0_param"] - pub fn X509_STORE_CTX_set0_param(ctx: *mut X509_STORE_CTX, param: *mut X509_VERIFY_PARAM); + #[link_name = "\u{1}aws_lc_0_21_0_X509_TRUST_get_trust"] + pub fn X509_TRUST_get_trust(xp: *const X509_TRUST) -> ::std::os::raw::c_int; +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct stack_st_X509_OBJECT { + _unused: [u8; 0], } +pub type sk_X509_OBJECT_free_func = + ::std::option::Option; +pub type sk_X509_OBJECT_copy_func = + ::std::option::Option *mut X509_OBJECT>; +pub type sk_X509_OBJECT_cmp_func = ::std::option::Option< + unsafe extern "C" fn( + arg1: *const *const X509_OBJECT, + arg2: *const *const X509_OBJECT, + ) -> ::std::os::raw::c_int, +>; +pub type sk_X509_OBJECT_delete_if_func = ::std::option::Option< + unsafe extern "C" fn( + arg1: *mut X509_OBJECT, + arg2: *mut ::std::os::raw::c_void, + ) -> ::std::os::raw::c_int, +>; extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_X509_STORE_CTX_set_default"] - pub fn X509_STORE_CTX_set_default( - ctx: *mut X509_STORE_CTX, - name: *const ::std::os::raw::c_char, + #[link_name = "\u{1}aws_lc_0_21_0_X509_LOOKUP_load_file"] + pub fn X509_LOOKUP_load_file( + lookup: *mut X509_LOOKUP, + path: *const ::std::os::raw::c_char, + type_: ::std::os::raw::c_int, ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_X509_STORE_CTX_get_by_subject"] - pub fn X509_STORE_CTX_get_by_subject( - vs: *mut X509_STORE_CTX, + #[link_name = "\u{1}aws_lc_0_21_0_X509_LOOKUP_add_dir"] + pub fn X509_LOOKUP_add_dir( + lookup: *mut X509_LOOKUP, + path: *const ::std::os::raw::c_char, type_: ::std::os::raw::c_int, - name: *mut X509_NAME, - ret: *mut X509_OBJECT, ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_X509_VERIFY_PARAM_new"] - pub fn X509_VERIFY_PARAM_new() -> *mut X509_VERIFY_PARAM; + #[link_name = "\u{1}aws_lc_0_21_0_X509_OBJECT_new"] + pub fn X509_OBJECT_new() -> *mut X509_OBJECT; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_X509_VERIFY_PARAM_free"] - pub fn X509_VERIFY_PARAM_free(param: *mut X509_VERIFY_PARAM); + #[link_name = "\u{1}aws_lc_0_21_0_X509_OBJECT_free"] + pub fn X509_OBJECT_free(obj: *mut X509_OBJECT); } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_X509_VERIFY_PARAM_inherit"] - pub fn X509_VERIFY_PARAM_inherit( - to: *mut X509_VERIFY_PARAM, - from: *const X509_VERIFY_PARAM, - ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_0_21_0_X509_OBJECT_get_type"] + pub fn X509_OBJECT_get_type(obj: *const X509_OBJECT) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_X509_VERIFY_PARAM_set1"] - pub fn X509_VERIFY_PARAM_set1( - to: *mut X509_VERIFY_PARAM, - from: *const X509_VERIFY_PARAM, - ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_0_21_0_X509_OBJECT_get0_X509"] + pub fn X509_OBJECT_get0_X509(obj: *const X509_OBJECT) -> *mut X509; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_X509_VERIFY_PARAM_set_flags"] - pub fn X509_VERIFY_PARAM_set_flags( - param: *mut X509_VERIFY_PARAM, - flags: ::std::os::raw::c_ulong, - ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_0_21_0_X509_OBJECT_get0_X509_CRL"] + pub fn X509_OBJECT_get0_X509_CRL(a: *const X509_OBJECT) -> *mut X509_CRL; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_X509_VERIFY_PARAM_clear_flags"] - pub fn X509_VERIFY_PARAM_clear_flags( - param: *mut X509_VERIFY_PARAM, - flags: ::std::os::raw::c_ulong, + #[link_name = "\u{1}aws_lc_0_21_0_X509_OBJECT_set1_X509"] + pub fn X509_OBJECT_set1_X509(a: *mut X509_OBJECT, obj: *mut X509) -> ::std::os::raw::c_int; +} +extern "C" { + #[link_name = "\u{1}aws_lc_0_21_0_X509_OBJECT_set1_X509_CRL"] + pub fn X509_OBJECT_set1_X509_CRL( + a: *mut X509_OBJECT, + obj: *mut X509_CRL, ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_X509_VERIFY_PARAM_get_flags"] - pub fn X509_VERIFY_PARAM_get_flags(param: *const X509_VERIFY_PARAM) -> ::std::os::raw::c_ulong; + #[link_name = "\u{1}aws_lc_0_21_0_X509_STORE_lock"] + pub fn X509_STORE_lock(v: *mut X509_STORE) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_X509_VERIFY_PARAM_set_purpose"] - pub fn X509_VERIFY_PARAM_set_purpose( - param: *mut X509_VERIFY_PARAM, - purpose: ::std::os::raw::c_int, - ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_0_21_0_X509_STORE_unlock"] + pub fn X509_STORE_unlock(v: *mut X509_STORE) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_X509_VERIFY_PARAM_set_trust"] - pub fn X509_VERIFY_PARAM_set_trust( - param: *mut X509_VERIFY_PARAM, - trust: ::std::os::raw::c_int, - ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_0_21_0_X509_STORE_get0_objects"] + pub fn X509_STORE_get0_objects(st: *mut X509_STORE) -> *mut stack_st_X509_OBJECT; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_X509_VERIFY_PARAM_set_depth"] - pub fn X509_VERIFY_PARAM_set_depth(param: *mut X509_VERIFY_PARAM, depth: ::std::os::raw::c_int); + #[link_name = "\u{1}aws_lc_0_21_0_X509_STORE_CTX_get1_certs"] + pub fn X509_STORE_CTX_get1_certs( + st: *mut X509_STORE_CTX, + nm: *mut X509_NAME, + ) -> *mut stack_st_X509; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_X509_VERIFY_PARAM_set_time"] - pub fn X509_VERIFY_PARAM_set_time(param: *mut X509_VERIFY_PARAM, t: time_t); + #[link_name = "\u{1}aws_lc_0_21_0_X509_STORE_CTX_get1_crls"] + pub fn X509_STORE_CTX_get1_crls( + st: *mut X509_STORE_CTX, + nm: *mut X509_NAME, + ) -> *mut stack_st_X509_CRL; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_X509_VERIFY_PARAM_set_time_posix"] - pub fn X509_VERIFY_PARAM_set_time_posix(param: *mut X509_VERIFY_PARAM, t: i64); + #[link_name = "\u{1}aws_lc_0_21_0_X509_STORE_add_lookup"] + pub fn X509_STORE_add_lookup( + v: *mut X509_STORE, + m: *const X509_LOOKUP_METHOD, + ) -> *mut X509_LOOKUP; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_X509_VERIFY_PARAM_add0_policy"] - pub fn X509_VERIFY_PARAM_add0_policy( - param: *mut X509_VERIFY_PARAM, - policy: *mut ASN1_OBJECT, - ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_0_21_0_X509_LOOKUP_hash_dir"] + pub fn X509_LOOKUP_hash_dir() -> *const X509_LOOKUP_METHOD; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_X509_VERIFY_PARAM_set1_policies"] - pub fn X509_VERIFY_PARAM_set1_policies( - param: *mut X509_VERIFY_PARAM, - policies: *const stack_st_ASN1_OBJECT, - ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_0_21_0_X509_LOOKUP_file"] + pub fn X509_LOOKUP_file() -> *const X509_LOOKUP_METHOD; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_X509_VERIFY_PARAM_set1_host"] - pub fn X509_VERIFY_PARAM_set1_host( - param: *mut X509_VERIFY_PARAM, - name: *const ::std::os::raw::c_char, - namelen: usize, + #[link_name = "\u{1}aws_lc_0_21_0_X509_STORE_CTX_get_by_subject"] + pub fn X509_STORE_CTX_get_by_subject( + vs: *mut X509_STORE_CTX, + type_: ::std::os::raw::c_int, + name: *mut X509_NAME, + ret: *mut X509_OBJECT, ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_X509_VERIFY_PARAM_add1_host"] - pub fn X509_VERIFY_PARAM_add1_host( - param: *mut X509_VERIFY_PARAM, - name: *const ::std::os::raw::c_char, - name_len: usize, + #[link_name = "\u{1}aws_lc_0_21_0_X509_LOOKUP_ctrl"] + pub fn X509_LOOKUP_ctrl( + ctx: *mut X509_LOOKUP, + cmd: ::std::os::raw::c_int, + argc: *const ::std::os::raw::c_char, + argl: ::std::os::raw::c_long, + ret: *mut *mut ::std::os::raw::c_char, ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_X509_VERIFY_PARAM_set_hostflags"] - pub fn X509_VERIFY_PARAM_set_hostflags( - param: *mut X509_VERIFY_PARAM, - flags: ::std::os::raw::c_uint, - ); + #[link_name = "\u{1}aws_lc_0_21_0_X509_load_cert_file"] + pub fn X509_load_cert_file( + ctx: *mut X509_LOOKUP, + file: *const ::std::os::raw::c_char, + type_: ::std::os::raw::c_int, + ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_X509_VERIFY_PARAM_set1_email"] - pub fn X509_VERIFY_PARAM_set1_email( - param: *mut X509_VERIFY_PARAM, - email: *const ::std::os::raw::c_char, - emaillen: usize, + #[link_name = "\u{1}aws_lc_0_21_0_X509_load_crl_file"] + pub fn X509_load_crl_file( + ctx: *mut X509_LOOKUP, + file: *const ::std::os::raw::c_char, + type_: ::std::os::raw::c_int, ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_X509_VERIFY_PARAM_set1_ip"] - pub fn X509_VERIFY_PARAM_set1_ip( - param: *mut X509_VERIFY_PARAM, - ip: *const ::std::os::raw::c_uchar, - iplen: usize, + #[link_name = "\u{1}aws_lc_0_21_0_X509_load_cert_crl_file"] + pub fn X509_load_cert_crl_file( + ctx: *mut X509_LOOKUP, + file: *const ::std::os::raw::c_char, + type_: ::std::os::raw::c_int, ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_X509_VERIFY_PARAM_set1_ip_asc"] - pub fn X509_VERIFY_PARAM_set1_ip_asc( - param: *mut X509_VERIFY_PARAM, - ipasc: *const ::std::os::raw::c_char, + #[link_name = "\u{1}aws_lc_0_21_0_X509_STORE_load_locations"] + pub fn X509_STORE_load_locations( + ctx: *mut X509_STORE, + file: *const ::std::os::raw::c_char, + dir: *const ::std::os::raw::c_char, ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_X509_VERIFY_PARAM_get_depth"] - pub fn X509_VERIFY_PARAM_get_depth(param: *const X509_VERIFY_PARAM) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_0_21_0_X509_STORE_set_default_paths"] + pub fn X509_STORE_set_default_paths(ctx: *mut X509_STORE) -> ::std::os::raw::c_int; } pub type X509V3_EXT_NEW = ::std::option::Option *mut ::std::os::raw::c_void>; @@ -25715,14 +25704,6 @@ extern "C" { flags: ::std::os::raw::c_ulong, ) -> ::std::os::raw::c_int; } -extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_X509_check_purpose"] - pub fn X509_check_purpose( - x: *mut X509, - id: ::std::os::raw::c_int, - ca: ::std::os::raw::c_int, - ) -> ::std::os::raw::c_int; -} extern "C" { #[link_name = "\u{1}aws_lc_0_21_0_X509_PURPOSE_set"] pub fn X509_PURPOSE_set( From eaffacdc28ce8aa25200964000709fbedbdbdb24 Mon Sep 17 00:00:00 2001 From: aws-lc-sys-bindings-generator Date: Wed, 28 Aug 2024 14:40:25 +0000 Subject: [PATCH 20/36] Generated bindings for x86_64-pc-windows-gnu --- .../src/x86_64_pc_windows_gnu_crypto.rs | 3591 ++++++++--------- 1 file changed, 1786 insertions(+), 1805 deletions(-) diff --git a/aws-lc-sys/src/x86_64_pc_windows_gnu_crypto.rs b/aws-lc-sys/src/x86_64_pc_windows_gnu_crypto.rs index 94fd34a04d9..2e60dad2af0 100644 --- a/aws-lc-sys/src/x86_64_pc_windows_gnu_crypto.rs +++ b/aws-lc-sys/src/x86_64_pc_windows_gnu_crypto.rs @@ -111,7 +111,7 @@ pub const AWSLC_VERSION_NAME: &[u8; 7] = b"AWS-LC\0"; pub const OPENSSL_VERSION_NUMBER: i32 = 269488255; pub const SSLEAY_VERSION_NUMBER: i32 = 269488255; pub const AWSLC_API_VERSION: i32 = 29; -pub const AWSLC_VERSION_NUMBER_STRING: &[u8; 7] = b"1.33.0\0"; +pub const AWSLC_VERSION_NUMBER_STRING: &[u8; 7] = b"1.34.2\0"; pub const AES_ENCRYPT: i32 = 1; pub const AES_DECRYPT: i32 = 0; pub const AES_MAXNR: i32 = 14; @@ -132,7 +132,7 @@ pub const CRYPTO_LOCK: i32 = 1; pub const CRYPTO_UNLOCK: i32 = 2; pub const CRYPTO_READ: i32 = 4; pub const CRYPTO_WRITE: i32 = 8; -pub const OPENSSL_VERSION_TEXT: &[u8; 42] = b"OpenSSL 1.1.1 (compatible; AWS-LC 1.33.0)\0"; +pub const OPENSSL_VERSION_TEXT: &[u8; 42] = b"OpenSSL 1.1.1 (compatible; AWS-LC 1.34.2)\0"; pub const OPENSSL_VERSION: i32 = 0; pub const OPENSSL_CFLAGS: i32 = 1; pub const OPENSSL_BUILT_ON: i32 = 2; @@ -3283,6 +3283,14 @@ pub const EVP_PKEY_DH: i32 = 28; pub const HKDF_R_OUTPUT_TOO_LARGE: i32 = 100; pub const MD5_CBLOCK: i32 = 64; pub const MD5_DIGEST_LENGTH: i32 = 16; +pub const HMAC_MD5_PRECOMPUTED_KEY_SIZE: i32 = 32; +pub const HMAC_SHA1_PRECOMPUTED_KEY_SIZE: i32 = 40; +pub const HMAC_SHA224_PRECOMPUTED_KEY_SIZE: i32 = 64; +pub const HMAC_SHA256_PRECOMPUTED_KEY_SIZE: i32 = 64; +pub const HMAC_SHA384_PRECOMPUTED_KEY_SIZE: i32 = 128; +pub const HMAC_SHA512_PRECOMPUTED_KEY_SIZE: i32 = 128; +pub const HMAC_SHA512_224_PRECOMPUTED_KEY_SIZE: i32 = 128; +pub const HMAC_SHA512_256_PRECOMPUTED_KEY_SIZE: i32 = 128; pub const HMAC_MAX_PRECOMPUTED_KEY_SIZE: i32 = 128; pub const HMAC_R_MISSING_PARAMETERS: i32 = 100; pub const HMAC_R_BUFFER_TOO_SMALL: i32 = 102; @@ -3501,63 +3509,6 @@ pub const GEN_EDIPARTY: i32 = 5; pub const GEN_URI: i32 = 6; pub const GEN_IPADD: i32 = 7; pub const GEN_RID: i32 = 8; -pub const X509_FLAG_COMPAT: i32 = 0; -pub const X509_FLAG_NO_HEADER: i32 = 1; -pub const X509_FLAG_NO_VERSION: i32 = 2; -pub const X509_FLAG_NO_SERIAL: i32 = 4; -pub const X509_FLAG_NO_SIGNAME: i32 = 8; -pub const X509_FLAG_NO_ISSUER: i32 = 16; -pub const X509_FLAG_NO_VALIDITY: i32 = 32; -pub const X509_FLAG_NO_SUBJECT: i32 = 64; -pub const X509_FLAG_NO_PUBKEY: i32 = 128; -pub const X509_FLAG_NO_EXTENSIONS: i32 = 256; -pub const X509_FLAG_NO_SIGDUMP: i32 = 512; -pub const X509_FLAG_NO_AUX: i32 = 1024; -pub const X509_FLAG_NO_ATTRIBUTES: i32 = 2048; -pub const X509_FLAG_NO_IDS: i32 = 4096; -pub const X509V3_EXT_UNKNOWN_MASK: i32 = 983040; -pub const X509V3_EXT_DEFAULT: i32 = 0; -pub const X509V3_EXT_ERROR_UNKNOWN: i32 = 65536; -pub const X509V3_EXT_PARSE_UNKNOWN: i32 = 131072; -pub const X509V3_EXT_DUMP_UNKNOWN: i32 = 196608; -pub const XN_FLAG_COMPAT: i32 = 0; -pub const XN_FLAG_SEP_MASK: i32 = 983040; -pub const XN_FLAG_SEP_COMMA_PLUS: i32 = 65536; -pub const XN_FLAG_SEP_CPLUS_SPC: i32 = 131072; -pub const XN_FLAG_SEP_SPLUS_SPC: i32 = 196608; -pub const XN_FLAG_SEP_MULTILINE: i32 = 262144; -pub const XN_FLAG_DN_REV: i32 = 1048576; -pub const XN_FLAG_FN_MASK: i32 = 6291456; -pub const XN_FLAG_FN_SN: i32 = 0; -pub const XN_FLAG_FN_LN: i32 = 2097152; -pub const XN_FLAG_FN_OID: i32 = 4194304; -pub const XN_FLAG_FN_NONE: i32 = 6291456; -pub const XN_FLAG_SPC_EQ: i32 = 8388608; -pub const XN_FLAG_DUMP_UNKNOWN_FIELDS: i32 = 16777216; -pub const XN_FLAG_FN_ALIGN: i32 = 33554432; -pub const XN_FLAG_RFC2253: i32 = 17892119; -pub const XN_FLAG_ONELINE: i32 = 8520479; -pub const XN_FLAG_MULTILINE: i32 = 44302342; -pub const X509V3_CTX_TEST: i32 = 1; -pub const X509_TRUST_DEFAULT: i32 = -1; -pub const X509_TRUST_COMPAT: i32 = 1; -pub const X509_TRUST_SSL_CLIENT: i32 = 2; -pub const X509_TRUST_SSL_SERVER: i32 = 3; -pub const X509_TRUST_EMAIL: i32 = 4; -pub const X509_TRUST_OBJECT_SIGN: i32 = 5; -pub const X509_TRUST_TSA: i32 = 8; -pub const X509_TRUST_TRUSTED: i32 = 1; -pub const X509_TRUST_REJECTED: i32 = 2; -pub const X509_TRUST_UNTRUSTED: i32 = 3; -pub const X509_LU_NONE: i32 = 0; -pub const X509_LU_X509: i32 = 1; -pub const X509_LU_CRL: i32 = 2; -pub const X509_LU_PKEY: i32 = 3; -pub const X509_L_FILE_LOAD: i32 = 1; -pub const X509_L_ADD_DIR: i32 = 2; -pub const X509_FILETYPE_PEM: i32 = 1; -pub const X509_FILETYPE_ASN1: i32 = 2; -pub const X509_FILETYPE_DEFAULT: i32 = 3; pub const X509_V_OK: i32 = 0; pub const X509_V_ERR_UNSPECIFIED: i32 = 1; pub const X509_V_ERR_UNABLE_TO_GET_ISSUER_CERT: i32 = 2; @@ -3619,6 +3570,78 @@ pub const X509_V_ERR_IP_ADDRESS_MISMATCH: i32 = 64; pub const X509_V_ERR_INVALID_CALL: i32 = 65; pub const X509_V_ERR_STORE_LOOKUP: i32 = 66; pub const X509_V_ERR_NAME_CONSTRAINTS_WITHOUT_SANS: i32 = 67; +pub const X509_CHECK_FLAG_NO_WILDCARDS: i32 = 2; +pub const X509_CHECK_FLAG_NEVER_CHECK_SUBJECT: i32 = 32; +pub const X509_PURPOSE_SSL_CLIENT: i32 = 1; +pub const X509_PURPOSE_SSL_SERVER: i32 = 2; +pub const X509_PURPOSE_NS_SSL_SERVER: i32 = 3; +pub const X509_PURPOSE_SMIME_SIGN: i32 = 4; +pub const X509_PURPOSE_SMIME_ENCRYPT: i32 = 5; +pub const X509_PURPOSE_CRL_SIGN: i32 = 6; +pub const X509_PURPOSE_ANY: i32 = 7; +pub const X509_PURPOSE_OCSP_HELPER: i32 = 8; +pub const X509_PURPOSE_TIMESTAMP_SIGN: i32 = 9; +pub const X509_TRUST_COMPAT: i32 = 1; +pub const X509_TRUST_SSL_CLIENT: i32 = 2; +pub const X509_TRUST_SSL_SERVER: i32 = 3; +pub const X509_TRUST_EMAIL: i32 = 4; +pub const X509_TRUST_OBJECT_SIGN: i32 = 5; +pub const X509_TRUST_TSA: i32 = 8; +pub const X509_FLAG_COMPAT: i32 = 0; +pub const X509_FLAG_NO_HEADER: i32 = 1; +pub const X509_FLAG_NO_VERSION: i32 = 2; +pub const X509_FLAG_NO_SERIAL: i32 = 4; +pub const X509_FLAG_NO_SIGNAME: i32 = 8; +pub const X509_FLAG_NO_ISSUER: i32 = 16; +pub const X509_FLAG_NO_VALIDITY: i32 = 32; +pub const X509_FLAG_NO_SUBJECT: i32 = 64; +pub const X509_FLAG_NO_PUBKEY: i32 = 128; +pub const X509_FLAG_NO_EXTENSIONS: i32 = 256; +pub const X509_FLAG_NO_SIGDUMP: i32 = 512; +pub const X509_FLAG_NO_AUX: i32 = 1024; +pub const X509_FLAG_NO_ATTRIBUTES: i32 = 2048; +pub const X509_FLAG_NO_IDS: i32 = 4096; +pub const X509V3_EXT_UNKNOWN_MASK: i32 = 983040; +pub const X509V3_EXT_DEFAULT: i32 = 0; +pub const X509V3_EXT_ERROR_UNKNOWN: i32 = 65536; +pub const X509V3_EXT_PARSE_UNKNOWN: i32 = 131072; +pub const X509V3_EXT_DUMP_UNKNOWN: i32 = 196608; +pub const XN_FLAG_COMPAT: i32 = 0; +pub const XN_FLAG_SEP_MASK: i32 = 983040; +pub const XN_FLAG_SEP_COMMA_PLUS: i32 = 65536; +pub const XN_FLAG_SEP_CPLUS_SPC: i32 = 131072; +pub const XN_FLAG_SEP_SPLUS_SPC: i32 = 196608; +pub const XN_FLAG_SEP_MULTILINE: i32 = 262144; +pub const XN_FLAG_DN_REV: i32 = 1048576; +pub const XN_FLAG_FN_MASK: i32 = 6291456; +pub const XN_FLAG_FN_SN: i32 = 0; +pub const XN_FLAG_FN_LN: i32 = 2097152; +pub const XN_FLAG_FN_OID: i32 = 4194304; +pub const XN_FLAG_FN_NONE: i32 = 6291456; +pub const XN_FLAG_SPC_EQ: i32 = 8388608; +pub const XN_FLAG_DUMP_UNKNOWN_FIELDS: i32 = 16777216; +pub const XN_FLAG_FN_ALIGN: i32 = 33554432; +pub const XN_FLAG_RFC2253: i32 = 17892119; +pub const XN_FLAG_ONELINE: i32 = 8520479; +pub const XN_FLAG_MULTILINE: i32 = 44302342; +pub const X509_TRUST_TRUSTED: i32 = 1; +pub const X509_TRUST_REJECTED: i32 = 2; +pub const X509_TRUST_UNTRUSTED: i32 = 3; +pub const X509V3_CTX_TEST: i32 = 1; +pub const X509_CHECK_FLAG_ALWAYS_CHECK_SUBJECT: i32 = 0; +pub const X509_CHECK_FLAG_MULTI_LABEL_WILDCARDS: i32 = 0; +pub const X509_CHECK_FLAG_SINGLE_LABEL_SUBDOMAINS: i32 = 0; +pub const X509_CHECK_FLAG_NO_PARTIAL_WILDCARDS: i32 = 0; +pub const X509_TRUST_DEFAULT: i32 = -1; +pub const X509_LU_NONE: i32 = 0; +pub const X509_LU_X509: i32 = 1; +pub const X509_LU_CRL: i32 = 2; +pub const X509_LU_PKEY: i32 = 3; +pub const X509_L_FILE_LOAD: i32 = 1; +pub const X509_L_ADD_DIR: i32 = 2; +pub const X509_FILETYPE_PEM: i32 = 1; +pub const X509_FILETYPE_ASN1: i32 = 2; +pub const X509_FILETYPE_DEFAULT: i32 = 3; pub const X509_V_FLAG_CB_ISSUER_CHECK: i32 = 1; pub const X509_V_FLAG_USE_CHECK_TIME: i32 = 2; pub const X509_V_FLAG_CRL_CHECK: i32 = 4; @@ -3650,15 +3673,6 @@ pub const NS_SSL_CA: i32 = 4; pub const NS_SMIME_CA: i32 = 2; pub const NS_OBJSIGN_CA: i32 = 1; pub const NS_ANY_CA: i32 = 7; -pub const X509_PURPOSE_SSL_CLIENT: i32 = 1; -pub const X509_PURPOSE_SSL_SERVER: i32 = 2; -pub const X509_PURPOSE_NS_SSL_SERVER: i32 = 3; -pub const X509_PURPOSE_SMIME_SIGN: i32 = 4; -pub const X509_PURPOSE_SMIME_ENCRYPT: i32 = 5; -pub const X509_PURPOSE_CRL_SIGN: i32 = 6; -pub const X509_PURPOSE_ANY: i32 = 7; -pub const X509_PURPOSE_OCSP_HELPER: i32 = 8; -pub const X509_PURPOSE_TIMESTAMP_SIGN: i32 = 9; pub const X509V3_ADD_OP_MASK: i32 = 15; pub const X509V3_ADD_DEFAULT: i32 = 0; pub const X509V3_ADD_APPEND: i32 = 1; @@ -3667,12 +3681,6 @@ pub const X509V3_ADD_REPLACE_EXISTING: i32 = 3; pub const X509V3_ADD_KEEP_EXISTING: i32 = 4; pub const X509V3_ADD_DELETE: i32 = 5; pub const X509V3_ADD_SILENT: i32 = 16; -pub const X509_CHECK_FLAG_NO_WILDCARDS: i32 = 2; -pub const X509_CHECK_FLAG_NEVER_CHECK_SUBJECT: i32 = 32; -pub const X509_CHECK_FLAG_NO_PARTIAL_WILDCARDS: i32 = 0; -pub const X509_CHECK_FLAG_ALWAYS_CHECK_SUBJECT: i32 = 0; -pub const X509_CHECK_FLAG_MULTI_LABEL_WILDCARDS: i32 = 0; -pub const X509_CHECK_FLAG_SINGLE_LABEL_SUBDOMAINS: i32 = 0; pub const X509_R_AKID_MISMATCH: i32 = 100; pub const X509_R_BAD_PKCS7_VERSION: i32 = 101; pub const X509_R_BAD_X509_FILETYPE: i32 = 102; @@ -13027,24 +13035,6 @@ extern "C" { enc: ::std::os::raw::c_int, ); } -extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_DES_decrypt3"] - pub fn DES_decrypt3( - data: *mut u32, - ks1: *const DES_key_schedule, - ks2: *const DES_key_schedule, - ks3: *const DES_key_schedule, - ); -} -extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_DES_encrypt3"] - pub fn DES_encrypt3( - data: *mut u32, - ks1: *const DES_key_schedule, - ks2: *const DES_key_schedule, - ks3: *const DES_key_schedule, - ); -} extern "C" { #[link_name = "\u{1}aws_lc_0_21_0_DH_new"] pub fn DH_new() -> *mut DH; @@ -21049,1751 +21039,1558 @@ extern "C" { idx: ::std::os::raw::c_int, ) -> *mut ASN1_TYPE; } -#[repr(C)] -#[derive(Debug, Copy, Clone, PartialEq, Eq)] -pub struct Netscape_spki_st { - pub spkac: *mut NETSCAPE_SPKAC, - pub sig_algor: *mut X509_ALGOR, - pub signature: *mut ASN1_BIT_STRING, -} -#[test] -fn bindgen_test_layout_Netscape_spki_st() { - const UNINIT: ::std::mem::MaybeUninit = ::std::mem::MaybeUninit::uninit(); - let ptr = UNINIT.as_ptr(); - assert_eq!( - ::std::mem::size_of::(), - 24usize, - concat!("Size of: ", stringify!(Netscape_spki_st)) - ); - assert_eq!( - ::std::mem::align_of::(), - 8usize, - concat!("Alignment of ", stringify!(Netscape_spki_st)) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).spkac) as usize - ptr as usize }, - 0usize, - concat!( - "Offset of field: ", - stringify!(Netscape_spki_st), - "::", - stringify!(spkac) - ) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).sig_algor) as usize - ptr as usize }, - 8usize, - concat!( - "Offset of field: ", - stringify!(Netscape_spki_st), - "::", - stringify!(sig_algor) - ) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).signature) as usize - ptr as usize }, - 16usize, - concat!( - "Offset of field: ", - stringify!(Netscape_spki_st), - "::", - stringify!(signature) - ) - ); +extern "C" { + #[link_name = "\u{1}aws_lc_0_21_0_X509_STORE_new"] + pub fn X509_STORE_new() -> *mut X509_STORE; } -impl Default for Netscape_spki_st { - fn default() -> Self { - let mut s = ::std::mem::MaybeUninit::::uninit(); - unsafe { - ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() - } - } +extern "C" { + #[link_name = "\u{1}aws_lc_0_21_0_X509_STORE_up_ref"] + pub fn X509_STORE_up_ref(store: *mut X509_STORE) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_NETSCAPE_SPKI_it"] - pub static NETSCAPE_SPKI_it: ASN1_ITEM; + #[link_name = "\u{1}aws_lc_0_21_0_X509_STORE_free"] + pub fn X509_STORE_free(store: *mut X509_STORE); } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_NETSCAPE_SPKI_new"] - pub fn NETSCAPE_SPKI_new() -> *mut NETSCAPE_SPKI; + #[link_name = "\u{1}aws_lc_0_21_0_X509_STORE_add_cert"] + pub fn X509_STORE_add_cert(store: *mut X509_STORE, x509: *mut X509) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_NETSCAPE_SPKI_free"] - pub fn NETSCAPE_SPKI_free(spki: *mut NETSCAPE_SPKI); + #[link_name = "\u{1}aws_lc_0_21_0_X509_STORE_add_crl"] + pub fn X509_STORE_add_crl(store: *mut X509_STORE, crl: *mut X509_CRL) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_d2i_NETSCAPE_SPKI"] - pub fn d2i_NETSCAPE_SPKI( - out: *mut *mut NETSCAPE_SPKI, - inp: *mut *const u8, - len: ::std::os::raw::c_long, - ) -> *mut NETSCAPE_SPKI; + #[link_name = "\u{1}aws_lc_0_21_0_X509_STORE_get0_param"] + pub fn X509_STORE_get0_param(store: *mut X509_STORE) -> *mut X509_VERIFY_PARAM; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_i2d_NETSCAPE_SPKI"] - pub fn i2d_NETSCAPE_SPKI( - spki: *const NETSCAPE_SPKI, - outp: *mut *mut u8, + #[link_name = "\u{1}aws_lc_0_21_0_X509_STORE_set1_param"] + pub fn X509_STORE_set1_param( + store: *mut X509_STORE, + param: *const X509_VERIFY_PARAM, ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_NETSCAPE_SPKI_verify"] - pub fn NETSCAPE_SPKI_verify( - spki: *mut NETSCAPE_SPKI, - pkey: *mut EVP_PKEY, + #[link_name = "\u{1}aws_lc_0_21_0_X509_STORE_set_flags"] + pub fn X509_STORE_set_flags( + store: *mut X509_STORE, + flags: ::std::os::raw::c_ulong, ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_NETSCAPE_SPKI_b64_decode"] - pub fn NETSCAPE_SPKI_b64_decode( - str_: *const ::std::os::raw::c_char, - len: ossl_ssize_t, - ) -> *mut NETSCAPE_SPKI; + #[link_name = "\u{1}aws_lc_0_21_0_X509_STORE_set_depth"] + pub fn X509_STORE_set_depth( + store: *mut X509_STORE, + depth: ::std::os::raw::c_int, + ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_NETSCAPE_SPKI_b64_encode"] - pub fn NETSCAPE_SPKI_b64_encode(spki: *mut NETSCAPE_SPKI) -> *mut ::std::os::raw::c_char; + #[link_name = "\u{1}aws_lc_0_21_0_X509_STORE_set_purpose"] + pub fn X509_STORE_set_purpose( + store: *mut X509_STORE, + purpose: ::std::os::raw::c_int, + ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_NETSCAPE_SPKI_get_pubkey"] - pub fn NETSCAPE_SPKI_get_pubkey(spki: *const NETSCAPE_SPKI) -> *mut EVP_PKEY; + #[link_name = "\u{1}aws_lc_0_21_0_X509_STORE_set_trust"] + pub fn X509_STORE_set_trust( + store: *mut X509_STORE, + trust: ::std::os::raw::c_int, + ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_NETSCAPE_SPKI_set_pubkey"] - pub fn NETSCAPE_SPKI_set_pubkey( - spki: *mut NETSCAPE_SPKI, - pkey: *mut EVP_PKEY, - ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_0_21_0_X509_STORE_CTX_new"] + pub fn X509_STORE_CTX_new() -> *mut X509_STORE_CTX; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_NETSCAPE_SPKI_sign"] - pub fn NETSCAPE_SPKI_sign( - spki: *mut NETSCAPE_SPKI, - pkey: *mut EVP_PKEY, - md: *const EVP_MD, + #[link_name = "\u{1}aws_lc_0_21_0_X509_STORE_CTX_free"] + pub fn X509_STORE_CTX_free(ctx: *mut X509_STORE_CTX); +} +extern "C" { + #[link_name = "\u{1}aws_lc_0_21_0_X509_STORE_CTX_init"] + pub fn X509_STORE_CTX_init( + ctx: *mut X509_STORE_CTX, + store: *mut X509_STORE, + x509: *mut X509, + chain: *mut stack_st_X509, ) -> ::std::os::raw::c_int; } -#[repr(C)] -#[derive(Debug, Copy, Clone, PartialEq, Eq)] -pub struct Netscape_spkac_st { - pub pubkey: *mut X509_PUBKEY, - pub challenge: *mut ASN1_IA5STRING, +extern "C" { + #[link_name = "\u{1}aws_lc_0_21_0_X509_verify_cert"] + pub fn X509_verify_cert(ctx: *mut X509_STORE_CTX) -> ::std::os::raw::c_int; } -#[test] -fn bindgen_test_layout_Netscape_spkac_st() { - const UNINIT: ::std::mem::MaybeUninit = ::std::mem::MaybeUninit::uninit(); - let ptr = UNINIT.as_ptr(); - assert_eq!( - ::std::mem::size_of::(), - 16usize, - concat!("Size of: ", stringify!(Netscape_spkac_st)) - ); - assert_eq!( - ::std::mem::align_of::(), - 8usize, - concat!("Alignment of ", stringify!(Netscape_spkac_st)) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).pubkey) as usize - ptr as usize }, - 0usize, - concat!( - "Offset of field: ", - stringify!(Netscape_spkac_st), - "::", - stringify!(pubkey) - ) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).challenge) as usize - ptr as usize }, - 8usize, - concat!( - "Offset of field: ", - stringify!(Netscape_spkac_st), - "::", - stringify!(challenge) - ) - ); +extern "C" { + #[link_name = "\u{1}aws_lc_0_21_0_X509_STORE_CTX_get0_chain"] + pub fn X509_STORE_CTX_get0_chain(ctx: *mut X509_STORE_CTX) -> *mut stack_st_X509; } -impl Default for Netscape_spkac_st { - fn default() -> Self { - let mut s = ::std::mem::MaybeUninit::::uninit(); - unsafe { - ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() - } - } +extern "C" { + #[link_name = "\u{1}aws_lc_0_21_0_X509_STORE_CTX_get1_chain"] + pub fn X509_STORE_CTX_get1_chain(ctx: *mut X509_STORE_CTX) -> *mut stack_st_X509; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_NETSCAPE_SPKAC_it"] - pub static NETSCAPE_SPKAC_it: ASN1_ITEM; + #[link_name = "\u{1}aws_lc_0_21_0_X509_STORE_CTX_set_cert"] + pub fn X509_STORE_CTX_set_cert(c: *mut X509_STORE_CTX, x: *mut X509); } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_NETSCAPE_SPKAC_new"] - pub fn NETSCAPE_SPKAC_new() -> *mut NETSCAPE_SPKAC; + #[link_name = "\u{1}aws_lc_0_21_0_X509_STORE_CTX_get_error"] + pub fn X509_STORE_CTX_get_error(ctx: *mut X509_STORE_CTX) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_NETSCAPE_SPKAC_free"] - pub fn NETSCAPE_SPKAC_free(spkac: *mut NETSCAPE_SPKAC); + #[link_name = "\u{1}aws_lc_0_21_0_X509_STORE_CTX_set_error"] + pub fn X509_STORE_CTX_set_error(ctx: *mut X509_STORE_CTX, err: ::std::os::raw::c_int); } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_d2i_NETSCAPE_SPKAC"] - pub fn d2i_NETSCAPE_SPKAC( - out: *mut *mut NETSCAPE_SPKAC, - inp: *mut *const u8, - len: ::std::os::raw::c_long, - ) -> *mut NETSCAPE_SPKAC; + #[link_name = "\u{1}aws_lc_0_21_0_X509_verify_cert_error_string"] + pub fn X509_verify_cert_error_string( + err: ::std::os::raw::c_long, + ) -> *const ::std::os::raw::c_char; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_i2d_NETSCAPE_SPKAC"] - pub fn i2d_NETSCAPE_SPKAC( - spkac: *const NETSCAPE_SPKAC, - outp: *mut *mut u8, - ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_0_21_0_X509_STORE_CTX_get_error_depth"] + pub fn X509_STORE_CTX_get_error_depth(ctx: *mut X509_STORE_CTX) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_NETSCAPE_SPKI_print"] - pub fn NETSCAPE_SPKI_print(out: *mut BIO, spki: *mut NETSCAPE_SPKI) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_0_21_0_X509_STORE_CTX_get_current_cert"] + pub fn X509_STORE_CTX_get_current_cert(ctx: *mut X509_STORE_CTX) -> *mut X509; } -#[repr(C)] -#[derive(Debug, Copy, Clone, PartialEq, Eq)] -pub struct rsa_pss_params_st { - pub hashAlgorithm: *mut X509_ALGOR, - pub maskGenAlgorithm: *mut X509_ALGOR, - pub saltLength: *mut ASN1_INTEGER, - pub trailerField: *mut ASN1_INTEGER, - pub maskHash: *mut X509_ALGOR, +extern "C" { + #[link_name = "\u{1}aws_lc_0_21_0_X509_STORE_CTX_get0_current_issuer"] + pub fn X509_STORE_CTX_get0_current_issuer(ctx: *mut X509_STORE_CTX) -> *mut X509; } -#[test] -fn bindgen_test_layout_rsa_pss_params_st() { - const UNINIT: ::std::mem::MaybeUninit = ::std::mem::MaybeUninit::uninit(); - let ptr = UNINIT.as_ptr(); - assert_eq!( - ::std::mem::size_of::(), - 40usize, - concat!("Size of: ", stringify!(rsa_pss_params_st)) - ); - assert_eq!( - ::std::mem::align_of::(), - 8usize, - concat!("Alignment of ", stringify!(rsa_pss_params_st)) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).hashAlgorithm) as usize - ptr as usize }, - 0usize, - concat!( - "Offset of field: ", - stringify!(rsa_pss_params_st), - "::", - stringify!(hashAlgorithm) - ) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).maskGenAlgorithm) as usize - ptr as usize }, - 8usize, - concat!( - "Offset of field: ", - stringify!(rsa_pss_params_st), - "::", - stringify!(maskGenAlgorithm) - ) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).saltLength) as usize - ptr as usize }, - 16usize, - concat!( - "Offset of field: ", - stringify!(rsa_pss_params_st), - "::", - stringify!(saltLength) - ) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).trailerField) as usize - ptr as usize }, - 24usize, - concat!( - "Offset of field: ", - stringify!(rsa_pss_params_st), - "::", - stringify!(trailerField) - ) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).maskHash) as usize - ptr as usize }, - 32usize, - concat!( - "Offset of field: ", - stringify!(rsa_pss_params_st), - "::", - stringify!(maskHash) - ) - ); +extern "C" { + #[link_name = "\u{1}aws_lc_0_21_0_X509_STORE_CTX_get0_current_crl"] + pub fn X509_STORE_CTX_get0_current_crl(ctx: *mut X509_STORE_CTX) -> *mut X509_CRL; } -impl Default for rsa_pss_params_st { - fn default() -> Self { - let mut s = ::std::mem::MaybeUninit::::uninit(); - unsafe { - ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() - } - } +extern "C" { + #[link_name = "\u{1}aws_lc_0_21_0_X509_STORE_CTX_get0_store"] + pub fn X509_STORE_CTX_get0_store(ctx: *mut X509_STORE_CTX) -> *mut X509_STORE; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_RSA_PSS_PARAMS_it"] - pub static RSA_PSS_PARAMS_it: ASN1_ITEM; + #[link_name = "\u{1}aws_lc_0_21_0_X509_STORE_CTX_get0_cert"] + pub fn X509_STORE_CTX_get0_cert(ctx: *mut X509_STORE_CTX) -> *mut X509; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_RSA_PSS_PARAMS_new"] - pub fn RSA_PSS_PARAMS_new() -> *mut RSA_PSS_PARAMS; + #[link_name = "\u{1}aws_lc_0_21_0_X509_STORE_CTX_get0_untrusted"] + pub fn X509_STORE_CTX_get0_untrusted(ctx: *mut X509_STORE_CTX) -> *mut stack_st_X509; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_RSA_PSS_PARAMS_free"] - pub fn RSA_PSS_PARAMS_free(params: *mut RSA_PSS_PARAMS); + #[link_name = "\u{1}aws_lc_0_21_0_X509_STORE_CTX_set0_trusted_stack"] + pub fn X509_STORE_CTX_set0_trusted_stack(ctx: *mut X509_STORE_CTX, sk: *mut stack_st_X509); } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_d2i_RSA_PSS_PARAMS"] - pub fn d2i_RSA_PSS_PARAMS( - out: *mut *mut RSA_PSS_PARAMS, - inp: *mut *const u8, - len: ::std::os::raw::c_long, - ) -> *mut RSA_PSS_PARAMS; + #[link_name = "\u{1}aws_lc_0_21_0_X509_STORE_CTX_set0_crls"] + pub fn X509_STORE_CTX_set0_crls(ctx: *mut X509_STORE_CTX, sk: *mut stack_st_X509_CRL); } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_i2d_RSA_PSS_PARAMS"] - pub fn i2d_RSA_PSS_PARAMS( - in_: *const RSA_PSS_PARAMS, - outp: *mut *mut u8, + #[link_name = "\u{1}aws_lc_0_21_0_X509_STORE_CTX_set_default"] + pub fn X509_STORE_CTX_set_default( + ctx: *mut X509_STORE_CTX, + name: *const ::std::os::raw::c_char, ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_PKCS8_PRIV_KEY_INFO_it"] - pub static PKCS8_PRIV_KEY_INFO_it: ASN1_ITEM; + #[link_name = "\u{1}aws_lc_0_21_0_X509_STORE_CTX_get0_param"] + pub fn X509_STORE_CTX_get0_param(ctx: *mut X509_STORE_CTX) -> *mut X509_VERIFY_PARAM; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_PKCS8_PRIV_KEY_INFO_new"] - pub fn PKCS8_PRIV_KEY_INFO_new() -> *mut PKCS8_PRIV_KEY_INFO; -} -extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_PKCS8_PRIV_KEY_INFO_free"] - pub fn PKCS8_PRIV_KEY_INFO_free(key: *mut PKCS8_PRIV_KEY_INFO); -} -extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_d2i_PKCS8_PRIV_KEY_INFO"] - pub fn d2i_PKCS8_PRIV_KEY_INFO( - out: *mut *mut PKCS8_PRIV_KEY_INFO, - inp: *mut *const u8, - len: ::std::os::raw::c_long, - ) -> *mut PKCS8_PRIV_KEY_INFO; -} -extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_i2d_PKCS8_PRIV_KEY_INFO"] - pub fn i2d_PKCS8_PRIV_KEY_INFO( - key: *const PKCS8_PRIV_KEY_INFO, - outp: *mut *mut u8, - ) -> ::std::os::raw::c_int; -} -extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_EVP_PKCS82PKEY"] - pub fn EVP_PKCS82PKEY(p8: *const PKCS8_PRIV_KEY_INFO) -> *mut EVP_PKEY; + #[link_name = "\u{1}aws_lc_0_21_0_X509_STORE_CTX_set0_param"] + pub fn X509_STORE_CTX_set0_param(ctx: *mut X509_STORE_CTX, param: *mut X509_VERIFY_PARAM); } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_EVP_PKEY2PKCS8"] - pub fn EVP_PKEY2PKCS8(pkey: *const EVP_PKEY) -> *mut PKCS8_PRIV_KEY_INFO; + #[link_name = "\u{1}aws_lc_0_21_0_X509_STORE_CTX_set_flags"] + pub fn X509_STORE_CTX_set_flags(ctx: *mut X509_STORE_CTX, flags: ::std::os::raw::c_ulong); } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_X509_SIG_it"] - pub static X509_SIG_it: ASN1_ITEM; + #[link_name = "\u{1}aws_lc_0_21_0_X509_STORE_CTX_set_time"] + pub fn X509_STORE_CTX_set_time( + ctx: *mut X509_STORE_CTX, + flags: ::std::os::raw::c_ulong, + t: time_t, + ); } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_X509_SIG_new"] - pub fn X509_SIG_new() -> *mut X509_SIG; + #[link_name = "\u{1}aws_lc_0_21_0_X509_STORE_CTX_set_time_posix"] + pub fn X509_STORE_CTX_set_time_posix( + ctx: *mut X509_STORE_CTX, + flags: ::std::os::raw::c_ulong, + t: i64, + ); } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_X509_SIG_free"] - pub fn X509_SIG_free(key: *mut X509_SIG); + #[link_name = "\u{1}aws_lc_0_21_0_X509_STORE_CTX_set_depth"] + pub fn X509_STORE_CTX_set_depth(ctx: *mut X509_STORE_CTX, depth: ::std::os::raw::c_int); } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_d2i_X509_SIG"] - pub fn d2i_X509_SIG( - out: *mut *mut X509_SIG, - inp: *mut *const u8, - len: ::std::os::raw::c_long, - ) -> *mut X509_SIG; + #[link_name = "\u{1}aws_lc_0_21_0_X509_STORE_CTX_set_purpose"] + pub fn X509_STORE_CTX_set_purpose( + ctx: *mut X509_STORE_CTX, + purpose: ::std::os::raw::c_int, + ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_i2d_X509_SIG"] - pub fn i2d_X509_SIG(sig: *const X509_SIG, outp: *mut *mut u8) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_0_21_0_X509_STORE_CTX_set_trust"] + pub fn X509_STORE_CTX_set_trust( + ctx: *mut X509_STORE_CTX, + trust: ::std::os::raw::c_int, + ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_X509_SIG_get0"] - pub fn X509_SIG_get0( - sig: *const X509_SIG, - out_alg: *mut *const X509_ALGOR, - out_digest: *mut *const ASN1_OCTET_STRING, - ); + #[link_name = "\u{1}aws_lc_0_21_0_X509_VERIFY_PARAM_new"] + pub fn X509_VERIFY_PARAM_new() -> *mut X509_VERIFY_PARAM; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_X509_SIG_getm"] - pub fn X509_SIG_getm( - sig: *mut X509_SIG, - out_alg: *mut *mut X509_ALGOR, - out_digest: *mut *mut ASN1_OCTET_STRING, - ); + #[link_name = "\u{1}aws_lc_0_21_0_X509_VERIFY_PARAM_free"] + pub fn X509_VERIFY_PARAM_free(param: *mut X509_VERIFY_PARAM); } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_X509_print_ex"] - pub fn X509_print_ex( - bp: *mut BIO, - x: *mut X509, - nmflag: ::std::os::raw::c_ulong, - cflag: ::std::os::raw::c_ulong, + #[link_name = "\u{1}aws_lc_0_21_0_X509_VERIFY_PARAM_inherit"] + pub fn X509_VERIFY_PARAM_inherit( + to: *mut X509_VERIFY_PARAM, + from: *const X509_VERIFY_PARAM, ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_X509_print_ex_fp"] - pub fn X509_print_ex_fp( - fp: *mut FILE, - x: *mut X509, - nmflag: ::std::os::raw::c_ulong, - cflag: ::std::os::raw::c_ulong, + #[link_name = "\u{1}aws_lc_0_21_0_X509_VERIFY_PARAM_set1"] + pub fn X509_VERIFY_PARAM_set1( + to: *mut X509_VERIFY_PARAM, + from: *const X509_VERIFY_PARAM, ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_X509_print"] - pub fn X509_print(bp: *mut BIO, x: *mut X509) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_0_21_0_X509_VERIFY_PARAM_set_flags"] + pub fn X509_VERIFY_PARAM_set_flags( + param: *mut X509_VERIFY_PARAM, + flags: ::std::os::raw::c_ulong, + ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_X509_print_fp"] - pub fn X509_print_fp(fp: *mut FILE, x: *mut X509) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_0_21_0_X509_VERIFY_PARAM_clear_flags"] + pub fn X509_VERIFY_PARAM_clear_flags( + param: *mut X509_VERIFY_PARAM, + flags: ::std::os::raw::c_ulong, + ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_X509_CRL_print"] - pub fn X509_CRL_print(bp: *mut BIO, x: *mut X509_CRL) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_0_21_0_X509_VERIFY_PARAM_get_flags"] + pub fn X509_VERIFY_PARAM_get_flags(param: *const X509_VERIFY_PARAM) -> ::std::os::raw::c_ulong; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_X509_CRL_print_fp"] - pub fn X509_CRL_print_fp(fp: *mut FILE, x: *mut X509_CRL) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_0_21_0_X509_VERIFY_PARAM_set_depth"] + pub fn X509_VERIFY_PARAM_set_depth(param: *mut X509_VERIFY_PARAM, depth: ::std::os::raw::c_int); } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_X509_REQ_print_ex"] - pub fn X509_REQ_print_ex( - bp: *mut BIO, - x: *mut X509_REQ, - nmflag: ::std::os::raw::c_ulong, - cflag: ::std::os::raw::c_ulong, - ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_0_21_0_X509_VERIFY_PARAM_get_depth"] + pub fn X509_VERIFY_PARAM_get_depth(param: *const X509_VERIFY_PARAM) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_X509_REQ_print"] - pub fn X509_REQ_print(bp: *mut BIO, req: *mut X509_REQ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_0_21_0_X509_VERIFY_PARAM_set_time"] + pub fn X509_VERIFY_PARAM_set_time(param: *mut X509_VERIFY_PARAM, t: time_t); } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_X509_REQ_print_fp"] - pub fn X509_REQ_print_fp(fp: *mut FILE, req: *mut X509_REQ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_0_21_0_X509_VERIFY_PARAM_set_time_posix"] + pub fn X509_VERIFY_PARAM_set_time_posix(param: *mut X509_VERIFY_PARAM, t: i64); } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_X509_NAME_print_ex"] - pub fn X509_NAME_print_ex( - out: *mut BIO, - nm: *const X509_NAME, - indent: ::std::os::raw::c_int, - flags: ::std::os::raw::c_ulong, + #[link_name = "\u{1}aws_lc_0_21_0_X509_VERIFY_PARAM_add0_policy"] + pub fn X509_VERIFY_PARAM_add0_policy( + param: *mut X509_VERIFY_PARAM, + policy: *mut ASN1_OBJECT, ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_X509_NAME_print"] - pub fn X509_NAME_print( - bp: *mut BIO, - name: *const X509_NAME, - obase: ::std::os::raw::c_int, + #[link_name = "\u{1}aws_lc_0_21_0_X509_VERIFY_PARAM_set1_policies"] + pub fn X509_VERIFY_PARAM_set1_policies( + param: *mut X509_VERIFY_PARAM, + policies: *const stack_st_ASN1_OBJECT, ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_X509_NAME_oneline"] - pub fn X509_NAME_oneline( - name: *const X509_NAME, - buf: *mut ::std::os::raw::c_char, - size: ::std::os::raw::c_int, - ) -> *mut ::std::os::raw::c_char; -} -extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_X509_NAME_print_ex_fp"] - pub fn X509_NAME_print_ex_fp( - fp: *mut FILE, - nm: *const X509_NAME, - indent: ::std::os::raw::c_int, - flags: ::std::os::raw::c_ulong, + #[link_name = "\u{1}aws_lc_0_21_0_X509_VERIFY_PARAM_set1_host"] + pub fn X509_VERIFY_PARAM_set1_host( + param: *mut X509_VERIFY_PARAM, + name: *const ::std::os::raw::c_char, + name_len: usize, ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_X509_signature_dump"] - pub fn X509_signature_dump( - bio: *mut BIO, - sig: *const ASN1_STRING, - indent: ::std::os::raw::c_int, + #[link_name = "\u{1}aws_lc_0_21_0_X509_VERIFY_PARAM_add1_host"] + pub fn X509_VERIFY_PARAM_add1_host( + param: *mut X509_VERIFY_PARAM, + name: *const ::std::os::raw::c_char, + name_len: usize, ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_X509_signature_print"] - pub fn X509_signature_print( - bio: *mut BIO, - alg: *const X509_ALGOR, - sig: *const ASN1_STRING, - ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_0_21_0_X509_VERIFY_PARAM_set_hostflags"] + pub fn X509_VERIFY_PARAM_set_hostflags( + param: *mut X509_VERIFY_PARAM, + flags: ::std::os::raw::c_uint, + ); } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_X509V3_EXT_print"] - pub fn X509V3_EXT_print( - out: *mut BIO, - ext: *const X509_EXTENSION, - flag: ::std::os::raw::c_ulong, - indent: ::std::os::raw::c_int, + #[link_name = "\u{1}aws_lc_0_21_0_X509_VERIFY_PARAM_set1_email"] + pub fn X509_VERIFY_PARAM_set1_email( + param: *mut X509_VERIFY_PARAM, + email: *const ::std::os::raw::c_char, + email_len: usize, ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_X509V3_EXT_print_fp"] - pub fn X509V3_EXT_print_fp( - out: *mut FILE, - ext: *const X509_EXTENSION, - flag: ::std::os::raw::c_int, - indent: ::std::os::raw::c_int, + #[link_name = "\u{1}aws_lc_0_21_0_X509_VERIFY_PARAM_set1_ip"] + pub fn X509_VERIFY_PARAM_set1_ip( + param: *mut X509_VERIFY_PARAM, + ip: *const u8, + ip_len: usize, ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_X509V3_extensions_print"] - pub fn X509V3_extensions_print( - out: *mut BIO, - title: *const ::std::os::raw::c_char, - exts: *const stack_st_X509_EXTENSION, - flag: ::std::os::raw::c_ulong, - indent: ::std::os::raw::c_int, + #[link_name = "\u{1}aws_lc_0_21_0_X509_VERIFY_PARAM_set1_ip_asc"] + pub fn X509_VERIFY_PARAM_set1_ip_asc( + param: *mut X509_VERIFY_PARAM, + ipasc: *const ::std::os::raw::c_char, ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_GENERAL_NAME_print"] - pub fn GENERAL_NAME_print(out: *mut BIO, gen: *const GENERAL_NAME) -> ::std::os::raw::c_int; -} -extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_X509_pubkey_digest"] - pub fn X509_pubkey_digest( - x509: *const X509, - md: *const EVP_MD, - out: *mut u8, - out_len: *mut ::std::os::raw::c_uint, + #[link_name = "\u{1}aws_lc_0_21_0_X509_VERIFY_PARAM_set_purpose"] + pub fn X509_VERIFY_PARAM_set_purpose( + param: *mut X509_VERIFY_PARAM, + purpose: ::std::os::raw::c_int, ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_X509_digest"] - pub fn X509_digest( - x509: *const X509, - md: *const EVP_MD, - out: *mut u8, - out_len: *mut ::std::os::raw::c_uint, + #[link_name = "\u{1}aws_lc_0_21_0_X509_VERIFY_PARAM_set_trust"] + pub fn X509_VERIFY_PARAM_set_trust( + param: *mut X509_VERIFY_PARAM, + trust: ::std::os::raw::c_int, ) -> ::std::os::raw::c_int; } -extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_X509_CRL_digest"] - pub fn X509_CRL_digest( - crl: *const X509_CRL, - md: *const EVP_MD, - out: *mut u8, - out_len: *mut ::std::os::raw::c_uint, - ) -> ::std::os::raw::c_int; -} -extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_X509_REQ_digest"] - pub fn X509_REQ_digest( - req: *const X509_REQ, - md: *const EVP_MD, - out: *mut u8, - out_len: *mut ::std::os::raw::c_uint, - ) -> ::std::os::raw::c_int; -} -extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_X509_NAME_digest"] - pub fn X509_NAME_digest( - name: *const X509_NAME, - md: *const EVP_MD, - out: *mut u8, - out_len: *mut ::std::os::raw::c_uint, - ) -> ::std::os::raw::c_int; +#[repr(C)] +#[derive(Debug, Copy, Clone, PartialEq, Eq)] +pub struct Netscape_spki_st { + pub spkac: *mut NETSCAPE_SPKAC, + pub sig_algor: *mut X509_ALGOR, + pub signature: *mut ASN1_BIT_STRING, } -extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_d2i_X509_bio"] - pub fn d2i_X509_bio(bp: *mut BIO, x509: *mut *mut X509) -> *mut X509; +#[test] +fn bindgen_test_layout_Netscape_spki_st() { + const UNINIT: ::std::mem::MaybeUninit = ::std::mem::MaybeUninit::uninit(); + let ptr = UNINIT.as_ptr(); + assert_eq!( + ::std::mem::size_of::(), + 24usize, + concat!("Size of: ", stringify!(Netscape_spki_st)) + ); + assert_eq!( + ::std::mem::align_of::(), + 8usize, + concat!("Alignment of ", stringify!(Netscape_spki_st)) + ); + assert_eq!( + unsafe { ::std::ptr::addr_of!((*ptr).spkac) as usize - ptr as usize }, + 0usize, + concat!( + "Offset of field: ", + stringify!(Netscape_spki_st), + "::", + stringify!(spkac) + ) + ); + assert_eq!( + unsafe { ::std::ptr::addr_of!((*ptr).sig_algor) as usize - ptr as usize }, + 8usize, + concat!( + "Offset of field: ", + stringify!(Netscape_spki_st), + "::", + stringify!(sig_algor) + ) + ); + assert_eq!( + unsafe { ::std::ptr::addr_of!((*ptr).signature) as usize - ptr as usize }, + 16usize, + concat!( + "Offset of field: ", + stringify!(Netscape_spki_st), + "::", + stringify!(signature) + ) + ); } -extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_d2i_X509_CRL_bio"] - pub fn d2i_X509_CRL_bio(bp: *mut BIO, crl: *mut *mut X509_CRL) -> *mut X509_CRL; +impl Default for Netscape_spki_st { + fn default() -> Self { + let mut s = ::std::mem::MaybeUninit::::uninit(); + unsafe { + ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); + s.assume_init() + } + } } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_d2i_X509_REQ_bio"] - pub fn d2i_X509_REQ_bio(bp: *mut BIO, req: *mut *mut X509_REQ) -> *mut X509_REQ; + #[link_name = "\u{1}aws_lc_0_21_0_NETSCAPE_SPKI_it"] + pub static NETSCAPE_SPKI_it: ASN1_ITEM; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_d2i_RSAPrivateKey_bio"] - pub fn d2i_RSAPrivateKey_bio(bp: *mut BIO, rsa: *mut *mut RSA) -> *mut RSA; + #[link_name = "\u{1}aws_lc_0_21_0_NETSCAPE_SPKI_new"] + pub fn NETSCAPE_SPKI_new() -> *mut NETSCAPE_SPKI; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_d2i_RSAPublicKey_bio"] - pub fn d2i_RSAPublicKey_bio(bp: *mut BIO, rsa: *mut *mut RSA) -> *mut RSA; + #[link_name = "\u{1}aws_lc_0_21_0_NETSCAPE_SPKI_free"] + pub fn NETSCAPE_SPKI_free(spki: *mut NETSCAPE_SPKI); } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_d2i_RSA_PUBKEY_bio"] - pub fn d2i_RSA_PUBKEY_bio(bp: *mut BIO, rsa: *mut *mut RSA) -> *mut RSA; + #[link_name = "\u{1}aws_lc_0_21_0_d2i_NETSCAPE_SPKI"] + pub fn d2i_NETSCAPE_SPKI( + out: *mut *mut NETSCAPE_SPKI, + inp: *mut *const u8, + len: ::std::os::raw::c_long, + ) -> *mut NETSCAPE_SPKI; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_d2i_DSA_PUBKEY_bio"] - pub fn d2i_DSA_PUBKEY_bio(bp: *mut BIO, dsa: *mut *mut DSA) -> *mut DSA; + #[link_name = "\u{1}aws_lc_0_21_0_i2d_NETSCAPE_SPKI"] + pub fn i2d_NETSCAPE_SPKI( + spki: *const NETSCAPE_SPKI, + outp: *mut *mut u8, + ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_d2i_DSAPrivateKey_bio"] - pub fn d2i_DSAPrivateKey_bio(bp: *mut BIO, dsa: *mut *mut DSA) -> *mut DSA; + #[link_name = "\u{1}aws_lc_0_21_0_NETSCAPE_SPKI_verify"] + pub fn NETSCAPE_SPKI_verify( + spki: *mut NETSCAPE_SPKI, + pkey: *mut EVP_PKEY, + ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_d2i_EC_PUBKEY_bio"] - pub fn d2i_EC_PUBKEY_bio(bp: *mut BIO, eckey: *mut *mut EC_KEY) -> *mut EC_KEY; + #[link_name = "\u{1}aws_lc_0_21_0_NETSCAPE_SPKI_b64_decode"] + pub fn NETSCAPE_SPKI_b64_decode( + str_: *const ::std::os::raw::c_char, + len: ossl_ssize_t, + ) -> *mut NETSCAPE_SPKI; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_d2i_ECPrivateKey_bio"] - pub fn d2i_ECPrivateKey_bio(bp: *mut BIO, eckey: *mut *mut EC_KEY) -> *mut EC_KEY; + #[link_name = "\u{1}aws_lc_0_21_0_NETSCAPE_SPKI_b64_encode"] + pub fn NETSCAPE_SPKI_b64_encode(spki: *mut NETSCAPE_SPKI) -> *mut ::std::os::raw::c_char; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_d2i_PKCS8_bio"] - pub fn d2i_PKCS8_bio(bp: *mut BIO, p8: *mut *mut X509_SIG) -> *mut X509_SIG; + #[link_name = "\u{1}aws_lc_0_21_0_NETSCAPE_SPKI_get_pubkey"] + pub fn NETSCAPE_SPKI_get_pubkey(spki: *const NETSCAPE_SPKI) -> *mut EVP_PKEY; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_d2i_PKCS8_PRIV_KEY_INFO_bio"] - pub fn d2i_PKCS8_PRIV_KEY_INFO_bio( - bp: *mut BIO, - p8inf: *mut *mut PKCS8_PRIV_KEY_INFO, - ) -> *mut PKCS8_PRIV_KEY_INFO; + #[link_name = "\u{1}aws_lc_0_21_0_NETSCAPE_SPKI_set_pubkey"] + pub fn NETSCAPE_SPKI_set_pubkey( + spki: *mut NETSCAPE_SPKI, + pkey: *mut EVP_PKEY, + ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_d2i_PUBKEY_bio"] - pub fn d2i_PUBKEY_bio(bp: *mut BIO, a: *mut *mut EVP_PKEY) -> *mut EVP_PKEY; + #[link_name = "\u{1}aws_lc_0_21_0_NETSCAPE_SPKI_sign"] + pub fn NETSCAPE_SPKI_sign( + spki: *mut NETSCAPE_SPKI, + pkey: *mut EVP_PKEY, + md: *const EVP_MD, + ) -> ::std::os::raw::c_int; } -extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_d2i_DHparams_bio"] - pub fn d2i_DHparams_bio(bp: *mut BIO, dh: *mut *mut DH) -> *mut DH; +#[repr(C)] +#[derive(Debug, Copy, Clone, PartialEq, Eq)] +pub struct Netscape_spkac_st { + pub pubkey: *mut X509_PUBKEY, + pub challenge: *mut ASN1_IA5STRING, } -extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_d2i_PrivateKey_bio"] - pub fn d2i_PrivateKey_bio(bp: *mut BIO, a: *mut *mut EVP_PKEY) -> *mut EVP_PKEY; +#[test] +fn bindgen_test_layout_Netscape_spkac_st() { + const UNINIT: ::std::mem::MaybeUninit = ::std::mem::MaybeUninit::uninit(); + let ptr = UNINIT.as_ptr(); + assert_eq!( + ::std::mem::size_of::(), + 16usize, + concat!("Size of: ", stringify!(Netscape_spkac_st)) + ); + assert_eq!( + ::std::mem::align_of::(), + 8usize, + concat!("Alignment of ", stringify!(Netscape_spkac_st)) + ); + assert_eq!( + unsafe { ::std::ptr::addr_of!((*ptr).pubkey) as usize - ptr as usize }, + 0usize, + concat!( + "Offset of field: ", + stringify!(Netscape_spkac_st), + "::", + stringify!(pubkey) + ) + ); + assert_eq!( + unsafe { ::std::ptr::addr_of!((*ptr).challenge) as usize - ptr as usize }, + 8usize, + concat!( + "Offset of field: ", + stringify!(Netscape_spkac_st), + "::", + stringify!(challenge) + ) + ); } -extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_i2d_X509_bio"] - pub fn i2d_X509_bio(bp: *mut BIO, x509: *mut X509) -> ::std::os::raw::c_int; +impl Default for Netscape_spkac_st { + fn default() -> Self { + let mut s = ::std::mem::MaybeUninit::::uninit(); + unsafe { + ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); + s.assume_init() + } + } } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_i2d_X509_CRL_bio"] - pub fn i2d_X509_CRL_bio(bp: *mut BIO, crl: *mut X509_CRL) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_0_21_0_NETSCAPE_SPKAC_it"] + pub static NETSCAPE_SPKAC_it: ASN1_ITEM; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_i2d_X509_REQ_bio"] - pub fn i2d_X509_REQ_bio(bp: *mut BIO, req: *mut X509_REQ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_0_21_0_NETSCAPE_SPKAC_new"] + pub fn NETSCAPE_SPKAC_new() -> *mut NETSCAPE_SPKAC; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_i2d_RSAPrivateKey_bio"] - pub fn i2d_RSAPrivateKey_bio(bp: *mut BIO, rsa: *mut RSA) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_0_21_0_NETSCAPE_SPKAC_free"] + pub fn NETSCAPE_SPKAC_free(spkac: *mut NETSCAPE_SPKAC); } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_i2d_RSAPublicKey_bio"] - pub fn i2d_RSAPublicKey_bio(bp: *mut BIO, rsa: *mut RSA) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_0_21_0_d2i_NETSCAPE_SPKAC"] + pub fn d2i_NETSCAPE_SPKAC( + out: *mut *mut NETSCAPE_SPKAC, + inp: *mut *const u8, + len: ::std::os::raw::c_long, + ) -> *mut NETSCAPE_SPKAC; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_i2d_RSA_PUBKEY_bio"] - pub fn i2d_RSA_PUBKEY_bio(bp: *mut BIO, rsa: *mut RSA) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_0_21_0_i2d_NETSCAPE_SPKAC"] + pub fn i2d_NETSCAPE_SPKAC( + spkac: *const NETSCAPE_SPKAC, + outp: *mut *mut u8, + ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_i2d_DSA_PUBKEY_bio"] - pub fn i2d_DSA_PUBKEY_bio(bp: *mut BIO, dsa: *mut DSA) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_0_21_0_NETSCAPE_SPKI_print"] + pub fn NETSCAPE_SPKI_print(out: *mut BIO, spki: *mut NETSCAPE_SPKI) -> ::std::os::raw::c_int; } -extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_i2d_DSAPrivateKey_bio"] - pub fn i2d_DSAPrivateKey_bio(bp: *mut BIO, dsa: *mut DSA) -> ::std::os::raw::c_int; +#[repr(C)] +#[derive(Debug, Copy, Clone, PartialEq, Eq)] +pub struct rsa_pss_params_st { + pub hashAlgorithm: *mut X509_ALGOR, + pub maskGenAlgorithm: *mut X509_ALGOR, + pub saltLength: *mut ASN1_INTEGER, + pub trailerField: *mut ASN1_INTEGER, + pub maskHash: *mut X509_ALGOR, } -extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_i2d_EC_PUBKEY_bio"] - pub fn i2d_EC_PUBKEY_bio(bp: *mut BIO, eckey: *mut EC_KEY) -> ::std::os::raw::c_int; -} -extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_i2d_ECPrivateKey_bio"] - pub fn i2d_ECPrivateKey_bio(bp: *mut BIO, eckey: *mut EC_KEY) -> ::std::os::raw::c_int; +#[test] +fn bindgen_test_layout_rsa_pss_params_st() { + const UNINIT: ::std::mem::MaybeUninit = ::std::mem::MaybeUninit::uninit(); + let ptr = UNINIT.as_ptr(); + assert_eq!( + ::std::mem::size_of::(), + 40usize, + concat!("Size of: ", stringify!(rsa_pss_params_st)) + ); + assert_eq!( + ::std::mem::align_of::(), + 8usize, + concat!("Alignment of ", stringify!(rsa_pss_params_st)) + ); + assert_eq!( + unsafe { ::std::ptr::addr_of!((*ptr).hashAlgorithm) as usize - ptr as usize }, + 0usize, + concat!( + "Offset of field: ", + stringify!(rsa_pss_params_st), + "::", + stringify!(hashAlgorithm) + ) + ); + assert_eq!( + unsafe { ::std::ptr::addr_of!((*ptr).maskGenAlgorithm) as usize - ptr as usize }, + 8usize, + concat!( + "Offset of field: ", + stringify!(rsa_pss_params_st), + "::", + stringify!(maskGenAlgorithm) + ) + ); + assert_eq!( + unsafe { ::std::ptr::addr_of!((*ptr).saltLength) as usize - ptr as usize }, + 16usize, + concat!( + "Offset of field: ", + stringify!(rsa_pss_params_st), + "::", + stringify!(saltLength) + ) + ); + assert_eq!( + unsafe { ::std::ptr::addr_of!((*ptr).trailerField) as usize - ptr as usize }, + 24usize, + concat!( + "Offset of field: ", + stringify!(rsa_pss_params_st), + "::", + stringify!(trailerField) + ) + ); + assert_eq!( + unsafe { ::std::ptr::addr_of!((*ptr).maskHash) as usize - ptr as usize }, + 32usize, + concat!( + "Offset of field: ", + stringify!(rsa_pss_params_st), + "::", + stringify!(maskHash) + ) + ); } -extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_i2d_PKCS8_bio"] - pub fn i2d_PKCS8_bio(bp: *mut BIO, p8: *mut X509_SIG) -> ::std::os::raw::c_int; +impl Default for rsa_pss_params_st { + fn default() -> Self { + let mut s = ::std::mem::MaybeUninit::::uninit(); + unsafe { + ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); + s.assume_init() + } + } } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_i2d_PKCS8_PRIV_KEY_INFO_bio"] - pub fn i2d_PKCS8_PRIV_KEY_INFO_bio( - bp: *mut BIO, - p8inf: *mut PKCS8_PRIV_KEY_INFO, - ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_0_21_0_RSA_PSS_PARAMS_it"] + pub static RSA_PSS_PARAMS_it: ASN1_ITEM; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_i2d_PrivateKey_bio"] - pub fn i2d_PrivateKey_bio(bp: *mut BIO, pkey: *mut EVP_PKEY) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_0_21_0_RSA_PSS_PARAMS_new"] + pub fn RSA_PSS_PARAMS_new() -> *mut RSA_PSS_PARAMS; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_i2d_PUBKEY_bio"] - pub fn i2d_PUBKEY_bio(bp: *mut BIO, pkey: *mut EVP_PKEY) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_0_21_0_RSA_PSS_PARAMS_free"] + pub fn RSA_PSS_PARAMS_free(params: *mut RSA_PSS_PARAMS); } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_i2d_DHparams_bio"] - pub fn i2d_DHparams_bio(bp: *mut BIO, dh: *const DH) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_0_21_0_d2i_RSA_PSS_PARAMS"] + pub fn d2i_RSA_PSS_PARAMS( + out: *mut *mut RSA_PSS_PARAMS, + inp: *mut *const u8, + len: ::std::os::raw::c_long, + ) -> *mut RSA_PSS_PARAMS; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_i2d_PKCS8PrivateKeyInfo_bio"] - pub fn i2d_PKCS8PrivateKeyInfo_bio(bp: *mut BIO, key: *mut EVP_PKEY) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_0_21_0_i2d_RSA_PSS_PARAMS"] + pub fn i2d_RSA_PSS_PARAMS( + in_: *const RSA_PSS_PARAMS, + outp: *mut *mut u8, + ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_d2i_X509_fp"] - pub fn d2i_X509_fp(fp: *mut FILE, x509: *mut *mut X509) -> *mut X509; + #[link_name = "\u{1}aws_lc_0_21_0_PKCS8_PRIV_KEY_INFO_it"] + pub static PKCS8_PRIV_KEY_INFO_it: ASN1_ITEM; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_d2i_X509_CRL_fp"] - pub fn d2i_X509_CRL_fp(fp: *mut FILE, crl: *mut *mut X509_CRL) -> *mut X509_CRL; + #[link_name = "\u{1}aws_lc_0_21_0_PKCS8_PRIV_KEY_INFO_new"] + pub fn PKCS8_PRIV_KEY_INFO_new() -> *mut PKCS8_PRIV_KEY_INFO; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_d2i_X509_REQ_fp"] - pub fn d2i_X509_REQ_fp(fp: *mut FILE, req: *mut *mut X509_REQ) -> *mut X509_REQ; + #[link_name = "\u{1}aws_lc_0_21_0_PKCS8_PRIV_KEY_INFO_free"] + pub fn PKCS8_PRIV_KEY_INFO_free(key: *mut PKCS8_PRIV_KEY_INFO); } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_d2i_RSAPrivateKey_fp"] - pub fn d2i_RSAPrivateKey_fp(fp: *mut FILE, rsa: *mut *mut RSA) -> *mut RSA; + #[link_name = "\u{1}aws_lc_0_21_0_d2i_PKCS8_PRIV_KEY_INFO"] + pub fn d2i_PKCS8_PRIV_KEY_INFO( + out: *mut *mut PKCS8_PRIV_KEY_INFO, + inp: *mut *const u8, + len: ::std::os::raw::c_long, + ) -> *mut PKCS8_PRIV_KEY_INFO; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_d2i_RSAPublicKey_fp"] - pub fn d2i_RSAPublicKey_fp(fp: *mut FILE, rsa: *mut *mut RSA) -> *mut RSA; + #[link_name = "\u{1}aws_lc_0_21_0_i2d_PKCS8_PRIV_KEY_INFO"] + pub fn i2d_PKCS8_PRIV_KEY_INFO( + key: *const PKCS8_PRIV_KEY_INFO, + outp: *mut *mut u8, + ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_d2i_RSA_PUBKEY_fp"] - pub fn d2i_RSA_PUBKEY_fp(fp: *mut FILE, rsa: *mut *mut RSA) -> *mut RSA; + #[link_name = "\u{1}aws_lc_0_21_0_EVP_PKCS82PKEY"] + pub fn EVP_PKCS82PKEY(p8: *const PKCS8_PRIV_KEY_INFO) -> *mut EVP_PKEY; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_d2i_DSA_PUBKEY_fp"] - pub fn d2i_DSA_PUBKEY_fp(fp: *mut FILE, dsa: *mut *mut DSA) -> *mut DSA; + #[link_name = "\u{1}aws_lc_0_21_0_EVP_PKEY2PKCS8"] + pub fn EVP_PKEY2PKCS8(pkey: *const EVP_PKEY) -> *mut PKCS8_PRIV_KEY_INFO; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_d2i_DSAPrivateKey_fp"] - pub fn d2i_DSAPrivateKey_fp(fp: *mut FILE, dsa: *mut *mut DSA) -> *mut DSA; + #[link_name = "\u{1}aws_lc_0_21_0_X509_SIG_it"] + pub static X509_SIG_it: ASN1_ITEM; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_d2i_EC_PUBKEY_fp"] - pub fn d2i_EC_PUBKEY_fp(fp: *mut FILE, eckey: *mut *mut EC_KEY) -> *mut EC_KEY; + #[link_name = "\u{1}aws_lc_0_21_0_X509_SIG_new"] + pub fn X509_SIG_new() -> *mut X509_SIG; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_d2i_ECPrivateKey_fp"] - pub fn d2i_ECPrivateKey_fp(fp: *mut FILE, eckey: *mut *mut EC_KEY) -> *mut EC_KEY; + #[link_name = "\u{1}aws_lc_0_21_0_X509_SIG_free"] + pub fn X509_SIG_free(key: *mut X509_SIG); } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_d2i_PKCS8_fp"] - pub fn d2i_PKCS8_fp(fp: *mut FILE, p8: *mut *mut X509_SIG) -> *mut X509_SIG; + #[link_name = "\u{1}aws_lc_0_21_0_d2i_X509_SIG"] + pub fn d2i_X509_SIG( + out: *mut *mut X509_SIG, + inp: *mut *const u8, + len: ::std::os::raw::c_long, + ) -> *mut X509_SIG; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_d2i_PKCS8_PRIV_KEY_INFO_fp"] - pub fn d2i_PKCS8_PRIV_KEY_INFO_fp( - fp: *mut FILE, - p8inf: *mut *mut PKCS8_PRIV_KEY_INFO, - ) -> *mut PKCS8_PRIV_KEY_INFO; + #[link_name = "\u{1}aws_lc_0_21_0_i2d_X509_SIG"] + pub fn i2d_X509_SIG(sig: *const X509_SIG, outp: *mut *mut u8) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_d2i_PrivateKey_fp"] - pub fn d2i_PrivateKey_fp(fp: *mut FILE, a: *mut *mut EVP_PKEY) -> *mut EVP_PKEY; + #[link_name = "\u{1}aws_lc_0_21_0_X509_SIG_get0"] + pub fn X509_SIG_get0( + sig: *const X509_SIG, + out_alg: *mut *const X509_ALGOR, + out_digest: *mut *const ASN1_OCTET_STRING, + ); } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_d2i_PUBKEY_fp"] - pub fn d2i_PUBKEY_fp(fp: *mut FILE, a: *mut *mut EVP_PKEY) -> *mut EVP_PKEY; + #[link_name = "\u{1}aws_lc_0_21_0_X509_SIG_getm"] + pub fn X509_SIG_getm( + sig: *mut X509_SIG, + out_alg: *mut *mut X509_ALGOR, + out_digest: *mut *mut ASN1_OCTET_STRING, + ); } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_i2d_X509_fp"] - pub fn i2d_X509_fp(fp: *mut FILE, x509: *mut X509) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_0_21_0_X509_print_ex"] + pub fn X509_print_ex( + bp: *mut BIO, + x: *mut X509, + nmflag: ::std::os::raw::c_ulong, + cflag: ::std::os::raw::c_ulong, + ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_i2d_X509_CRL_fp"] - pub fn i2d_X509_CRL_fp(fp: *mut FILE, crl: *mut X509_CRL) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_0_21_0_X509_print_ex_fp"] + pub fn X509_print_ex_fp( + fp: *mut FILE, + x: *mut X509, + nmflag: ::std::os::raw::c_ulong, + cflag: ::std::os::raw::c_ulong, + ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_i2d_X509_REQ_fp"] - pub fn i2d_X509_REQ_fp(fp: *mut FILE, req: *mut X509_REQ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_0_21_0_X509_print"] + pub fn X509_print(bp: *mut BIO, x: *mut X509) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_i2d_RSAPrivateKey_fp"] - pub fn i2d_RSAPrivateKey_fp(fp: *mut FILE, rsa: *mut RSA) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_0_21_0_X509_print_fp"] + pub fn X509_print_fp(fp: *mut FILE, x: *mut X509) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_i2d_RSAPublicKey_fp"] - pub fn i2d_RSAPublicKey_fp(fp: *mut FILE, rsa: *mut RSA) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_0_21_0_X509_CRL_print"] + pub fn X509_CRL_print(bp: *mut BIO, x: *mut X509_CRL) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_i2d_RSA_PUBKEY_fp"] - pub fn i2d_RSA_PUBKEY_fp(fp: *mut FILE, rsa: *mut RSA) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_0_21_0_X509_CRL_print_fp"] + pub fn X509_CRL_print_fp(fp: *mut FILE, x: *mut X509_CRL) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_i2d_DSA_PUBKEY_fp"] - pub fn i2d_DSA_PUBKEY_fp(fp: *mut FILE, dsa: *mut DSA) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_0_21_0_X509_REQ_print_ex"] + pub fn X509_REQ_print_ex( + bp: *mut BIO, + x: *mut X509_REQ, + nmflag: ::std::os::raw::c_ulong, + cflag: ::std::os::raw::c_ulong, + ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_i2d_DSAPrivateKey_fp"] - pub fn i2d_DSAPrivateKey_fp(fp: *mut FILE, dsa: *mut DSA) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_0_21_0_X509_REQ_print"] + pub fn X509_REQ_print(bp: *mut BIO, req: *mut X509_REQ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_i2d_EC_PUBKEY_fp"] - pub fn i2d_EC_PUBKEY_fp(fp: *mut FILE, eckey: *mut EC_KEY) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_0_21_0_X509_REQ_print_fp"] + pub fn X509_REQ_print_fp(fp: *mut FILE, req: *mut X509_REQ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_i2d_ECPrivateKey_fp"] - pub fn i2d_ECPrivateKey_fp(fp: *mut FILE, eckey: *mut EC_KEY) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_0_21_0_X509_NAME_print_ex"] + pub fn X509_NAME_print_ex( + out: *mut BIO, + nm: *const X509_NAME, + indent: ::std::os::raw::c_int, + flags: ::std::os::raw::c_ulong, + ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_i2d_PKCS8_fp"] - pub fn i2d_PKCS8_fp(fp: *mut FILE, p8: *mut X509_SIG) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_0_21_0_X509_NAME_print"] + pub fn X509_NAME_print( + bp: *mut BIO, + name: *const X509_NAME, + obase: ::std::os::raw::c_int, + ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_i2d_PKCS8_PRIV_KEY_INFO_fp"] - pub fn i2d_PKCS8_PRIV_KEY_INFO_fp( + #[link_name = "\u{1}aws_lc_0_21_0_X509_NAME_oneline"] + pub fn X509_NAME_oneline( + name: *const X509_NAME, + buf: *mut ::std::os::raw::c_char, + size: ::std::os::raw::c_int, + ) -> *mut ::std::os::raw::c_char; +} +extern "C" { + #[link_name = "\u{1}aws_lc_0_21_0_X509_NAME_print_ex_fp"] + pub fn X509_NAME_print_ex_fp( fp: *mut FILE, - p8inf: *mut PKCS8_PRIV_KEY_INFO, + nm: *const X509_NAME, + indent: ::std::os::raw::c_int, + flags: ::std::os::raw::c_ulong, ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_i2d_PKCS8PrivateKeyInfo_fp"] - pub fn i2d_PKCS8PrivateKeyInfo_fp(fp: *mut FILE, key: *mut EVP_PKEY) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_0_21_0_X509_signature_dump"] + pub fn X509_signature_dump( + bio: *mut BIO, + sig: *const ASN1_STRING, + indent: ::std::os::raw::c_int, + ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_i2d_PrivateKey_fp"] - pub fn i2d_PrivateKey_fp(fp: *mut FILE, pkey: *mut EVP_PKEY) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_0_21_0_X509_signature_print"] + pub fn X509_signature_print( + bio: *mut BIO, + alg: *const X509_ALGOR, + sig: *const ASN1_STRING, + ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_i2d_PUBKEY_fp"] - pub fn i2d_PUBKEY_fp(fp: *mut FILE, pkey: *mut EVP_PKEY) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_0_21_0_X509V3_EXT_print"] + pub fn X509V3_EXT_print( + out: *mut BIO, + ext: *const X509_EXTENSION, + flag: ::std::os::raw::c_ulong, + indent: ::std::os::raw::c_int, + ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_X509_find_by_issuer_and_serial"] - pub fn X509_find_by_issuer_and_serial( - sk: *const stack_st_X509, - name: *mut X509_NAME, - serial: *const ASN1_INTEGER, - ) -> *mut X509; + #[link_name = "\u{1}aws_lc_0_21_0_X509V3_EXT_print_fp"] + pub fn X509V3_EXT_print_fp( + out: *mut FILE, + ext: *const X509_EXTENSION, + flag: ::std::os::raw::c_int, + indent: ::std::os::raw::c_int, + ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_X509_find_by_subject"] - pub fn X509_find_by_subject(sk: *const stack_st_X509, name: *mut X509_NAME) -> *mut X509; + #[link_name = "\u{1}aws_lc_0_21_0_X509V3_extensions_print"] + pub fn X509V3_extensions_print( + out: *mut BIO, + title: *const ::std::os::raw::c_char, + exts: *const stack_st_X509_EXTENSION, + flag: ::std::os::raw::c_ulong, + indent: ::std::os::raw::c_int, + ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_X509_cmp_time"] - pub fn X509_cmp_time(s: *const ASN1_TIME, t: *const time_t) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_0_21_0_GENERAL_NAME_print"] + pub fn GENERAL_NAME_print(out: *mut BIO, gen: *const GENERAL_NAME) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_X509_cmp_time_posix"] - pub fn X509_cmp_time_posix(s: *const ASN1_TIME, t: i64) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_0_21_0_X509_pubkey_digest"] + pub fn X509_pubkey_digest( + x509: *const X509, + md: *const EVP_MD, + out: *mut u8, + out_len: *mut ::std::os::raw::c_uint, + ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_X509_cmp_current_time"] - pub fn X509_cmp_current_time(s: *const ASN1_TIME) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_0_21_0_X509_digest"] + pub fn X509_digest( + x509: *const X509, + md: *const EVP_MD, + out: *mut u8, + out_len: *mut ::std::os::raw::c_uint, + ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_X509_time_adj"] - pub fn X509_time_adj( - s: *mut ASN1_TIME, - offset_sec: ::std::os::raw::c_long, - t: *const time_t, - ) -> *mut ASN1_TIME; + #[link_name = "\u{1}aws_lc_0_21_0_X509_CRL_digest"] + pub fn X509_CRL_digest( + crl: *const X509_CRL, + md: *const EVP_MD, + out: *mut u8, + out_len: *mut ::std::os::raw::c_uint, + ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_X509_time_adj_ex"] - pub fn X509_time_adj_ex( - s: *mut ASN1_TIME, - offset_day: ::std::os::raw::c_int, - offset_sec: ::std::os::raw::c_long, - t: *const time_t, - ) -> *mut ASN1_TIME; + #[link_name = "\u{1}aws_lc_0_21_0_X509_REQ_digest"] + pub fn X509_REQ_digest( + req: *const X509_REQ, + md: *const EVP_MD, + out: *mut u8, + out_len: *mut ::std::os::raw::c_uint, + ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_X509_gmtime_adj"] - pub fn X509_gmtime_adj(s: *mut ASN1_TIME, offset_sec: ::std::os::raw::c_long) - -> *mut ASN1_TIME; + #[link_name = "\u{1}aws_lc_0_21_0_X509_NAME_digest"] + pub fn X509_NAME_digest( + name: *const X509_NAME, + md: *const EVP_MD, + out: *mut u8, + out_len: *mut ::std::os::raw::c_uint, + ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_X509_issuer_name_cmp"] - pub fn X509_issuer_name_cmp(a: *const X509, b: *const X509) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_0_21_0_d2i_X509_bio"] + pub fn d2i_X509_bio(bp: *mut BIO, x509: *mut *mut X509) -> *mut X509; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_X509_subject_name_cmp"] - pub fn X509_subject_name_cmp(a: *const X509, b: *const X509) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_0_21_0_d2i_X509_CRL_bio"] + pub fn d2i_X509_CRL_bio(bp: *mut BIO, crl: *mut *mut X509_CRL) -> *mut X509_CRL; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_X509_CRL_cmp"] - pub fn X509_CRL_cmp(a: *const X509_CRL, b: *const X509_CRL) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_0_21_0_d2i_X509_REQ_bio"] + pub fn d2i_X509_REQ_bio(bp: *mut BIO, req: *mut *mut X509_REQ) -> *mut X509_REQ; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_X509_issuer_name_hash"] - pub fn X509_issuer_name_hash(x509: *mut X509) -> u32; + #[link_name = "\u{1}aws_lc_0_21_0_d2i_RSAPrivateKey_bio"] + pub fn d2i_RSAPrivateKey_bio(bp: *mut BIO, rsa: *mut *mut RSA) -> *mut RSA; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_X509_subject_name_hash"] - pub fn X509_subject_name_hash(x509: *mut X509) -> u32; + #[link_name = "\u{1}aws_lc_0_21_0_d2i_RSAPublicKey_bio"] + pub fn d2i_RSAPublicKey_bio(bp: *mut BIO, rsa: *mut *mut RSA) -> *mut RSA; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_X509_issuer_name_hash_old"] - pub fn X509_issuer_name_hash_old(x509: *mut X509) -> u32; + #[link_name = "\u{1}aws_lc_0_21_0_d2i_RSA_PUBKEY_bio"] + pub fn d2i_RSA_PUBKEY_bio(bp: *mut BIO, rsa: *mut *mut RSA) -> *mut RSA; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_X509_subject_name_hash_old"] - pub fn X509_subject_name_hash_old(x509: *mut X509) -> u32; + #[link_name = "\u{1}aws_lc_0_21_0_d2i_DSA_PUBKEY_bio"] + pub fn d2i_DSA_PUBKEY_bio(bp: *mut BIO, dsa: *mut *mut DSA) -> *mut DSA; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_X509_get_ex_new_index"] - pub fn X509_get_ex_new_index( - argl: ::std::os::raw::c_long, - argp: *mut ::std::os::raw::c_void, - unused: *mut CRYPTO_EX_unused, - dup_unused: CRYPTO_EX_dup, - free_func: CRYPTO_EX_free, - ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_0_21_0_d2i_DSAPrivateKey_bio"] + pub fn d2i_DSAPrivateKey_bio(bp: *mut BIO, dsa: *mut *mut DSA) -> *mut DSA; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_X509_set_ex_data"] - pub fn X509_set_ex_data( - r: *mut X509, - idx: ::std::os::raw::c_int, - arg: *mut ::std::os::raw::c_void, - ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_0_21_0_d2i_EC_PUBKEY_bio"] + pub fn d2i_EC_PUBKEY_bio(bp: *mut BIO, eckey: *mut *mut EC_KEY) -> *mut EC_KEY; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_X509_get_ex_data"] - pub fn X509_get_ex_data( - r: *mut X509, - idx: ::std::os::raw::c_int, - ) -> *mut ::std::os::raw::c_void; + #[link_name = "\u{1}aws_lc_0_21_0_d2i_ECPrivateKey_bio"] + pub fn d2i_ECPrivateKey_bio(bp: *mut BIO, eckey: *mut *mut EC_KEY) -> *mut EC_KEY; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_X509_STORE_CTX_get_ex_new_index"] - pub fn X509_STORE_CTX_get_ex_new_index( - argl: ::std::os::raw::c_long, - argp: *mut ::std::os::raw::c_void, - unused: *mut CRYPTO_EX_unused, - dup_unused: CRYPTO_EX_dup, - free_func: CRYPTO_EX_free, - ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_0_21_0_d2i_PKCS8_bio"] + pub fn d2i_PKCS8_bio(bp: *mut BIO, p8: *mut *mut X509_SIG) -> *mut X509_SIG; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_X509_STORE_CTX_set_ex_data"] - pub fn X509_STORE_CTX_set_ex_data( - ctx: *mut X509_STORE_CTX, - idx: ::std::os::raw::c_int, - data: *mut ::std::os::raw::c_void, - ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_0_21_0_d2i_PKCS8_PRIV_KEY_INFO_bio"] + pub fn d2i_PKCS8_PRIV_KEY_INFO_bio( + bp: *mut BIO, + p8inf: *mut *mut PKCS8_PRIV_KEY_INFO, + ) -> *mut PKCS8_PRIV_KEY_INFO; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_X509_STORE_CTX_get_ex_data"] - pub fn X509_STORE_CTX_get_ex_data( - ctx: *mut X509_STORE_CTX, - idx: ::std::os::raw::c_int, - ) -> *mut ::std::os::raw::c_void; + #[link_name = "\u{1}aws_lc_0_21_0_d2i_PUBKEY_bio"] + pub fn d2i_PUBKEY_bio(bp: *mut BIO, a: *mut *mut EVP_PKEY) -> *mut EVP_PKEY; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_X509_STORE_get_ex_new_index"] - pub fn X509_STORE_get_ex_new_index( - argl: ::std::os::raw::c_long, - argp: *mut ::std::os::raw::c_void, - unused: *mut CRYPTO_EX_unused, - dup_unused: CRYPTO_EX_dup, - free_func: CRYPTO_EX_free, - ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_0_21_0_d2i_DHparams_bio"] + pub fn d2i_DHparams_bio(bp: *mut BIO, dh: *mut *mut DH) -> *mut DH; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_X509_STORE_set_ex_data"] - pub fn X509_STORE_set_ex_data( - ctx: *mut X509_STORE, - idx: ::std::os::raw::c_int, - data: *mut ::std::os::raw::c_void, - ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_0_21_0_d2i_PrivateKey_bio"] + pub fn d2i_PrivateKey_bio(bp: *mut BIO, a: *mut *mut EVP_PKEY) -> *mut EVP_PKEY; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_X509_STORE_get_ex_data"] - pub fn X509_STORE_get_ex_data( - ctx: *mut X509_STORE, - idx: ::std::os::raw::c_int, - ) -> *mut ::std::os::raw::c_void; + #[link_name = "\u{1}aws_lc_0_21_0_i2d_X509_bio"] + pub fn i2d_X509_bio(bp: *mut BIO, x509: *mut X509) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_ASN1_digest"] - pub fn ASN1_digest( - i2d: i2d_of_void, - type_: *const EVP_MD, - data: *mut ::std::os::raw::c_char, - md: *mut ::std::os::raw::c_uchar, - len: *mut ::std::os::raw::c_uint, - ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_0_21_0_i2d_X509_CRL_bio"] + pub fn i2d_X509_CRL_bio(bp: *mut BIO, crl: *mut X509_CRL) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_ASN1_item_digest"] - pub fn ASN1_item_digest( - it: *const ASN1_ITEM, - type_: *const EVP_MD, - data: *mut ::std::os::raw::c_void, - md: *mut ::std::os::raw::c_uchar, - len: *mut ::std::os::raw::c_uint, - ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_0_21_0_i2d_X509_REQ_bio"] + pub fn i2d_X509_REQ_bio(bp: *mut BIO, req: *mut X509_REQ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_ASN1_item_verify"] - pub fn ASN1_item_verify( - it: *const ASN1_ITEM, - algor1: *const X509_ALGOR, - signature: *const ASN1_BIT_STRING, - data: *mut ::std::os::raw::c_void, - pkey: *mut EVP_PKEY, - ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_0_21_0_i2d_RSAPrivateKey_bio"] + pub fn i2d_RSAPrivateKey_bio(bp: *mut BIO, rsa: *mut RSA) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_ASN1_item_sign"] - pub fn ASN1_item_sign( - it: *const ASN1_ITEM, - algor1: *mut X509_ALGOR, - algor2: *mut X509_ALGOR, - signature: *mut ASN1_BIT_STRING, - data: *mut ::std::os::raw::c_void, - pkey: *mut EVP_PKEY, - type_: *const EVP_MD, - ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_0_21_0_i2d_RSAPublicKey_bio"] + pub fn i2d_RSAPublicKey_bio(bp: *mut BIO, rsa: *mut RSA) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_ASN1_item_sign_ctx"] - pub fn ASN1_item_sign_ctx( - it: *const ASN1_ITEM, - algor1: *mut X509_ALGOR, - algor2: *mut X509_ALGOR, - signature: *mut ASN1_BIT_STRING, - asn: *mut ::std::os::raw::c_void, - ctx: *mut EVP_MD_CTX, - ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_0_21_0_i2d_RSA_PUBKEY_bio"] + pub fn i2d_RSA_PUBKEY_bio(bp: *mut BIO, rsa: *mut RSA) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_X509_supported_extension"] - pub fn X509_supported_extension(ex: *const X509_EXTENSION) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_0_21_0_i2d_DSA_PUBKEY_bio"] + pub fn i2d_DSA_PUBKEY_bio(bp: *mut BIO, dsa: *mut DSA) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_X509_check_ca"] - pub fn X509_check_ca(x509: *mut X509) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_0_21_0_i2d_DSAPrivateKey_bio"] + pub fn i2d_DSAPrivateKey_bio(bp: *mut BIO, dsa: *mut DSA) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_X509_check_issued"] - pub fn X509_check_issued(issuer: *mut X509, subject: *mut X509) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_0_21_0_i2d_EC_PUBKEY_bio"] + pub fn i2d_EC_PUBKEY_bio(bp: *mut BIO, eckey: *mut EC_KEY) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_NAME_CONSTRAINTS_check"] - pub fn NAME_CONSTRAINTS_check( - x509: *mut X509, - nc: *mut NAME_CONSTRAINTS, - ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_0_21_0_i2d_ECPrivateKey_bio"] + pub fn i2d_ECPrivateKey_bio(bp: *mut BIO, eckey: *mut EC_KEY) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_X509_check_host"] - pub fn X509_check_host( - x509: *const X509, - chk: *const ::std::os::raw::c_char, - chklen: usize, - flags: ::std::os::raw::c_uint, - out_peername: *mut *mut ::std::os::raw::c_char, - ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_0_21_0_i2d_PKCS8_bio"] + pub fn i2d_PKCS8_bio(bp: *mut BIO, p8: *mut X509_SIG) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_X509_check_email"] - pub fn X509_check_email( - x509: *const X509, - chk: *const ::std::os::raw::c_char, - chklen: usize, - flags: ::std::os::raw::c_uint, + #[link_name = "\u{1}aws_lc_0_21_0_i2d_PKCS8_PRIV_KEY_INFO_bio"] + pub fn i2d_PKCS8_PRIV_KEY_INFO_bio( + bp: *mut BIO, + p8inf: *mut PKCS8_PRIV_KEY_INFO, ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_X509_check_ip"] - pub fn X509_check_ip( - x509: *const X509, - chk: *const u8, - chklen: usize, - flags: ::std::os::raw::c_uint, - ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_0_21_0_i2d_PrivateKey_bio"] + pub fn i2d_PrivateKey_bio(bp: *mut BIO, pkey: *mut EVP_PKEY) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_X509_check_ip_asc"] - pub fn X509_check_ip_asc( - x509: *const X509, - ipasc: *const ::std::os::raw::c_char, - flags: ::std::os::raw::c_uint, - ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_0_21_0_i2d_PUBKEY_bio"] + pub fn i2d_PUBKEY_bio(bp: *mut BIO, pkey: *mut EVP_PKEY) -> ::std::os::raw::c_int; } -#[repr(C)] -#[derive(Debug, Copy, Clone, PartialEq, Eq)] -pub struct private_key_st { - pub dec_pkey: *mut EVP_PKEY, +extern "C" { + #[link_name = "\u{1}aws_lc_0_21_0_i2d_DHparams_bio"] + pub fn i2d_DHparams_bio(bp: *mut BIO, dh: *const DH) -> ::std::os::raw::c_int; } -#[test] -fn bindgen_test_layout_private_key_st() { - const UNINIT: ::std::mem::MaybeUninit = ::std::mem::MaybeUninit::uninit(); - let ptr = UNINIT.as_ptr(); - assert_eq!( - ::std::mem::size_of::(), - 8usize, - concat!("Size of: ", stringify!(private_key_st)) - ); - assert_eq!( - ::std::mem::align_of::(), - 8usize, - concat!("Alignment of ", stringify!(private_key_st)) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).dec_pkey) as usize - ptr as usize }, - 0usize, - concat!( - "Offset of field: ", - stringify!(private_key_st), - "::", - stringify!(dec_pkey) - ) - ); +extern "C" { + #[link_name = "\u{1}aws_lc_0_21_0_i2d_PKCS8PrivateKeyInfo_bio"] + pub fn i2d_PKCS8PrivateKeyInfo_bio(bp: *mut BIO, key: *mut EVP_PKEY) -> ::std::os::raw::c_int; } -impl Default for private_key_st { - fn default() -> Self { - let mut s = ::std::mem::MaybeUninit::::uninit(); - unsafe { - ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() - } - } +extern "C" { + #[link_name = "\u{1}aws_lc_0_21_0_d2i_X509_fp"] + pub fn d2i_X509_fp(fp: *mut FILE, x509: *mut *mut X509) -> *mut X509; } -#[repr(C)] -#[derive(Debug, Copy, Clone, PartialEq, Eq)] -pub struct X509_info_st { - pub x509: *mut X509, - pub crl: *mut X509_CRL, - pub x_pkey: *mut X509_PKEY, - pub enc_cipher: EVP_CIPHER_INFO, - pub enc_len: ::std::os::raw::c_int, - pub enc_data: *mut ::std::os::raw::c_char, +extern "C" { + #[link_name = "\u{1}aws_lc_0_21_0_d2i_X509_CRL_fp"] + pub fn d2i_X509_CRL_fp(fp: *mut FILE, crl: *mut *mut X509_CRL) -> *mut X509_CRL; } -#[test] -fn bindgen_test_layout_X509_info_st() { - const UNINIT: ::std::mem::MaybeUninit = ::std::mem::MaybeUninit::uninit(); - let ptr = UNINIT.as_ptr(); - assert_eq!( - ::std::mem::size_of::(), - 64usize, - concat!("Size of: ", stringify!(X509_info_st)) - ); - assert_eq!( - ::std::mem::align_of::(), - 8usize, - concat!("Alignment of ", stringify!(X509_info_st)) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).x509) as usize - ptr as usize }, - 0usize, - concat!( - "Offset of field: ", - stringify!(X509_info_st), - "::", - stringify!(x509) - ) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).crl) as usize - ptr as usize }, - 8usize, - concat!( - "Offset of field: ", - stringify!(X509_info_st), - "::", - stringify!(crl) - ) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).x_pkey) as usize - ptr as usize }, - 16usize, - concat!( - "Offset of field: ", - stringify!(X509_info_st), - "::", - stringify!(x_pkey) - ) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).enc_cipher) as usize - ptr as usize }, - 24usize, - concat!( - "Offset of field: ", - stringify!(X509_info_st), - "::", - stringify!(enc_cipher) - ) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).enc_len) as usize - ptr as usize }, - 48usize, - concat!( - "Offset of field: ", - stringify!(X509_info_st), - "::", - stringify!(enc_len) - ) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).enc_data) as usize - ptr as usize }, - 56usize, - concat!( - "Offset of field: ", - stringify!(X509_info_st), - "::", - stringify!(enc_data) - ) - ); +extern "C" { + #[link_name = "\u{1}aws_lc_0_21_0_d2i_X509_REQ_fp"] + pub fn d2i_X509_REQ_fp(fp: *mut FILE, req: *mut *mut X509_REQ) -> *mut X509_REQ; } -impl Default for X509_info_st { - fn default() -> Self { - let mut s = ::std::mem::MaybeUninit::::uninit(); - unsafe { - ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() - } - } +extern "C" { + #[link_name = "\u{1}aws_lc_0_21_0_d2i_RSAPrivateKey_fp"] + pub fn d2i_RSAPrivateKey_fp(fp: *mut FILE, rsa: *mut *mut RSA) -> *mut RSA; } -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct stack_st_X509_INFO { - _unused: [u8; 0], +extern "C" { + #[link_name = "\u{1}aws_lc_0_21_0_d2i_RSAPublicKey_fp"] + pub fn d2i_RSAPublicKey_fp(fp: *mut FILE, rsa: *mut *mut RSA) -> *mut RSA; } -pub type sk_X509_INFO_free_func = ::std::option::Option; -pub type sk_X509_INFO_copy_func = - ::std::option::Option *mut X509_INFO>; -pub type sk_X509_INFO_cmp_func = ::std::option::Option< - unsafe extern "C" fn( - arg1: *const *const X509_INFO, - arg2: *const *const X509_INFO, - ) -> ::std::os::raw::c_int, ->; -pub type sk_X509_INFO_delete_if_func = ::std::option::Option< - unsafe extern "C" fn( - arg1: *mut X509_INFO, - arg2: *mut ::std::os::raw::c_void, - ) -> ::std::os::raw::c_int, ->; extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_X509_INFO_free"] - pub fn X509_INFO_free(info: *mut X509_INFO); -} -#[repr(C)] -#[derive(Debug, Copy, Clone, PartialEq, Eq)] -pub struct v3_ext_ctx { - pub flags: ::std::os::raw::c_int, - pub issuer_cert: *const X509, - pub subject_cert: *const X509, - pub subject_req: *const X509_REQ, - pub crl: *const X509_CRL, - pub db: *const CONF, -} -#[test] -fn bindgen_test_layout_v3_ext_ctx() { - const UNINIT: ::std::mem::MaybeUninit = ::std::mem::MaybeUninit::uninit(); - let ptr = UNINIT.as_ptr(); - assert_eq!( - ::std::mem::size_of::(), - 48usize, - concat!("Size of: ", stringify!(v3_ext_ctx)) - ); - assert_eq!( - ::std::mem::align_of::(), - 8usize, - concat!("Alignment of ", stringify!(v3_ext_ctx)) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).flags) as usize - ptr as usize }, - 0usize, - concat!( - "Offset of field: ", - stringify!(v3_ext_ctx), - "::", - stringify!(flags) - ) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).issuer_cert) as usize - ptr as usize }, - 8usize, - concat!( - "Offset of field: ", - stringify!(v3_ext_ctx), - "::", - stringify!(issuer_cert) - ) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).subject_cert) as usize - ptr as usize }, - 16usize, - concat!( - "Offset of field: ", - stringify!(v3_ext_ctx), - "::", - stringify!(subject_cert) - ) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).subject_req) as usize - ptr as usize }, - 24usize, - concat!( - "Offset of field: ", - stringify!(v3_ext_ctx), - "::", - stringify!(subject_req) - ) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).crl) as usize - ptr as usize }, - 32usize, - concat!( - "Offset of field: ", - stringify!(v3_ext_ctx), - "::", - stringify!(crl) - ) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).db) as usize - ptr as usize }, - 40usize, - concat!( - "Offset of field: ", - stringify!(v3_ext_ctx), - "::", - stringify!(db) - ) - ); -} -impl Default for v3_ext_ctx { - fn default() -> Self { - let mut s = ::std::mem::MaybeUninit::::uninit(); - unsafe { - ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() - } - } + #[link_name = "\u{1}aws_lc_0_21_0_d2i_RSA_PUBKEY_fp"] + pub fn d2i_RSA_PUBKEY_fp(fp: *mut FILE, rsa: *mut *mut RSA) -> *mut RSA; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_X509V3_set_ctx"] - pub fn X509V3_set_ctx( - ctx: *mut X509V3_CTX, - issuer: *const X509, - subject: *const X509, - req: *const X509_REQ, - crl: *const X509_CRL, - flags: ::std::os::raw::c_int, - ); + #[link_name = "\u{1}aws_lc_0_21_0_d2i_DSA_PUBKEY_fp"] + pub fn d2i_DSA_PUBKEY_fp(fp: *mut FILE, dsa: *mut *mut DSA) -> *mut DSA; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_X509V3_set_nconf"] - pub fn X509V3_set_nconf(ctx: *mut X509V3_CTX, conf: *const CONF); + #[link_name = "\u{1}aws_lc_0_21_0_d2i_DSAPrivateKey_fp"] + pub fn d2i_DSAPrivateKey_fp(fp: *mut FILE, dsa: *mut *mut DSA) -> *mut DSA; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_X509V3_EXT_nconf"] - pub fn X509V3_EXT_nconf( - conf: *const CONF, - ctx: *const X509V3_CTX, - name: *const ::std::os::raw::c_char, - value: *const ::std::os::raw::c_char, - ) -> *mut X509_EXTENSION; + #[link_name = "\u{1}aws_lc_0_21_0_d2i_EC_PUBKEY_fp"] + pub fn d2i_EC_PUBKEY_fp(fp: *mut FILE, eckey: *mut *mut EC_KEY) -> *mut EC_KEY; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_X509V3_EXT_nconf_nid"] - pub fn X509V3_EXT_nconf_nid( - conf: *const CONF, - ctx: *const X509V3_CTX, - ext_nid: ::std::os::raw::c_int, - value: *const ::std::os::raw::c_char, - ) -> *mut X509_EXTENSION; + #[link_name = "\u{1}aws_lc_0_21_0_d2i_ECPrivateKey_fp"] + pub fn d2i_ECPrivateKey_fp(fp: *mut FILE, eckey: *mut *mut EC_KEY) -> *mut EC_KEY; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_X509V3_EXT_conf_nid"] - pub fn X509V3_EXT_conf_nid( - conf: *mut lhash_st_CONF_VALUE, - ctx: *const X509V3_CTX, - ext_nid: ::std::os::raw::c_int, - value: *const ::std::os::raw::c_char, - ) -> *mut X509_EXTENSION; + #[link_name = "\u{1}aws_lc_0_21_0_d2i_PKCS8_fp"] + pub fn d2i_PKCS8_fp(fp: *mut FILE, p8: *mut *mut X509_SIG) -> *mut X509_SIG; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_X509V3_EXT_add_nconf_sk"] - pub fn X509V3_EXT_add_nconf_sk( - conf: *const CONF, - ctx: *const X509V3_CTX, - section: *const ::std::os::raw::c_char, - sk: *mut *mut stack_st_X509_EXTENSION, - ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_0_21_0_d2i_PKCS8_PRIV_KEY_INFO_fp"] + pub fn d2i_PKCS8_PRIV_KEY_INFO_fp( + fp: *mut FILE, + p8inf: *mut *mut PKCS8_PRIV_KEY_INFO, + ) -> *mut PKCS8_PRIV_KEY_INFO; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_X509V3_EXT_add_nconf"] - pub fn X509V3_EXT_add_nconf( - conf: *const CONF, - ctx: *const X509V3_CTX, - section: *const ::std::os::raw::c_char, - cert: *mut X509, - ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_0_21_0_d2i_PrivateKey_fp"] + pub fn d2i_PrivateKey_fp(fp: *mut FILE, a: *mut *mut EVP_PKEY) -> *mut EVP_PKEY; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_X509V3_EXT_REQ_add_nconf"] - pub fn X509V3_EXT_REQ_add_nconf( - conf: *const CONF, - ctx: *const X509V3_CTX, - section: *const ::std::os::raw::c_char, - req: *mut X509_REQ, - ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_0_21_0_d2i_PUBKEY_fp"] + pub fn d2i_PUBKEY_fp(fp: *mut FILE, a: *mut *mut EVP_PKEY) -> *mut EVP_PKEY; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_X509V3_EXT_CRL_add_nconf"] - pub fn X509V3_EXT_CRL_add_nconf( - conf: *const CONF, - ctx: *const X509V3_CTX, - section: *const ::std::os::raw::c_char, - crl: *mut X509_CRL, - ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_0_21_0_i2d_X509_fp"] + pub fn i2d_X509_fp(fp: *mut FILE, x509: *mut X509) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_X509V3_EXT_conf"] - pub fn X509V3_EXT_conf( - conf: *mut lhash_st_CONF_VALUE, - ctx: *mut X509V3_CTX, - name: *const ::std::os::raw::c_char, - value: *const ::std::os::raw::c_char, - ) -> *mut X509_EXTENSION; + #[link_name = "\u{1}aws_lc_0_21_0_i2d_X509_CRL_fp"] + pub fn i2d_X509_CRL_fp(fp: *mut FILE, crl: *mut X509_CRL) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_i2s_ASN1_OCTET_STRING"] - pub fn i2s_ASN1_OCTET_STRING( - method: *const X509V3_EXT_METHOD, - oct: *const ASN1_OCTET_STRING, - ) -> *mut ::std::os::raw::c_char; + #[link_name = "\u{1}aws_lc_0_21_0_i2d_X509_REQ_fp"] + pub fn i2d_X509_REQ_fp(fp: *mut FILE, req: *mut X509_REQ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_s2i_ASN1_OCTET_STRING"] - pub fn s2i_ASN1_OCTET_STRING( - method: *const X509V3_EXT_METHOD, - ctx: *const X509V3_CTX, - str_: *const ::std::os::raw::c_char, - ) -> *mut ASN1_OCTET_STRING; + #[link_name = "\u{1}aws_lc_0_21_0_i2d_RSAPrivateKey_fp"] + pub fn i2d_RSAPrivateKey_fp(fp: *mut FILE, rsa: *mut RSA) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_i2s_ASN1_INTEGER"] - pub fn i2s_ASN1_INTEGER( - method: *const X509V3_EXT_METHOD, - aint: *const ASN1_INTEGER, - ) -> *mut ::std::os::raw::c_char; + #[link_name = "\u{1}aws_lc_0_21_0_i2d_RSAPublicKey_fp"] + pub fn i2d_RSAPublicKey_fp(fp: *mut FILE, rsa: *mut RSA) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_s2i_ASN1_INTEGER"] - pub fn s2i_ASN1_INTEGER( - method: *const X509V3_EXT_METHOD, - value: *const ::std::os::raw::c_char, - ) -> *mut ASN1_INTEGER; + #[link_name = "\u{1}aws_lc_0_21_0_i2d_RSA_PUBKEY_fp"] + pub fn i2d_RSA_PUBKEY_fp(fp: *mut FILE, rsa: *mut RSA) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_i2s_ASN1_ENUMERATED"] - pub fn i2s_ASN1_ENUMERATED( - method: *const X509V3_EXT_METHOD, - aint: *const ASN1_ENUMERATED, - ) -> *mut ::std::os::raw::c_char; + #[link_name = "\u{1}aws_lc_0_21_0_i2d_DSA_PUBKEY_fp"] + pub fn i2d_DSA_PUBKEY_fp(fp: *mut FILE, dsa: *mut DSA) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_X509V3_conf_free"] - pub fn X509V3_conf_free(val: *mut CONF_VALUE); + #[link_name = "\u{1}aws_lc_0_21_0_i2d_DSAPrivateKey_fp"] + pub fn i2d_DSAPrivateKey_fp(fp: *mut FILE, dsa: *mut DSA) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_i2v_GENERAL_NAME"] - pub fn i2v_GENERAL_NAME( - method: *const X509V3_EXT_METHOD, - gen: *const GENERAL_NAME, - ret: *mut stack_st_CONF_VALUE, - ) -> *mut stack_st_CONF_VALUE; + #[link_name = "\u{1}aws_lc_0_21_0_i2d_EC_PUBKEY_fp"] + pub fn i2d_EC_PUBKEY_fp(fp: *mut FILE, eckey: *mut EC_KEY) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_i2v_GENERAL_NAMES"] - pub fn i2v_GENERAL_NAMES( - method: *const X509V3_EXT_METHOD, - gen: *const GENERAL_NAMES, - extlist: *mut stack_st_CONF_VALUE, - ) -> *mut stack_st_CONF_VALUE; + #[link_name = "\u{1}aws_lc_0_21_0_i2d_ECPrivateKey_fp"] + pub fn i2d_ECPrivateKey_fp(fp: *mut FILE, eckey: *mut EC_KEY) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_a2i_IPADDRESS"] - pub fn a2i_IPADDRESS(ipasc: *const ::std::os::raw::c_char) -> *mut ASN1_OCTET_STRING; + #[link_name = "\u{1}aws_lc_0_21_0_i2d_PKCS8_fp"] + pub fn i2d_PKCS8_fp(fp: *mut FILE, p8: *mut X509_SIG) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_a2i_IPADDRESS_NC"] - pub fn a2i_IPADDRESS_NC(ipasc: *const ::std::os::raw::c_char) -> *mut ASN1_OCTET_STRING; + #[link_name = "\u{1}aws_lc_0_21_0_i2d_PKCS8_PRIV_KEY_INFO_fp"] + pub fn i2d_PKCS8_PRIV_KEY_INFO_fp( + fp: *mut FILE, + p8inf: *mut PKCS8_PRIV_KEY_INFO, + ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_X509_get_notBefore"] - pub fn X509_get_notBefore(x509: *const X509) -> *mut ASN1_TIME; + #[link_name = "\u{1}aws_lc_0_21_0_i2d_PKCS8PrivateKeyInfo_fp"] + pub fn i2d_PKCS8PrivateKeyInfo_fp(fp: *mut FILE, key: *mut EVP_PKEY) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_X509_get_notAfter"] - pub fn X509_get_notAfter(x509: *const X509) -> *mut ASN1_TIME; + #[link_name = "\u{1}aws_lc_0_21_0_i2d_PrivateKey_fp"] + pub fn i2d_PrivateKey_fp(fp: *mut FILE, pkey: *mut EVP_PKEY) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_X509_set_notBefore"] - pub fn X509_set_notBefore(x509: *mut X509, tm: *const ASN1_TIME) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_0_21_0_i2d_PUBKEY_fp"] + pub fn i2d_PUBKEY_fp(fp: *mut FILE, pkey: *mut EVP_PKEY) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_X509_set_notAfter"] - pub fn X509_set_notAfter(x509: *mut X509, tm: *const ASN1_TIME) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_0_21_0_X509_find_by_issuer_and_serial"] + pub fn X509_find_by_issuer_and_serial( + sk: *const stack_st_X509, + name: *mut X509_NAME, + serial: *const ASN1_INTEGER, + ) -> *mut X509; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_X509_CRL_get_lastUpdate"] - pub fn X509_CRL_get_lastUpdate(crl: *mut X509_CRL) -> *mut ASN1_TIME; + #[link_name = "\u{1}aws_lc_0_21_0_X509_find_by_subject"] + pub fn X509_find_by_subject(sk: *const stack_st_X509, name: *mut X509_NAME) -> *mut X509; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_X509_CRL_get_nextUpdate"] - pub fn X509_CRL_get_nextUpdate(crl: *mut X509_CRL) -> *mut ASN1_TIME; + #[link_name = "\u{1}aws_lc_0_21_0_X509_cmp_time"] + pub fn X509_cmp_time(s: *const ASN1_TIME, t: *const time_t) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_X509_get_serialNumber"] - pub fn X509_get_serialNumber(x509: *mut X509) -> *mut ASN1_INTEGER; + #[link_name = "\u{1}aws_lc_0_21_0_X509_cmp_time_posix"] + pub fn X509_cmp_time_posix(s: *const ASN1_TIME, t: i64) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_X509_NAME_get_text_by_OBJ"] - pub fn X509_NAME_get_text_by_OBJ( - name: *const X509_NAME, - obj: *const ASN1_OBJECT, - buf: *mut ::std::os::raw::c_char, - len: ::std::os::raw::c_int, - ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_0_21_0_X509_cmp_current_time"] + pub fn X509_cmp_current_time(s: *const ASN1_TIME) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_X509_NAME_get_text_by_NID"] - pub fn X509_NAME_get_text_by_NID( - name: *const X509_NAME, - nid: ::std::os::raw::c_int, - buf: *mut ::std::os::raw::c_char, - len: ::std::os::raw::c_int, - ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_0_21_0_X509_time_adj"] + pub fn X509_time_adj( + s: *mut ASN1_TIME, + offset_sec: ::std::os::raw::c_long, + t: *const time_t, + ) -> *mut ASN1_TIME; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_X509_STORE_CTX_get0_parent_ctx"] - pub fn X509_STORE_CTX_get0_parent_ctx(ctx: *mut X509_STORE_CTX) -> *mut X509_STORE_CTX; + #[link_name = "\u{1}aws_lc_0_21_0_X509_time_adj_ex"] + pub fn X509_time_adj_ex( + s: *mut ASN1_TIME, + offset_day: ::std::os::raw::c_int, + offset_sec: ::std::os::raw::c_long, + t: *const time_t, + ) -> *mut ASN1_TIME; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_X509_LOOKUP_free"] - pub fn X509_LOOKUP_free(ctx: *mut X509_LOOKUP); + #[link_name = "\u{1}aws_lc_0_21_0_X509_gmtime_adj"] + pub fn X509_gmtime_adj(s: *mut ASN1_TIME, offset_sec: ::std::os::raw::c_long) + -> *mut ASN1_TIME; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_X509_STORE_CTX_cleanup"] - pub fn X509_STORE_CTX_cleanup(ctx: *mut X509_STORE_CTX); + #[link_name = "\u{1}aws_lc_0_21_0_X509_issuer_name_cmp"] + pub fn X509_issuer_name_cmp(a: *const X509, b: *const X509) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_X509V3_add_standard_extensions"] - pub fn X509V3_add_standard_extensions() -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_0_21_0_X509_subject_name_cmp"] + pub fn X509_subject_name_cmp(a: *const X509, b: *const X509) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_X509V3_parse_list"] - pub fn X509V3_parse_list(line: *const ::std::os::raw::c_char) -> *mut stack_st_CONF_VALUE; + #[link_name = "\u{1}aws_lc_0_21_0_X509_CRL_cmp"] + pub fn X509_CRL_cmp(a: *const X509_CRL, b: *const X509_CRL) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_X509_STORE_CTX_get_chain"] - pub fn X509_STORE_CTX_get_chain(ctx: *mut X509_STORE_CTX) -> *mut stack_st_X509; + #[link_name = "\u{1}aws_lc_0_21_0_X509_issuer_name_hash"] + pub fn X509_issuer_name_hash(x509: *mut X509) -> u32; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_X509_STORE_CTX_trusted_stack"] - pub fn X509_STORE_CTX_trusted_stack(ctx: *mut X509_STORE_CTX, sk: *mut stack_st_X509); + #[link_name = "\u{1}aws_lc_0_21_0_X509_subject_name_hash"] + pub fn X509_subject_name_hash(x509: *mut X509) -> u32; } -pub type X509_STORE_CTX_verify_cb = ::std::option::Option< - unsafe extern "C" fn( - arg1: ::std::os::raw::c_int, - arg2: *mut X509_STORE_CTX, - ) -> ::std::os::raw::c_int, ->; extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_X509_STORE_CTX_set_verify_cb"] - pub fn X509_STORE_CTX_set_verify_cb( - ctx: *mut X509_STORE_CTX, - verify_cb: ::std::option::Option< - unsafe extern "C" fn( - ok: ::std::os::raw::c_int, - ctx: *mut X509_STORE_CTX, - ) -> ::std::os::raw::c_int, - >, - ); + #[link_name = "\u{1}aws_lc_0_21_0_X509_issuer_name_hash_old"] + pub fn X509_issuer_name_hash_old(x509: *mut X509) -> u32; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_X509_STORE_set_verify_cb"] - pub fn X509_STORE_set_verify_cb(store: *mut X509_STORE, verify_cb: X509_STORE_CTX_verify_cb); + #[link_name = "\u{1}aws_lc_0_21_0_X509_subject_name_hash_old"] + pub fn X509_subject_name_hash_old(x509: *mut X509) -> u32; } -pub type X509_STORE_CTX_get_crl_fn = ::std::option::Option< - unsafe extern "C" fn( - ctx: *mut X509_STORE_CTX, - crl: *mut *mut X509_CRL, - x: *mut X509, - ) -> ::std::os::raw::c_int, ->; -pub type X509_STORE_CTX_check_crl_fn = ::std::option::Option< - unsafe extern "C" fn(ctx: *mut X509_STORE_CTX, crl: *mut X509_CRL) -> ::std::os::raw::c_int, ->; extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_X509_STORE_set_get_crl"] - pub fn X509_STORE_set_get_crl(store: *mut X509_STORE, get_crl: X509_STORE_CTX_get_crl_fn); + #[link_name = "\u{1}aws_lc_0_21_0_X509_get_ex_new_index"] + pub fn X509_get_ex_new_index( + argl: ::std::os::raw::c_long, + argp: *mut ::std::os::raw::c_void, + unused: *mut CRYPTO_EX_unused, + dup_unused: CRYPTO_EX_dup, + free_func: CRYPTO_EX_free, + ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_X509_STORE_set_check_crl"] - pub fn X509_STORE_set_check_crl(store: *mut X509_STORE, check_crl: X509_STORE_CTX_check_crl_fn); + #[link_name = "\u{1}aws_lc_0_21_0_X509_set_ex_data"] + pub fn X509_set_ex_data( + r: *mut X509, + idx: ::std::os::raw::c_int, + arg: *mut ::std::os::raw::c_void, + ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_X509_STORE_CTX_set_chain"] - pub fn X509_STORE_CTX_set_chain(ctx: *mut X509_STORE_CTX, sk: *mut stack_st_X509); + #[link_name = "\u{1}aws_lc_0_21_0_X509_get_ex_data"] + pub fn X509_get_ex_data( + r: *mut X509, + idx: ::std::os::raw::c_int, + ) -> *mut ::std::os::raw::c_void; } -#[repr(C)] -#[derive(Debug, Copy, Clone, PartialEq, Eq)] -pub struct X509_algor_st { - pub algorithm: *mut ASN1_OBJECT, - pub parameter: *mut ASN1_TYPE, +extern "C" { + #[link_name = "\u{1}aws_lc_0_21_0_X509_STORE_CTX_get_ex_new_index"] + pub fn X509_STORE_CTX_get_ex_new_index( + argl: ::std::os::raw::c_long, + argp: *mut ::std::os::raw::c_void, + unused: *mut CRYPTO_EX_unused, + dup_unused: CRYPTO_EX_dup, + free_func: CRYPTO_EX_free, + ) -> ::std::os::raw::c_int; } -#[test] -fn bindgen_test_layout_X509_algor_st() { - const UNINIT: ::std::mem::MaybeUninit = ::std::mem::MaybeUninit::uninit(); - let ptr = UNINIT.as_ptr(); - assert_eq!( - ::std::mem::size_of::(), - 16usize, - concat!("Size of: ", stringify!(X509_algor_st)) - ); - assert_eq!( - ::std::mem::align_of::(), - 8usize, - concat!("Alignment of ", stringify!(X509_algor_st)) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).algorithm) as usize - ptr as usize }, - 0usize, - concat!( - "Offset of field: ", - stringify!(X509_algor_st), - "::", - stringify!(algorithm) - ) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).parameter) as usize - ptr as usize }, - 8usize, - concat!( - "Offset of field: ", - stringify!(X509_algor_st), - "::", - stringify!(parameter) - ) - ); +extern "C" { + #[link_name = "\u{1}aws_lc_0_21_0_X509_STORE_CTX_set_ex_data"] + pub fn X509_STORE_CTX_set_ex_data( + ctx: *mut X509_STORE_CTX, + idx: ::std::os::raw::c_int, + data: *mut ::std::os::raw::c_void, + ) -> ::std::os::raw::c_int; } -impl Default for X509_algor_st { - fn default() -> Self { - let mut s = ::std::mem::MaybeUninit::::uninit(); - unsafe { - ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() - } - } +extern "C" { + #[link_name = "\u{1}aws_lc_0_21_0_X509_STORE_CTX_get_ex_data"] + pub fn X509_STORE_CTX_get_ex_data( + ctx: *mut X509_STORE_CTX, + idx: ::std::os::raw::c_int, + ) -> *mut ::std::os::raw::c_void; } -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct stack_st_DIST_POINT { - _unused: [u8; 0], +extern "C" { + #[link_name = "\u{1}aws_lc_0_21_0_X509_STORE_get_ex_new_index"] + pub fn X509_STORE_get_ex_new_index( + argl: ::std::os::raw::c_long, + argp: *mut ::std::os::raw::c_void, + unused: *mut CRYPTO_EX_unused, + dup_unused: CRYPTO_EX_dup, + free_func: CRYPTO_EX_free, + ) -> ::std::os::raw::c_int; } -#[repr(C)] -#[derive(Debug, Copy, Clone, PartialEq, Eq)] -pub struct x509_trust_st { - pub trust: ::std::os::raw::c_int, - pub flags: ::std::os::raw::c_int, - pub check_trust: ::std::option::Option< - unsafe extern "C" fn( - arg1: *const X509_TRUST, - arg2: *mut X509, - arg3: ::std::os::raw::c_int, - ) -> ::std::os::raw::c_int, - >, - pub name: *mut ::std::os::raw::c_char, - pub arg1: ::std::os::raw::c_int, - pub arg2: *mut ::std::os::raw::c_void, +extern "C" { + #[link_name = "\u{1}aws_lc_0_21_0_X509_STORE_set_ex_data"] + pub fn X509_STORE_set_ex_data( + ctx: *mut X509_STORE, + idx: ::std::os::raw::c_int, + data: *mut ::std::os::raw::c_void, + ) -> ::std::os::raw::c_int; } -#[test] -fn bindgen_test_layout_x509_trust_st() { - const UNINIT: ::std::mem::MaybeUninit = ::std::mem::MaybeUninit::uninit(); - let ptr = UNINIT.as_ptr(); - assert_eq!( - ::std::mem::size_of::(), - 40usize, - concat!("Size of: ", stringify!(x509_trust_st)) - ); - assert_eq!( - ::std::mem::align_of::(), - 8usize, - concat!("Alignment of ", stringify!(x509_trust_st)) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).trust) as usize - ptr as usize }, +extern "C" { + #[link_name = "\u{1}aws_lc_0_21_0_X509_STORE_get_ex_data"] + pub fn X509_STORE_get_ex_data( + ctx: *mut X509_STORE, + idx: ::std::os::raw::c_int, + ) -> *mut ::std::os::raw::c_void; +} +extern "C" { + #[link_name = "\u{1}aws_lc_0_21_0_ASN1_digest"] + pub fn ASN1_digest( + i2d: i2d_of_void, + type_: *const EVP_MD, + data: *mut ::std::os::raw::c_char, + md: *mut ::std::os::raw::c_uchar, + len: *mut ::std::os::raw::c_uint, + ) -> ::std::os::raw::c_int; +} +extern "C" { + #[link_name = "\u{1}aws_lc_0_21_0_ASN1_item_digest"] + pub fn ASN1_item_digest( + it: *const ASN1_ITEM, + type_: *const EVP_MD, + data: *mut ::std::os::raw::c_void, + md: *mut ::std::os::raw::c_uchar, + len: *mut ::std::os::raw::c_uint, + ) -> ::std::os::raw::c_int; +} +extern "C" { + #[link_name = "\u{1}aws_lc_0_21_0_ASN1_item_verify"] + pub fn ASN1_item_verify( + it: *const ASN1_ITEM, + algor1: *const X509_ALGOR, + signature: *const ASN1_BIT_STRING, + data: *mut ::std::os::raw::c_void, + pkey: *mut EVP_PKEY, + ) -> ::std::os::raw::c_int; +} +extern "C" { + #[link_name = "\u{1}aws_lc_0_21_0_ASN1_item_sign"] + pub fn ASN1_item_sign( + it: *const ASN1_ITEM, + algor1: *mut X509_ALGOR, + algor2: *mut X509_ALGOR, + signature: *mut ASN1_BIT_STRING, + data: *mut ::std::os::raw::c_void, + pkey: *mut EVP_PKEY, + type_: *const EVP_MD, + ) -> ::std::os::raw::c_int; +} +extern "C" { + #[link_name = "\u{1}aws_lc_0_21_0_ASN1_item_sign_ctx"] + pub fn ASN1_item_sign_ctx( + it: *const ASN1_ITEM, + algor1: *mut X509_ALGOR, + algor2: *mut X509_ALGOR, + signature: *mut ASN1_BIT_STRING, + asn: *mut ::std::os::raw::c_void, + ctx: *mut EVP_MD_CTX, + ) -> ::std::os::raw::c_int; +} +extern "C" { + #[link_name = "\u{1}aws_lc_0_21_0_X509_supported_extension"] + pub fn X509_supported_extension(ex: *const X509_EXTENSION) -> ::std::os::raw::c_int; +} +extern "C" { + #[link_name = "\u{1}aws_lc_0_21_0_X509_check_ca"] + pub fn X509_check_ca(x509: *mut X509) -> ::std::os::raw::c_int; +} +extern "C" { + #[link_name = "\u{1}aws_lc_0_21_0_X509_check_issued"] + pub fn X509_check_issued(issuer: *mut X509, subject: *mut X509) -> ::std::os::raw::c_int; +} +extern "C" { + #[link_name = "\u{1}aws_lc_0_21_0_NAME_CONSTRAINTS_check"] + pub fn NAME_CONSTRAINTS_check( + x509: *mut X509, + nc: *mut NAME_CONSTRAINTS, + ) -> ::std::os::raw::c_int; +} +extern "C" { + #[link_name = "\u{1}aws_lc_0_21_0_X509_check_host"] + pub fn X509_check_host( + x509: *const X509, + chk: *const ::std::os::raw::c_char, + chklen: usize, + flags: ::std::os::raw::c_uint, + out_peername: *mut *mut ::std::os::raw::c_char, + ) -> ::std::os::raw::c_int; +} +extern "C" { + #[link_name = "\u{1}aws_lc_0_21_0_X509_check_email"] + pub fn X509_check_email( + x509: *const X509, + chk: *const ::std::os::raw::c_char, + chklen: usize, + flags: ::std::os::raw::c_uint, + ) -> ::std::os::raw::c_int; +} +extern "C" { + #[link_name = "\u{1}aws_lc_0_21_0_X509_check_ip"] + pub fn X509_check_ip( + x509: *const X509, + chk: *const u8, + chklen: usize, + flags: ::std::os::raw::c_uint, + ) -> ::std::os::raw::c_int; +} +extern "C" { + #[link_name = "\u{1}aws_lc_0_21_0_X509_check_ip_asc"] + pub fn X509_check_ip_asc( + x509: *const X509, + ipasc: *const ::std::os::raw::c_char, + flags: ::std::os::raw::c_uint, + ) -> ::std::os::raw::c_int; +} +extern "C" { + #[link_name = "\u{1}aws_lc_0_21_0_X509_STORE_CTX_get1_issuer"] + pub fn X509_STORE_CTX_get1_issuer( + out_issuer: *mut *mut X509, + ctx: *mut X509_STORE_CTX, + x509: *mut X509, + ) -> ::std::os::raw::c_int; +} +extern "C" { + #[link_name = "\u{1}aws_lc_0_21_0_X509_check_purpose"] + pub fn X509_check_purpose( + x509: *mut X509, + purpose: ::std::os::raw::c_int, + ca: ::std::os::raw::c_int, + ) -> ::std::os::raw::c_int; +} +extern "C" { + #[link_name = "\u{1}aws_lc_0_21_0_X509_check_trust"] + pub fn X509_check_trust( + x509: *mut X509, + id: ::std::os::raw::c_int, + flags: ::std::os::raw::c_int, + ) -> ::std::os::raw::c_int; +} +#[repr(C)] +#[derive(Debug, Copy, Clone, PartialEq, Eq)] +pub struct private_key_st { + pub dec_pkey: *mut EVP_PKEY, +} +#[test] +fn bindgen_test_layout_private_key_st() { + const UNINIT: ::std::mem::MaybeUninit = ::std::mem::MaybeUninit::uninit(); + let ptr = UNINIT.as_ptr(); + assert_eq!( + ::std::mem::size_of::(), + 8usize, + concat!("Size of: ", stringify!(private_key_st)) + ); + assert_eq!( + ::std::mem::align_of::(), + 8usize, + concat!("Alignment of ", stringify!(private_key_st)) + ); + assert_eq!( + unsafe { ::std::ptr::addr_of!((*ptr).dec_pkey) as usize - ptr as usize }, 0usize, concat!( "Offset of field: ", - stringify!(x509_trust_st), + stringify!(private_key_st), "::", - stringify!(trust) + stringify!(dec_pkey) ) ); +} +impl Default for private_key_st { + fn default() -> Self { + let mut s = ::std::mem::MaybeUninit::::uninit(); + unsafe { + ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); + s.assume_init() + } + } +} +#[repr(C)] +#[derive(Debug, Copy, Clone, PartialEq, Eq)] +pub struct X509_info_st { + pub x509: *mut X509, + pub crl: *mut X509_CRL, + pub x_pkey: *mut X509_PKEY, + pub enc_cipher: EVP_CIPHER_INFO, + pub enc_len: ::std::os::raw::c_int, + pub enc_data: *mut ::std::os::raw::c_char, +} +#[test] +fn bindgen_test_layout_X509_info_st() { + const UNINIT: ::std::mem::MaybeUninit = ::std::mem::MaybeUninit::uninit(); + let ptr = UNINIT.as_ptr(); assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).flags) as usize - ptr as usize }, - 4usize, + ::std::mem::size_of::(), + 64usize, + concat!("Size of: ", stringify!(X509_info_st)) + ); + assert_eq!( + ::std::mem::align_of::(), + 8usize, + concat!("Alignment of ", stringify!(X509_info_st)) + ); + assert_eq!( + unsafe { ::std::ptr::addr_of!((*ptr).x509) as usize - ptr as usize }, + 0usize, concat!( "Offset of field: ", - stringify!(x509_trust_st), + stringify!(X509_info_st), "::", - stringify!(flags) + stringify!(x509) ) ); assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).check_trust) as usize - ptr as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).crl) as usize - ptr as usize }, 8usize, concat!( "Offset of field: ", - stringify!(x509_trust_st), + stringify!(X509_info_st), "::", - stringify!(check_trust) + stringify!(crl) ) ); assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).name) as usize - ptr as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).x_pkey) as usize - ptr as usize }, 16usize, concat!( "Offset of field: ", - stringify!(x509_trust_st), + stringify!(X509_info_st), "::", - stringify!(name) + stringify!(x_pkey) ) ); assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).arg1) as usize - ptr as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).enc_cipher) as usize - ptr as usize }, 24usize, concat!( "Offset of field: ", - stringify!(x509_trust_st), + stringify!(X509_info_st), "::", - stringify!(arg1) + stringify!(enc_cipher) ) ); assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).arg2) as usize - ptr as usize }, - 32usize, + unsafe { ::std::ptr::addr_of!((*ptr).enc_len) as usize - ptr as usize }, + 48usize, concat!( "Offset of field: ", - stringify!(x509_trust_st), + stringify!(X509_info_st), "::", - stringify!(arg2) + stringify!(enc_len) + ) + ); + assert_eq!( + unsafe { ::std::ptr::addr_of!((*ptr).enc_data) as usize - ptr as usize }, + 56usize, + concat!( + "Offset of field: ", + stringify!(X509_info_st), + "::", + stringify!(enc_data) ) ); } -impl Default for x509_trust_st { +impl Default for X509_info_st { fn default() -> Self { let mut s = ::std::mem::MaybeUninit::::uninit(); unsafe { @@ -22804,609 +22601,801 @@ impl Default for x509_trust_st { } #[repr(C)] #[derive(Debug, Copy, Clone)] -pub struct stack_st_X509_TRUST { +pub struct stack_st_X509_INFO { _unused: [u8; 0], } -pub type sk_X509_TRUST_free_func = - ::std::option::Option; -pub type sk_X509_TRUST_copy_func = - ::std::option::Option *mut X509_TRUST>; -pub type sk_X509_TRUST_cmp_func = ::std::option::Option< +pub type sk_X509_INFO_free_func = ::std::option::Option; +pub type sk_X509_INFO_copy_func = + ::std::option::Option *mut X509_INFO>; +pub type sk_X509_INFO_cmp_func = ::std::option::Option< unsafe extern "C" fn( - arg1: *const *const X509_TRUST, - arg2: *const *const X509_TRUST, + arg1: *const *const X509_INFO, + arg2: *const *const X509_INFO, ) -> ::std::os::raw::c_int, >; -pub type sk_X509_TRUST_delete_if_func = ::std::option::Option< +pub type sk_X509_INFO_delete_if_func = ::std::option::Option< unsafe extern "C" fn( - arg1: *mut X509_TRUST, + arg1: *mut X509_INFO, arg2: *mut ::std::os::raw::c_void, ) -> ::std::os::raw::c_int, >; extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_X509_verify_cert_error_string"] - pub fn X509_verify_cert_error_string( - err: ::std::os::raw::c_long, - ) -> *const ::std::os::raw::c_char; + #[link_name = "\u{1}aws_lc_0_21_0_X509_INFO_free"] + pub fn X509_INFO_free(info: *mut X509_INFO); } -extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_X509_get_default_cert_area"] - pub fn X509_get_default_cert_area() -> *const ::std::os::raw::c_char; +#[repr(C)] +#[derive(Debug, Copy, Clone, PartialEq, Eq)] +pub struct v3_ext_ctx { + pub flags: ::std::os::raw::c_int, + pub issuer_cert: *const X509, + pub subject_cert: *const X509, + pub subject_req: *const X509_REQ, + pub crl: *const X509_CRL, + pub db: *const CONF, +} +#[test] +fn bindgen_test_layout_v3_ext_ctx() { + const UNINIT: ::std::mem::MaybeUninit = ::std::mem::MaybeUninit::uninit(); + let ptr = UNINIT.as_ptr(); + assert_eq!( + ::std::mem::size_of::(), + 48usize, + concat!("Size of: ", stringify!(v3_ext_ctx)) + ); + assert_eq!( + ::std::mem::align_of::(), + 8usize, + concat!("Alignment of ", stringify!(v3_ext_ctx)) + ); + assert_eq!( + unsafe { ::std::ptr::addr_of!((*ptr).flags) as usize - ptr as usize }, + 0usize, + concat!( + "Offset of field: ", + stringify!(v3_ext_ctx), + "::", + stringify!(flags) + ) + ); + assert_eq!( + unsafe { ::std::ptr::addr_of!((*ptr).issuer_cert) as usize - ptr as usize }, + 8usize, + concat!( + "Offset of field: ", + stringify!(v3_ext_ctx), + "::", + stringify!(issuer_cert) + ) + ); + assert_eq!( + unsafe { ::std::ptr::addr_of!((*ptr).subject_cert) as usize - ptr as usize }, + 16usize, + concat!( + "Offset of field: ", + stringify!(v3_ext_ctx), + "::", + stringify!(subject_cert) + ) + ); + assert_eq!( + unsafe { ::std::ptr::addr_of!((*ptr).subject_req) as usize - ptr as usize }, + 24usize, + concat!( + "Offset of field: ", + stringify!(v3_ext_ctx), + "::", + stringify!(subject_req) + ) + ); + assert_eq!( + unsafe { ::std::ptr::addr_of!((*ptr).crl) as usize - ptr as usize }, + 32usize, + concat!( + "Offset of field: ", + stringify!(v3_ext_ctx), + "::", + stringify!(crl) + ) + ); + assert_eq!( + unsafe { ::std::ptr::addr_of!((*ptr).db) as usize - ptr as usize }, + 40usize, + concat!( + "Offset of field: ", + stringify!(v3_ext_ctx), + "::", + stringify!(db) + ) + ); +} +impl Default for v3_ext_ctx { + fn default() -> Self { + let mut s = ::std::mem::MaybeUninit::::uninit(); + unsafe { + ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); + s.assume_init() + } + } } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_X509_get_default_cert_dir"] - pub fn X509_get_default_cert_dir() -> *const ::std::os::raw::c_char; + #[link_name = "\u{1}aws_lc_0_21_0_X509V3_set_ctx"] + pub fn X509V3_set_ctx( + ctx: *mut X509V3_CTX, + issuer: *const X509, + subject: *const X509, + req: *const X509_REQ, + crl: *const X509_CRL, + flags: ::std::os::raw::c_int, + ); } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_X509_get_default_cert_file"] - pub fn X509_get_default_cert_file() -> *const ::std::os::raw::c_char; + #[link_name = "\u{1}aws_lc_0_21_0_X509V3_set_nconf"] + pub fn X509V3_set_nconf(ctx: *mut X509V3_CTX, conf: *const CONF); } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_X509_get_default_cert_dir_env"] - pub fn X509_get_default_cert_dir_env() -> *const ::std::os::raw::c_char; + #[link_name = "\u{1}aws_lc_0_21_0_X509V3_EXT_nconf"] + pub fn X509V3_EXT_nconf( + conf: *const CONF, + ctx: *const X509V3_CTX, + name: *const ::std::os::raw::c_char, + value: *const ::std::os::raw::c_char, + ) -> *mut X509_EXTENSION; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_X509_get_default_cert_file_env"] - pub fn X509_get_default_cert_file_env() -> *const ::std::os::raw::c_char; + #[link_name = "\u{1}aws_lc_0_21_0_X509V3_EXT_nconf_nid"] + pub fn X509V3_EXT_nconf_nid( + conf: *const CONF, + ctx: *const X509V3_CTX, + ext_nid: ::std::os::raw::c_int, + value: *const ::std::os::raw::c_char, + ) -> *mut X509_EXTENSION; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_X509_get_default_private_dir"] - pub fn X509_get_default_private_dir() -> *const ::std::os::raw::c_char; + #[link_name = "\u{1}aws_lc_0_21_0_X509V3_EXT_conf_nid"] + pub fn X509V3_EXT_conf_nid( + conf: *mut lhash_st_CONF_VALUE, + ctx: *const X509V3_CTX, + ext_nid: ::std::os::raw::c_int, + value: *const ::std::os::raw::c_char, + ) -> *mut X509_EXTENSION; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_X509_TRUST_set"] - pub fn X509_TRUST_set( - t: *mut ::std::os::raw::c_int, - trust: ::std::os::raw::c_int, + #[link_name = "\u{1}aws_lc_0_21_0_X509V3_EXT_add_nconf_sk"] + pub fn X509V3_EXT_add_nconf_sk( + conf: *const CONF, + ctx: *const X509V3_CTX, + section: *const ::std::os::raw::c_char, + sk: *mut *mut stack_st_X509_EXTENSION, ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_X509_cmp"] - pub fn X509_cmp(a: *const X509, b: *const X509) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_0_21_0_X509V3_EXT_add_nconf"] + pub fn X509V3_EXT_add_nconf( + conf: *const CONF, + ctx: *const X509V3_CTX, + section: *const ::std::os::raw::c_char, + cert: *mut X509, + ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_X509_NAME_hash"] - pub fn X509_NAME_hash(name: *mut X509_NAME) -> u32; + #[link_name = "\u{1}aws_lc_0_21_0_X509V3_EXT_REQ_add_nconf"] + pub fn X509V3_EXT_REQ_add_nconf( + conf: *const CONF, + ctx: *const X509V3_CTX, + section: *const ::std::os::raw::c_char, + req: *mut X509_REQ, + ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_X509_NAME_hash_old"] - pub fn X509_NAME_hash_old(name: *mut X509_NAME) -> u32; + #[link_name = "\u{1}aws_lc_0_21_0_X509V3_EXT_CRL_add_nconf"] + pub fn X509V3_EXT_CRL_add_nconf( + conf: *const CONF, + ctx: *const X509V3_CTX, + section: *const ::std::os::raw::c_char, + crl: *mut X509_CRL, + ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_X509_CRL_match"] - pub fn X509_CRL_match(a: *const X509_CRL, b: *const X509_CRL) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_0_21_0_X509V3_EXT_conf"] + pub fn X509V3_EXT_conf( + conf: *mut lhash_st_CONF_VALUE, + ctx: *mut X509V3_CTX, + name: *const ::std::os::raw::c_char, + value: *const ::std::os::raw::c_char, + ) -> *mut X509_EXTENSION; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_X509_verify_cert"] - pub fn X509_verify_cert(ctx: *mut X509_STORE_CTX) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_0_21_0_i2s_ASN1_OCTET_STRING"] + pub fn i2s_ASN1_OCTET_STRING( + method: *const X509V3_EXT_METHOD, + oct: *const ASN1_OCTET_STRING, + ) -> *mut ::std::os::raw::c_char; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_X509_check_trust"] - pub fn X509_check_trust( - x: *mut X509, - id: ::std::os::raw::c_int, - flags: ::std::os::raw::c_int, - ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_0_21_0_s2i_ASN1_OCTET_STRING"] + pub fn s2i_ASN1_OCTET_STRING( + method: *const X509V3_EXT_METHOD, + ctx: *const X509V3_CTX, + str_: *const ::std::os::raw::c_char, + ) -> *mut ASN1_OCTET_STRING; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_X509_TRUST_get_count"] - pub fn X509_TRUST_get_count() -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_0_21_0_i2s_ASN1_INTEGER"] + pub fn i2s_ASN1_INTEGER( + method: *const X509V3_EXT_METHOD, + aint: *const ASN1_INTEGER, + ) -> *mut ::std::os::raw::c_char; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_X509_TRUST_get0"] - pub fn X509_TRUST_get0(idx: ::std::os::raw::c_int) -> *const X509_TRUST; + #[link_name = "\u{1}aws_lc_0_21_0_s2i_ASN1_INTEGER"] + pub fn s2i_ASN1_INTEGER( + method: *const X509V3_EXT_METHOD, + value: *const ::std::os::raw::c_char, + ) -> *mut ASN1_INTEGER; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_X509_TRUST_get_by_id"] - pub fn X509_TRUST_get_by_id(id: ::std::os::raw::c_int) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_0_21_0_i2s_ASN1_ENUMERATED"] + pub fn i2s_ASN1_ENUMERATED( + method: *const X509V3_EXT_METHOD, + aint: *const ASN1_ENUMERATED, + ) -> *mut ::std::os::raw::c_char; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_X509_TRUST_get_flags"] - pub fn X509_TRUST_get_flags(xp: *const X509_TRUST) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_0_21_0_X509V3_conf_free"] + pub fn X509V3_conf_free(val: *mut CONF_VALUE); } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_X509_TRUST_get0_name"] - pub fn X509_TRUST_get0_name(xp: *const X509_TRUST) -> *mut ::std::os::raw::c_char; + #[link_name = "\u{1}aws_lc_0_21_0_i2v_GENERAL_NAME"] + pub fn i2v_GENERAL_NAME( + method: *const X509V3_EXT_METHOD, + gen: *const GENERAL_NAME, + ret: *mut stack_st_CONF_VALUE, + ) -> *mut stack_st_CONF_VALUE; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_X509_TRUST_get_trust"] - pub fn X509_TRUST_get_trust(xp: *const X509_TRUST) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_0_21_0_i2v_GENERAL_NAMES"] + pub fn i2v_GENERAL_NAMES( + method: *const X509V3_EXT_METHOD, + gen: *const GENERAL_NAMES, + extlist: *mut stack_st_CONF_VALUE, + ) -> *mut stack_st_CONF_VALUE; } -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct stack_st_X509_OBJECT { - _unused: [u8; 0], -} -pub type sk_X509_OBJECT_free_func = - ::std::option::Option; -pub type sk_X509_OBJECT_copy_func = - ::std::option::Option *mut X509_OBJECT>; -pub type sk_X509_OBJECT_cmp_func = ::std::option::Option< - unsafe extern "C" fn( - arg1: *const *const X509_OBJECT, - arg2: *const *const X509_OBJECT, - ) -> ::std::os::raw::c_int, ->; -pub type sk_X509_OBJECT_delete_if_func = ::std::option::Option< - unsafe extern "C" fn( - arg1: *mut X509_OBJECT, - arg2: *mut ::std::os::raw::c_void, - ) -> ::std::os::raw::c_int, ->; extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_X509_STORE_set_depth"] - pub fn X509_STORE_set_depth( - store: *mut X509_STORE, - depth: ::std::os::raw::c_int, - ) -> ::std::os::raw::c_int; -} -extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_X509_STORE_CTX_set_depth"] - pub fn X509_STORE_CTX_set_depth(ctx: *mut X509_STORE_CTX, depth: ::std::os::raw::c_int); + #[link_name = "\u{1}aws_lc_0_21_0_a2i_IPADDRESS"] + pub fn a2i_IPADDRESS(ipasc: *const ::std::os::raw::c_char) -> *mut ASN1_OCTET_STRING; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_X509_LOOKUP_load_file"] - pub fn X509_LOOKUP_load_file( - lookup: *mut X509_LOOKUP, - path: *const ::std::os::raw::c_char, - type_: ::std::os::raw::c_int, - ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_0_21_0_a2i_IPADDRESS_NC"] + pub fn a2i_IPADDRESS_NC(ipasc: *const ::std::os::raw::c_char) -> *mut ASN1_OCTET_STRING; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_X509_LOOKUP_add_dir"] - pub fn X509_LOOKUP_add_dir( - lookup: *mut X509_LOOKUP, - path: *const ::std::os::raw::c_char, - type_: ::std::os::raw::c_int, - ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_0_21_0_X509_get_notBefore"] + pub fn X509_get_notBefore(x509: *const X509) -> *mut ASN1_TIME; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_X509_OBJECT_new"] - pub fn X509_OBJECT_new() -> *mut X509_OBJECT; + #[link_name = "\u{1}aws_lc_0_21_0_X509_get_notAfter"] + pub fn X509_get_notAfter(x509: *const X509) -> *mut ASN1_TIME; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_X509_OBJECT_free"] - pub fn X509_OBJECT_free(obj: *mut X509_OBJECT); + #[link_name = "\u{1}aws_lc_0_21_0_X509_set_notBefore"] + pub fn X509_set_notBefore(x509: *mut X509, tm: *const ASN1_TIME) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_X509_OBJECT_get_type"] - pub fn X509_OBJECT_get_type(obj: *const X509_OBJECT) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_0_21_0_X509_set_notAfter"] + pub fn X509_set_notAfter(x509: *mut X509, tm: *const ASN1_TIME) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_X509_OBJECT_get0_X509"] - pub fn X509_OBJECT_get0_X509(obj: *const X509_OBJECT) -> *mut X509; + #[link_name = "\u{1}aws_lc_0_21_0_X509_CRL_get_lastUpdate"] + pub fn X509_CRL_get_lastUpdate(crl: *mut X509_CRL) -> *mut ASN1_TIME; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_X509_OBJECT_get0_X509_CRL"] - pub fn X509_OBJECT_get0_X509_CRL(a: *const X509_OBJECT) -> *mut X509_CRL; + #[link_name = "\u{1}aws_lc_0_21_0_X509_CRL_get_nextUpdate"] + pub fn X509_CRL_get_nextUpdate(crl: *mut X509_CRL) -> *mut ASN1_TIME; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_X509_OBJECT_set1_X509"] - pub fn X509_OBJECT_set1_X509(a: *mut X509_OBJECT, obj: *mut X509) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_0_21_0_X509_get_serialNumber"] + pub fn X509_get_serialNumber(x509: *mut X509) -> *mut ASN1_INTEGER; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_X509_OBJECT_set1_X509_CRL"] - pub fn X509_OBJECT_set1_X509_CRL( - a: *mut X509_OBJECT, - obj: *mut X509_CRL, + #[link_name = "\u{1}aws_lc_0_21_0_X509_NAME_get_text_by_OBJ"] + pub fn X509_NAME_get_text_by_OBJ( + name: *const X509_NAME, + obj: *const ASN1_OBJECT, + buf: *mut ::std::os::raw::c_char, + len: ::std::os::raw::c_int, ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_X509_STORE_lock"] - pub fn X509_STORE_lock(v: *mut X509_STORE) -> ::std::os::raw::c_int; -} -extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_X509_STORE_unlock"] - pub fn X509_STORE_unlock(v: *mut X509_STORE) -> ::std::os::raw::c_int; -} -extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_X509_STORE_new"] - pub fn X509_STORE_new() -> *mut X509_STORE; -} -extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_X509_STORE_up_ref"] - pub fn X509_STORE_up_ref(store: *mut X509_STORE) -> ::std::os::raw::c_int; -} -extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_X509_STORE_free"] - pub fn X509_STORE_free(store: *mut X509_STORE); -} -extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_X509_STORE_get0_objects"] - pub fn X509_STORE_get0_objects(st: *mut X509_STORE) -> *mut stack_st_X509_OBJECT; -} -extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_X509_STORE_CTX_get1_certs"] - pub fn X509_STORE_CTX_get1_certs( - st: *mut X509_STORE_CTX, - nm: *mut X509_NAME, - ) -> *mut stack_st_X509; -} -extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_X509_STORE_CTX_get1_crls"] - pub fn X509_STORE_CTX_get1_crls( - st: *mut X509_STORE_CTX, - nm: *mut X509_NAME, - ) -> *mut stack_st_X509_CRL; -} -extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_X509_STORE_set_flags"] - pub fn X509_STORE_set_flags( - store: *mut X509_STORE, - flags: ::std::os::raw::c_ulong, + #[link_name = "\u{1}aws_lc_0_21_0_X509_NAME_get_text_by_NID"] + pub fn X509_NAME_get_text_by_NID( + name: *const X509_NAME, + nid: ::std::os::raw::c_int, + buf: *mut ::std::os::raw::c_char, + len: ::std::os::raw::c_int, ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_X509_STORE_set_purpose"] - pub fn X509_STORE_set_purpose( - store: *mut X509_STORE, - purpose: ::std::os::raw::c_int, - ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_0_21_0_X509_STORE_CTX_get0_parent_ctx"] + pub fn X509_STORE_CTX_get0_parent_ctx(ctx: *mut X509_STORE_CTX) -> *mut X509_STORE_CTX; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_X509_STORE_set_trust"] - pub fn X509_STORE_set_trust( - store: *mut X509_STORE, - trust: ::std::os::raw::c_int, - ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_0_21_0_X509_LOOKUP_free"] + pub fn X509_LOOKUP_free(ctx: *mut X509_LOOKUP); } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_X509_STORE_set1_param"] - pub fn X509_STORE_set1_param( - store: *mut X509_STORE, - param: *const X509_VERIFY_PARAM, - ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_0_21_0_X509_STORE_CTX_cleanup"] + pub fn X509_STORE_CTX_cleanup(ctx: *mut X509_STORE_CTX); } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_X509_STORE_get0_param"] - pub fn X509_STORE_get0_param(store: *mut X509_STORE) -> *mut X509_VERIFY_PARAM; + #[link_name = "\u{1}aws_lc_0_21_0_X509V3_add_standard_extensions"] + pub fn X509V3_add_standard_extensions() -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_X509_STORE_CTX_new"] - pub fn X509_STORE_CTX_new() -> *mut X509_STORE_CTX; + #[link_name = "\u{1}aws_lc_0_21_0_X509V3_parse_list"] + pub fn X509V3_parse_list(line: *const ::std::os::raw::c_char) -> *mut stack_st_CONF_VALUE; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_X509_STORE_CTX_get1_issuer"] - pub fn X509_STORE_CTX_get1_issuer( - issuer: *mut *mut X509, - ctx: *mut X509_STORE_CTX, - x: *mut X509, - ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_0_21_0_X509_STORE_CTX_get_chain"] + pub fn X509_STORE_CTX_get_chain(ctx: *mut X509_STORE_CTX) -> *mut stack_st_X509; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_X509_STORE_CTX_free"] - pub fn X509_STORE_CTX_free(ctx: *mut X509_STORE_CTX); + #[link_name = "\u{1}aws_lc_0_21_0_X509_STORE_CTX_trusted_stack"] + pub fn X509_STORE_CTX_trusted_stack(ctx: *mut X509_STORE_CTX, sk: *mut stack_st_X509); } +pub type X509_STORE_CTX_verify_cb = ::std::option::Option< + unsafe extern "C" fn( + arg1: ::std::os::raw::c_int, + arg2: *mut X509_STORE_CTX, + ) -> ::std::os::raw::c_int, +>; extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_X509_STORE_CTX_init"] - pub fn X509_STORE_CTX_init( + #[link_name = "\u{1}aws_lc_0_21_0_X509_STORE_CTX_set_verify_cb"] + pub fn X509_STORE_CTX_set_verify_cb( ctx: *mut X509_STORE_CTX, - store: *mut X509_STORE, - x509: *mut X509, - chain: *mut stack_st_X509, - ) -> ::std::os::raw::c_int; -} -extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_X509_STORE_CTX_set0_trusted_stack"] - pub fn X509_STORE_CTX_set0_trusted_stack(ctx: *mut X509_STORE_CTX, sk: *mut stack_st_X509); -} -extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_X509_STORE_CTX_get0_store"] - pub fn X509_STORE_CTX_get0_store(ctx: *mut X509_STORE_CTX) -> *mut X509_STORE; -} -extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_X509_STORE_CTX_get0_cert"] - pub fn X509_STORE_CTX_get0_cert(ctx: *mut X509_STORE_CTX) -> *mut X509; -} -extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_X509_STORE_add_lookup"] - pub fn X509_STORE_add_lookup( - v: *mut X509_STORE, - m: *const X509_LOOKUP_METHOD, - ) -> *mut X509_LOOKUP; + verify_cb: ::std::option::Option< + unsafe extern "C" fn( + ok: ::std::os::raw::c_int, + ctx: *mut X509_STORE_CTX, + ) -> ::std::os::raw::c_int, + >, + ); } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_X509_LOOKUP_hash_dir"] - pub fn X509_LOOKUP_hash_dir() -> *const X509_LOOKUP_METHOD; + #[link_name = "\u{1}aws_lc_0_21_0_X509_STORE_set_verify_cb"] + pub fn X509_STORE_set_verify_cb(store: *mut X509_STORE, verify_cb: X509_STORE_CTX_verify_cb); } +pub type X509_STORE_CTX_get_crl_fn = ::std::option::Option< + unsafe extern "C" fn( + ctx: *mut X509_STORE_CTX, + crl: *mut *mut X509_CRL, + x: *mut X509, + ) -> ::std::os::raw::c_int, +>; +pub type X509_STORE_CTX_check_crl_fn = ::std::option::Option< + unsafe extern "C" fn(ctx: *mut X509_STORE_CTX, crl: *mut X509_CRL) -> ::std::os::raw::c_int, +>; extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_X509_LOOKUP_file"] - pub fn X509_LOOKUP_file() -> *const X509_LOOKUP_METHOD; + #[link_name = "\u{1}aws_lc_0_21_0_X509_STORE_set_get_crl"] + pub fn X509_STORE_set_get_crl(store: *mut X509_STORE, get_crl: X509_STORE_CTX_get_crl_fn); } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_X509_STORE_add_cert"] - pub fn X509_STORE_add_cert(ctx: *mut X509_STORE, x: *mut X509) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_0_21_0_X509_STORE_set_check_crl"] + pub fn X509_STORE_set_check_crl(store: *mut X509_STORE, check_crl: X509_STORE_CTX_check_crl_fn); } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_X509_STORE_add_crl"] - pub fn X509_STORE_add_crl(ctx: *mut X509_STORE, x: *mut X509_CRL) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_0_21_0_X509_STORE_CTX_set_chain"] + pub fn X509_STORE_CTX_set_chain(ctx: *mut X509_STORE_CTX, sk: *mut stack_st_X509); } -extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_X509_LOOKUP_ctrl"] - pub fn X509_LOOKUP_ctrl( - ctx: *mut X509_LOOKUP, - cmd: ::std::os::raw::c_int, - argc: *const ::std::os::raw::c_char, - argl: ::std::os::raw::c_long, - ret: *mut *mut ::std::os::raw::c_char, - ) -> ::std::os::raw::c_int; +#[repr(C)] +#[derive(Debug, Copy, Clone, PartialEq, Eq)] +pub struct X509_algor_st { + pub algorithm: *mut ASN1_OBJECT, + pub parameter: *mut ASN1_TYPE, } -extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_X509_load_cert_file"] - pub fn X509_load_cert_file( - ctx: *mut X509_LOOKUP, - file: *const ::std::os::raw::c_char, - type_: ::std::os::raw::c_int, - ) -> ::std::os::raw::c_int; +#[test] +fn bindgen_test_layout_X509_algor_st() { + const UNINIT: ::std::mem::MaybeUninit = ::std::mem::MaybeUninit::uninit(); + let ptr = UNINIT.as_ptr(); + assert_eq!( + ::std::mem::size_of::(), + 16usize, + concat!("Size of: ", stringify!(X509_algor_st)) + ); + assert_eq!( + ::std::mem::align_of::(), + 8usize, + concat!("Alignment of ", stringify!(X509_algor_st)) + ); + assert_eq!( + unsafe { ::std::ptr::addr_of!((*ptr).algorithm) as usize - ptr as usize }, + 0usize, + concat!( + "Offset of field: ", + stringify!(X509_algor_st), + "::", + stringify!(algorithm) + ) + ); + assert_eq!( + unsafe { ::std::ptr::addr_of!((*ptr).parameter) as usize - ptr as usize }, + 8usize, + concat!( + "Offset of field: ", + stringify!(X509_algor_st), + "::", + stringify!(parameter) + ) + ); } -extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_X509_load_crl_file"] - pub fn X509_load_crl_file( - ctx: *mut X509_LOOKUP, - file: *const ::std::os::raw::c_char, - type_: ::std::os::raw::c_int, - ) -> ::std::os::raw::c_int; +impl Default for X509_algor_st { + fn default() -> Self { + let mut s = ::std::mem::MaybeUninit::::uninit(); + unsafe { + ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); + s.assume_init() + } + } } -extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_X509_load_cert_crl_file"] - pub fn X509_load_cert_crl_file( - ctx: *mut X509_LOOKUP, - file: *const ::std::os::raw::c_char, - type_: ::std::os::raw::c_int, - ) -> ::std::os::raw::c_int; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct stack_st_DIST_POINT { + _unused: [u8; 0], } -extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_X509_STORE_load_locations"] - pub fn X509_STORE_load_locations( - ctx: *mut X509_STORE, - file: *const ::std::os::raw::c_char, - dir: *const ::std::os::raw::c_char, - ) -> ::std::os::raw::c_int; +#[repr(C)] +#[derive(Debug, Copy, Clone, PartialEq, Eq)] +pub struct x509_trust_st { + pub trust: ::std::os::raw::c_int, + pub flags: ::std::os::raw::c_int, + pub check_trust: ::std::option::Option< + unsafe extern "C" fn( + arg1: *const X509_TRUST, + arg2: *mut X509, + arg3: ::std::os::raw::c_int, + ) -> ::std::os::raw::c_int, + >, + pub name: *mut ::std::os::raw::c_char, + pub arg1: ::std::os::raw::c_int, + pub arg2: *mut ::std::os::raw::c_void, } -extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_X509_STORE_set_default_paths"] - pub fn X509_STORE_set_default_paths(ctx: *mut X509_STORE) -> ::std::os::raw::c_int; +#[test] +fn bindgen_test_layout_x509_trust_st() { + const UNINIT: ::std::mem::MaybeUninit = ::std::mem::MaybeUninit::uninit(); + let ptr = UNINIT.as_ptr(); + assert_eq!( + ::std::mem::size_of::(), + 40usize, + concat!("Size of: ", stringify!(x509_trust_st)) + ); + assert_eq!( + ::std::mem::align_of::(), + 8usize, + concat!("Alignment of ", stringify!(x509_trust_st)) + ); + assert_eq!( + unsafe { ::std::ptr::addr_of!((*ptr).trust) as usize - ptr as usize }, + 0usize, + concat!( + "Offset of field: ", + stringify!(x509_trust_st), + "::", + stringify!(trust) + ) + ); + assert_eq!( + unsafe { ::std::ptr::addr_of!((*ptr).flags) as usize - ptr as usize }, + 4usize, + concat!( + "Offset of field: ", + stringify!(x509_trust_st), + "::", + stringify!(flags) + ) + ); + assert_eq!( + unsafe { ::std::ptr::addr_of!((*ptr).check_trust) as usize - ptr as usize }, + 8usize, + concat!( + "Offset of field: ", + stringify!(x509_trust_st), + "::", + stringify!(check_trust) + ) + ); + assert_eq!( + unsafe { ::std::ptr::addr_of!((*ptr).name) as usize - ptr as usize }, + 16usize, + concat!( + "Offset of field: ", + stringify!(x509_trust_st), + "::", + stringify!(name) + ) + ); + assert_eq!( + unsafe { ::std::ptr::addr_of!((*ptr).arg1) as usize - ptr as usize }, + 24usize, + concat!( + "Offset of field: ", + stringify!(x509_trust_st), + "::", + stringify!(arg1) + ) + ); + assert_eq!( + unsafe { ::std::ptr::addr_of!((*ptr).arg2) as usize - ptr as usize }, + 32usize, + concat!( + "Offset of field: ", + stringify!(x509_trust_st), + "::", + stringify!(arg2) + ) + ); } -extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_X509_STORE_CTX_get_error"] - pub fn X509_STORE_CTX_get_error(ctx: *mut X509_STORE_CTX) -> ::std::os::raw::c_int; +impl Default for x509_trust_st { + fn default() -> Self { + let mut s = ::std::mem::MaybeUninit::::uninit(); + unsafe { + ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); + s.assume_init() + } + } } -extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_X509_STORE_CTX_set_error"] - pub fn X509_STORE_CTX_set_error(ctx: *mut X509_STORE_CTX, s: ::std::os::raw::c_int); +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct stack_st_X509_TRUST { + _unused: [u8; 0], } +pub type sk_X509_TRUST_free_func = + ::std::option::Option; +pub type sk_X509_TRUST_copy_func = + ::std::option::Option *mut X509_TRUST>; +pub type sk_X509_TRUST_cmp_func = ::std::option::Option< + unsafe extern "C" fn( + arg1: *const *const X509_TRUST, + arg2: *const *const X509_TRUST, + ) -> ::std::os::raw::c_int, +>; +pub type sk_X509_TRUST_delete_if_func = ::std::option::Option< + unsafe extern "C" fn( + arg1: *mut X509_TRUST, + arg2: *mut ::std::os::raw::c_void, + ) -> ::std::os::raw::c_int, +>; extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_X509_STORE_CTX_get_error_depth"] - pub fn X509_STORE_CTX_get_error_depth(ctx: *mut X509_STORE_CTX) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_0_21_0_X509_get_default_cert_area"] + pub fn X509_get_default_cert_area() -> *const ::std::os::raw::c_char; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_X509_STORE_CTX_get_current_cert"] - pub fn X509_STORE_CTX_get_current_cert(ctx: *mut X509_STORE_CTX) -> *mut X509; + #[link_name = "\u{1}aws_lc_0_21_0_X509_get_default_cert_dir"] + pub fn X509_get_default_cert_dir() -> *const ::std::os::raw::c_char; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_X509_STORE_CTX_get0_current_issuer"] - pub fn X509_STORE_CTX_get0_current_issuer(ctx: *mut X509_STORE_CTX) -> *mut X509; + #[link_name = "\u{1}aws_lc_0_21_0_X509_get_default_cert_file"] + pub fn X509_get_default_cert_file() -> *const ::std::os::raw::c_char; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_X509_STORE_CTX_get0_current_crl"] - pub fn X509_STORE_CTX_get0_current_crl(ctx: *mut X509_STORE_CTX) -> *mut X509_CRL; + #[link_name = "\u{1}aws_lc_0_21_0_X509_get_default_cert_dir_env"] + pub fn X509_get_default_cert_dir_env() -> *const ::std::os::raw::c_char; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_X509_STORE_CTX_get0_chain"] - pub fn X509_STORE_CTX_get0_chain(ctx: *mut X509_STORE_CTX) -> *mut stack_st_X509; + #[link_name = "\u{1}aws_lc_0_21_0_X509_get_default_cert_file_env"] + pub fn X509_get_default_cert_file_env() -> *const ::std::os::raw::c_char; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_X509_STORE_CTX_get1_chain"] - pub fn X509_STORE_CTX_get1_chain(ctx: *mut X509_STORE_CTX) -> *mut stack_st_X509; + #[link_name = "\u{1}aws_lc_0_21_0_X509_get_default_private_dir"] + pub fn X509_get_default_private_dir() -> *const ::std::os::raw::c_char; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_X509_STORE_CTX_set_cert"] - pub fn X509_STORE_CTX_set_cert(c: *mut X509_STORE_CTX, x: *mut X509); + #[link_name = "\u{1}aws_lc_0_21_0_X509_TRUST_set"] + pub fn X509_TRUST_set( + t: *mut ::std::os::raw::c_int, + trust: ::std::os::raw::c_int, + ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_X509_STORE_CTX_get0_untrusted"] - pub fn X509_STORE_CTX_get0_untrusted(ctx: *mut X509_STORE_CTX) -> *mut stack_st_X509; + #[link_name = "\u{1}aws_lc_0_21_0_X509_cmp"] + pub fn X509_cmp(a: *const X509, b: *const X509) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_X509_STORE_CTX_set0_crls"] - pub fn X509_STORE_CTX_set0_crls(c: *mut X509_STORE_CTX, sk: *mut stack_st_X509_CRL); + #[link_name = "\u{1}aws_lc_0_21_0_X509_NAME_hash"] + pub fn X509_NAME_hash(name: *mut X509_NAME) -> u32; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_X509_STORE_CTX_set_purpose"] - pub fn X509_STORE_CTX_set_purpose( - ctx: *mut X509_STORE_CTX, - purpose: ::std::os::raw::c_int, - ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_0_21_0_X509_NAME_hash_old"] + pub fn X509_NAME_hash_old(name: *mut X509_NAME) -> u32; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_X509_STORE_CTX_set_trust"] - pub fn X509_STORE_CTX_set_trust( - ctx: *mut X509_STORE_CTX, - trust: ::std::os::raw::c_int, - ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_0_21_0_X509_CRL_match"] + pub fn X509_CRL_match(a: *const X509_CRL, b: *const X509_CRL) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_X509_STORE_CTX_purpose_inherit"] - pub fn X509_STORE_CTX_purpose_inherit( - ctx: *mut X509_STORE_CTX, - def_purpose: ::std::os::raw::c_int, - purpose: ::std::os::raw::c_int, - trust: ::std::os::raw::c_int, - ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_0_21_0_X509_TRUST_get_count"] + pub fn X509_TRUST_get_count() -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_X509_STORE_CTX_set_flags"] - pub fn X509_STORE_CTX_set_flags(ctx: *mut X509_STORE_CTX, flags: ::std::os::raw::c_ulong); + #[link_name = "\u{1}aws_lc_0_21_0_X509_TRUST_get0"] + pub fn X509_TRUST_get0(idx: ::std::os::raw::c_int) -> *const X509_TRUST; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_X509_STORE_CTX_set_time"] - pub fn X509_STORE_CTX_set_time( - ctx: *mut X509_STORE_CTX, - flags: ::std::os::raw::c_ulong, - t: time_t, - ); + #[link_name = "\u{1}aws_lc_0_21_0_X509_TRUST_get_by_id"] + pub fn X509_TRUST_get_by_id(id: ::std::os::raw::c_int) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_X509_STORE_CTX_set_time_posix"] - pub fn X509_STORE_CTX_set_time_posix( - ctx: *mut X509_STORE_CTX, - flags: ::std::os::raw::c_ulong, - t: i64, - ); + #[link_name = "\u{1}aws_lc_0_21_0_X509_TRUST_get_flags"] + pub fn X509_TRUST_get_flags(xp: *const X509_TRUST) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_X509_STORE_CTX_get0_param"] - pub fn X509_STORE_CTX_get0_param(ctx: *mut X509_STORE_CTX) -> *mut X509_VERIFY_PARAM; + #[link_name = "\u{1}aws_lc_0_21_0_X509_TRUST_get0_name"] + pub fn X509_TRUST_get0_name(xp: *const X509_TRUST) -> *mut ::std::os::raw::c_char; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_X509_STORE_CTX_set0_param"] - pub fn X509_STORE_CTX_set0_param(ctx: *mut X509_STORE_CTX, param: *mut X509_VERIFY_PARAM); + #[link_name = "\u{1}aws_lc_0_21_0_X509_TRUST_get_trust"] + pub fn X509_TRUST_get_trust(xp: *const X509_TRUST) -> ::std::os::raw::c_int; +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct stack_st_X509_OBJECT { + _unused: [u8; 0], } +pub type sk_X509_OBJECT_free_func = + ::std::option::Option; +pub type sk_X509_OBJECT_copy_func = + ::std::option::Option *mut X509_OBJECT>; +pub type sk_X509_OBJECT_cmp_func = ::std::option::Option< + unsafe extern "C" fn( + arg1: *const *const X509_OBJECT, + arg2: *const *const X509_OBJECT, + ) -> ::std::os::raw::c_int, +>; +pub type sk_X509_OBJECT_delete_if_func = ::std::option::Option< + unsafe extern "C" fn( + arg1: *mut X509_OBJECT, + arg2: *mut ::std::os::raw::c_void, + ) -> ::std::os::raw::c_int, +>; extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_X509_STORE_CTX_set_default"] - pub fn X509_STORE_CTX_set_default( - ctx: *mut X509_STORE_CTX, - name: *const ::std::os::raw::c_char, + #[link_name = "\u{1}aws_lc_0_21_0_X509_LOOKUP_load_file"] + pub fn X509_LOOKUP_load_file( + lookup: *mut X509_LOOKUP, + path: *const ::std::os::raw::c_char, + type_: ::std::os::raw::c_int, ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_X509_STORE_CTX_get_by_subject"] - pub fn X509_STORE_CTX_get_by_subject( - vs: *mut X509_STORE_CTX, + #[link_name = "\u{1}aws_lc_0_21_0_X509_LOOKUP_add_dir"] + pub fn X509_LOOKUP_add_dir( + lookup: *mut X509_LOOKUP, + path: *const ::std::os::raw::c_char, type_: ::std::os::raw::c_int, - name: *mut X509_NAME, - ret: *mut X509_OBJECT, ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_X509_VERIFY_PARAM_new"] - pub fn X509_VERIFY_PARAM_new() -> *mut X509_VERIFY_PARAM; + #[link_name = "\u{1}aws_lc_0_21_0_X509_OBJECT_new"] + pub fn X509_OBJECT_new() -> *mut X509_OBJECT; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_X509_VERIFY_PARAM_free"] - pub fn X509_VERIFY_PARAM_free(param: *mut X509_VERIFY_PARAM); + #[link_name = "\u{1}aws_lc_0_21_0_X509_OBJECT_free"] + pub fn X509_OBJECT_free(obj: *mut X509_OBJECT); } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_X509_VERIFY_PARAM_inherit"] - pub fn X509_VERIFY_PARAM_inherit( - to: *mut X509_VERIFY_PARAM, - from: *const X509_VERIFY_PARAM, - ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_0_21_0_X509_OBJECT_get_type"] + pub fn X509_OBJECT_get_type(obj: *const X509_OBJECT) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_X509_VERIFY_PARAM_set1"] - pub fn X509_VERIFY_PARAM_set1( - to: *mut X509_VERIFY_PARAM, - from: *const X509_VERIFY_PARAM, - ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_0_21_0_X509_OBJECT_get0_X509"] + pub fn X509_OBJECT_get0_X509(obj: *const X509_OBJECT) -> *mut X509; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_X509_VERIFY_PARAM_set_flags"] - pub fn X509_VERIFY_PARAM_set_flags( - param: *mut X509_VERIFY_PARAM, - flags: ::std::os::raw::c_ulong, - ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_0_21_0_X509_OBJECT_get0_X509_CRL"] + pub fn X509_OBJECT_get0_X509_CRL(a: *const X509_OBJECT) -> *mut X509_CRL; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_X509_VERIFY_PARAM_clear_flags"] - pub fn X509_VERIFY_PARAM_clear_flags( - param: *mut X509_VERIFY_PARAM, - flags: ::std::os::raw::c_ulong, + #[link_name = "\u{1}aws_lc_0_21_0_X509_OBJECT_set1_X509"] + pub fn X509_OBJECT_set1_X509(a: *mut X509_OBJECT, obj: *mut X509) -> ::std::os::raw::c_int; +} +extern "C" { + #[link_name = "\u{1}aws_lc_0_21_0_X509_OBJECT_set1_X509_CRL"] + pub fn X509_OBJECT_set1_X509_CRL( + a: *mut X509_OBJECT, + obj: *mut X509_CRL, ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_X509_VERIFY_PARAM_get_flags"] - pub fn X509_VERIFY_PARAM_get_flags(param: *const X509_VERIFY_PARAM) -> ::std::os::raw::c_ulong; + #[link_name = "\u{1}aws_lc_0_21_0_X509_STORE_lock"] + pub fn X509_STORE_lock(v: *mut X509_STORE) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_X509_VERIFY_PARAM_set_purpose"] - pub fn X509_VERIFY_PARAM_set_purpose( - param: *mut X509_VERIFY_PARAM, - purpose: ::std::os::raw::c_int, - ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_0_21_0_X509_STORE_unlock"] + pub fn X509_STORE_unlock(v: *mut X509_STORE) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_X509_VERIFY_PARAM_set_trust"] - pub fn X509_VERIFY_PARAM_set_trust( - param: *mut X509_VERIFY_PARAM, - trust: ::std::os::raw::c_int, - ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_0_21_0_X509_STORE_get0_objects"] + pub fn X509_STORE_get0_objects(st: *mut X509_STORE) -> *mut stack_st_X509_OBJECT; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_X509_VERIFY_PARAM_set_depth"] - pub fn X509_VERIFY_PARAM_set_depth(param: *mut X509_VERIFY_PARAM, depth: ::std::os::raw::c_int); + #[link_name = "\u{1}aws_lc_0_21_0_X509_STORE_CTX_get1_certs"] + pub fn X509_STORE_CTX_get1_certs( + st: *mut X509_STORE_CTX, + nm: *mut X509_NAME, + ) -> *mut stack_st_X509; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_X509_VERIFY_PARAM_set_time"] - pub fn X509_VERIFY_PARAM_set_time(param: *mut X509_VERIFY_PARAM, t: time_t); + #[link_name = "\u{1}aws_lc_0_21_0_X509_STORE_CTX_get1_crls"] + pub fn X509_STORE_CTX_get1_crls( + st: *mut X509_STORE_CTX, + nm: *mut X509_NAME, + ) -> *mut stack_st_X509_CRL; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_X509_VERIFY_PARAM_set_time_posix"] - pub fn X509_VERIFY_PARAM_set_time_posix(param: *mut X509_VERIFY_PARAM, t: i64); + #[link_name = "\u{1}aws_lc_0_21_0_X509_STORE_add_lookup"] + pub fn X509_STORE_add_lookup( + v: *mut X509_STORE, + m: *const X509_LOOKUP_METHOD, + ) -> *mut X509_LOOKUP; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_X509_VERIFY_PARAM_add0_policy"] - pub fn X509_VERIFY_PARAM_add0_policy( - param: *mut X509_VERIFY_PARAM, - policy: *mut ASN1_OBJECT, - ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_0_21_0_X509_LOOKUP_hash_dir"] + pub fn X509_LOOKUP_hash_dir() -> *const X509_LOOKUP_METHOD; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_X509_VERIFY_PARAM_set1_policies"] - pub fn X509_VERIFY_PARAM_set1_policies( - param: *mut X509_VERIFY_PARAM, - policies: *const stack_st_ASN1_OBJECT, - ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_0_21_0_X509_LOOKUP_file"] + pub fn X509_LOOKUP_file() -> *const X509_LOOKUP_METHOD; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_X509_VERIFY_PARAM_set1_host"] - pub fn X509_VERIFY_PARAM_set1_host( - param: *mut X509_VERIFY_PARAM, - name: *const ::std::os::raw::c_char, - namelen: usize, + #[link_name = "\u{1}aws_lc_0_21_0_X509_STORE_CTX_get_by_subject"] + pub fn X509_STORE_CTX_get_by_subject( + vs: *mut X509_STORE_CTX, + type_: ::std::os::raw::c_int, + name: *mut X509_NAME, + ret: *mut X509_OBJECT, ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_X509_VERIFY_PARAM_add1_host"] - pub fn X509_VERIFY_PARAM_add1_host( - param: *mut X509_VERIFY_PARAM, - name: *const ::std::os::raw::c_char, - name_len: usize, + #[link_name = "\u{1}aws_lc_0_21_0_X509_LOOKUP_ctrl"] + pub fn X509_LOOKUP_ctrl( + ctx: *mut X509_LOOKUP, + cmd: ::std::os::raw::c_int, + argc: *const ::std::os::raw::c_char, + argl: ::std::os::raw::c_long, + ret: *mut *mut ::std::os::raw::c_char, ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_X509_VERIFY_PARAM_set_hostflags"] - pub fn X509_VERIFY_PARAM_set_hostflags( - param: *mut X509_VERIFY_PARAM, - flags: ::std::os::raw::c_uint, - ); + #[link_name = "\u{1}aws_lc_0_21_0_X509_load_cert_file"] + pub fn X509_load_cert_file( + ctx: *mut X509_LOOKUP, + file: *const ::std::os::raw::c_char, + type_: ::std::os::raw::c_int, + ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_X509_VERIFY_PARAM_set1_email"] - pub fn X509_VERIFY_PARAM_set1_email( - param: *mut X509_VERIFY_PARAM, - email: *const ::std::os::raw::c_char, - emaillen: usize, + #[link_name = "\u{1}aws_lc_0_21_0_X509_load_crl_file"] + pub fn X509_load_crl_file( + ctx: *mut X509_LOOKUP, + file: *const ::std::os::raw::c_char, + type_: ::std::os::raw::c_int, ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_X509_VERIFY_PARAM_set1_ip"] - pub fn X509_VERIFY_PARAM_set1_ip( - param: *mut X509_VERIFY_PARAM, - ip: *const ::std::os::raw::c_uchar, - iplen: usize, + #[link_name = "\u{1}aws_lc_0_21_0_X509_load_cert_crl_file"] + pub fn X509_load_cert_crl_file( + ctx: *mut X509_LOOKUP, + file: *const ::std::os::raw::c_char, + type_: ::std::os::raw::c_int, ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_X509_VERIFY_PARAM_set1_ip_asc"] - pub fn X509_VERIFY_PARAM_set1_ip_asc( - param: *mut X509_VERIFY_PARAM, - ipasc: *const ::std::os::raw::c_char, + #[link_name = "\u{1}aws_lc_0_21_0_X509_STORE_load_locations"] + pub fn X509_STORE_load_locations( + ctx: *mut X509_STORE, + file: *const ::std::os::raw::c_char, + dir: *const ::std::os::raw::c_char, ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_X509_VERIFY_PARAM_get_depth"] - pub fn X509_VERIFY_PARAM_get_depth(param: *const X509_VERIFY_PARAM) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_0_21_0_X509_STORE_set_default_paths"] + pub fn X509_STORE_set_default_paths(ctx: *mut X509_STORE) -> ::std::os::raw::c_int; } pub type X509V3_EXT_NEW = ::std::option::Option *mut ::std::os::raw::c_void>; @@ -25348,14 +25337,6 @@ extern "C" { flags: ::std::os::raw::c_ulong, ) -> ::std::os::raw::c_int; } -extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_X509_check_purpose"] - pub fn X509_check_purpose( - x: *mut X509, - id: ::std::os::raw::c_int, - ca: ::std::os::raw::c_int, - ) -> ::std::os::raw::c_int; -} extern "C" { #[link_name = "\u{1}aws_lc_0_21_0_X509_PURPOSE_set"] pub fn X509_PURPOSE_set( From a61e35b7152c7515ffd9c887df4cfb32e0d8aeab Mon Sep 17 00:00:00 2001 From: aws-lc-sys-bindings-generator Date: Wed, 28 Aug 2024 14:40:35 +0000 Subject: [PATCH 21/36] Generated bindings from macos-12 --- aws-lc-sys/src/x86_64_apple_darwin_crypto.rs | 3591 +++++++++--------- 1 file changed, 1786 insertions(+), 1805 deletions(-) diff --git a/aws-lc-sys/src/x86_64_apple_darwin_crypto.rs b/aws-lc-sys/src/x86_64_apple_darwin_crypto.rs index a6b99c3ae01..774f82ceea0 100644 --- a/aws-lc-sys/src/x86_64_apple_darwin_crypto.rs +++ b/aws-lc-sys/src/x86_64_apple_darwin_crypto.rs @@ -111,7 +111,7 @@ pub const AWSLC_VERSION_NAME: &[u8; 7] = b"AWS-LC\0"; pub const OPENSSL_VERSION_NUMBER: i32 = 269488255; pub const SSLEAY_VERSION_NUMBER: i32 = 269488255; pub const AWSLC_API_VERSION: i32 = 29; -pub const AWSLC_VERSION_NUMBER_STRING: &[u8; 7] = b"1.33.0\0"; +pub const AWSLC_VERSION_NUMBER_STRING: &[u8; 7] = b"1.34.2\0"; pub const AES_ENCRYPT: i32 = 1; pub const AES_DECRYPT: i32 = 0; pub const AES_MAXNR: i32 = 14; @@ -132,7 +132,7 @@ pub const CRYPTO_LOCK: i32 = 1; pub const CRYPTO_UNLOCK: i32 = 2; pub const CRYPTO_READ: i32 = 4; pub const CRYPTO_WRITE: i32 = 8; -pub const OPENSSL_VERSION_TEXT: &[u8; 42] = b"OpenSSL 1.1.1 (compatible; AWS-LC 1.33.0)\0"; +pub const OPENSSL_VERSION_TEXT: &[u8; 42] = b"OpenSSL 1.1.1 (compatible; AWS-LC 1.34.2)\0"; pub const OPENSSL_VERSION: i32 = 0; pub const OPENSSL_CFLAGS: i32 = 1; pub const OPENSSL_BUILT_ON: i32 = 2; @@ -3283,6 +3283,14 @@ pub const EVP_PKEY_DH: i32 = 28; pub const HKDF_R_OUTPUT_TOO_LARGE: i32 = 100; pub const MD5_CBLOCK: i32 = 64; pub const MD5_DIGEST_LENGTH: i32 = 16; +pub const HMAC_MD5_PRECOMPUTED_KEY_SIZE: i32 = 32; +pub const HMAC_SHA1_PRECOMPUTED_KEY_SIZE: i32 = 40; +pub const HMAC_SHA224_PRECOMPUTED_KEY_SIZE: i32 = 64; +pub const HMAC_SHA256_PRECOMPUTED_KEY_SIZE: i32 = 64; +pub const HMAC_SHA384_PRECOMPUTED_KEY_SIZE: i32 = 128; +pub const HMAC_SHA512_PRECOMPUTED_KEY_SIZE: i32 = 128; +pub const HMAC_SHA512_224_PRECOMPUTED_KEY_SIZE: i32 = 128; +pub const HMAC_SHA512_256_PRECOMPUTED_KEY_SIZE: i32 = 128; pub const HMAC_MAX_PRECOMPUTED_KEY_SIZE: i32 = 128; pub const HMAC_R_MISSING_PARAMETERS: i32 = 100; pub const HMAC_R_BUFFER_TOO_SMALL: i32 = 102; @@ -3501,63 +3509,6 @@ pub const GEN_EDIPARTY: i32 = 5; pub const GEN_URI: i32 = 6; pub const GEN_IPADD: i32 = 7; pub const GEN_RID: i32 = 8; -pub const X509_FLAG_COMPAT: i32 = 0; -pub const X509_FLAG_NO_HEADER: i32 = 1; -pub const X509_FLAG_NO_VERSION: i32 = 2; -pub const X509_FLAG_NO_SERIAL: i32 = 4; -pub const X509_FLAG_NO_SIGNAME: i32 = 8; -pub const X509_FLAG_NO_ISSUER: i32 = 16; -pub const X509_FLAG_NO_VALIDITY: i32 = 32; -pub const X509_FLAG_NO_SUBJECT: i32 = 64; -pub const X509_FLAG_NO_PUBKEY: i32 = 128; -pub const X509_FLAG_NO_EXTENSIONS: i32 = 256; -pub const X509_FLAG_NO_SIGDUMP: i32 = 512; -pub const X509_FLAG_NO_AUX: i32 = 1024; -pub const X509_FLAG_NO_ATTRIBUTES: i32 = 2048; -pub const X509_FLAG_NO_IDS: i32 = 4096; -pub const X509V3_EXT_UNKNOWN_MASK: i32 = 983040; -pub const X509V3_EXT_DEFAULT: i32 = 0; -pub const X509V3_EXT_ERROR_UNKNOWN: i32 = 65536; -pub const X509V3_EXT_PARSE_UNKNOWN: i32 = 131072; -pub const X509V3_EXT_DUMP_UNKNOWN: i32 = 196608; -pub const XN_FLAG_COMPAT: i32 = 0; -pub const XN_FLAG_SEP_MASK: i32 = 983040; -pub const XN_FLAG_SEP_COMMA_PLUS: i32 = 65536; -pub const XN_FLAG_SEP_CPLUS_SPC: i32 = 131072; -pub const XN_FLAG_SEP_SPLUS_SPC: i32 = 196608; -pub const XN_FLAG_SEP_MULTILINE: i32 = 262144; -pub const XN_FLAG_DN_REV: i32 = 1048576; -pub const XN_FLAG_FN_MASK: i32 = 6291456; -pub const XN_FLAG_FN_SN: i32 = 0; -pub const XN_FLAG_FN_LN: i32 = 2097152; -pub const XN_FLAG_FN_OID: i32 = 4194304; -pub const XN_FLAG_FN_NONE: i32 = 6291456; -pub const XN_FLAG_SPC_EQ: i32 = 8388608; -pub const XN_FLAG_DUMP_UNKNOWN_FIELDS: i32 = 16777216; -pub const XN_FLAG_FN_ALIGN: i32 = 33554432; -pub const XN_FLAG_RFC2253: i32 = 17892119; -pub const XN_FLAG_ONELINE: i32 = 8520479; -pub const XN_FLAG_MULTILINE: i32 = 44302342; -pub const X509V3_CTX_TEST: i32 = 1; -pub const X509_TRUST_DEFAULT: i32 = -1; -pub const X509_TRUST_COMPAT: i32 = 1; -pub const X509_TRUST_SSL_CLIENT: i32 = 2; -pub const X509_TRUST_SSL_SERVER: i32 = 3; -pub const X509_TRUST_EMAIL: i32 = 4; -pub const X509_TRUST_OBJECT_SIGN: i32 = 5; -pub const X509_TRUST_TSA: i32 = 8; -pub const X509_TRUST_TRUSTED: i32 = 1; -pub const X509_TRUST_REJECTED: i32 = 2; -pub const X509_TRUST_UNTRUSTED: i32 = 3; -pub const X509_LU_NONE: i32 = 0; -pub const X509_LU_X509: i32 = 1; -pub const X509_LU_CRL: i32 = 2; -pub const X509_LU_PKEY: i32 = 3; -pub const X509_L_FILE_LOAD: i32 = 1; -pub const X509_L_ADD_DIR: i32 = 2; -pub const X509_FILETYPE_PEM: i32 = 1; -pub const X509_FILETYPE_ASN1: i32 = 2; -pub const X509_FILETYPE_DEFAULT: i32 = 3; pub const X509_V_OK: i32 = 0; pub const X509_V_ERR_UNSPECIFIED: i32 = 1; pub const X509_V_ERR_UNABLE_TO_GET_ISSUER_CERT: i32 = 2; @@ -3619,6 +3570,78 @@ pub const X509_V_ERR_IP_ADDRESS_MISMATCH: i32 = 64; pub const X509_V_ERR_INVALID_CALL: i32 = 65; pub const X509_V_ERR_STORE_LOOKUP: i32 = 66; pub const X509_V_ERR_NAME_CONSTRAINTS_WITHOUT_SANS: i32 = 67; +pub const X509_CHECK_FLAG_NO_WILDCARDS: i32 = 2; +pub const X509_CHECK_FLAG_NEVER_CHECK_SUBJECT: i32 = 32; +pub const X509_PURPOSE_SSL_CLIENT: i32 = 1; +pub const X509_PURPOSE_SSL_SERVER: i32 = 2; +pub const X509_PURPOSE_NS_SSL_SERVER: i32 = 3; +pub const X509_PURPOSE_SMIME_SIGN: i32 = 4; +pub const X509_PURPOSE_SMIME_ENCRYPT: i32 = 5; +pub const X509_PURPOSE_CRL_SIGN: i32 = 6; +pub const X509_PURPOSE_ANY: i32 = 7; +pub const X509_PURPOSE_OCSP_HELPER: i32 = 8; +pub const X509_PURPOSE_TIMESTAMP_SIGN: i32 = 9; +pub const X509_TRUST_COMPAT: i32 = 1; +pub const X509_TRUST_SSL_CLIENT: i32 = 2; +pub const X509_TRUST_SSL_SERVER: i32 = 3; +pub const X509_TRUST_EMAIL: i32 = 4; +pub const X509_TRUST_OBJECT_SIGN: i32 = 5; +pub const X509_TRUST_TSA: i32 = 8; +pub const X509_FLAG_COMPAT: i32 = 0; +pub const X509_FLAG_NO_HEADER: i32 = 1; +pub const X509_FLAG_NO_VERSION: i32 = 2; +pub const X509_FLAG_NO_SERIAL: i32 = 4; +pub const X509_FLAG_NO_SIGNAME: i32 = 8; +pub const X509_FLAG_NO_ISSUER: i32 = 16; +pub const X509_FLAG_NO_VALIDITY: i32 = 32; +pub const X509_FLAG_NO_SUBJECT: i32 = 64; +pub const X509_FLAG_NO_PUBKEY: i32 = 128; +pub const X509_FLAG_NO_EXTENSIONS: i32 = 256; +pub const X509_FLAG_NO_SIGDUMP: i32 = 512; +pub const X509_FLAG_NO_AUX: i32 = 1024; +pub const X509_FLAG_NO_ATTRIBUTES: i32 = 2048; +pub const X509_FLAG_NO_IDS: i32 = 4096; +pub const X509V3_EXT_UNKNOWN_MASK: i32 = 983040; +pub const X509V3_EXT_DEFAULT: i32 = 0; +pub const X509V3_EXT_ERROR_UNKNOWN: i32 = 65536; +pub const X509V3_EXT_PARSE_UNKNOWN: i32 = 131072; +pub const X509V3_EXT_DUMP_UNKNOWN: i32 = 196608; +pub const XN_FLAG_COMPAT: i32 = 0; +pub const XN_FLAG_SEP_MASK: i32 = 983040; +pub const XN_FLAG_SEP_COMMA_PLUS: i32 = 65536; +pub const XN_FLAG_SEP_CPLUS_SPC: i32 = 131072; +pub const XN_FLAG_SEP_SPLUS_SPC: i32 = 196608; +pub const XN_FLAG_SEP_MULTILINE: i32 = 262144; +pub const XN_FLAG_DN_REV: i32 = 1048576; +pub const XN_FLAG_FN_MASK: i32 = 6291456; +pub const XN_FLAG_FN_SN: i32 = 0; +pub const XN_FLAG_FN_LN: i32 = 2097152; +pub const XN_FLAG_FN_OID: i32 = 4194304; +pub const XN_FLAG_FN_NONE: i32 = 6291456; +pub const XN_FLAG_SPC_EQ: i32 = 8388608; +pub const XN_FLAG_DUMP_UNKNOWN_FIELDS: i32 = 16777216; +pub const XN_FLAG_FN_ALIGN: i32 = 33554432; +pub const XN_FLAG_RFC2253: i32 = 17892119; +pub const XN_FLAG_ONELINE: i32 = 8520479; +pub const XN_FLAG_MULTILINE: i32 = 44302342; +pub const X509_TRUST_TRUSTED: i32 = 1; +pub const X509_TRUST_REJECTED: i32 = 2; +pub const X509_TRUST_UNTRUSTED: i32 = 3; +pub const X509V3_CTX_TEST: i32 = 1; +pub const X509_CHECK_FLAG_ALWAYS_CHECK_SUBJECT: i32 = 0; +pub const X509_CHECK_FLAG_MULTI_LABEL_WILDCARDS: i32 = 0; +pub const X509_CHECK_FLAG_SINGLE_LABEL_SUBDOMAINS: i32 = 0; +pub const X509_CHECK_FLAG_NO_PARTIAL_WILDCARDS: i32 = 0; +pub const X509_TRUST_DEFAULT: i32 = -1; +pub const X509_LU_NONE: i32 = 0; +pub const X509_LU_X509: i32 = 1; +pub const X509_LU_CRL: i32 = 2; +pub const X509_LU_PKEY: i32 = 3; +pub const X509_L_FILE_LOAD: i32 = 1; +pub const X509_L_ADD_DIR: i32 = 2; +pub const X509_FILETYPE_PEM: i32 = 1; +pub const X509_FILETYPE_ASN1: i32 = 2; +pub const X509_FILETYPE_DEFAULT: i32 = 3; pub const X509_V_FLAG_CB_ISSUER_CHECK: i32 = 1; pub const X509_V_FLAG_USE_CHECK_TIME: i32 = 2; pub const X509_V_FLAG_CRL_CHECK: i32 = 4; @@ -3650,15 +3673,6 @@ pub const NS_SSL_CA: i32 = 4; pub const NS_SMIME_CA: i32 = 2; pub const NS_OBJSIGN_CA: i32 = 1; pub const NS_ANY_CA: i32 = 7; -pub const X509_PURPOSE_SSL_CLIENT: i32 = 1; -pub const X509_PURPOSE_SSL_SERVER: i32 = 2; -pub const X509_PURPOSE_NS_SSL_SERVER: i32 = 3; -pub const X509_PURPOSE_SMIME_SIGN: i32 = 4; -pub const X509_PURPOSE_SMIME_ENCRYPT: i32 = 5; -pub const X509_PURPOSE_CRL_SIGN: i32 = 6; -pub const X509_PURPOSE_ANY: i32 = 7; -pub const X509_PURPOSE_OCSP_HELPER: i32 = 8; -pub const X509_PURPOSE_TIMESTAMP_SIGN: i32 = 9; pub const X509V3_ADD_OP_MASK: i32 = 15; pub const X509V3_ADD_DEFAULT: i32 = 0; pub const X509V3_ADD_APPEND: i32 = 1; @@ -3667,12 +3681,6 @@ pub const X509V3_ADD_REPLACE_EXISTING: i32 = 3; pub const X509V3_ADD_KEEP_EXISTING: i32 = 4; pub const X509V3_ADD_DELETE: i32 = 5; pub const X509V3_ADD_SILENT: i32 = 16; -pub const X509_CHECK_FLAG_NO_WILDCARDS: i32 = 2; -pub const X509_CHECK_FLAG_NEVER_CHECK_SUBJECT: i32 = 32; -pub const X509_CHECK_FLAG_NO_PARTIAL_WILDCARDS: i32 = 0; -pub const X509_CHECK_FLAG_ALWAYS_CHECK_SUBJECT: i32 = 0; -pub const X509_CHECK_FLAG_MULTI_LABEL_WILDCARDS: i32 = 0; -pub const X509_CHECK_FLAG_SINGLE_LABEL_SUBDOMAINS: i32 = 0; pub const X509_R_AKID_MISMATCH: i32 = 100; pub const X509_R_BAD_PKCS7_VERSION: i32 = 101; pub const X509_R_BAD_X509_FILETYPE: i32 = 102; @@ -13359,24 +13367,6 @@ extern "C" { enc: ::std::os::raw::c_int, ); } -extern "C" { - #[link_name = "\u{1}_aws_lc_0_21_0_DES_decrypt3"] - pub fn DES_decrypt3( - data: *mut u32, - ks1: *const DES_key_schedule, - ks2: *const DES_key_schedule, - ks3: *const DES_key_schedule, - ); -} -extern "C" { - #[link_name = "\u{1}_aws_lc_0_21_0_DES_encrypt3"] - pub fn DES_encrypt3( - data: *mut u32, - ks1: *const DES_key_schedule, - ks2: *const DES_key_schedule, - ks3: *const DES_key_schedule, - ); -} extern "C" { #[link_name = "\u{1}_aws_lc_0_21_0_DH_new"] pub fn DH_new() -> *mut DH; @@ -21381,1751 +21371,1558 @@ extern "C" { idx: ::std::os::raw::c_int, ) -> *mut ASN1_TYPE; } -#[repr(C)] -#[derive(Debug, Copy, Clone, PartialEq, Eq)] -pub struct Netscape_spki_st { - pub spkac: *mut NETSCAPE_SPKAC, - pub sig_algor: *mut X509_ALGOR, - pub signature: *mut ASN1_BIT_STRING, -} -#[test] -fn bindgen_test_layout_Netscape_spki_st() { - const UNINIT: ::std::mem::MaybeUninit = ::std::mem::MaybeUninit::uninit(); - let ptr = UNINIT.as_ptr(); - assert_eq!( - ::std::mem::size_of::(), - 24usize, - concat!("Size of: ", stringify!(Netscape_spki_st)) - ); - assert_eq!( - ::std::mem::align_of::(), - 8usize, - concat!("Alignment of ", stringify!(Netscape_spki_st)) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).spkac) as usize - ptr as usize }, - 0usize, - concat!( - "Offset of field: ", - stringify!(Netscape_spki_st), - "::", - stringify!(spkac) - ) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).sig_algor) as usize - ptr as usize }, - 8usize, - concat!( - "Offset of field: ", - stringify!(Netscape_spki_st), - "::", - stringify!(sig_algor) - ) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).signature) as usize - ptr as usize }, - 16usize, - concat!( - "Offset of field: ", - stringify!(Netscape_spki_st), - "::", - stringify!(signature) - ) - ); +extern "C" { + #[link_name = "\u{1}_aws_lc_0_21_0_X509_STORE_new"] + pub fn X509_STORE_new() -> *mut X509_STORE; } -impl Default for Netscape_spki_st { - fn default() -> Self { - let mut s = ::std::mem::MaybeUninit::::uninit(); - unsafe { - ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() - } - } +extern "C" { + #[link_name = "\u{1}_aws_lc_0_21_0_X509_STORE_up_ref"] + pub fn X509_STORE_up_ref(store: *mut X509_STORE) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_0_21_0_NETSCAPE_SPKI_it"] - pub static NETSCAPE_SPKI_it: ASN1_ITEM; + #[link_name = "\u{1}_aws_lc_0_21_0_X509_STORE_free"] + pub fn X509_STORE_free(store: *mut X509_STORE); } extern "C" { - #[link_name = "\u{1}_aws_lc_0_21_0_NETSCAPE_SPKI_new"] - pub fn NETSCAPE_SPKI_new() -> *mut NETSCAPE_SPKI; + #[link_name = "\u{1}_aws_lc_0_21_0_X509_STORE_add_cert"] + pub fn X509_STORE_add_cert(store: *mut X509_STORE, x509: *mut X509) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_0_21_0_NETSCAPE_SPKI_free"] - pub fn NETSCAPE_SPKI_free(spki: *mut NETSCAPE_SPKI); + #[link_name = "\u{1}_aws_lc_0_21_0_X509_STORE_add_crl"] + pub fn X509_STORE_add_crl(store: *mut X509_STORE, crl: *mut X509_CRL) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_0_21_0_d2i_NETSCAPE_SPKI"] - pub fn d2i_NETSCAPE_SPKI( - out: *mut *mut NETSCAPE_SPKI, - inp: *mut *const u8, - len: ::std::os::raw::c_long, - ) -> *mut NETSCAPE_SPKI; + #[link_name = "\u{1}_aws_lc_0_21_0_X509_STORE_get0_param"] + pub fn X509_STORE_get0_param(store: *mut X509_STORE) -> *mut X509_VERIFY_PARAM; } extern "C" { - #[link_name = "\u{1}_aws_lc_0_21_0_i2d_NETSCAPE_SPKI"] - pub fn i2d_NETSCAPE_SPKI( - spki: *const NETSCAPE_SPKI, - outp: *mut *mut u8, + #[link_name = "\u{1}_aws_lc_0_21_0_X509_STORE_set1_param"] + pub fn X509_STORE_set1_param( + store: *mut X509_STORE, + param: *const X509_VERIFY_PARAM, ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_0_21_0_NETSCAPE_SPKI_verify"] - pub fn NETSCAPE_SPKI_verify( - spki: *mut NETSCAPE_SPKI, - pkey: *mut EVP_PKEY, + #[link_name = "\u{1}_aws_lc_0_21_0_X509_STORE_set_flags"] + pub fn X509_STORE_set_flags( + store: *mut X509_STORE, + flags: ::std::os::raw::c_ulong, ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_0_21_0_NETSCAPE_SPKI_b64_decode"] - pub fn NETSCAPE_SPKI_b64_decode( - str_: *const ::std::os::raw::c_char, - len: ossl_ssize_t, - ) -> *mut NETSCAPE_SPKI; + #[link_name = "\u{1}_aws_lc_0_21_0_X509_STORE_set_depth"] + pub fn X509_STORE_set_depth( + store: *mut X509_STORE, + depth: ::std::os::raw::c_int, + ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_0_21_0_NETSCAPE_SPKI_b64_encode"] - pub fn NETSCAPE_SPKI_b64_encode(spki: *mut NETSCAPE_SPKI) -> *mut ::std::os::raw::c_char; + #[link_name = "\u{1}_aws_lc_0_21_0_X509_STORE_set_purpose"] + pub fn X509_STORE_set_purpose( + store: *mut X509_STORE, + purpose: ::std::os::raw::c_int, + ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_0_21_0_NETSCAPE_SPKI_get_pubkey"] - pub fn NETSCAPE_SPKI_get_pubkey(spki: *const NETSCAPE_SPKI) -> *mut EVP_PKEY; + #[link_name = "\u{1}_aws_lc_0_21_0_X509_STORE_set_trust"] + pub fn X509_STORE_set_trust( + store: *mut X509_STORE, + trust: ::std::os::raw::c_int, + ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_0_21_0_NETSCAPE_SPKI_set_pubkey"] - pub fn NETSCAPE_SPKI_set_pubkey( - spki: *mut NETSCAPE_SPKI, - pkey: *mut EVP_PKEY, - ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}_aws_lc_0_21_0_X509_STORE_CTX_new"] + pub fn X509_STORE_CTX_new() -> *mut X509_STORE_CTX; } extern "C" { - #[link_name = "\u{1}_aws_lc_0_21_0_NETSCAPE_SPKI_sign"] - pub fn NETSCAPE_SPKI_sign( - spki: *mut NETSCAPE_SPKI, - pkey: *mut EVP_PKEY, - md: *const EVP_MD, + #[link_name = "\u{1}_aws_lc_0_21_0_X509_STORE_CTX_free"] + pub fn X509_STORE_CTX_free(ctx: *mut X509_STORE_CTX); +} +extern "C" { + #[link_name = "\u{1}_aws_lc_0_21_0_X509_STORE_CTX_init"] + pub fn X509_STORE_CTX_init( + ctx: *mut X509_STORE_CTX, + store: *mut X509_STORE, + x509: *mut X509, + chain: *mut stack_st_X509, ) -> ::std::os::raw::c_int; } -#[repr(C)] -#[derive(Debug, Copy, Clone, PartialEq, Eq)] -pub struct Netscape_spkac_st { - pub pubkey: *mut X509_PUBKEY, - pub challenge: *mut ASN1_IA5STRING, +extern "C" { + #[link_name = "\u{1}_aws_lc_0_21_0_X509_verify_cert"] + pub fn X509_verify_cert(ctx: *mut X509_STORE_CTX) -> ::std::os::raw::c_int; } -#[test] -fn bindgen_test_layout_Netscape_spkac_st() { - const UNINIT: ::std::mem::MaybeUninit = ::std::mem::MaybeUninit::uninit(); - let ptr = UNINIT.as_ptr(); - assert_eq!( - ::std::mem::size_of::(), - 16usize, - concat!("Size of: ", stringify!(Netscape_spkac_st)) - ); - assert_eq!( - ::std::mem::align_of::(), - 8usize, - concat!("Alignment of ", stringify!(Netscape_spkac_st)) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).pubkey) as usize - ptr as usize }, - 0usize, - concat!( - "Offset of field: ", - stringify!(Netscape_spkac_st), - "::", - stringify!(pubkey) - ) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).challenge) as usize - ptr as usize }, - 8usize, - concat!( - "Offset of field: ", - stringify!(Netscape_spkac_st), - "::", - stringify!(challenge) - ) - ); +extern "C" { + #[link_name = "\u{1}_aws_lc_0_21_0_X509_STORE_CTX_get0_chain"] + pub fn X509_STORE_CTX_get0_chain(ctx: *mut X509_STORE_CTX) -> *mut stack_st_X509; } -impl Default for Netscape_spkac_st { - fn default() -> Self { - let mut s = ::std::mem::MaybeUninit::::uninit(); - unsafe { - ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() - } - } +extern "C" { + #[link_name = "\u{1}_aws_lc_0_21_0_X509_STORE_CTX_get1_chain"] + pub fn X509_STORE_CTX_get1_chain(ctx: *mut X509_STORE_CTX) -> *mut stack_st_X509; } extern "C" { - #[link_name = "\u{1}_aws_lc_0_21_0_NETSCAPE_SPKAC_it"] - pub static NETSCAPE_SPKAC_it: ASN1_ITEM; + #[link_name = "\u{1}_aws_lc_0_21_0_X509_STORE_CTX_set_cert"] + pub fn X509_STORE_CTX_set_cert(c: *mut X509_STORE_CTX, x: *mut X509); } extern "C" { - #[link_name = "\u{1}_aws_lc_0_21_0_NETSCAPE_SPKAC_new"] - pub fn NETSCAPE_SPKAC_new() -> *mut NETSCAPE_SPKAC; + #[link_name = "\u{1}_aws_lc_0_21_0_X509_STORE_CTX_get_error"] + pub fn X509_STORE_CTX_get_error(ctx: *mut X509_STORE_CTX) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_0_21_0_NETSCAPE_SPKAC_free"] - pub fn NETSCAPE_SPKAC_free(spkac: *mut NETSCAPE_SPKAC); + #[link_name = "\u{1}_aws_lc_0_21_0_X509_STORE_CTX_set_error"] + pub fn X509_STORE_CTX_set_error(ctx: *mut X509_STORE_CTX, err: ::std::os::raw::c_int); } extern "C" { - #[link_name = "\u{1}_aws_lc_0_21_0_d2i_NETSCAPE_SPKAC"] - pub fn d2i_NETSCAPE_SPKAC( - out: *mut *mut NETSCAPE_SPKAC, - inp: *mut *const u8, - len: ::std::os::raw::c_long, - ) -> *mut NETSCAPE_SPKAC; + #[link_name = "\u{1}_aws_lc_0_21_0_X509_verify_cert_error_string"] + pub fn X509_verify_cert_error_string( + err: ::std::os::raw::c_long, + ) -> *const ::std::os::raw::c_char; } extern "C" { - #[link_name = "\u{1}_aws_lc_0_21_0_i2d_NETSCAPE_SPKAC"] - pub fn i2d_NETSCAPE_SPKAC( - spkac: *const NETSCAPE_SPKAC, - outp: *mut *mut u8, - ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}_aws_lc_0_21_0_X509_STORE_CTX_get_error_depth"] + pub fn X509_STORE_CTX_get_error_depth(ctx: *mut X509_STORE_CTX) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_0_21_0_NETSCAPE_SPKI_print"] - pub fn NETSCAPE_SPKI_print(out: *mut BIO, spki: *mut NETSCAPE_SPKI) -> ::std::os::raw::c_int; + #[link_name = "\u{1}_aws_lc_0_21_0_X509_STORE_CTX_get_current_cert"] + pub fn X509_STORE_CTX_get_current_cert(ctx: *mut X509_STORE_CTX) -> *mut X509; } -#[repr(C)] -#[derive(Debug, Copy, Clone, PartialEq, Eq)] -pub struct rsa_pss_params_st { - pub hashAlgorithm: *mut X509_ALGOR, - pub maskGenAlgorithm: *mut X509_ALGOR, - pub saltLength: *mut ASN1_INTEGER, - pub trailerField: *mut ASN1_INTEGER, - pub maskHash: *mut X509_ALGOR, +extern "C" { + #[link_name = "\u{1}_aws_lc_0_21_0_X509_STORE_CTX_get0_current_issuer"] + pub fn X509_STORE_CTX_get0_current_issuer(ctx: *mut X509_STORE_CTX) -> *mut X509; } -#[test] -fn bindgen_test_layout_rsa_pss_params_st() { - const UNINIT: ::std::mem::MaybeUninit = ::std::mem::MaybeUninit::uninit(); - let ptr = UNINIT.as_ptr(); - assert_eq!( - ::std::mem::size_of::(), - 40usize, - concat!("Size of: ", stringify!(rsa_pss_params_st)) - ); - assert_eq!( - ::std::mem::align_of::(), - 8usize, - concat!("Alignment of ", stringify!(rsa_pss_params_st)) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).hashAlgorithm) as usize - ptr as usize }, - 0usize, - concat!( - "Offset of field: ", - stringify!(rsa_pss_params_st), - "::", - stringify!(hashAlgorithm) - ) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).maskGenAlgorithm) as usize - ptr as usize }, - 8usize, - concat!( - "Offset of field: ", - stringify!(rsa_pss_params_st), - "::", - stringify!(maskGenAlgorithm) - ) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).saltLength) as usize - ptr as usize }, - 16usize, - concat!( - "Offset of field: ", - stringify!(rsa_pss_params_st), - "::", - stringify!(saltLength) - ) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).trailerField) as usize - ptr as usize }, - 24usize, - concat!( - "Offset of field: ", - stringify!(rsa_pss_params_st), - "::", - stringify!(trailerField) - ) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).maskHash) as usize - ptr as usize }, - 32usize, - concat!( - "Offset of field: ", - stringify!(rsa_pss_params_st), - "::", - stringify!(maskHash) - ) - ); +extern "C" { + #[link_name = "\u{1}_aws_lc_0_21_0_X509_STORE_CTX_get0_current_crl"] + pub fn X509_STORE_CTX_get0_current_crl(ctx: *mut X509_STORE_CTX) -> *mut X509_CRL; } -impl Default for rsa_pss_params_st { - fn default() -> Self { - let mut s = ::std::mem::MaybeUninit::::uninit(); - unsafe { - ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() - } - } +extern "C" { + #[link_name = "\u{1}_aws_lc_0_21_0_X509_STORE_CTX_get0_store"] + pub fn X509_STORE_CTX_get0_store(ctx: *mut X509_STORE_CTX) -> *mut X509_STORE; } extern "C" { - #[link_name = "\u{1}_aws_lc_0_21_0_RSA_PSS_PARAMS_it"] - pub static RSA_PSS_PARAMS_it: ASN1_ITEM; + #[link_name = "\u{1}_aws_lc_0_21_0_X509_STORE_CTX_get0_cert"] + pub fn X509_STORE_CTX_get0_cert(ctx: *mut X509_STORE_CTX) -> *mut X509; } extern "C" { - #[link_name = "\u{1}_aws_lc_0_21_0_RSA_PSS_PARAMS_new"] - pub fn RSA_PSS_PARAMS_new() -> *mut RSA_PSS_PARAMS; + #[link_name = "\u{1}_aws_lc_0_21_0_X509_STORE_CTX_get0_untrusted"] + pub fn X509_STORE_CTX_get0_untrusted(ctx: *mut X509_STORE_CTX) -> *mut stack_st_X509; } extern "C" { - #[link_name = "\u{1}_aws_lc_0_21_0_RSA_PSS_PARAMS_free"] - pub fn RSA_PSS_PARAMS_free(params: *mut RSA_PSS_PARAMS); + #[link_name = "\u{1}_aws_lc_0_21_0_X509_STORE_CTX_set0_trusted_stack"] + pub fn X509_STORE_CTX_set0_trusted_stack(ctx: *mut X509_STORE_CTX, sk: *mut stack_st_X509); } extern "C" { - #[link_name = "\u{1}_aws_lc_0_21_0_d2i_RSA_PSS_PARAMS"] - pub fn d2i_RSA_PSS_PARAMS( - out: *mut *mut RSA_PSS_PARAMS, - inp: *mut *const u8, - len: ::std::os::raw::c_long, - ) -> *mut RSA_PSS_PARAMS; + #[link_name = "\u{1}_aws_lc_0_21_0_X509_STORE_CTX_set0_crls"] + pub fn X509_STORE_CTX_set0_crls(ctx: *mut X509_STORE_CTX, sk: *mut stack_st_X509_CRL); } extern "C" { - #[link_name = "\u{1}_aws_lc_0_21_0_i2d_RSA_PSS_PARAMS"] - pub fn i2d_RSA_PSS_PARAMS( - in_: *const RSA_PSS_PARAMS, - outp: *mut *mut u8, + #[link_name = "\u{1}_aws_lc_0_21_0_X509_STORE_CTX_set_default"] + pub fn X509_STORE_CTX_set_default( + ctx: *mut X509_STORE_CTX, + name: *const ::std::os::raw::c_char, ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_0_21_0_PKCS8_PRIV_KEY_INFO_it"] - pub static PKCS8_PRIV_KEY_INFO_it: ASN1_ITEM; + #[link_name = "\u{1}_aws_lc_0_21_0_X509_STORE_CTX_get0_param"] + pub fn X509_STORE_CTX_get0_param(ctx: *mut X509_STORE_CTX) -> *mut X509_VERIFY_PARAM; } extern "C" { - #[link_name = "\u{1}_aws_lc_0_21_0_PKCS8_PRIV_KEY_INFO_new"] - pub fn PKCS8_PRIV_KEY_INFO_new() -> *mut PKCS8_PRIV_KEY_INFO; -} -extern "C" { - #[link_name = "\u{1}_aws_lc_0_21_0_PKCS8_PRIV_KEY_INFO_free"] - pub fn PKCS8_PRIV_KEY_INFO_free(key: *mut PKCS8_PRIV_KEY_INFO); -} -extern "C" { - #[link_name = "\u{1}_aws_lc_0_21_0_d2i_PKCS8_PRIV_KEY_INFO"] - pub fn d2i_PKCS8_PRIV_KEY_INFO( - out: *mut *mut PKCS8_PRIV_KEY_INFO, - inp: *mut *const u8, - len: ::std::os::raw::c_long, - ) -> *mut PKCS8_PRIV_KEY_INFO; -} -extern "C" { - #[link_name = "\u{1}_aws_lc_0_21_0_i2d_PKCS8_PRIV_KEY_INFO"] - pub fn i2d_PKCS8_PRIV_KEY_INFO( - key: *const PKCS8_PRIV_KEY_INFO, - outp: *mut *mut u8, - ) -> ::std::os::raw::c_int; -} -extern "C" { - #[link_name = "\u{1}_aws_lc_0_21_0_EVP_PKCS82PKEY"] - pub fn EVP_PKCS82PKEY(p8: *const PKCS8_PRIV_KEY_INFO) -> *mut EVP_PKEY; + #[link_name = "\u{1}_aws_lc_0_21_0_X509_STORE_CTX_set0_param"] + pub fn X509_STORE_CTX_set0_param(ctx: *mut X509_STORE_CTX, param: *mut X509_VERIFY_PARAM); } extern "C" { - #[link_name = "\u{1}_aws_lc_0_21_0_EVP_PKEY2PKCS8"] - pub fn EVP_PKEY2PKCS8(pkey: *const EVP_PKEY) -> *mut PKCS8_PRIV_KEY_INFO; + #[link_name = "\u{1}_aws_lc_0_21_0_X509_STORE_CTX_set_flags"] + pub fn X509_STORE_CTX_set_flags(ctx: *mut X509_STORE_CTX, flags: ::std::os::raw::c_ulong); } extern "C" { - #[link_name = "\u{1}_aws_lc_0_21_0_X509_SIG_it"] - pub static X509_SIG_it: ASN1_ITEM; + #[link_name = "\u{1}_aws_lc_0_21_0_X509_STORE_CTX_set_time"] + pub fn X509_STORE_CTX_set_time( + ctx: *mut X509_STORE_CTX, + flags: ::std::os::raw::c_ulong, + t: time_t, + ); } extern "C" { - #[link_name = "\u{1}_aws_lc_0_21_0_X509_SIG_new"] - pub fn X509_SIG_new() -> *mut X509_SIG; + #[link_name = "\u{1}_aws_lc_0_21_0_X509_STORE_CTX_set_time_posix"] + pub fn X509_STORE_CTX_set_time_posix( + ctx: *mut X509_STORE_CTX, + flags: ::std::os::raw::c_ulong, + t: i64, + ); } extern "C" { - #[link_name = "\u{1}_aws_lc_0_21_0_X509_SIG_free"] - pub fn X509_SIG_free(key: *mut X509_SIG); + #[link_name = "\u{1}_aws_lc_0_21_0_X509_STORE_CTX_set_depth"] + pub fn X509_STORE_CTX_set_depth(ctx: *mut X509_STORE_CTX, depth: ::std::os::raw::c_int); } extern "C" { - #[link_name = "\u{1}_aws_lc_0_21_0_d2i_X509_SIG"] - pub fn d2i_X509_SIG( - out: *mut *mut X509_SIG, - inp: *mut *const u8, - len: ::std::os::raw::c_long, - ) -> *mut X509_SIG; + #[link_name = "\u{1}_aws_lc_0_21_0_X509_STORE_CTX_set_purpose"] + pub fn X509_STORE_CTX_set_purpose( + ctx: *mut X509_STORE_CTX, + purpose: ::std::os::raw::c_int, + ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_0_21_0_i2d_X509_SIG"] - pub fn i2d_X509_SIG(sig: *const X509_SIG, outp: *mut *mut u8) -> ::std::os::raw::c_int; + #[link_name = "\u{1}_aws_lc_0_21_0_X509_STORE_CTX_set_trust"] + pub fn X509_STORE_CTX_set_trust( + ctx: *mut X509_STORE_CTX, + trust: ::std::os::raw::c_int, + ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_0_21_0_X509_SIG_get0"] - pub fn X509_SIG_get0( - sig: *const X509_SIG, - out_alg: *mut *const X509_ALGOR, - out_digest: *mut *const ASN1_OCTET_STRING, - ); + #[link_name = "\u{1}_aws_lc_0_21_0_X509_VERIFY_PARAM_new"] + pub fn X509_VERIFY_PARAM_new() -> *mut X509_VERIFY_PARAM; } extern "C" { - #[link_name = "\u{1}_aws_lc_0_21_0_X509_SIG_getm"] - pub fn X509_SIG_getm( - sig: *mut X509_SIG, - out_alg: *mut *mut X509_ALGOR, - out_digest: *mut *mut ASN1_OCTET_STRING, - ); + #[link_name = "\u{1}_aws_lc_0_21_0_X509_VERIFY_PARAM_free"] + pub fn X509_VERIFY_PARAM_free(param: *mut X509_VERIFY_PARAM); } extern "C" { - #[link_name = "\u{1}_aws_lc_0_21_0_X509_print_ex"] - pub fn X509_print_ex( - bp: *mut BIO, - x: *mut X509, - nmflag: ::std::os::raw::c_ulong, - cflag: ::std::os::raw::c_ulong, + #[link_name = "\u{1}_aws_lc_0_21_0_X509_VERIFY_PARAM_inherit"] + pub fn X509_VERIFY_PARAM_inherit( + to: *mut X509_VERIFY_PARAM, + from: *const X509_VERIFY_PARAM, ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_0_21_0_X509_print_ex_fp"] - pub fn X509_print_ex_fp( - fp: *mut FILE, - x: *mut X509, - nmflag: ::std::os::raw::c_ulong, - cflag: ::std::os::raw::c_ulong, + #[link_name = "\u{1}_aws_lc_0_21_0_X509_VERIFY_PARAM_set1"] + pub fn X509_VERIFY_PARAM_set1( + to: *mut X509_VERIFY_PARAM, + from: *const X509_VERIFY_PARAM, ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_0_21_0_X509_print"] - pub fn X509_print(bp: *mut BIO, x: *mut X509) -> ::std::os::raw::c_int; + #[link_name = "\u{1}_aws_lc_0_21_0_X509_VERIFY_PARAM_set_flags"] + pub fn X509_VERIFY_PARAM_set_flags( + param: *mut X509_VERIFY_PARAM, + flags: ::std::os::raw::c_ulong, + ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_0_21_0_X509_print_fp"] - pub fn X509_print_fp(fp: *mut FILE, x: *mut X509) -> ::std::os::raw::c_int; + #[link_name = "\u{1}_aws_lc_0_21_0_X509_VERIFY_PARAM_clear_flags"] + pub fn X509_VERIFY_PARAM_clear_flags( + param: *mut X509_VERIFY_PARAM, + flags: ::std::os::raw::c_ulong, + ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_0_21_0_X509_CRL_print"] - pub fn X509_CRL_print(bp: *mut BIO, x: *mut X509_CRL) -> ::std::os::raw::c_int; + #[link_name = "\u{1}_aws_lc_0_21_0_X509_VERIFY_PARAM_get_flags"] + pub fn X509_VERIFY_PARAM_get_flags(param: *const X509_VERIFY_PARAM) -> ::std::os::raw::c_ulong; } extern "C" { - #[link_name = "\u{1}_aws_lc_0_21_0_X509_CRL_print_fp"] - pub fn X509_CRL_print_fp(fp: *mut FILE, x: *mut X509_CRL) -> ::std::os::raw::c_int; + #[link_name = "\u{1}_aws_lc_0_21_0_X509_VERIFY_PARAM_set_depth"] + pub fn X509_VERIFY_PARAM_set_depth(param: *mut X509_VERIFY_PARAM, depth: ::std::os::raw::c_int); } extern "C" { - #[link_name = "\u{1}_aws_lc_0_21_0_X509_REQ_print_ex"] - pub fn X509_REQ_print_ex( - bp: *mut BIO, - x: *mut X509_REQ, - nmflag: ::std::os::raw::c_ulong, - cflag: ::std::os::raw::c_ulong, - ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}_aws_lc_0_21_0_X509_VERIFY_PARAM_get_depth"] + pub fn X509_VERIFY_PARAM_get_depth(param: *const X509_VERIFY_PARAM) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_0_21_0_X509_REQ_print"] - pub fn X509_REQ_print(bp: *mut BIO, req: *mut X509_REQ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}_aws_lc_0_21_0_X509_VERIFY_PARAM_set_time"] + pub fn X509_VERIFY_PARAM_set_time(param: *mut X509_VERIFY_PARAM, t: time_t); } extern "C" { - #[link_name = "\u{1}_aws_lc_0_21_0_X509_REQ_print_fp"] - pub fn X509_REQ_print_fp(fp: *mut FILE, req: *mut X509_REQ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}_aws_lc_0_21_0_X509_VERIFY_PARAM_set_time_posix"] + pub fn X509_VERIFY_PARAM_set_time_posix(param: *mut X509_VERIFY_PARAM, t: i64); } extern "C" { - #[link_name = "\u{1}_aws_lc_0_21_0_X509_NAME_print_ex"] - pub fn X509_NAME_print_ex( - out: *mut BIO, - nm: *const X509_NAME, - indent: ::std::os::raw::c_int, - flags: ::std::os::raw::c_ulong, + #[link_name = "\u{1}_aws_lc_0_21_0_X509_VERIFY_PARAM_add0_policy"] + pub fn X509_VERIFY_PARAM_add0_policy( + param: *mut X509_VERIFY_PARAM, + policy: *mut ASN1_OBJECT, ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_0_21_0_X509_NAME_print"] - pub fn X509_NAME_print( - bp: *mut BIO, - name: *const X509_NAME, - obase: ::std::os::raw::c_int, + #[link_name = "\u{1}_aws_lc_0_21_0_X509_VERIFY_PARAM_set1_policies"] + pub fn X509_VERIFY_PARAM_set1_policies( + param: *mut X509_VERIFY_PARAM, + policies: *const stack_st_ASN1_OBJECT, ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_0_21_0_X509_NAME_oneline"] - pub fn X509_NAME_oneline( - name: *const X509_NAME, - buf: *mut ::std::os::raw::c_char, - size: ::std::os::raw::c_int, - ) -> *mut ::std::os::raw::c_char; -} -extern "C" { - #[link_name = "\u{1}_aws_lc_0_21_0_X509_NAME_print_ex_fp"] - pub fn X509_NAME_print_ex_fp( - fp: *mut FILE, - nm: *const X509_NAME, - indent: ::std::os::raw::c_int, - flags: ::std::os::raw::c_ulong, + #[link_name = "\u{1}_aws_lc_0_21_0_X509_VERIFY_PARAM_set1_host"] + pub fn X509_VERIFY_PARAM_set1_host( + param: *mut X509_VERIFY_PARAM, + name: *const ::std::os::raw::c_char, + name_len: usize, ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_0_21_0_X509_signature_dump"] - pub fn X509_signature_dump( - bio: *mut BIO, - sig: *const ASN1_STRING, - indent: ::std::os::raw::c_int, + #[link_name = "\u{1}_aws_lc_0_21_0_X509_VERIFY_PARAM_add1_host"] + pub fn X509_VERIFY_PARAM_add1_host( + param: *mut X509_VERIFY_PARAM, + name: *const ::std::os::raw::c_char, + name_len: usize, ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_0_21_0_X509_signature_print"] - pub fn X509_signature_print( - bio: *mut BIO, - alg: *const X509_ALGOR, - sig: *const ASN1_STRING, - ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}_aws_lc_0_21_0_X509_VERIFY_PARAM_set_hostflags"] + pub fn X509_VERIFY_PARAM_set_hostflags( + param: *mut X509_VERIFY_PARAM, + flags: ::std::os::raw::c_uint, + ); } extern "C" { - #[link_name = "\u{1}_aws_lc_0_21_0_X509V3_EXT_print"] - pub fn X509V3_EXT_print( - out: *mut BIO, - ext: *const X509_EXTENSION, - flag: ::std::os::raw::c_ulong, - indent: ::std::os::raw::c_int, + #[link_name = "\u{1}_aws_lc_0_21_0_X509_VERIFY_PARAM_set1_email"] + pub fn X509_VERIFY_PARAM_set1_email( + param: *mut X509_VERIFY_PARAM, + email: *const ::std::os::raw::c_char, + email_len: usize, ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_0_21_0_X509V3_EXT_print_fp"] - pub fn X509V3_EXT_print_fp( - out: *mut FILE, - ext: *const X509_EXTENSION, - flag: ::std::os::raw::c_int, - indent: ::std::os::raw::c_int, + #[link_name = "\u{1}_aws_lc_0_21_0_X509_VERIFY_PARAM_set1_ip"] + pub fn X509_VERIFY_PARAM_set1_ip( + param: *mut X509_VERIFY_PARAM, + ip: *const u8, + ip_len: usize, ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_0_21_0_X509V3_extensions_print"] - pub fn X509V3_extensions_print( - out: *mut BIO, - title: *const ::std::os::raw::c_char, - exts: *const stack_st_X509_EXTENSION, - flag: ::std::os::raw::c_ulong, - indent: ::std::os::raw::c_int, + #[link_name = "\u{1}_aws_lc_0_21_0_X509_VERIFY_PARAM_set1_ip_asc"] + pub fn X509_VERIFY_PARAM_set1_ip_asc( + param: *mut X509_VERIFY_PARAM, + ipasc: *const ::std::os::raw::c_char, ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_0_21_0_GENERAL_NAME_print"] - pub fn GENERAL_NAME_print(out: *mut BIO, gen: *const GENERAL_NAME) -> ::std::os::raw::c_int; -} -extern "C" { - #[link_name = "\u{1}_aws_lc_0_21_0_X509_pubkey_digest"] - pub fn X509_pubkey_digest( - x509: *const X509, - md: *const EVP_MD, - out: *mut u8, - out_len: *mut ::std::os::raw::c_uint, + #[link_name = "\u{1}_aws_lc_0_21_0_X509_VERIFY_PARAM_set_purpose"] + pub fn X509_VERIFY_PARAM_set_purpose( + param: *mut X509_VERIFY_PARAM, + purpose: ::std::os::raw::c_int, ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_0_21_0_X509_digest"] - pub fn X509_digest( - x509: *const X509, - md: *const EVP_MD, - out: *mut u8, - out_len: *mut ::std::os::raw::c_uint, + #[link_name = "\u{1}_aws_lc_0_21_0_X509_VERIFY_PARAM_set_trust"] + pub fn X509_VERIFY_PARAM_set_trust( + param: *mut X509_VERIFY_PARAM, + trust: ::std::os::raw::c_int, ) -> ::std::os::raw::c_int; } -extern "C" { - #[link_name = "\u{1}_aws_lc_0_21_0_X509_CRL_digest"] - pub fn X509_CRL_digest( - crl: *const X509_CRL, - md: *const EVP_MD, - out: *mut u8, - out_len: *mut ::std::os::raw::c_uint, - ) -> ::std::os::raw::c_int; -} -extern "C" { - #[link_name = "\u{1}_aws_lc_0_21_0_X509_REQ_digest"] - pub fn X509_REQ_digest( - req: *const X509_REQ, - md: *const EVP_MD, - out: *mut u8, - out_len: *mut ::std::os::raw::c_uint, - ) -> ::std::os::raw::c_int; -} -extern "C" { - #[link_name = "\u{1}_aws_lc_0_21_0_X509_NAME_digest"] - pub fn X509_NAME_digest( - name: *const X509_NAME, - md: *const EVP_MD, - out: *mut u8, - out_len: *mut ::std::os::raw::c_uint, - ) -> ::std::os::raw::c_int; +#[repr(C)] +#[derive(Debug, Copy, Clone, PartialEq, Eq)] +pub struct Netscape_spki_st { + pub spkac: *mut NETSCAPE_SPKAC, + pub sig_algor: *mut X509_ALGOR, + pub signature: *mut ASN1_BIT_STRING, } -extern "C" { - #[link_name = "\u{1}_aws_lc_0_21_0_d2i_X509_bio"] - pub fn d2i_X509_bio(bp: *mut BIO, x509: *mut *mut X509) -> *mut X509; +#[test] +fn bindgen_test_layout_Netscape_spki_st() { + const UNINIT: ::std::mem::MaybeUninit = ::std::mem::MaybeUninit::uninit(); + let ptr = UNINIT.as_ptr(); + assert_eq!( + ::std::mem::size_of::(), + 24usize, + concat!("Size of: ", stringify!(Netscape_spki_st)) + ); + assert_eq!( + ::std::mem::align_of::(), + 8usize, + concat!("Alignment of ", stringify!(Netscape_spki_st)) + ); + assert_eq!( + unsafe { ::std::ptr::addr_of!((*ptr).spkac) as usize - ptr as usize }, + 0usize, + concat!( + "Offset of field: ", + stringify!(Netscape_spki_st), + "::", + stringify!(spkac) + ) + ); + assert_eq!( + unsafe { ::std::ptr::addr_of!((*ptr).sig_algor) as usize - ptr as usize }, + 8usize, + concat!( + "Offset of field: ", + stringify!(Netscape_spki_st), + "::", + stringify!(sig_algor) + ) + ); + assert_eq!( + unsafe { ::std::ptr::addr_of!((*ptr).signature) as usize - ptr as usize }, + 16usize, + concat!( + "Offset of field: ", + stringify!(Netscape_spki_st), + "::", + stringify!(signature) + ) + ); } -extern "C" { - #[link_name = "\u{1}_aws_lc_0_21_0_d2i_X509_CRL_bio"] - pub fn d2i_X509_CRL_bio(bp: *mut BIO, crl: *mut *mut X509_CRL) -> *mut X509_CRL; +impl Default for Netscape_spki_st { + fn default() -> Self { + let mut s = ::std::mem::MaybeUninit::::uninit(); + unsafe { + ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); + s.assume_init() + } + } } extern "C" { - #[link_name = "\u{1}_aws_lc_0_21_0_d2i_X509_REQ_bio"] - pub fn d2i_X509_REQ_bio(bp: *mut BIO, req: *mut *mut X509_REQ) -> *mut X509_REQ; + #[link_name = "\u{1}_aws_lc_0_21_0_NETSCAPE_SPKI_it"] + pub static NETSCAPE_SPKI_it: ASN1_ITEM; } extern "C" { - #[link_name = "\u{1}_aws_lc_0_21_0_d2i_RSAPrivateKey_bio"] - pub fn d2i_RSAPrivateKey_bio(bp: *mut BIO, rsa: *mut *mut RSA) -> *mut RSA; + #[link_name = "\u{1}_aws_lc_0_21_0_NETSCAPE_SPKI_new"] + pub fn NETSCAPE_SPKI_new() -> *mut NETSCAPE_SPKI; } extern "C" { - #[link_name = "\u{1}_aws_lc_0_21_0_d2i_RSAPublicKey_bio"] - pub fn d2i_RSAPublicKey_bio(bp: *mut BIO, rsa: *mut *mut RSA) -> *mut RSA; + #[link_name = "\u{1}_aws_lc_0_21_0_NETSCAPE_SPKI_free"] + pub fn NETSCAPE_SPKI_free(spki: *mut NETSCAPE_SPKI); } extern "C" { - #[link_name = "\u{1}_aws_lc_0_21_0_d2i_RSA_PUBKEY_bio"] - pub fn d2i_RSA_PUBKEY_bio(bp: *mut BIO, rsa: *mut *mut RSA) -> *mut RSA; + #[link_name = "\u{1}_aws_lc_0_21_0_d2i_NETSCAPE_SPKI"] + pub fn d2i_NETSCAPE_SPKI( + out: *mut *mut NETSCAPE_SPKI, + inp: *mut *const u8, + len: ::std::os::raw::c_long, + ) -> *mut NETSCAPE_SPKI; } extern "C" { - #[link_name = "\u{1}_aws_lc_0_21_0_d2i_DSA_PUBKEY_bio"] - pub fn d2i_DSA_PUBKEY_bio(bp: *mut BIO, dsa: *mut *mut DSA) -> *mut DSA; + #[link_name = "\u{1}_aws_lc_0_21_0_i2d_NETSCAPE_SPKI"] + pub fn i2d_NETSCAPE_SPKI( + spki: *const NETSCAPE_SPKI, + outp: *mut *mut u8, + ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_0_21_0_d2i_DSAPrivateKey_bio"] - pub fn d2i_DSAPrivateKey_bio(bp: *mut BIO, dsa: *mut *mut DSA) -> *mut DSA; + #[link_name = "\u{1}_aws_lc_0_21_0_NETSCAPE_SPKI_verify"] + pub fn NETSCAPE_SPKI_verify( + spki: *mut NETSCAPE_SPKI, + pkey: *mut EVP_PKEY, + ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_0_21_0_d2i_EC_PUBKEY_bio"] - pub fn d2i_EC_PUBKEY_bio(bp: *mut BIO, eckey: *mut *mut EC_KEY) -> *mut EC_KEY; + #[link_name = "\u{1}_aws_lc_0_21_0_NETSCAPE_SPKI_b64_decode"] + pub fn NETSCAPE_SPKI_b64_decode( + str_: *const ::std::os::raw::c_char, + len: ossl_ssize_t, + ) -> *mut NETSCAPE_SPKI; } extern "C" { - #[link_name = "\u{1}_aws_lc_0_21_0_d2i_ECPrivateKey_bio"] - pub fn d2i_ECPrivateKey_bio(bp: *mut BIO, eckey: *mut *mut EC_KEY) -> *mut EC_KEY; + #[link_name = "\u{1}_aws_lc_0_21_0_NETSCAPE_SPKI_b64_encode"] + pub fn NETSCAPE_SPKI_b64_encode(spki: *mut NETSCAPE_SPKI) -> *mut ::std::os::raw::c_char; } extern "C" { - #[link_name = "\u{1}_aws_lc_0_21_0_d2i_PKCS8_bio"] - pub fn d2i_PKCS8_bio(bp: *mut BIO, p8: *mut *mut X509_SIG) -> *mut X509_SIG; + #[link_name = "\u{1}_aws_lc_0_21_0_NETSCAPE_SPKI_get_pubkey"] + pub fn NETSCAPE_SPKI_get_pubkey(spki: *const NETSCAPE_SPKI) -> *mut EVP_PKEY; } extern "C" { - #[link_name = "\u{1}_aws_lc_0_21_0_d2i_PKCS8_PRIV_KEY_INFO_bio"] - pub fn d2i_PKCS8_PRIV_KEY_INFO_bio( - bp: *mut BIO, - p8inf: *mut *mut PKCS8_PRIV_KEY_INFO, - ) -> *mut PKCS8_PRIV_KEY_INFO; + #[link_name = "\u{1}_aws_lc_0_21_0_NETSCAPE_SPKI_set_pubkey"] + pub fn NETSCAPE_SPKI_set_pubkey( + spki: *mut NETSCAPE_SPKI, + pkey: *mut EVP_PKEY, + ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_0_21_0_d2i_PUBKEY_bio"] - pub fn d2i_PUBKEY_bio(bp: *mut BIO, a: *mut *mut EVP_PKEY) -> *mut EVP_PKEY; + #[link_name = "\u{1}_aws_lc_0_21_0_NETSCAPE_SPKI_sign"] + pub fn NETSCAPE_SPKI_sign( + spki: *mut NETSCAPE_SPKI, + pkey: *mut EVP_PKEY, + md: *const EVP_MD, + ) -> ::std::os::raw::c_int; } -extern "C" { - #[link_name = "\u{1}_aws_lc_0_21_0_d2i_DHparams_bio"] - pub fn d2i_DHparams_bio(bp: *mut BIO, dh: *mut *mut DH) -> *mut DH; +#[repr(C)] +#[derive(Debug, Copy, Clone, PartialEq, Eq)] +pub struct Netscape_spkac_st { + pub pubkey: *mut X509_PUBKEY, + pub challenge: *mut ASN1_IA5STRING, } -extern "C" { - #[link_name = "\u{1}_aws_lc_0_21_0_d2i_PrivateKey_bio"] - pub fn d2i_PrivateKey_bio(bp: *mut BIO, a: *mut *mut EVP_PKEY) -> *mut EVP_PKEY; +#[test] +fn bindgen_test_layout_Netscape_spkac_st() { + const UNINIT: ::std::mem::MaybeUninit = ::std::mem::MaybeUninit::uninit(); + let ptr = UNINIT.as_ptr(); + assert_eq!( + ::std::mem::size_of::(), + 16usize, + concat!("Size of: ", stringify!(Netscape_spkac_st)) + ); + assert_eq!( + ::std::mem::align_of::(), + 8usize, + concat!("Alignment of ", stringify!(Netscape_spkac_st)) + ); + assert_eq!( + unsafe { ::std::ptr::addr_of!((*ptr).pubkey) as usize - ptr as usize }, + 0usize, + concat!( + "Offset of field: ", + stringify!(Netscape_spkac_st), + "::", + stringify!(pubkey) + ) + ); + assert_eq!( + unsafe { ::std::ptr::addr_of!((*ptr).challenge) as usize - ptr as usize }, + 8usize, + concat!( + "Offset of field: ", + stringify!(Netscape_spkac_st), + "::", + stringify!(challenge) + ) + ); } -extern "C" { - #[link_name = "\u{1}_aws_lc_0_21_0_i2d_X509_bio"] - pub fn i2d_X509_bio(bp: *mut BIO, x509: *mut X509) -> ::std::os::raw::c_int; +impl Default for Netscape_spkac_st { + fn default() -> Self { + let mut s = ::std::mem::MaybeUninit::::uninit(); + unsafe { + ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); + s.assume_init() + } + } } extern "C" { - #[link_name = "\u{1}_aws_lc_0_21_0_i2d_X509_CRL_bio"] - pub fn i2d_X509_CRL_bio(bp: *mut BIO, crl: *mut X509_CRL) -> ::std::os::raw::c_int; + #[link_name = "\u{1}_aws_lc_0_21_0_NETSCAPE_SPKAC_it"] + pub static NETSCAPE_SPKAC_it: ASN1_ITEM; } extern "C" { - #[link_name = "\u{1}_aws_lc_0_21_0_i2d_X509_REQ_bio"] - pub fn i2d_X509_REQ_bio(bp: *mut BIO, req: *mut X509_REQ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}_aws_lc_0_21_0_NETSCAPE_SPKAC_new"] + pub fn NETSCAPE_SPKAC_new() -> *mut NETSCAPE_SPKAC; } extern "C" { - #[link_name = "\u{1}_aws_lc_0_21_0_i2d_RSAPrivateKey_bio"] - pub fn i2d_RSAPrivateKey_bio(bp: *mut BIO, rsa: *mut RSA) -> ::std::os::raw::c_int; + #[link_name = "\u{1}_aws_lc_0_21_0_NETSCAPE_SPKAC_free"] + pub fn NETSCAPE_SPKAC_free(spkac: *mut NETSCAPE_SPKAC); } extern "C" { - #[link_name = "\u{1}_aws_lc_0_21_0_i2d_RSAPublicKey_bio"] - pub fn i2d_RSAPublicKey_bio(bp: *mut BIO, rsa: *mut RSA) -> ::std::os::raw::c_int; + #[link_name = "\u{1}_aws_lc_0_21_0_d2i_NETSCAPE_SPKAC"] + pub fn d2i_NETSCAPE_SPKAC( + out: *mut *mut NETSCAPE_SPKAC, + inp: *mut *const u8, + len: ::std::os::raw::c_long, + ) -> *mut NETSCAPE_SPKAC; } extern "C" { - #[link_name = "\u{1}_aws_lc_0_21_0_i2d_RSA_PUBKEY_bio"] - pub fn i2d_RSA_PUBKEY_bio(bp: *mut BIO, rsa: *mut RSA) -> ::std::os::raw::c_int; + #[link_name = "\u{1}_aws_lc_0_21_0_i2d_NETSCAPE_SPKAC"] + pub fn i2d_NETSCAPE_SPKAC( + spkac: *const NETSCAPE_SPKAC, + outp: *mut *mut u8, + ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_0_21_0_i2d_DSA_PUBKEY_bio"] - pub fn i2d_DSA_PUBKEY_bio(bp: *mut BIO, dsa: *mut DSA) -> ::std::os::raw::c_int; + #[link_name = "\u{1}_aws_lc_0_21_0_NETSCAPE_SPKI_print"] + pub fn NETSCAPE_SPKI_print(out: *mut BIO, spki: *mut NETSCAPE_SPKI) -> ::std::os::raw::c_int; } -extern "C" { - #[link_name = "\u{1}_aws_lc_0_21_0_i2d_DSAPrivateKey_bio"] - pub fn i2d_DSAPrivateKey_bio(bp: *mut BIO, dsa: *mut DSA) -> ::std::os::raw::c_int; +#[repr(C)] +#[derive(Debug, Copy, Clone, PartialEq, Eq)] +pub struct rsa_pss_params_st { + pub hashAlgorithm: *mut X509_ALGOR, + pub maskGenAlgorithm: *mut X509_ALGOR, + pub saltLength: *mut ASN1_INTEGER, + pub trailerField: *mut ASN1_INTEGER, + pub maskHash: *mut X509_ALGOR, } -extern "C" { - #[link_name = "\u{1}_aws_lc_0_21_0_i2d_EC_PUBKEY_bio"] - pub fn i2d_EC_PUBKEY_bio(bp: *mut BIO, eckey: *mut EC_KEY) -> ::std::os::raw::c_int; -} -extern "C" { - #[link_name = "\u{1}_aws_lc_0_21_0_i2d_ECPrivateKey_bio"] - pub fn i2d_ECPrivateKey_bio(bp: *mut BIO, eckey: *mut EC_KEY) -> ::std::os::raw::c_int; +#[test] +fn bindgen_test_layout_rsa_pss_params_st() { + const UNINIT: ::std::mem::MaybeUninit = ::std::mem::MaybeUninit::uninit(); + let ptr = UNINIT.as_ptr(); + assert_eq!( + ::std::mem::size_of::(), + 40usize, + concat!("Size of: ", stringify!(rsa_pss_params_st)) + ); + assert_eq!( + ::std::mem::align_of::(), + 8usize, + concat!("Alignment of ", stringify!(rsa_pss_params_st)) + ); + assert_eq!( + unsafe { ::std::ptr::addr_of!((*ptr).hashAlgorithm) as usize - ptr as usize }, + 0usize, + concat!( + "Offset of field: ", + stringify!(rsa_pss_params_st), + "::", + stringify!(hashAlgorithm) + ) + ); + assert_eq!( + unsafe { ::std::ptr::addr_of!((*ptr).maskGenAlgorithm) as usize - ptr as usize }, + 8usize, + concat!( + "Offset of field: ", + stringify!(rsa_pss_params_st), + "::", + stringify!(maskGenAlgorithm) + ) + ); + assert_eq!( + unsafe { ::std::ptr::addr_of!((*ptr).saltLength) as usize - ptr as usize }, + 16usize, + concat!( + "Offset of field: ", + stringify!(rsa_pss_params_st), + "::", + stringify!(saltLength) + ) + ); + assert_eq!( + unsafe { ::std::ptr::addr_of!((*ptr).trailerField) as usize - ptr as usize }, + 24usize, + concat!( + "Offset of field: ", + stringify!(rsa_pss_params_st), + "::", + stringify!(trailerField) + ) + ); + assert_eq!( + unsafe { ::std::ptr::addr_of!((*ptr).maskHash) as usize - ptr as usize }, + 32usize, + concat!( + "Offset of field: ", + stringify!(rsa_pss_params_st), + "::", + stringify!(maskHash) + ) + ); } -extern "C" { - #[link_name = "\u{1}_aws_lc_0_21_0_i2d_PKCS8_bio"] - pub fn i2d_PKCS8_bio(bp: *mut BIO, p8: *mut X509_SIG) -> ::std::os::raw::c_int; +impl Default for rsa_pss_params_st { + fn default() -> Self { + let mut s = ::std::mem::MaybeUninit::::uninit(); + unsafe { + ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); + s.assume_init() + } + } } extern "C" { - #[link_name = "\u{1}_aws_lc_0_21_0_i2d_PKCS8_PRIV_KEY_INFO_bio"] - pub fn i2d_PKCS8_PRIV_KEY_INFO_bio( - bp: *mut BIO, - p8inf: *mut PKCS8_PRIV_KEY_INFO, - ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}_aws_lc_0_21_0_RSA_PSS_PARAMS_it"] + pub static RSA_PSS_PARAMS_it: ASN1_ITEM; } extern "C" { - #[link_name = "\u{1}_aws_lc_0_21_0_i2d_PrivateKey_bio"] - pub fn i2d_PrivateKey_bio(bp: *mut BIO, pkey: *mut EVP_PKEY) -> ::std::os::raw::c_int; + #[link_name = "\u{1}_aws_lc_0_21_0_RSA_PSS_PARAMS_new"] + pub fn RSA_PSS_PARAMS_new() -> *mut RSA_PSS_PARAMS; } extern "C" { - #[link_name = "\u{1}_aws_lc_0_21_0_i2d_PUBKEY_bio"] - pub fn i2d_PUBKEY_bio(bp: *mut BIO, pkey: *mut EVP_PKEY) -> ::std::os::raw::c_int; + #[link_name = "\u{1}_aws_lc_0_21_0_RSA_PSS_PARAMS_free"] + pub fn RSA_PSS_PARAMS_free(params: *mut RSA_PSS_PARAMS); } extern "C" { - #[link_name = "\u{1}_aws_lc_0_21_0_i2d_DHparams_bio"] - pub fn i2d_DHparams_bio(bp: *mut BIO, dh: *const DH) -> ::std::os::raw::c_int; + #[link_name = "\u{1}_aws_lc_0_21_0_d2i_RSA_PSS_PARAMS"] + pub fn d2i_RSA_PSS_PARAMS( + out: *mut *mut RSA_PSS_PARAMS, + inp: *mut *const u8, + len: ::std::os::raw::c_long, + ) -> *mut RSA_PSS_PARAMS; } extern "C" { - #[link_name = "\u{1}_aws_lc_0_21_0_i2d_PKCS8PrivateKeyInfo_bio"] - pub fn i2d_PKCS8PrivateKeyInfo_bio(bp: *mut BIO, key: *mut EVP_PKEY) -> ::std::os::raw::c_int; + #[link_name = "\u{1}_aws_lc_0_21_0_i2d_RSA_PSS_PARAMS"] + pub fn i2d_RSA_PSS_PARAMS( + in_: *const RSA_PSS_PARAMS, + outp: *mut *mut u8, + ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_0_21_0_d2i_X509_fp"] - pub fn d2i_X509_fp(fp: *mut FILE, x509: *mut *mut X509) -> *mut X509; + #[link_name = "\u{1}_aws_lc_0_21_0_PKCS8_PRIV_KEY_INFO_it"] + pub static PKCS8_PRIV_KEY_INFO_it: ASN1_ITEM; } extern "C" { - #[link_name = "\u{1}_aws_lc_0_21_0_d2i_X509_CRL_fp"] - pub fn d2i_X509_CRL_fp(fp: *mut FILE, crl: *mut *mut X509_CRL) -> *mut X509_CRL; + #[link_name = "\u{1}_aws_lc_0_21_0_PKCS8_PRIV_KEY_INFO_new"] + pub fn PKCS8_PRIV_KEY_INFO_new() -> *mut PKCS8_PRIV_KEY_INFO; } extern "C" { - #[link_name = "\u{1}_aws_lc_0_21_0_d2i_X509_REQ_fp"] - pub fn d2i_X509_REQ_fp(fp: *mut FILE, req: *mut *mut X509_REQ) -> *mut X509_REQ; + #[link_name = "\u{1}_aws_lc_0_21_0_PKCS8_PRIV_KEY_INFO_free"] + pub fn PKCS8_PRIV_KEY_INFO_free(key: *mut PKCS8_PRIV_KEY_INFO); } extern "C" { - #[link_name = "\u{1}_aws_lc_0_21_0_d2i_RSAPrivateKey_fp"] - pub fn d2i_RSAPrivateKey_fp(fp: *mut FILE, rsa: *mut *mut RSA) -> *mut RSA; + #[link_name = "\u{1}_aws_lc_0_21_0_d2i_PKCS8_PRIV_KEY_INFO"] + pub fn d2i_PKCS8_PRIV_KEY_INFO( + out: *mut *mut PKCS8_PRIV_KEY_INFO, + inp: *mut *const u8, + len: ::std::os::raw::c_long, + ) -> *mut PKCS8_PRIV_KEY_INFO; } extern "C" { - #[link_name = "\u{1}_aws_lc_0_21_0_d2i_RSAPublicKey_fp"] - pub fn d2i_RSAPublicKey_fp(fp: *mut FILE, rsa: *mut *mut RSA) -> *mut RSA; + #[link_name = "\u{1}_aws_lc_0_21_0_i2d_PKCS8_PRIV_KEY_INFO"] + pub fn i2d_PKCS8_PRIV_KEY_INFO( + key: *const PKCS8_PRIV_KEY_INFO, + outp: *mut *mut u8, + ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_0_21_0_d2i_RSA_PUBKEY_fp"] - pub fn d2i_RSA_PUBKEY_fp(fp: *mut FILE, rsa: *mut *mut RSA) -> *mut RSA; + #[link_name = "\u{1}_aws_lc_0_21_0_EVP_PKCS82PKEY"] + pub fn EVP_PKCS82PKEY(p8: *const PKCS8_PRIV_KEY_INFO) -> *mut EVP_PKEY; } extern "C" { - #[link_name = "\u{1}_aws_lc_0_21_0_d2i_DSA_PUBKEY_fp"] - pub fn d2i_DSA_PUBKEY_fp(fp: *mut FILE, dsa: *mut *mut DSA) -> *mut DSA; + #[link_name = "\u{1}_aws_lc_0_21_0_EVP_PKEY2PKCS8"] + pub fn EVP_PKEY2PKCS8(pkey: *const EVP_PKEY) -> *mut PKCS8_PRIV_KEY_INFO; } extern "C" { - #[link_name = "\u{1}_aws_lc_0_21_0_d2i_DSAPrivateKey_fp"] - pub fn d2i_DSAPrivateKey_fp(fp: *mut FILE, dsa: *mut *mut DSA) -> *mut DSA; + #[link_name = "\u{1}_aws_lc_0_21_0_X509_SIG_it"] + pub static X509_SIG_it: ASN1_ITEM; } extern "C" { - #[link_name = "\u{1}_aws_lc_0_21_0_d2i_EC_PUBKEY_fp"] - pub fn d2i_EC_PUBKEY_fp(fp: *mut FILE, eckey: *mut *mut EC_KEY) -> *mut EC_KEY; + #[link_name = "\u{1}_aws_lc_0_21_0_X509_SIG_new"] + pub fn X509_SIG_new() -> *mut X509_SIG; } extern "C" { - #[link_name = "\u{1}_aws_lc_0_21_0_d2i_ECPrivateKey_fp"] - pub fn d2i_ECPrivateKey_fp(fp: *mut FILE, eckey: *mut *mut EC_KEY) -> *mut EC_KEY; + #[link_name = "\u{1}_aws_lc_0_21_0_X509_SIG_free"] + pub fn X509_SIG_free(key: *mut X509_SIG); } extern "C" { - #[link_name = "\u{1}_aws_lc_0_21_0_d2i_PKCS8_fp"] - pub fn d2i_PKCS8_fp(fp: *mut FILE, p8: *mut *mut X509_SIG) -> *mut X509_SIG; + #[link_name = "\u{1}_aws_lc_0_21_0_d2i_X509_SIG"] + pub fn d2i_X509_SIG( + out: *mut *mut X509_SIG, + inp: *mut *const u8, + len: ::std::os::raw::c_long, + ) -> *mut X509_SIG; } extern "C" { - #[link_name = "\u{1}_aws_lc_0_21_0_d2i_PKCS8_PRIV_KEY_INFO_fp"] - pub fn d2i_PKCS8_PRIV_KEY_INFO_fp( - fp: *mut FILE, - p8inf: *mut *mut PKCS8_PRIV_KEY_INFO, - ) -> *mut PKCS8_PRIV_KEY_INFO; + #[link_name = "\u{1}_aws_lc_0_21_0_i2d_X509_SIG"] + pub fn i2d_X509_SIG(sig: *const X509_SIG, outp: *mut *mut u8) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_0_21_0_d2i_PrivateKey_fp"] - pub fn d2i_PrivateKey_fp(fp: *mut FILE, a: *mut *mut EVP_PKEY) -> *mut EVP_PKEY; + #[link_name = "\u{1}_aws_lc_0_21_0_X509_SIG_get0"] + pub fn X509_SIG_get0( + sig: *const X509_SIG, + out_alg: *mut *const X509_ALGOR, + out_digest: *mut *const ASN1_OCTET_STRING, + ); } extern "C" { - #[link_name = "\u{1}_aws_lc_0_21_0_d2i_PUBKEY_fp"] - pub fn d2i_PUBKEY_fp(fp: *mut FILE, a: *mut *mut EVP_PKEY) -> *mut EVP_PKEY; + #[link_name = "\u{1}_aws_lc_0_21_0_X509_SIG_getm"] + pub fn X509_SIG_getm( + sig: *mut X509_SIG, + out_alg: *mut *mut X509_ALGOR, + out_digest: *mut *mut ASN1_OCTET_STRING, + ); } extern "C" { - #[link_name = "\u{1}_aws_lc_0_21_0_i2d_X509_fp"] - pub fn i2d_X509_fp(fp: *mut FILE, x509: *mut X509) -> ::std::os::raw::c_int; + #[link_name = "\u{1}_aws_lc_0_21_0_X509_print_ex"] + pub fn X509_print_ex( + bp: *mut BIO, + x: *mut X509, + nmflag: ::std::os::raw::c_ulong, + cflag: ::std::os::raw::c_ulong, + ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_0_21_0_i2d_X509_CRL_fp"] - pub fn i2d_X509_CRL_fp(fp: *mut FILE, crl: *mut X509_CRL) -> ::std::os::raw::c_int; + #[link_name = "\u{1}_aws_lc_0_21_0_X509_print_ex_fp"] + pub fn X509_print_ex_fp( + fp: *mut FILE, + x: *mut X509, + nmflag: ::std::os::raw::c_ulong, + cflag: ::std::os::raw::c_ulong, + ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_0_21_0_i2d_X509_REQ_fp"] - pub fn i2d_X509_REQ_fp(fp: *mut FILE, req: *mut X509_REQ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}_aws_lc_0_21_0_X509_print"] + pub fn X509_print(bp: *mut BIO, x: *mut X509) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_0_21_0_i2d_RSAPrivateKey_fp"] - pub fn i2d_RSAPrivateKey_fp(fp: *mut FILE, rsa: *mut RSA) -> ::std::os::raw::c_int; + #[link_name = "\u{1}_aws_lc_0_21_0_X509_print_fp"] + pub fn X509_print_fp(fp: *mut FILE, x: *mut X509) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_0_21_0_i2d_RSAPublicKey_fp"] - pub fn i2d_RSAPublicKey_fp(fp: *mut FILE, rsa: *mut RSA) -> ::std::os::raw::c_int; + #[link_name = "\u{1}_aws_lc_0_21_0_X509_CRL_print"] + pub fn X509_CRL_print(bp: *mut BIO, x: *mut X509_CRL) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_0_21_0_i2d_RSA_PUBKEY_fp"] - pub fn i2d_RSA_PUBKEY_fp(fp: *mut FILE, rsa: *mut RSA) -> ::std::os::raw::c_int; + #[link_name = "\u{1}_aws_lc_0_21_0_X509_CRL_print_fp"] + pub fn X509_CRL_print_fp(fp: *mut FILE, x: *mut X509_CRL) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_0_21_0_i2d_DSA_PUBKEY_fp"] - pub fn i2d_DSA_PUBKEY_fp(fp: *mut FILE, dsa: *mut DSA) -> ::std::os::raw::c_int; + #[link_name = "\u{1}_aws_lc_0_21_0_X509_REQ_print_ex"] + pub fn X509_REQ_print_ex( + bp: *mut BIO, + x: *mut X509_REQ, + nmflag: ::std::os::raw::c_ulong, + cflag: ::std::os::raw::c_ulong, + ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_0_21_0_i2d_DSAPrivateKey_fp"] - pub fn i2d_DSAPrivateKey_fp(fp: *mut FILE, dsa: *mut DSA) -> ::std::os::raw::c_int; + #[link_name = "\u{1}_aws_lc_0_21_0_X509_REQ_print"] + pub fn X509_REQ_print(bp: *mut BIO, req: *mut X509_REQ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_0_21_0_i2d_EC_PUBKEY_fp"] - pub fn i2d_EC_PUBKEY_fp(fp: *mut FILE, eckey: *mut EC_KEY) -> ::std::os::raw::c_int; + #[link_name = "\u{1}_aws_lc_0_21_0_X509_REQ_print_fp"] + pub fn X509_REQ_print_fp(fp: *mut FILE, req: *mut X509_REQ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_0_21_0_i2d_ECPrivateKey_fp"] - pub fn i2d_ECPrivateKey_fp(fp: *mut FILE, eckey: *mut EC_KEY) -> ::std::os::raw::c_int; + #[link_name = "\u{1}_aws_lc_0_21_0_X509_NAME_print_ex"] + pub fn X509_NAME_print_ex( + out: *mut BIO, + nm: *const X509_NAME, + indent: ::std::os::raw::c_int, + flags: ::std::os::raw::c_ulong, + ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_0_21_0_i2d_PKCS8_fp"] - pub fn i2d_PKCS8_fp(fp: *mut FILE, p8: *mut X509_SIG) -> ::std::os::raw::c_int; + #[link_name = "\u{1}_aws_lc_0_21_0_X509_NAME_print"] + pub fn X509_NAME_print( + bp: *mut BIO, + name: *const X509_NAME, + obase: ::std::os::raw::c_int, + ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_0_21_0_i2d_PKCS8_PRIV_KEY_INFO_fp"] - pub fn i2d_PKCS8_PRIV_KEY_INFO_fp( + #[link_name = "\u{1}_aws_lc_0_21_0_X509_NAME_oneline"] + pub fn X509_NAME_oneline( + name: *const X509_NAME, + buf: *mut ::std::os::raw::c_char, + size: ::std::os::raw::c_int, + ) -> *mut ::std::os::raw::c_char; +} +extern "C" { + #[link_name = "\u{1}_aws_lc_0_21_0_X509_NAME_print_ex_fp"] + pub fn X509_NAME_print_ex_fp( fp: *mut FILE, - p8inf: *mut PKCS8_PRIV_KEY_INFO, + nm: *const X509_NAME, + indent: ::std::os::raw::c_int, + flags: ::std::os::raw::c_ulong, ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_0_21_0_i2d_PKCS8PrivateKeyInfo_fp"] - pub fn i2d_PKCS8PrivateKeyInfo_fp(fp: *mut FILE, key: *mut EVP_PKEY) -> ::std::os::raw::c_int; + #[link_name = "\u{1}_aws_lc_0_21_0_X509_signature_dump"] + pub fn X509_signature_dump( + bio: *mut BIO, + sig: *const ASN1_STRING, + indent: ::std::os::raw::c_int, + ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_0_21_0_i2d_PrivateKey_fp"] - pub fn i2d_PrivateKey_fp(fp: *mut FILE, pkey: *mut EVP_PKEY) -> ::std::os::raw::c_int; + #[link_name = "\u{1}_aws_lc_0_21_0_X509_signature_print"] + pub fn X509_signature_print( + bio: *mut BIO, + alg: *const X509_ALGOR, + sig: *const ASN1_STRING, + ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_0_21_0_i2d_PUBKEY_fp"] - pub fn i2d_PUBKEY_fp(fp: *mut FILE, pkey: *mut EVP_PKEY) -> ::std::os::raw::c_int; + #[link_name = "\u{1}_aws_lc_0_21_0_X509V3_EXT_print"] + pub fn X509V3_EXT_print( + out: *mut BIO, + ext: *const X509_EXTENSION, + flag: ::std::os::raw::c_ulong, + indent: ::std::os::raw::c_int, + ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_0_21_0_X509_find_by_issuer_and_serial"] - pub fn X509_find_by_issuer_and_serial( - sk: *const stack_st_X509, - name: *mut X509_NAME, - serial: *const ASN1_INTEGER, - ) -> *mut X509; + #[link_name = "\u{1}_aws_lc_0_21_0_X509V3_EXT_print_fp"] + pub fn X509V3_EXT_print_fp( + out: *mut FILE, + ext: *const X509_EXTENSION, + flag: ::std::os::raw::c_int, + indent: ::std::os::raw::c_int, + ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_0_21_0_X509_find_by_subject"] - pub fn X509_find_by_subject(sk: *const stack_st_X509, name: *mut X509_NAME) -> *mut X509; + #[link_name = "\u{1}_aws_lc_0_21_0_X509V3_extensions_print"] + pub fn X509V3_extensions_print( + out: *mut BIO, + title: *const ::std::os::raw::c_char, + exts: *const stack_st_X509_EXTENSION, + flag: ::std::os::raw::c_ulong, + indent: ::std::os::raw::c_int, + ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_0_21_0_X509_cmp_time"] - pub fn X509_cmp_time(s: *const ASN1_TIME, t: *const time_t) -> ::std::os::raw::c_int; + #[link_name = "\u{1}_aws_lc_0_21_0_GENERAL_NAME_print"] + pub fn GENERAL_NAME_print(out: *mut BIO, gen: *const GENERAL_NAME) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_0_21_0_X509_cmp_time_posix"] - pub fn X509_cmp_time_posix(s: *const ASN1_TIME, t: i64) -> ::std::os::raw::c_int; + #[link_name = "\u{1}_aws_lc_0_21_0_X509_pubkey_digest"] + pub fn X509_pubkey_digest( + x509: *const X509, + md: *const EVP_MD, + out: *mut u8, + out_len: *mut ::std::os::raw::c_uint, + ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_0_21_0_X509_cmp_current_time"] - pub fn X509_cmp_current_time(s: *const ASN1_TIME) -> ::std::os::raw::c_int; + #[link_name = "\u{1}_aws_lc_0_21_0_X509_digest"] + pub fn X509_digest( + x509: *const X509, + md: *const EVP_MD, + out: *mut u8, + out_len: *mut ::std::os::raw::c_uint, + ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_0_21_0_X509_time_adj"] - pub fn X509_time_adj( - s: *mut ASN1_TIME, - offset_sec: ::std::os::raw::c_long, - t: *const time_t, - ) -> *mut ASN1_TIME; + #[link_name = "\u{1}_aws_lc_0_21_0_X509_CRL_digest"] + pub fn X509_CRL_digest( + crl: *const X509_CRL, + md: *const EVP_MD, + out: *mut u8, + out_len: *mut ::std::os::raw::c_uint, + ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_0_21_0_X509_time_adj_ex"] - pub fn X509_time_adj_ex( - s: *mut ASN1_TIME, - offset_day: ::std::os::raw::c_int, - offset_sec: ::std::os::raw::c_long, - t: *const time_t, - ) -> *mut ASN1_TIME; + #[link_name = "\u{1}_aws_lc_0_21_0_X509_REQ_digest"] + pub fn X509_REQ_digest( + req: *const X509_REQ, + md: *const EVP_MD, + out: *mut u8, + out_len: *mut ::std::os::raw::c_uint, + ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_0_21_0_X509_gmtime_adj"] - pub fn X509_gmtime_adj(s: *mut ASN1_TIME, offset_sec: ::std::os::raw::c_long) - -> *mut ASN1_TIME; + #[link_name = "\u{1}_aws_lc_0_21_0_X509_NAME_digest"] + pub fn X509_NAME_digest( + name: *const X509_NAME, + md: *const EVP_MD, + out: *mut u8, + out_len: *mut ::std::os::raw::c_uint, + ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_0_21_0_X509_issuer_name_cmp"] - pub fn X509_issuer_name_cmp(a: *const X509, b: *const X509) -> ::std::os::raw::c_int; + #[link_name = "\u{1}_aws_lc_0_21_0_d2i_X509_bio"] + pub fn d2i_X509_bio(bp: *mut BIO, x509: *mut *mut X509) -> *mut X509; } extern "C" { - #[link_name = "\u{1}_aws_lc_0_21_0_X509_subject_name_cmp"] - pub fn X509_subject_name_cmp(a: *const X509, b: *const X509) -> ::std::os::raw::c_int; + #[link_name = "\u{1}_aws_lc_0_21_0_d2i_X509_CRL_bio"] + pub fn d2i_X509_CRL_bio(bp: *mut BIO, crl: *mut *mut X509_CRL) -> *mut X509_CRL; } extern "C" { - #[link_name = "\u{1}_aws_lc_0_21_0_X509_CRL_cmp"] - pub fn X509_CRL_cmp(a: *const X509_CRL, b: *const X509_CRL) -> ::std::os::raw::c_int; + #[link_name = "\u{1}_aws_lc_0_21_0_d2i_X509_REQ_bio"] + pub fn d2i_X509_REQ_bio(bp: *mut BIO, req: *mut *mut X509_REQ) -> *mut X509_REQ; } extern "C" { - #[link_name = "\u{1}_aws_lc_0_21_0_X509_issuer_name_hash"] - pub fn X509_issuer_name_hash(x509: *mut X509) -> u32; + #[link_name = "\u{1}_aws_lc_0_21_0_d2i_RSAPrivateKey_bio"] + pub fn d2i_RSAPrivateKey_bio(bp: *mut BIO, rsa: *mut *mut RSA) -> *mut RSA; } extern "C" { - #[link_name = "\u{1}_aws_lc_0_21_0_X509_subject_name_hash"] - pub fn X509_subject_name_hash(x509: *mut X509) -> u32; + #[link_name = "\u{1}_aws_lc_0_21_0_d2i_RSAPublicKey_bio"] + pub fn d2i_RSAPublicKey_bio(bp: *mut BIO, rsa: *mut *mut RSA) -> *mut RSA; } extern "C" { - #[link_name = "\u{1}_aws_lc_0_21_0_X509_issuer_name_hash_old"] - pub fn X509_issuer_name_hash_old(x509: *mut X509) -> u32; + #[link_name = "\u{1}_aws_lc_0_21_0_d2i_RSA_PUBKEY_bio"] + pub fn d2i_RSA_PUBKEY_bio(bp: *mut BIO, rsa: *mut *mut RSA) -> *mut RSA; } extern "C" { - #[link_name = "\u{1}_aws_lc_0_21_0_X509_subject_name_hash_old"] - pub fn X509_subject_name_hash_old(x509: *mut X509) -> u32; + #[link_name = "\u{1}_aws_lc_0_21_0_d2i_DSA_PUBKEY_bio"] + pub fn d2i_DSA_PUBKEY_bio(bp: *mut BIO, dsa: *mut *mut DSA) -> *mut DSA; } extern "C" { - #[link_name = "\u{1}_aws_lc_0_21_0_X509_get_ex_new_index"] - pub fn X509_get_ex_new_index( - argl: ::std::os::raw::c_long, - argp: *mut ::std::os::raw::c_void, - unused: *mut CRYPTO_EX_unused, - dup_unused: CRYPTO_EX_dup, - free_func: CRYPTO_EX_free, - ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}_aws_lc_0_21_0_d2i_DSAPrivateKey_bio"] + pub fn d2i_DSAPrivateKey_bio(bp: *mut BIO, dsa: *mut *mut DSA) -> *mut DSA; } extern "C" { - #[link_name = "\u{1}_aws_lc_0_21_0_X509_set_ex_data"] - pub fn X509_set_ex_data( - r: *mut X509, - idx: ::std::os::raw::c_int, - arg: *mut ::std::os::raw::c_void, - ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}_aws_lc_0_21_0_d2i_EC_PUBKEY_bio"] + pub fn d2i_EC_PUBKEY_bio(bp: *mut BIO, eckey: *mut *mut EC_KEY) -> *mut EC_KEY; } extern "C" { - #[link_name = "\u{1}_aws_lc_0_21_0_X509_get_ex_data"] - pub fn X509_get_ex_data( - r: *mut X509, - idx: ::std::os::raw::c_int, - ) -> *mut ::std::os::raw::c_void; + #[link_name = "\u{1}_aws_lc_0_21_0_d2i_ECPrivateKey_bio"] + pub fn d2i_ECPrivateKey_bio(bp: *mut BIO, eckey: *mut *mut EC_KEY) -> *mut EC_KEY; } extern "C" { - #[link_name = "\u{1}_aws_lc_0_21_0_X509_STORE_CTX_get_ex_new_index"] - pub fn X509_STORE_CTX_get_ex_new_index( - argl: ::std::os::raw::c_long, - argp: *mut ::std::os::raw::c_void, - unused: *mut CRYPTO_EX_unused, - dup_unused: CRYPTO_EX_dup, - free_func: CRYPTO_EX_free, - ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}_aws_lc_0_21_0_d2i_PKCS8_bio"] + pub fn d2i_PKCS8_bio(bp: *mut BIO, p8: *mut *mut X509_SIG) -> *mut X509_SIG; } extern "C" { - #[link_name = "\u{1}_aws_lc_0_21_0_X509_STORE_CTX_set_ex_data"] - pub fn X509_STORE_CTX_set_ex_data( - ctx: *mut X509_STORE_CTX, - idx: ::std::os::raw::c_int, - data: *mut ::std::os::raw::c_void, - ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}_aws_lc_0_21_0_d2i_PKCS8_PRIV_KEY_INFO_bio"] + pub fn d2i_PKCS8_PRIV_KEY_INFO_bio( + bp: *mut BIO, + p8inf: *mut *mut PKCS8_PRIV_KEY_INFO, + ) -> *mut PKCS8_PRIV_KEY_INFO; } extern "C" { - #[link_name = "\u{1}_aws_lc_0_21_0_X509_STORE_CTX_get_ex_data"] - pub fn X509_STORE_CTX_get_ex_data( - ctx: *mut X509_STORE_CTX, - idx: ::std::os::raw::c_int, - ) -> *mut ::std::os::raw::c_void; + #[link_name = "\u{1}_aws_lc_0_21_0_d2i_PUBKEY_bio"] + pub fn d2i_PUBKEY_bio(bp: *mut BIO, a: *mut *mut EVP_PKEY) -> *mut EVP_PKEY; } extern "C" { - #[link_name = "\u{1}_aws_lc_0_21_0_X509_STORE_get_ex_new_index"] - pub fn X509_STORE_get_ex_new_index( - argl: ::std::os::raw::c_long, - argp: *mut ::std::os::raw::c_void, - unused: *mut CRYPTO_EX_unused, - dup_unused: CRYPTO_EX_dup, - free_func: CRYPTO_EX_free, - ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}_aws_lc_0_21_0_d2i_DHparams_bio"] + pub fn d2i_DHparams_bio(bp: *mut BIO, dh: *mut *mut DH) -> *mut DH; } extern "C" { - #[link_name = "\u{1}_aws_lc_0_21_0_X509_STORE_set_ex_data"] - pub fn X509_STORE_set_ex_data( - ctx: *mut X509_STORE, - idx: ::std::os::raw::c_int, - data: *mut ::std::os::raw::c_void, - ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}_aws_lc_0_21_0_d2i_PrivateKey_bio"] + pub fn d2i_PrivateKey_bio(bp: *mut BIO, a: *mut *mut EVP_PKEY) -> *mut EVP_PKEY; } extern "C" { - #[link_name = "\u{1}_aws_lc_0_21_0_X509_STORE_get_ex_data"] - pub fn X509_STORE_get_ex_data( - ctx: *mut X509_STORE, - idx: ::std::os::raw::c_int, - ) -> *mut ::std::os::raw::c_void; + #[link_name = "\u{1}_aws_lc_0_21_0_i2d_X509_bio"] + pub fn i2d_X509_bio(bp: *mut BIO, x509: *mut X509) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_0_21_0_ASN1_digest"] - pub fn ASN1_digest( - i2d: i2d_of_void, - type_: *const EVP_MD, - data: *mut ::std::os::raw::c_char, - md: *mut ::std::os::raw::c_uchar, - len: *mut ::std::os::raw::c_uint, - ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}_aws_lc_0_21_0_i2d_X509_CRL_bio"] + pub fn i2d_X509_CRL_bio(bp: *mut BIO, crl: *mut X509_CRL) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_0_21_0_ASN1_item_digest"] - pub fn ASN1_item_digest( - it: *const ASN1_ITEM, - type_: *const EVP_MD, - data: *mut ::std::os::raw::c_void, - md: *mut ::std::os::raw::c_uchar, - len: *mut ::std::os::raw::c_uint, - ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}_aws_lc_0_21_0_i2d_X509_REQ_bio"] + pub fn i2d_X509_REQ_bio(bp: *mut BIO, req: *mut X509_REQ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_0_21_0_ASN1_item_verify"] - pub fn ASN1_item_verify( - it: *const ASN1_ITEM, - algor1: *const X509_ALGOR, - signature: *const ASN1_BIT_STRING, - data: *mut ::std::os::raw::c_void, - pkey: *mut EVP_PKEY, - ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}_aws_lc_0_21_0_i2d_RSAPrivateKey_bio"] + pub fn i2d_RSAPrivateKey_bio(bp: *mut BIO, rsa: *mut RSA) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_0_21_0_ASN1_item_sign"] - pub fn ASN1_item_sign( - it: *const ASN1_ITEM, - algor1: *mut X509_ALGOR, - algor2: *mut X509_ALGOR, - signature: *mut ASN1_BIT_STRING, - data: *mut ::std::os::raw::c_void, - pkey: *mut EVP_PKEY, - type_: *const EVP_MD, - ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}_aws_lc_0_21_0_i2d_RSAPublicKey_bio"] + pub fn i2d_RSAPublicKey_bio(bp: *mut BIO, rsa: *mut RSA) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_0_21_0_ASN1_item_sign_ctx"] - pub fn ASN1_item_sign_ctx( - it: *const ASN1_ITEM, - algor1: *mut X509_ALGOR, - algor2: *mut X509_ALGOR, - signature: *mut ASN1_BIT_STRING, - asn: *mut ::std::os::raw::c_void, - ctx: *mut EVP_MD_CTX, - ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}_aws_lc_0_21_0_i2d_RSA_PUBKEY_bio"] + pub fn i2d_RSA_PUBKEY_bio(bp: *mut BIO, rsa: *mut RSA) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_0_21_0_X509_supported_extension"] - pub fn X509_supported_extension(ex: *const X509_EXTENSION) -> ::std::os::raw::c_int; + #[link_name = "\u{1}_aws_lc_0_21_0_i2d_DSA_PUBKEY_bio"] + pub fn i2d_DSA_PUBKEY_bio(bp: *mut BIO, dsa: *mut DSA) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_0_21_0_X509_check_ca"] - pub fn X509_check_ca(x509: *mut X509) -> ::std::os::raw::c_int; + #[link_name = "\u{1}_aws_lc_0_21_0_i2d_DSAPrivateKey_bio"] + pub fn i2d_DSAPrivateKey_bio(bp: *mut BIO, dsa: *mut DSA) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_0_21_0_X509_check_issued"] - pub fn X509_check_issued(issuer: *mut X509, subject: *mut X509) -> ::std::os::raw::c_int; + #[link_name = "\u{1}_aws_lc_0_21_0_i2d_EC_PUBKEY_bio"] + pub fn i2d_EC_PUBKEY_bio(bp: *mut BIO, eckey: *mut EC_KEY) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_0_21_0_NAME_CONSTRAINTS_check"] - pub fn NAME_CONSTRAINTS_check( - x509: *mut X509, - nc: *mut NAME_CONSTRAINTS, - ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}_aws_lc_0_21_0_i2d_ECPrivateKey_bio"] + pub fn i2d_ECPrivateKey_bio(bp: *mut BIO, eckey: *mut EC_KEY) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_0_21_0_X509_check_host"] - pub fn X509_check_host( - x509: *const X509, - chk: *const ::std::os::raw::c_char, - chklen: usize, - flags: ::std::os::raw::c_uint, - out_peername: *mut *mut ::std::os::raw::c_char, - ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}_aws_lc_0_21_0_i2d_PKCS8_bio"] + pub fn i2d_PKCS8_bio(bp: *mut BIO, p8: *mut X509_SIG) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_0_21_0_X509_check_email"] - pub fn X509_check_email( - x509: *const X509, - chk: *const ::std::os::raw::c_char, - chklen: usize, - flags: ::std::os::raw::c_uint, + #[link_name = "\u{1}_aws_lc_0_21_0_i2d_PKCS8_PRIV_KEY_INFO_bio"] + pub fn i2d_PKCS8_PRIV_KEY_INFO_bio( + bp: *mut BIO, + p8inf: *mut PKCS8_PRIV_KEY_INFO, ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_0_21_0_X509_check_ip"] - pub fn X509_check_ip( - x509: *const X509, - chk: *const u8, - chklen: usize, - flags: ::std::os::raw::c_uint, - ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}_aws_lc_0_21_0_i2d_PrivateKey_bio"] + pub fn i2d_PrivateKey_bio(bp: *mut BIO, pkey: *mut EVP_PKEY) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_0_21_0_X509_check_ip_asc"] - pub fn X509_check_ip_asc( - x509: *const X509, - ipasc: *const ::std::os::raw::c_char, - flags: ::std::os::raw::c_uint, - ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}_aws_lc_0_21_0_i2d_PUBKEY_bio"] + pub fn i2d_PUBKEY_bio(bp: *mut BIO, pkey: *mut EVP_PKEY) -> ::std::os::raw::c_int; } -#[repr(C)] -#[derive(Debug, Copy, Clone, PartialEq, Eq)] -pub struct private_key_st { - pub dec_pkey: *mut EVP_PKEY, +extern "C" { + #[link_name = "\u{1}_aws_lc_0_21_0_i2d_DHparams_bio"] + pub fn i2d_DHparams_bio(bp: *mut BIO, dh: *const DH) -> ::std::os::raw::c_int; } -#[test] -fn bindgen_test_layout_private_key_st() { - const UNINIT: ::std::mem::MaybeUninit = ::std::mem::MaybeUninit::uninit(); - let ptr = UNINIT.as_ptr(); - assert_eq!( - ::std::mem::size_of::(), - 8usize, - concat!("Size of: ", stringify!(private_key_st)) - ); - assert_eq!( - ::std::mem::align_of::(), - 8usize, - concat!("Alignment of ", stringify!(private_key_st)) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).dec_pkey) as usize - ptr as usize }, - 0usize, - concat!( - "Offset of field: ", - stringify!(private_key_st), - "::", - stringify!(dec_pkey) - ) - ); +extern "C" { + #[link_name = "\u{1}_aws_lc_0_21_0_i2d_PKCS8PrivateKeyInfo_bio"] + pub fn i2d_PKCS8PrivateKeyInfo_bio(bp: *mut BIO, key: *mut EVP_PKEY) -> ::std::os::raw::c_int; } -impl Default for private_key_st { - fn default() -> Self { - let mut s = ::std::mem::MaybeUninit::::uninit(); - unsafe { - ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() - } - } +extern "C" { + #[link_name = "\u{1}_aws_lc_0_21_0_d2i_X509_fp"] + pub fn d2i_X509_fp(fp: *mut FILE, x509: *mut *mut X509) -> *mut X509; } -#[repr(C)] -#[derive(Debug, Copy, Clone, PartialEq, Eq)] -pub struct X509_info_st { - pub x509: *mut X509, - pub crl: *mut X509_CRL, - pub x_pkey: *mut X509_PKEY, - pub enc_cipher: EVP_CIPHER_INFO, - pub enc_len: ::std::os::raw::c_int, - pub enc_data: *mut ::std::os::raw::c_char, +extern "C" { + #[link_name = "\u{1}_aws_lc_0_21_0_d2i_X509_CRL_fp"] + pub fn d2i_X509_CRL_fp(fp: *mut FILE, crl: *mut *mut X509_CRL) -> *mut X509_CRL; } -#[test] -fn bindgen_test_layout_X509_info_st() { - const UNINIT: ::std::mem::MaybeUninit = ::std::mem::MaybeUninit::uninit(); - let ptr = UNINIT.as_ptr(); - assert_eq!( - ::std::mem::size_of::(), - 64usize, - concat!("Size of: ", stringify!(X509_info_st)) - ); - assert_eq!( - ::std::mem::align_of::(), - 8usize, - concat!("Alignment of ", stringify!(X509_info_st)) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).x509) as usize - ptr as usize }, - 0usize, - concat!( - "Offset of field: ", - stringify!(X509_info_st), - "::", - stringify!(x509) - ) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).crl) as usize - ptr as usize }, - 8usize, - concat!( - "Offset of field: ", - stringify!(X509_info_st), - "::", - stringify!(crl) - ) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).x_pkey) as usize - ptr as usize }, - 16usize, - concat!( - "Offset of field: ", - stringify!(X509_info_st), - "::", - stringify!(x_pkey) - ) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).enc_cipher) as usize - ptr as usize }, - 24usize, - concat!( - "Offset of field: ", - stringify!(X509_info_st), - "::", - stringify!(enc_cipher) - ) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).enc_len) as usize - ptr as usize }, - 48usize, - concat!( - "Offset of field: ", - stringify!(X509_info_st), - "::", - stringify!(enc_len) - ) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).enc_data) as usize - ptr as usize }, - 56usize, - concat!( - "Offset of field: ", - stringify!(X509_info_st), - "::", - stringify!(enc_data) - ) - ); +extern "C" { + #[link_name = "\u{1}_aws_lc_0_21_0_d2i_X509_REQ_fp"] + pub fn d2i_X509_REQ_fp(fp: *mut FILE, req: *mut *mut X509_REQ) -> *mut X509_REQ; } -impl Default for X509_info_st { - fn default() -> Self { - let mut s = ::std::mem::MaybeUninit::::uninit(); - unsafe { - ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() - } - } +extern "C" { + #[link_name = "\u{1}_aws_lc_0_21_0_d2i_RSAPrivateKey_fp"] + pub fn d2i_RSAPrivateKey_fp(fp: *mut FILE, rsa: *mut *mut RSA) -> *mut RSA; } -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct stack_st_X509_INFO { - _unused: [u8; 0], +extern "C" { + #[link_name = "\u{1}_aws_lc_0_21_0_d2i_RSAPublicKey_fp"] + pub fn d2i_RSAPublicKey_fp(fp: *mut FILE, rsa: *mut *mut RSA) -> *mut RSA; } -pub type sk_X509_INFO_free_func = ::std::option::Option; -pub type sk_X509_INFO_copy_func = - ::std::option::Option *mut X509_INFO>; -pub type sk_X509_INFO_cmp_func = ::std::option::Option< - unsafe extern "C" fn( - arg1: *const *const X509_INFO, - arg2: *const *const X509_INFO, - ) -> ::std::os::raw::c_int, ->; -pub type sk_X509_INFO_delete_if_func = ::std::option::Option< - unsafe extern "C" fn( - arg1: *mut X509_INFO, - arg2: *mut ::std::os::raw::c_void, - ) -> ::std::os::raw::c_int, ->; extern "C" { - #[link_name = "\u{1}_aws_lc_0_21_0_X509_INFO_free"] - pub fn X509_INFO_free(info: *mut X509_INFO); -} -#[repr(C)] -#[derive(Debug, Copy, Clone, PartialEq, Eq)] -pub struct v3_ext_ctx { - pub flags: ::std::os::raw::c_int, - pub issuer_cert: *const X509, - pub subject_cert: *const X509, - pub subject_req: *const X509_REQ, - pub crl: *const X509_CRL, - pub db: *const CONF, -} -#[test] -fn bindgen_test_layout_v3_ext_ctx() { - const UNINIT: ::std::mem::MaybeUninit = ::std::mem::MaybeUninit::uninit(); - let ptr = UNINIT.as_ptr(); - assert_eq!( - ::std::mem::size_of::(), - 48usize, - concat!("Size of: ", stringify!(v3_ext_ctx)) - ); - assert_eq!( - ::std::mem::align_of::(), - 8usize, - concat!("Alignment of ", stringify!(v3_ext_ctx)) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).flags) as usize - ptr as usize }, - 0usize, - concat!( - "Offset of field: ", - stringify!(v3_ext_ctx), - "::", - stringify!(flags) - ) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).issuer_cert) as usize - ptr as usize }, - 8usize, - concat!( - "Offset of field: ", - stringify!(v3_ext_ctx), - "::", - stringify!(issuer_cert) - ) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).subject_cert) as usize - ptr as usize }, - 16usize, - concat!( - "Offset of field: ", - stringify!(v3_ext_ctx), - "::", - stringify!(subject_cert) - ) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).subject_req) as usize - ptr as usize }, - 24usize, - concat!( - "Offset of field: ", - stringify!(v3_ext_ctx), - "::", - stringify!(subject_req) - ) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).crl) as usize - ptr as usize }, - 32usize, - concat!( - "Offset of field: ", - stringify!(v3_ext_ctx), - "::", - stringify!(crl) - ) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).db) as usize - ptr as usize }, - 40usize, - concat!( - "Offset of field: ", - stringify!(v3_ext_ctx), - "::", - stringify!(db) - ) - ); -} -impl Default for v3_ext_ctx { - fn default() -> Self { - let mut s = ::std::mem::MaybeUninit::::uninit(); - unsafe { - ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() - } - } + #[link_name = "\u{1}_aws_lc_0_21_0_d2i_RSA_PUBKEY_fp"] + pub fn d2i_RSA_PUBKEY_fp(fp: *mut FILE, rsa: *mut *mut RSA) -> *mut RSA; } extern "C" { - #[link_name = "\u{1}_aws_lc_0_21_0_X509V3_set_ctx"] - pub fn X509V3_set_ctx( - ctx: *mut X509V3_CTX, - issuer: *const X509, - subject: *const X509, - req: *const X509_REQ, - crl: *const X509_CRL, - flags: ::std::os::raw::c_int, - ); + #[link_name = "\u{1}_aws_lc_0_21_0_d2i_DSA_PUBKEY_fp"] + pub fn d2i_DSA_PUBKEY_fp(fp: *mut FILE, dsa: *mut *mut DSA) -> *mut DSA; } extern "C" { - #[link_name = "\u{1}_aws_lc_0_21_0_X509V3_set_nconf"] - pub fn X509V3_set_nconf(ctx: *mut X509V3_CTX, conf: *const CONF); + #[link_name = "\u{1}_aws_lc_0_21_0_d2i_DSAPrivateKey_fp"] + pub fn d2i_DSAPrivateKey_fp(fp: *mut FILE, dsa: *mut *mut DSA) -> *mut DSA; } extern "C" { - #[link_name = "\u{1}_aws_lc_0_21_0_X509V3_EXT_nconf"] - pub fn X509V3_EXT_nconf( - conf: *const CONF, - ctx: *const X509V3_CTX, - name: *const ::std::os::raw::c_char, - value: *const ::std::os::raw::c_char, - ) -> *mut X509_EXTENSION; + #[link_name = "\u{1}_aws_lc_0_21_0_d2i_EC_PUBKEY_fp"] + pub fn d2i_EC_PUBKEY_fp(fp: *mut FILE, eckey: *mut *mut EC_KEY) -> *mut EC_KEY; } extern "C" { - #[link_name = "\u{1}_aws_lc_0_21_0_X509V3_EXT_nconf_nid"] - pub fn X509V3_EXT_nconf_nid( - conf: *const CONF, - ctx: *const X509V3_CTX, - ext_nid: ::std::os::raw::c_int, - value: *const ::std::os::raw::c_char, - ) -> *mut X509_EXTENSION; + #[link_name = "\u{1}_aws_lc_0_21_0_d2i_ECPrivateKey_fp"] + pub fn d2i_ECPrivateKey_fp(fp: *mut FILE, eckey: *mut *mut EC_KEY) -> *mut EC_KEY; } extern "C" { - #[link_name = "\u{1}_aws_lc_0_21_0_X509V3_EXT_conf_nid"] - pub fn X509V3_EXT_conf_nid( - conf: *mut lhash_st_CONF_VALUE, - ctx: *const X509V3_CTX, - ext_nid: ::std::os::raw::c_int, - value: *const ::std::os::raw::c_char, - ) -> *mut X509_EXTENSION; + #[link_name = "\u{1}_aws_lc_0_21_0_d2i_PKCS8_fp"] + pub fn d2i_PKCS8_fp(fp: *mut FILE, p8: *mut *mut X509_SIG) -> *mut X509_SIG; } extern "C" { - #[link_name = "\u{1}_aws_lc_0_21_0_X509V3_EXT_add_nconf_sk"] - pub fn X509V3_EXT_add_nconf_sk( - conf: *const CONF, - ctx: *const X509V3_CTX, - section: *const ::std::os::raw::c_char, - sk: *mut *mut stack_st_X509_EXTENSION, - ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}_aws_lc_0_21_0_d2i_PKCS8_PRIV_KEY_INFO_fp"] + pub fn d2i_PKCS8_PRIV_KEY_INFO_fp( + fp: *mut FILE, + p8inf: *mut *mut PKCS8_PRIV_KEY_INFO, + ) -> *mut PKCS8_PRIV_KEY_INFO; } extern "C" { - #[link_name = "\u{1}_aws_lc_0_21_0_X509V3_EXT_add_nconf"] - pub fn X509V3_EXT_add_nconf( - conf: *const CONF, - ctx: *const X509V3_CTX, - section: *const ::std::os::raw::c_char, - cert: *mut X509, - ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}_aws_lc_0_21_0_d2i_PrivateKey_fp"] + pub fn d2i_PrivateKey_fp(fp: *mut FILE, a: *mut *mut EVP_PKEY) -> *mut EVP_PKEY; } extern "C" { - #[link_name = "\u{1}_aws_lc_0_21_0_X509V3_EXT_REQ_add_nconf"] - pub fn X509V3_EXT_REQ_add_nconf( - conf: *const CONF, - ctx: *const X509V3_CTX, - section: *const ::std::os::raw::c_char, - req: *mut X509_REQ, - ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}_aws_lc_0_21_0_d2i_PUBKEY_fp"] + pub fn d2i_PUBKEY_fp(fp: *mut FILE, a: *mut *mut EVP_PKEY) -> *mut EVP_PKEY; } extern "C" { - #[link_name = "\u{1}_aws_lc_0_21_0_X509V3_EXT_CRL_add_nconf"] - pub fn X509V3_EXT_CRL_add_nconf( - conf: *const CONF, - ctx: *const X509V3_CTX, - section: *const ::std::os::raw::c_char, - crl: *mut X509_CRL, - ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}_aws_lc_0_21_0_i2d_X509_fp"] + pub fn i2d_X509_fp(fp: *mut FILE, x509: *mut X509) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_0_21_0_X509V3_EXT_conf"] - pub fn X509V3_EXT_conf( - conf: *mut lhash_st_CONF_VALUE, - ctx: *mut X509V3_CTX, - name: *const ::std::os::raw::c_char, - value: *const ::std::os::raw::c_char, - ) -> *mut X509_EXTENSION; + #[link_name = "\u{1}_aws_lc_0_21_0_i2d_X509_CRL_fp"] + pub fn i2d_X509_CRL_fp(fp: *mut FILE, crl: *mut X509_CRL) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_0_21_0_i2s_ASN1_OCTET_STRING"] - pub fn i2s_ASN1_OCTET_STRING( - method: *const X509V3_EXT_METHOD, - oct: *const ASN1_OCTET_STRING, - ) -> *mut ::std::os::raw::c_char; + #[link_name = "\u{1}_aws_lc_0_21_0_i2d_X509_REQ_fp"] + pub fn i2d_X509_REQ_fp(fp: *mut FILE, req: *mut X509_REQ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_0_21_0_s2i_ASN1_OCTET_STRING"] - pub fn s2i_ASN1_OCTET_STRING( - method: *const X509V3_EXT_METHOD, - ctx: *const X509V3_CTX, - str_: *const ::std::os::raw::c_char, - ) -> *mut ASN1_OCTET_STRING; + #[link_name = "\u{1}_aws_lc_0_21_0_i2d_RSAPrivateKey_fp"] + pub fn i2d_RSAPrivateKey_fp(fp: *mut FILE, rsa: *mut RSA) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_0_21_0_i2s_ASN1_INTEGER"] - pub fn i2s_ASN1_INTEGER( - method: *const X509V3_EXT_METHOD, - aint: *const ASN1_INTEGER, - ) -> *mut ::std::os::raw::c_char; + #[link_name = "\u{1}_aws_lc_0_21_0_i2d_RSAPublicKey_fp"] + pub fn i2d_RSAPublicKey_fp(fp: *mut FILE, rsa: *mut RSA) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_0_21_0_s2i_ASN1_INTEGER"] - pub fn s2i_ASN1_INTEGER( - method: *const X509V3_EXT_METHOD, - value: *const ::std::os::raw::c_char, - ) -> *mut ASN1_INTEGER; + #[link_name = "\u{1}_aws_lc_0_21_0_i2d_RSA_PUBKEY_fp"] + pub fn i2d_RSA_PUBKEY_fp(fp: *mut FILE, rsa: *mut RSA) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_0_21_0_i2s_ASN1_ENUMERATED"] - pub fn i2s_ASN1_ENUMERATED( - method: *const X509V3_EXT_METHOD, - aint: *const ASN1_ENUMERATED, - ) -> *mut ::std::os::raw::c_char; + #[link_name = "\u{1}_aws_lc_0_21_0_i2d_DSA_PUBKEY_fp"] + pub fn i2d_DSA_PUBKEY_fp(fp: *mut FILE, dsa: *mut DSA) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_0_21_0_X509V3_conf_free"] - pub fn X509V3_conf_free(val: *mut CONF_VALUE); + #[link_name = "\u{1}_aws_lc_0_21_0_i2d_DSAPrivateKey_fp"] + pub fn i2d_DSAPrivateKey_fp(fp: *mut FILE, dsa: *mut DSA) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_0_21_0_i2v_GENERAL_NAME"] - pub fn i2v_GENERAL_NAME( - method: *const X509V3_EXT_METHOD, - gen: *const GENERAL_NAME, - ret: *mut stack_st_CONF_VALUE, - ) -> *mut stack_st_CONF_VALUE; + #[link_name = "\u{1}_aws_lc_0_21_0_i2d_EC_PUBKEY_fp"] + pub fn i2d_EC_PUBKEY_fp(fp: *mut FILE, eckey: *mut EC_KEY) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_0_21_0_i2v_GENERAL_NAMES"] - pub fn i2v_GENERAL_NAMES( - method: *const X509V3_EXT_METHOD, - gen: *const GENERAL_NAMES, - extlist: *mut stack_st_CONF_VALUE, - ) -> *mut stack_st_CONF_VALUE; + #[link_name = "\u{1}_aws_lc_0_21_0_i2d_ECPrivateKey_fp"] + pub fn i2d_ECPrivateKey_fp(fp: *mut FILE, eckey: *mut EC_KEY) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_0_21_0_a2i_IPADDRESS"] - pub fn a2i_IPADDRESS(ipasc: *const ::std::os::raw::c_char) -> *mut ASN1_OCTET_STRING; + #[link_name = "\u{1}_aws_lc_0_21_0_i2d_PKCS8_fp"] + pub fn i2d_PKCS8_fp(fp: *mut FILE, p8: *mut X509_SIG) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_0_21_0_a2i_IPADDRESS_NC"] - pub fn a2i_IPADDRESS_NC(ipasc: *const ::std::os::raw::c_char) -> *mut ASN1_OCTET_STRING; + #[link_name = "\u{1}_aws_lc_0_21_0_i2d_PKCS8_PRIV_KEY_INFO_fp"] + pub fn i2d_PKCS8_PRIV_KEY_INFO_fp( + fp: *mut FILE, + p8inf: *mut PKCS8_PRIV_KEY_INFO, + ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_0_21_0_X509_get_notBefore"] - pub fn X509_get_notBefore(x509: *const X509) -> *mut ASN1_TIME; + #[link_name = "\u{1}_aws_lc_0_21_0_i2d_PKCS8PrivateKeyInfo_fp"] + pub fn i2d_PKCS8PrivateKeyInfo_fp(fp: *mut FILE, key: *mut EVP_PKEY) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_0_21_0_X509_get_notAfter"] - pub fn X509_get_notAfter(x509: *const X509) -> *mut ASN1_TIME; + #[link_name = "\u{1}_aws_lc_0_21_0_i2d_PrivateKey_fp"] + pub fn i2d_PrivateKey_fp(fp: *mut FILE, pkey: *mut EVP_PKEY) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_0_21_0_X509_set_notBefore"] - pub fn X509_set_notBefore(x509: *mut X509, tm: *const ASN1_TIME) -> ::std::os::raw::c_int; + #[link_name = "\u{1}_aws_lc_0_21_0_i2d_PUBKEY_fp"] + pub fn i2d_PUBKEY_fp(fp: *mut FILE, pkey: *mut EVP_PKEY) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_0_21_0_X509_set_notAfter"] - pub fn X509_set_notAfter(x509: *mut X509, tm: *const ASN1_TIME) -> ::std::os::raw::c_int; + #[link_name = "\u{1}_aws_lc_0_21_0_X509_find_by_issuer_and_serial"] + pub fn X509_find_by_issuer_and_serial( + sk: *const stack_st_X509, + name: *mut X509_NAME, + serial: *const ASN1_INTEGER, + ) -> *mut X509; } extern "C" { - #[link_name = "\u{1}_aws_lc_0_21_0_X509_CRL_get_lastUpdate"] - pub fn X509_CRL_get_lastUpdate(crl: *mut X509_CRL) -> *mut ASN1_TIME; + #[link_name = "\u{1}_aws_lc_0_21_0_X509_find_by_subject"] + pub fn X509_find_by_subject(sk: *const stack_st_X509, name: *mut X509_NAME) -> *mut X509; } extern "C" { - #[link_name = "\u{1}_aws_lc_0_21_0_X509_CRL_get_nextUpdate"] - pub fn X509_CRL_get_nextUpdate(crl: *mut X509_CRL) -> *mut ASN1_TIME; + #[link_name = "\u{1}_aws_lc_0_21_0_X509_cmp_time"] + pub fn X509_cmp_time(s: *const ASN1_TIME, t: *const time_t) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_0_21_0_X509_get_serialNumber"] - pub fn X509_get_serialNumber(x509: *mut X509) -> *mut ASN1_INTEGER; + #[link_name = "\u{1}_aws_lc_0_21_0_X509_cmp_time_posix"] + pub fn X509_cmp_time_posix(s: *const ASN1_TIME, t: i64) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_0_21_0_X509_NAME_get_text_by_OBJ"] - pub fn X509_NAME_get_text_by_OBJ( - name: *const X509_NAME, - obj: *const ASN1_OBJECT, - buf: *mut ::std::os::raw::c_char, - len: ::std::os::raw::c_int, - ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}_aws_lc_0_21_0_X509_cmp_current_time"] + pub fn X509_cmp_current_time(s: *const ASN1_TIME) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_0_21_0_X509_NAME_get_text_by_NID"] - pub fn X509_NAME_get_text_by_NID( - name: *const X509_NAME, - nid: ::std::os::raw::c_int, - buf: *mut ::std::os::raw::c_char, - len: ::std::os::raw::c_int, - ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}_aws_lc_0_21_0_X509_time_adj"] + pub fn X509_time_adj( + s: *mut ASN1_TIME, + offset_sec: ::std::os::raw::c_long, + t: *const time_t, + ) -> *mut ASN1_TIME; } extern "C" { - #[link_name = "\u{1}_aws_lc_0_21_0_X509_STORE_CTX_get0_parent_ctx"] - pub fn X509_STORE_CTX_get0_parent_ctx(ctx: *mut X509_STORE_CTX) -> *mut X509_STORE_CTX; + #[link_name = "\u{1}_aws_lc_0_21_0_X509_time_adj_ex"] + pub fn X509_time_adj_ex( + s: *mut ASN1_TIME, + offset_day: ::std::os::raw::c_int, + offset_sec: ::std::os::raw::c_long, + t: *const time_t, + ) -> *mut ASN1_TIME; } extern "C" { - #[link_name = "\u{1}_aws_lc_0_21_0_X509_LOOKUP_free"] - pub fn X509_LOOKUP_free(ctx: *mut X509_LOOKUP); + #[link_name = "\u{1}_aws_lc_0_21_0_X509_gmtime_adj"] + pub fn X509_gmtime_adj(s: *mut ASN1_TIME, offset_sec: ::std::os::raw::c_long) + -> *mut ASN1_TIME; } extern "C" { - #[link_name = "\u{1}_aws_lc_0_21_0_X509_STORE_CTX_cleanup"] - pub fn X509_STORE_CTX_cleanup(ctx: *mut X509_STORE_CTX); + #[link_name = "\u{1}_aws_lc_0_21_0_X509_issuer_name_cmp"] + pub fn X509_issuer_name_cmp(a: *const X509, b: *const X509) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_0_21_0_X509V3_add_standard_extensions"] - pub fn X509V3_add_standard_extensions() -> ::std::os::raw::c_int; + #[link_name = "\u{1}_aws_lc_0_21_0_X509_subject_name_cmp"] + pub fn X509_subject_name_cmp(a: *const X509, b: *const X509) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_0_21_0_X509V3_parse_list"] - pub fn X509V3_parse_list(line: *const ::std::os::raw::c_char) -> *mut stack_st_CONF_VALUE; + #[link_name = "\u{1}_aws_lc_0_21_0_X509_CRL_cmp"] + pub fn X509_CRL_cmp(a: *const X509_CRL, b: *const X509_CRL) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_0_21_0_X509_STORE_CTX_get_chain"] - pub fn X509_STORE_CTX_get_chain(ctx: *mut X509_STORE_CTX) -> *mut stack_st_X509; + #[link_name = "\u{1}_aws_lc_0_21_0_X509_issuer_name_hash"] + pub fn X509_issuer_name_hash(x509: *mut X509) -> u32; } extern "C" { - #[link_name = "\u{1}_aws_lc_0_21_0_X509_STORE_CTX_trusted_stack"] - pub fn X509_STORE_CTX_trusted_stack(ctx: *mut X509_STORE_CTX, sk: *mut stack_st_X509); + #[link_name = "\u{1}_aws_lc_0_21_0_X509_subject_name_hash"] + pub fn X509_subject_name_hash(x509: *mut X509) -> u32; } -pub type X509_STORE_CTX_verify_cb = ::std::option::Option< - unsafe extern "C" fn( - arg1: ::std::os::raw::c_int, - arg2: *mut X509_STORE_CTX, - ) -> ::std::os::raw::c_int, ->; extern "C" { - #[link_name = "\u{1}_aws_lc_0_21_0_X509_STORE_CTX_set_verify_cb"] - pub fn X509_STORE_CTX_set_verify_cb( - ctx: *mut X509_STORE_CTX, - verify_cb: ::std::option::Option< - unsafe extern "C" fn( - ok: ::std::os::raw::c_int, - ctx: *mut X509_STORE_CTX, - ) -> ::std::os::raw::c_int, - >, - ); + #[link_name = "\u{1}_aws_lc_0_21_0_X509_issuer_name_hash_old"] + pub fn X509_issuer_name_hash_old(x509: *mut X509) -> u32; } extern "C" { - #[link_name = "\u{1}_aws_lc_0_21_0_X509_STORE_set_verify_cb"] - pub fn X509_STORE_set_verify_cb(store: *mut X509_STORE, verify_cb: X509_STORE_CTX_verify_cb); + #[link_name = "\u{1}_aws_lc_0_21_0_X509_subject_name_hash_old"] + pub fn X509_subject_name_hash_old(x509: *mut X509) -> u32; } -pub type X509_STORE_CTX_get_crl_fn = ::std::option::Option< - unsafe extern "C" fn( - ctx: *mut X509_STORE_CTX, - crl: *mut *mut X509_CRL, - x: *mut X509, - ) -> ::std::os::raw::c_int, ->; -pub type X509_STORE_CTX_check_crl_fn = ::std::option::Option< - unsafe extern "C" fn(ctx: *mut X509_STORE_CTX, crl: *mut X509_CRL) -> ::std::os::raw::c_int, ->; extern "C" { - #[link_name = "\u{1}_aws_lc_0_21_0_X509_STORE_set_get_crl"] - pub fn X509_STORE_set_get_crl(store: *mut X509_STORE, get_crl: X509_STORE_CTX_get_crl_fn); + #[link_name = "\u{1}_aws_lc_0_21_0_X509_get_ex_new_index"] + pub fn X509_get_ex_new_index( + argl: ::std::os::raw::c_long, + argp: *mut ::std::os::raw::c_void, + unused: *mut CRYPTO_EX_unused, + dup_unused: CRYPTO_EX_dup, + free_func: CRYPTO_EX_free, + ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_0_21_0_X509_STORE_set_check_crl"] - pub fn X509_STORE_set_check_crl(store: *mut X509_STORE, check_crl: X509_STORE_CTX_check_crl_fn); + #[link_name = "\u{1}_aws_lc_0_21_0_X509_set_ex_data"] + pub fn X509_set_ex_data( + r: *mut X509, + idx: ::std::os::raw::c_int, + arg: *mut ::std::os::raw::c_void, + ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_0_21_0_X509_STORE_CTX_set_chain"] - pub fn X509_STORE_CTX_set_chain(ctx: *mut X509_STORE_CTX, sk: *mut stack_st_X509); + #[link_name = "\u{1}_aws_lc_0_21_0_X509_get_ex_data"] + pub fn X509_get_ex_data( + r: *mut X509, + idx: ::std::os::raw::c_int, + ) -> *mut ::std::os::raw::c_void; } -#[repr(C)] -#[derive(Debug, Copy, Clone, PartialEq, Eq)] -pub struct X509_algor_st { - pub algorithm: *mut ASN1_OBJECT, - pub parameter: *mut ASN1_TYPE, +extern "C" { + #[link_name = "\u{1}_aws_lc_0_21_0_X509_STORE_CTX_get_ex_new_index"] + pub fn X509_STORE_CTX_get_ex_new_index( + argl: ::std::os::raw::c_long, + argp: *mut ::std::os::raw::c_void, + unused: *mut CRYPTO_EX_unused, + dup_unused: CRYPTO_EX_dup, + free_func: CRYPTO_EX_free, + ) -> ::std::os::raw::c_int; } -#[test] -fn bindgen_test_layout_X509_algor_st() { - const UNINIT: ::std::mem::MaybeUninit = ::std::mem::MaybeUninit::uninit(); - let ptr = UNINIT.as_ptr(); - assert_eq!( - ::std::mem::size_of::(), - 16usize, - concat!("Size of: ", stringify!(X509_algor_st)) - ); - assert_eq!( - ::std::mem::align_of::(), - 8usize, - concat!("Alignment of ", stringify!(X509_algor_st)) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).algorithm) as usize - ptr as usize }, - 0usize, - concat!( - "Offset of field: ", - stringify!(X509_algor_st), - "::", - stringify!(algorithm) - ) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).parameter) as usize - ptr as usize }, - 8usize, - concat!( - "Offset of field: ", - stringify!(X509_algor_st), - "::", - stringify!(parameter) - ) - ); +extern "C" { + #[link_name = "\u{1}_aws_lc_0_21_0_X509_STORE_CTX_set_ex_data"] + pub fn X509_STORE_CTX_set_ex_data( + ctx: *mut X509_STORE_CTX, + idx: ::std::os::raw::c_int, + data: *mut ::std::os::raw::c_void, + ) -> ::std::os::raw::c_int; } -impl Default for X509_algor_st { - fn default() -> Self { - let mut s = ::std::mem::MaybeUninit::::uninit(); - unsafe { - ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() - } - } +extern "C" { + #[link_name = "\u{1}_aws_lc_0_21_0_X509_STORE_CTX_get_ex_data"] + pub fn X509_STORE_CTX_get_ex_data( + ctx: *mut X509_STORE_CTX, + idx: ::std::os::raw::c_int, + ) -> *mut ::std::os::raw::c_void; } -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct stack_st_DIST_POINT { - _unused: [u8; 0], +extern "C" { + #[link_name = "\u{1}_aws_lc_0_21_0_X509_STORE_get_ex_new_index"] + pub fn X509_STORE_get_ex_new_index( + argl: ::std::os::raw::c_long, + argp: *mut ::std::os::raw::c_void, + unused: *mut CRYPTO_EX_unused, + dup_unused: CRYPTO_EX_dup, + free_func: CRYPTO_EX_free, + ) -> ::std::os::raw::c_int; } -#[repr(C)] -#[derive(Debug, Copy, Clone, PartialEq, Eq)] -pub struct x509_trust_st { - pub trust: ::std::os::raw::c_int, - pub flags: ::std::os::raw::c_int, - pub check_trust: ::std::option::Option< - unsafe extern "C" fn( - arg1: *const X509_TRUST, - arg2: *mut X509, - arg3: ::std::os::raw::c_int, - ) -> ::std::os::raw::c_int, - >, - pub name: *mut ::std::os::raw::c_char, - pub arg1: ::std::os::raw::c_int, - pub arg2: *mut ::std::os::raw::c_void, +extern "C" { + #[link_name = "\u{1}_aws_lc_0_21_0_X509_STORE_set_ex_data"] + pub fn X509_STORE_set_ex_data( + ctx: *mut X509_STORE, + idx: ::std::os::raw::c_int, + data: *mut ::std::os::raw::c_void, + ) -> ::std::os::raw::c_int; } -#[test] -fn bindgen_test_layout_x509_trust_st() { - const UNINIT: ::std::mem::MaybeUninit = ::std::mem::MaybeUninit::uninit(); - let ptr = UNINIT.as_ptr(); - assert_eq!( - ::std::mem::size_of::(), - 40usize, - concat!("Size of: ", stringify!(x509_trust_st)) - ); - assert_eq!( - ::std::mem::align_of::(), - 8usize, - concat!("Alignment of ", stringify!(x509_trust_st)) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).trust) as usize - ptr as usize }, +extern "C" { + #[link_name = "\u{1}_aws_lc_0_21_0_X509_STORE_get_ex_data"] + pub fn X509_STORE_get_ex_data( + ctx: *mut X509_STORE, + idx: ::std::os::raw::c_int, + ) -> *mut ::std::os::raw::c_void; +} +extern "C" { + #[link_name = "\u{1}_aws_lc_0_21_0_ASN1_digest"] + pub fn ASN1_digest( + i2d: i2d_of_void, + type_: *const EVP_MD, + data: *mut ::std::os::raw::c_char, + md: *mut ::std::os::raw::c_uchar, + len: *mut ::std::os::raw::c_uint, + ) -> ::std::os::raw::c_int; +} +extern "C" { + #[link_name = "\u{1}_aws_lc_0_21_0_ASN1_item_digest"] + pub fn ASN1_item_digest( + it: *const ASN1_ITEM, + type_: *const EVP_MD, + data: *mut ::std::os::raw::c_void, + md: *mut ::std::os::raw::c_uchar, + len: *mut ::std::os::raw::c_uint, + ) -> ::std::os::raw::c_int; +} +extern "C" { + #[link_name = "\u{1}_aws_lc_0_21_0_ASN1_item_verify"] + pub fn ASN1_item_verify( + it: *const ASN1_ITEM, + algor1: *const X509_ALGOR, + signature: *const ASN1_BIT_STRING, + data: *mut ::std::os::raw::c_void, + pkey: *mut EVP_PKEY, + ) -> ::std::os::raw::c_int; +} +extern "C" { + #[link_name = "\u{1}_aws_lc_0_21_0_ASN1_item_sign"] + pub fn ASN1_item_sign( + it: *const ASN1_ITEM, + algor1: *mut X509_ALGOR, + algor2: *mut X509_ALGOR, + signature: *mut ASN1_BIT_STRING, + data: *mut ::std::os::raw::c_void, + pkey: *mut EVP_PKEY, + type_: *const EVP_MD, + ) -> ::std::os::raw::c_int; +} +extern "C" { + #[link_name = "\u{1}_aws_lc_0_21_0_ASN1_item_sign_ctx"] + pub fn ASN1_item_sign_ctx( + it: *const ASN1_ITEM, + algor1: *mut X509_ALGOR, + algor2: *mut X509_ALGOR, + signature: *mut ASN1_BIT_STRING, + asn: *mut ::std::os::raw::c_void, + ctx: *mut EVP_MD_CTX, + ) -> ::std::os::raw::c_int; +} +extern "C" { + #[link_name = "\u{1}_aws_lc_0_21_0_X509_supported_extension"] + pub fn X509_supported_extension(ex: *const X509_EXTENSION) -> ::std::os::raw::c_int; +} +extern "C" { + #[link_name = "\u{1}_aws_lc_0_21_0_X509_check_ca"] + pub fn X509_check_ca(x509: *mut X509) -> ::std::os::raw::c_int; +} +extern "C" { + #[link_name = "\u{1}_aws_lc_0_21_0_X509_check_issued"] + pub fn X509_check_issued(issuer: *mut X509, subject: *mut X509) -> ::std::os::raw::c_int; +} +extern "C" { + #[link_name = "\u{1}_aws_lc_0_21_0_NAME_CONSTRAINTS_check"] + pub fn NAME_CONSTRAINTS_check( + x509: *mut X509, + nc: *mut NAME_CONSTRAINTS, + ) -> ::std::os::raw::c_int; +} +extern "C" { + #[link_name = "\u{1}_aws_lc_0_21_0_X509_check_host"] + pub fn X509_check_host( + x509: *const X509, + chk: *const ::std::os::raw::c_char, + chklen: usize, + flags: ::std::os::raw::c_uint, + out_peername: *mut *mut ::std::os::raw::c_char, + ) -> ::std::os::raw::c_int; +} +extern "C" { + #[link_name = "\u{1}_aws_lc_0_21_0_X509_check_email"] + pub fn X509_check_email( + x509: *const X509, + chk: *const ::std::os::raw::c_char, + chklen: usize, + flags: ::std::os::raw::c_uint, + ) -> ::std::os::raw::c_int; +} +extern "C" { + #[link_name = "\u{1}_aws_lc_0_21_0_X509_check_ip"] + pub fn X509_check_ip( + x509: *const X509, + chk: *const u8, + chklen: usize, + flags: ::std::os::raw::c_uint, + ) -> ::std::os::raw::c_int; +} +extern "C" { + #[link_name = "\u{1}_aws_lc_0_21_0_X509_check_ip_asc"] + pub fn X509_check_ip_asc( + x509: *const X509, + ipasc: *const ::std::os::raw::c_char, + flags: ::std::os::raw::c_uint, + ) -> ::std::os::raw::c_int; +} +extern "C" { + #[link_name = "\u{1}_aws_lc_0_21_0_X509_STORE_CTX_get1_issuer"] + pub fn X509_STORE_CTX_get1_issuer( + out_issuer: *mut *mut X509, + ctx: *mut X509_STORE_CTX, + x509: *mut X509, + ) -> ::std::os::raw::c_int; +} +extern "C" { + #[link_name = "\u{1}_aws_lc_0_21_0_X509_check_purpose"] + pub fn X509_check_purpose( + x509: *mut X509, + purpose: ::std::os::raw::c_int, + ca: ::std::os::raw::c_int, + ) -> ::std::os::raw::c_int; +} +extern "C" { + #[link_name = "\u{1}_aws_lc_0_21_0_X509_check_trust"] + pub fn X509_check_trust( + x509: *mut X509, + id: ::std::os::raw::c_int, + flags: ::std::os::raw::c_int, + ) -> ::std::os::raw::c_int; +} +#[repr(C)] +#[derive(Debug, Copy, Clone, PartialEq, Eq)] +pub struct private_key_st { + pub dec_pkey: *mut EVP_PKEY, +} +#[test] +fn bindgen_test_layout_private_key_st() { + const UNINIT: ::std::mem::MaybeUninit = ::std::mem::MaybeUninit::uninit(); + let ptr = UNINIT.as_ptr(); + assert_eq!( + ::std::mem::size_of::(), + 8usize, + concat!("Size of: ", stringify!(private_key_st)) + ); + assert_eq!( + ::std::mem::align_of::(), + 8usize, + concat!("Alignment of ", stringify!(private_key_st)) + ); + assert_eq!( + unsafe { ::std::ptr::addr_of!((*ptr).dec_pkey) as usize - ptr as usize }, 0usize, concat!( "Offset of field: ", - stringify!(x509_trust_st), + stringify!(private_key_st), "::", - stringify!(trust) + stringify!(dec_pkey) ) ); +} +impl Default for private_key_st { + fn default() -> Self { + let mut s = ::std::mem::MaybeUninit::::uninit(); + unsafe { + ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); + s.assume_init() + } + } +} +#[repr(C)] +#[derive(Debug, Copy, Clone, PartialEq, Eq)] +pub struct X509_info_st { + pub x509: *mut X509, + pub crl: *mut X509_CRL, + pub x_pkey: *mut X509_PKEY, + pub enc_cipher: EVP_CIPHER_INFO, + pub enc_len: ::std::os::raw::c_int, + pub enc_data: *mut ::std::os::raw::c_char, +} +#[test] +fn bindgen_test_layout_X509_info_st() { + const UNINIT: ::std::mem::MaybeUninit = ::std::mem::MaybeUninit::uninit(); + let ptr = UNINIT.as_ptr(); assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).flags) as usize - ptr as usize }, - 4usize, + ::std::mem::size_of::(), + 64usize, + concat!("Size of: ", stringify!(X509_info_st)) + ); + assert_eq!( + ::std::mem::align_of::(), + 8usize, + concat!("Alignment of ", stringify!(X509_info_st)) + ); + assert_eq!( + unsafe { ::std::ptr::addr_of!((*ptr).x509) as usize - ptr as usize }, + 0usize, concat!( "Offset of field: ", - stringify!(x509_trust_st), + stringify!(X509_info_st), "::", - stringify!(flags) + stringify!(x509) ) ); assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).check_trust) as usize - ptr as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).crl) as usize - ptr as usize }, 8usize, concat!( "Offset of field: ", - stringify!(x509_trust_st), + stringify!(X509_info_st), "::", - stringify!(check_trust) + stringify!(crl) ) ); assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).name) as usize - ptr as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).x_pkey) as usize - ptr as usize }, 16usize, concat!( "Offset of field: ", - stringify!(x509_trust_st), + stringify!(X509_info_st), "::", - stringify!(name) + stringify!(x_pkey) ) ); assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).arg1) as usize - ptr as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).enc_cipher) as usize - ptr as usize }, 24usize, concat!( "Offset of field: ", - stringify!(x509_trust_st), + stringify!(X509_info_st), "::", - stringify!(arg1) + stringify!(enc_cipher) ) ); assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).arg2) as usize - ptr as usize }, - 32usize, + unsafe { ::std::ptr::addr_of!((*ptr).enc_len) as usize - ptr as usize }, + 48usize, concat!( "Offset of field: ", - stringify!(x509_trust_st), + stringify!(X509_info_st), "::", - stringify!(arg2) + stringify!(enc_len) + ) + ); + assert_eq!( + unsafe { ::std::ptr::addr_of!((*ptr).enc_data) as usize - ptr as usize }, + 56usize, + concat!( + "Offset of field: ", + stringify!(X509_info_st), + "::", + stringify!(enc_data) ) ); } -impl Default for x509_trust_st { +impl Default for X509_info_st { fn default() -> Self { let mut s = ::std::mem::MaybeUninit::::uninit(); unsafe { @@ -23136,609 +22933,801 @@ impl Default for x509_trust_st { } #[repr(C)] #[derive(Debug, Copy, Clone)] -pub struct stack_st_X509_TRUST { +pub struct stack_st_X509_INFO { _unused: [u8; 0], } -pub type sk_X509_TRUST_free_func = - ::std::option::Option; -pub type sk_X509_TRUST_copy_func = - ::std::option::Option *mut X509_TRUST>; -pub type sk_X509_TRUST_cmp_func = ::std::option::Option< +pub type sk_X509_INFO_free_func = ::std::option::Option; +pub type sk_X509_INFO_copy_func = + ::std::option::Option *mut X509_INFO>; +pub type sk_X509_INFO_cmp_func = ::std::option::Option< unsafe extern "C" fn( - arg1: *const *const X509_TRUST, - arg2: *const *const X509_TRUST, + arg1: *const *const X509_INFO, + arg2: *const *const X509_INFO, ) -> ::std::os::raw::c_int, >; -pub type sk_X509_TRUST_delete_if_func = ::std::option::Option< +pub type sk_X509_INFO_delete_if_func = ::std::option::Option< unsafe extern "C" fn( - arg1: *mut X509_TRUST, + arg1: *mut X509_INFO, arg2: *mut ::std::os::raw::c_void, ) -> ::std::os::raw::c_int, >; extern "C" { - #[link_name = "\u{1}_aws_lc_0_21_0_X509_verify_cert_error_string"] - pub fn X509_verify_cert_error_string( - err: ::std::os::raw::c_long, - ) -> *const ::std::os::raw::c_char; + #[link_name = "\u{1}_aws_lc_0_21_0_X509_INFO_free"] + pub fn X509_INFO_free(info: *mut X509_INFO); } -extern "C" { - #[link_name = "\u{1}_aws_lc_0_21_0_X509_get_default_cert_area"] - pub fn X509_get_default_cert_area() -> *const ::std::os::raw::c_char; +#[repr(C)] +#[derive(Debug, Copy, Clone, PartialEq, Eq)] +pub struct v3_ext_ctx { + pub flags: ::std::os::raw::c_int, + pub issuer_cert: *const X509, + pub subject_cert: *const X509, + pub subject_req: *const X509_REQ, + pub crl: *const X509_CRL, + pub db: *const CONF, +} +#[test] +fn bindgen_test_layout_v3_ext_ctx() { + const UNINIT: ::std::mem::MaybeUninit = ::std::mem::MaybeUninit::uninit(); + let ptr = UNINIT.as_ptr(); + assert_eq!( + ::std::mem::size_of::(), + 48usize, + concat!("Size of: ", stringify!(v3_ext_ctx)) + ); + assert_eq!( + ::std::mem::align_of::(), + 8usize, + concat!("Alignment of ", stringify!(v3_ext_ctx)) + ); + assert_eq!( + unsafe { ::std::ptr::addr_of!((*ptr).flags) as usize - ptr as usize }, + 0usize, + concat!( + "Offset of field: ", + stringify!(v3_ext_ctx), + "::", + stringify!(flags) + ) + ); + assert_eq!( + unsafe { ::std::ptr::addr_of!((*ptr).issuer_cert) as usize - ptr as usize }, + 8usize, + concat!( + "Offset of field: ", + stringify!(v3_ext_ctx), + "::", + stringify!(issuer_cert) + ) + ); + assert_eq!( + unsafe { ::std::ptr::addr_of!((*ptr).subject_cert) as usize - ptr as usize }, + 16usize, + concat!( + "Offset of field: ", + stringify!(v3_ext_ctx), + "::", + stringify!(subject_cert) + ) + ); + assert_eq!( + unsafe { ::std::ptr::addr_of!((*ptr).subject_req) as usize - ptr as usize }, + 24usize, + concat!( + "Offset of field: ", + stringify!(v3_ext_ctx), + "::", + stringify!(subject_req) + ) + ); + assert_eq!( + unsafe { ::std::ptr::addr_of!((*ptr).crl) as usize - ptr as usize }, + 32usize, + concat!( + "Offset of field: ", + stringify!(v3_ext_ctx), + "::", + stringify!(crl) + ) + ); + assert_eq!( + unsafe { ::std::ptr::addr_of!((*ptr).db) as usize - ptr as usize }, + 40usize, + concat!( + "Offset of field: ", + stringify!(v3_ext_ctx), + "::", + stringify!(db) + ) + ); +} +impl Default for v3_ext_ctx { + fn default() -> Self { + let mut s = ::std::mem::MaybeUninit::::uninit(); + unsafe { + ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); + s.assume_init() + } + } } extern "C" { - #[link_name = "\u{1}_aws_lc_0_21_0_X509_get_default_cert_dir"] - pub fn X509_get_default_cert_dir() -> *const ::std::os::raw::c_char; + #[link_name = "\u{1}_aws_lc_0_21_0_X509V3_set_ctx"] + pub fn X509V3_set_ctx( + ctx: *mut X509V3_CTX, + issuer: *const X509, + subject: *const X509, + req: *const X509_REQ, + crl: *const X509_CRL, + flags: ::std::os::raw::c_int, + ); } extern "C" { - #[link_name = "\u{1}_aws_lc_0_21_0_X509_get_default_cert_file"] - pub fn X509_get_default_cert_file() -> *const ::std::os::raw::c_char; + #[link_name = "\u{1}_aws_lc_0_21_0_X509V3_set_nconf"] + pub fn X509V3_set_nconf(ctx: *mut X509V3_CTX, conf: *const CONF); } extern "C" { - #[link_name = "\u{1}_aws_lc_0_21_0_X509_get_default_cert_dir_env"] - pub fn X509_get_default_cert_dir_env() -> *const ::std::os::raw::c_char; + #[link_name = "\u{1}_aws_lc_0_21_0_X509V3_EXT_nconf"] + pub fn X509V3_EXT_nconf( + conf: *const CONF, + ctx: *const X509V3_CTX, + name: *const ::std::os::raw::c_char, + value: *const ::std::os::raw::c_char, + ) -> *mut X509_EXTENSION; } extern "C" { - #[link_name = "\u{1}_aws_lc_0_21_0_X509_get_default_cert_file_env"] - pub fn X509_get_default_cert_file_env() -> *const ::std::os::raw::c_char; + #[link_name = "\u{1}_aws_lc_0_21_0_X509V3_EXT_nconf_nid"] + pub fn X509V3_EXT_nconf_nid( + conf: *const CONF, + ctx: *const X509V3_CTX, + ext_nid: ::std::os::raw::c_int, + value: *const ::std::os::raw::c_char, + ) -> *mut X509_EXTENSION; } extern "C" { - #[link_name = "\u{1}_aws_lc_0_21_0_X509_get_default_private_dir"] - pub fn X509_get_default_private_dir() -> *const ::std::os::raw::c_char; + #[link_name = "\u{1}_aws_lc_0_21_0_X509V3_EXT_conf_nid"] + pub fn X509V3_EXT_conf_nid( + conf: *mut lhash_st_CONF_VALUE, + ctx: *const X509V3_CTX, + ext_nid: ::std::os::raw::c_int, + value: *const ::std::os::raw::c_char, + ) -> *mut X509_EXTENSION; } extern "C" { - #[link_name = "\u{1}_aws_lc_0_21_0_X509_TRUST_set"] - pub fn X509_TRUST_set( - t: *mut ::std::os::raw::c_int, - trust: ::std::os::raw::c_int, + #[link_name = "\u{1}_aws_lc_0_21_0_X509V3_EXT_add_nconf_sk"] + pub fn X509V3_EXT_add_nconf_sk( + conf: *const CONF, + ctx: *const X509V3_CTX, + section: *const ::std::os::raw::c_char, + sk: *mut *mut stack_st_X509_EXTENSION, ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_0_21_0_X509_cmp"] - pub fn X509_cmp(a: *const X509, b: *const X509) -> ::std::os::raw::c_int; + #[link_name = "\u{1}_aws_lc_0_21_0_X509V3_EXT_add_nconf"] + pub fn X509V3_EXT_add_nconf( + conf: *const CONF, + ctx: *const X509V3_CTX, + section: *const ::std::os::raw::c_char, + cert: *mut X509, + ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_0_21_0_X509_NAME_hash"] - pub fn X509_NAME_hash(name: *mut X509_NAME) -> u32; + #[link_name = "\u{1}_aws_lc_0_21_0_X509V3_EXT_REQ_add_nconf"] + pub fn X509V3_EXT_REQ_add_nconf( + conf: *const CONF, + ctx: *const X509V3_CTX, + section: *const ::std::os::raw::c_char, + req: *mut X509_REQ, + ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_0_21_0_X509_NAME_hash_old"] - pub fn X509_NAME_hash_old(name: *mut X509_NAME) -> u32; + #[link_name = "\u{1}_aws_lc_0_21_0_X509V3_EXT_CRL_add_nconf"] + pub fn X509V3_EXT_CRL_add_nconf( + conf: *const CONF, + ctx: *const X509V3_CTX, + section: *const ::std::os::raw::c_char, + crl: *mut X509_CRL, + ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_0_21_0_X509_CRL_match"] - pub fn X509_CRL_match(a: *const X509_CRL, b: *const X509_CRL) -> ::std::os::raw::c_int; + #[link_name = "\u{1}_aws_lc_0_21_0_X509V3_EXT_conf"] + pub fn X509V3_EXT_conf( + conf: *mut lhash_st_CONF_VALUE, + ctx: *mut X509V3_CTX, + name: *const ::std::os::raw::c_char, + value: *const ::std::os::raw::c_char, + ) -> *mut X509_EXTENSION; } extern "C" { - #[link_name = "\u{1}_aws_lc_0_21_0_X509_verify_cert"] - pub fn X509_verify_cert(ctx: *mut X509_STORE_CTX) -> ::std::os::raw::c_int; + #[link_name = "\u{1}_aws_lc_0_21_0_i2s_ASN1_OCTET_STRING"] + pub fn i2s_ASN1_OCTET_STRING( + method: *const X509V3_EXT_METHOD, + oct: *const ASN1_OCTET_STRING, + ) -> *mut ::std::os::raw::c_char; } extern "C" { - #[link_name = "\u{1}_aws_lc_0_21_0_X509_check_trust"] - pub fn X509_check_trust( - x: *mut X509, - id: ::std::os::raw::c_int, - flags: ::std::os::raw::c_int, - ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}_aws_lc_0_21_0_s2i_ASN1_OCTET_STRING"] + pub fn s2i_ASN1_OCTET_STRING( + method: *const X509V3_EXT_METHOD, + ctx: *const X509V3_CTX, + str_: *const ::std::os::raw::c_char, + ) -> *mut ASN1_OCTET_STRING; } extern "C" { - #[link_name = "\u{1}_aws_lc_0_21_0_X509_TRUST_get_count"] - pub fn X509_TRUST_get_count() -> ::std::os::raw::c_int; + #[link_name = "\u{1}_aws_lc_0_21_0_i2s_ASN1_INTEGER"] + pub fn i2s_ASN1_INTEGER( + method: *const X509V3_EXT_METHOD, + aint: *const ASN1_INTEGER, + ) -> *mut ::std::os::raw::c_char; } extern "C" { - #[link_name = "\u{1}_aws_lc_0_21_0_X509_TRUST_get0"] - pub fn X509_TRUST_get0(idx: ::std::os::raw::c_int) -> *const X509_TRUST; + #[link_name = "\u{1}_aws_lc_0_21_0_s2i_ASN1_INTEGER"] + pub fn s2i_ASN1_INTEGER( + method: *const X509V3_EXT_METHOD, + value: *const ::std::os::raw::c_char, + ) -> *mut ASN1_INTEGER; } extern "C" { - #[link_name = "\u{1}_aws_lc_0_21_0_X509_TRUST_get_by_id"] - pub fn X509_TRUST_get_by_id(id: ::std::os::raw::c_int) -> ::std::os::raw::c_int; + #[link_name = "\u{1}_aws_lc_0_21_0_i2s_ASN1_ENUMERATED"] + pub fn i2s_ASN1_ENUMERATED( + method: *const X509V3_EXT_METHOD, + aint: *const ASN1_ENUMERATED, + ) -> *mut ::std::os::raw::c_char; } extern "C" { - #[link_name = "\u{1}_aws_lc_0_21_0_X509_TRUST_get_flags"] - pub fn X509_TRUST_get_flags(xp: *const X509_TRUST) -> ::std::os::raw::c_int; + #[link_name = "\u{1}_aws_lc_0_21_0_X509V3_conf_free"] + pub fn X509V3_conf_free(val: *mut CONF_VALUE); } extern "C" { - #[link_name = "\u{1}_aws_lc_0_21_0_X509_TRUST_get0_name"] - pub fn X509_TRUST_get0_name(xp: *const X509_TRUST) -> *mut ::std::os::raw::c_char; + #[link_name = "\u{1}_aws_lc_0_21_0_i2v_GENERAL_NAME"] + pub fn i2v_GENERAL_NAME( + method: *const X509V3_EXT_METHOD, + gen: *const GENERAL_NAME, + ret: *mut stack_st_CONF_VALUE, + ) -> *mut stack_st_CONF_VALUE; } extern "C" { - #[link_name = "\u{1}_aws_lc_0_21_0_X509_TRUST_get_trust"] - pub fn X509_TRUST_get_trust(xp: *const X509_TRUST) -> ::std::os::raw::c_int; + #[link_name = "\u{1}_aws_lc_0_21_0_i2v_GENERAL_NAMES"] + pub fn i2v_GENERAL_NAMES( + method: *const X509V3_EXT_METHOD, + gen: *const GENERAL_NAMES, + extlist: *mut stack_st_CONF_VALUE, + ) -> *mut stack_st_CONF_VALUE; } -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct stack_st_X509_OBJECT { - _unused: [u8; 0], -} -pub type sk_X509_OBJECT_free_func = - ::std::option::Option; -pub type sk_X509_OBJECT_copy_func = - ::std::option::Option *mut X509_OBJECT>; -pub type sk_X509_OBJECT_cmp_func = ::std::option::Option< - unsafe extern "C" fn( - arg1: *const *const X509_OBJECT, - arg2: *const *const X509_OBJECT, - ) -> ::std::os::raw::c_int, ->; -pub type sk_X509_OBJECT_delete_if_func = ::std::option::Option< - unsafe extern "C" fn( - arg1: *mut X509_OBJECT, - arg2: *mut ::std::os::raw::c_void, - ) -> ::std::os::raw::c_int, ->; extern "C" { - #[link_name = "\u{1}_aws_lc_0_21_0_X509_STORE_set_depth"] - pub fn X509_STORE_set_depth( - store: *mut X509_STORE, - depth: ::std::os::raw::c_int, - ) -> ::std::os::raw::c_int; -} -extern "C" { - #[link_name = "\u{1}_aws_lc_0_21_0_X509_STORE_CTX_set_depth"] - pub fn X509_STORE_CTX_set_depth(ctx: *mut X509_STORE_CTX, depth: ::std::os::raw::c_int); + #[link_name = "\u{1}_aws_lc_0_21_0_a2i_IPADDRESS"] + pub fn a2i_IPADDRESS(ipasc: *const ::std::os::raw::c_char) -> *mut ASN1_OCTET_STRING; } extern "C" { - #[link_name = "\u{1}_aws_lc_0_21_0_X509_LOOKUP_load_file"] - pub fn X509_LOOKUP_load_file( - lookup: *mut X509_LOOKUP, - path: *const ::std::os::raw::c_char, - type_: ::std::os::raw::c_int, - ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}_aws_lc_0_21_0_a2i_IPADDRESS_NC"] + pub fn a2i_IPADDRESS_NC(ipasc: *const ::std::os::raw::c_char) -> *mut ASN1_OCTET_STRING; } extern "C" { - #[link_name = "\u{1}_aws_lc_0_21_0_X509_LOOKUP_add_dir"] - pub fn X509_LOOKUP_add_dir( - lookup: *mut X509_LOOKUP, - path: *const ::std::os::raw::c_char, - type_: ::std::os::raw::c_int, - ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}_aws_lc_0_21_0_X509_get_notBefore"] + pub fn X509_get_notBefore(x509: *const X509) -> *mut ASN1_TIME; } extern "C" { - #[link_name = "\u{1}_aws_lc_0_21_0_X509_OBJECT_new"] - pub fn X509_OBJECT_new() -> *mut X509_OBJECT; + #[link_name = "\u{1}_aws_lc_0_21_0_X509_get_notAfter"] + pub fn X509_get_notAfter(x509: *const X509) -> *mut ASN1_TIME; } extern "C" { - #[link_name = "\u{1}_aws_lc_0_21_0_X509_OBJECT_free"] - pub fn X509_OBJECT_free(obj: *mut X509_OBJECT); + #[link_name = "\u{1}_aws_lc_0_21_0_X509_set_notBefore"] + pub fn X509_set_notBefore(x509: *mut X509, tm: *const ASN1_TIME) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_0_21_0_X509_OBJECT_get_type"] - pub fn X509_OBJECT_get_type(obj: *const X509_OBJECT) -> ::std::os::raw::c_int; + #[link_name = "\u{1}_aws_lc_0_21_0_X509_set_notAfter"] + pub fn X509_set_notAfter(x509: *mut X509, tm: *const ASN1_TIME) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_0_21_0_X509_OBJECT_get0_X509"] - pub fn X509_OBJECT_get0_X509(obj: *const X509_OBJECT) -> *mut X509; + #[link_name = "\u{1}_aws_lc_0_21_0_X509_CRL_get_lastUpdate"] + pub fn X509_CRL_get_lastUpdate(crl: *mut X509_CRL) -> *mut ASN1_TIME; } extern "C" { - #[link_name = "\u{1}_aws_lc_0_21_0_X509_OBJECT_get0_X509_CRL"] - pub fn X509_OBJECT_get0_X509_CRL(a: *const X509_OBJECT) -> *mut X509_CRL; + #[link_name = "\u{1}_aws_lc_0_21_0_X509_CRL_get_nextUpdate"] + pub fn X509_CRL_get_nextUpdate(crl: *mut X509_CRL) -> *mut ASN1_TIME; } extern "C" { - #[link_name = "\u{1}_aws_lc_0_21_0_X509_OBJECT_set1_X509"] - pub fn X509_OBJECT_set1_X509(a: *mut X509_OBJECT, obj: *mut X509) -> ::std::os::raw::c_int; + #[link_name = "\u{1}_aws_lc_0_21_0_X509_get_serialNumber"] + pub fn X509_get_serialNumber(x509: *mut X509) -> *mut ASN1_INTEGER; } extern "C" { - #[link_name = "\u{1}_aws_lc_0_21_0_X509_OBJECT_set1_X509_CRL"] - pub fn X509_OBJECT_set1_X509_CRL( - a: *mut X509_OBJECT, - obj: *mut X509_CRL, + #[link_name = "\u{1}_aws_lc_0_21_0_X509_NAME_get_text_by_OBJ"] + pub fn X509_NAME_get_text_by_OBJ( + name: *const X509_NAME, + obj: *const ASN1_OBJECT, + buf: *mut ::std::os::raw::c_char, + len: ::std::os::raw::c_int, ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_0_21_0_X509_STORE_lock"] - pub fn X509_STORE_lock(v: *mut X509_STORE) -> ::std::os::raw::c_int; -} -extern "C" { - #[link_name = "\u{1}_aws_lc_0_21_0_X509_STORE_unlock"] - pub fn X509_STORE_unlock(v: *mut X509_STORE) -> ::std::os::raw::c_int; -} -extern "C" { - #[link_name = "\u{1}_aws_lc_0_21_0_X509_STORE_new"] - pub fn X509_STORE_new() -> *mut X509_STORE; -} -extern "C" { - #[link_name = "\u{1}_aws_lc_0_21_0_X509_STORE_up_ref"] - pub fn X509_STORE_up_ref(store: *mut X509_STORE) -> ::std::os::raw::c_int; -} -extern "C" { - #[link_name = "\u{1}_aws_lc_0_21_0_X509_STORE_free"] - pub fn X509_STORE_free(store: *mut X509_STORE); -} -extern "C" { - #[link_name = "\u{1}_aws_lc_0_21_0_X509_STORE_get0_objects"] - pub fn X509_STORE_get0_objects(st: *mut X509_STORE) -> *mut stack_st_X509_OBJECT; -} -extern "C" { - #[link_name = "\u{1}_aws_lc_0_21_0_X509_STORE_CTX_get1_certs"] - pub fn X509_STORE_CTX_get1_certs( - st: *mut X509_STORE_CTX, - nm: *mut X509_NAME, - ) -> *mut stack_st_X509; -} -extern "C" { - #[link_name = "\u{1}_aws_lc_0_21_0_X509_STORE_CTX_get1_crls"] - pub fn X509_STORE_CTX_get1_crls( - st: *mut X509_STORE_CTX, - nm: *mut X509_NAME, - ) -> *mut stack_st_X509_CRL; -} -extern "C" { - #[link_name = "\u{1}_aws_lc_0_21_0_X509_STORE_set_flags"] - pub fn X509_STORE_set_flags( - store: *mut X509_STORE, - flags: ::std::os::raw::c_ulong, + #[link_name = "\u{1}_aws_lc_0_21_0_X509_NAME_get_text_by_NID"] + pub fn X509_NAME_get_text_by_NID( + name: *const X509_NAME, + nid: ::std::os::raw::c_int, + buf: *mut ::std::os::raw::c_char, + len: ::std::os::raw::c_int, ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_0_21_0_X509_STORE_set_purpose"] - pub fn X509_STORE_set_purpose( - store: *mut X509_STORE, - purpose: ::std::os::raw::c_int, - ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}_aws_lc_0_21_0_X509_STORE_CTX_get0_parent_ctx"] + pub fn X509_STORE_CTX_get0_parent_ctx(ctx: *mut X509_STORE_CTX) -> *mut X509_STORE_CTX; } extern "C" { - #[link_name = "\u{1}_aws_lc_0_21_0_X509_STORE_set_trust"] - pub fn X509_STORE_set_trust( - store: *mut X509_STORE, - trust: ::std::os::raw::c_int, - ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}_aws_lc_0_21_0_X509_LOOKUP_free"] + pub fn X509_LOOKUP_free(ctx: *mut X509_LOOKUP); } extern "C" { - #[link_name = "\u{1}_aws_lc_0_21_0_X509_STORE_set1_param"] - pub fn X509_STORE_set1_param( - store: *mut X509_STORE, - param: *const X509_VERIFY_PARAM, - ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}_aws_lc_0_21_0_X509_STORE_CTX_cleanup"] + pub fn X509_STORE_CTX_cleanup(ctx: *mut X509_STORE_CTX); } extern "C" { - #[link_name = "\u{1}_aws_lc_0_21_0_X509_STORE_get0_param"] - pub fn X509_STORE_get0_param(store: *mut X509_STORE) -> *mut X509_VERIFY_PARAM; + #[link_name = "\u{1}_aws_lc_0_21_0_X509V3_add_standard_extensions"] + pub fn X509V3_add_standard_extensions() -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_0_21_0_X509_STORE_CTX_new"] - pub fn X509_STORE_CTX_new() -> *mut X509_STORE_CTX; + #[link_name = "\u{1}_aws_lc_0_21_0_X509V3_parse_list"] + pub fn X509V3_parse_list(line: *const ::std::os::raw::c_char) -> *mut stack_st_CONF_VALUE; } extern "C" { - #[link_name = "\u{1}_aws_lc_0_21_0_X509_STORE_CTX_get1_issuer"] - pub fn X509_STORE_CTX_get1_issuer( - issuer: *mut *mut X509, - ctx: *mut X509_STORE_CTX, - x: *mut X509, - ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}_aws_lc_0_21_0_X509_STORE_CTX_get_chain"] + pub fn X509_STORE_CTX_get_chain(ctx: *mut X509_STORE_CTX) -> *mut stack_st_X509; } extern "C" { - #[link_name = "\u{1}_aws_lc_0_21_0_X509_STORE_CTX_free"] - pub fn X509_STORE_CTX_free(ctx: *mut X509_STORE_CTX); + #[link_name = "\u{1}_aws_lc_0_21_0_X509_STORE_CTX_trusted_stack"] + pub fn X509_STORE_CTX_trusted_stack(ctx: *mut X509_STORE_CTX, sk: *mut stack_st_X509); } +pub type X509_STORE_CTX_verify_cb = ::std::option::Option< + unsafe extern "C" fn( + arg1: ::std::os::raw::c_int, + arg2: *mut X509_STORE_CTX, + ) -> ::std::os::raw::c_int, +>; extern "C" { - #[link_name = "\u{1}_aws_lc_0_21_0_X509_STORE_CTX_init"] - pub fn X509_STORE_CTX_init( + #[link_name = "\u{1}_aws_lc_0_21_0_X509_STORE_CTX_set_verify_cb"] + pub fn X509_STORE_CTX_set_verify_cb( ctx: *mut X509_STORE_CTX, - store: *mut X509_STORE, - x509: *mut X509, - chain: *mut stack_st_X509, - ) -> ::std::os::raw::c_int; -} -extern "C" { - #[link_name = "\u{1}_aws_lc_0_21_0_X509_STORE_CTX_set0_trusted_stack"] - pub fn X509_STORE_CTX_set0_trusted_stack(ctx: *mut X509_STORE_CTX, sk: *mut stack_st_X509); -} -extern "C" { - #[link_name = "\u{1}_aws_lc_0_21_0_X509_STORE_CTX_get0_store"] - pub fn X509_STORE_CTX_get0_store(ctx: *mut X509_STORE_CTX) -> *mut X509_STORE; -} -extern "C" { - #[link_name = "\u{1}_aws_lc_0_21_0_X509_STORE_CTX_get0_cert"] - pub fn X509_STORE_CTX_get0_cert(ctx: *mut X509_STORE_CTX) -> *mut X509; -} -extern "C" { - #[link_name = "\u{1}_aws_lc_0_21_0_X509_STORE_add_lookup"] - pub fn X509_STORE_add_lookup( - v: *mut X509_STORE, - m: *const X509_LOOKUP_METHOD, - ) -> *mut X509_LOOKUP; + verify_cb: ::std::option::Option< + unsafe extern "C" fn( + ok: ::std::os::raw::c_int, + ctx: *mut X509_STORE_CTX, + ) -> ::std::os::raw::c_int, + >, + ); } extern "C" { - #[link_name = "\u{1}_aws_lc_0_21_0_X509_LOOKUP_hash_dir"] - pub fn X509_LOOKUP_hash_dir() -> *const X509_LOOKUP_METHOD; + #[link_name = "\u{1}_aws_lc_0_21_0_X509_STORE_set_verify_cb"] + pub fn X509_STORE_set_verify_cb(store: *mut X509_STORE, verify_cb: X509_STORE_CTX_verify_cb); } +pub type X509_STORE_CTX_get_crl_fn = ::std::option::Option< + unsafe extern "C" fn( + ctx: *mut X509_STORE_CTX, + crl: *mut *mut X509_CRL, + x: *mut X509, + ) -> ::std::os::raw::c_int, +>; +pub type X509_STORE_CTX_check_crl_fn = ::std::option::Option< + unsafe extern "C" fn(ctx: *mut X509_STORE_CTX, crl: *mut X509_CRL) -> ::std::os::raw::c_int, +>; extern "C" { - #[link_name = "\u{1}_aws_lc_0_21_0_X509_LOOKUP_file"] - pub fn X509_LOOKUP_file() -> *const X509_LOOKUP_METHOD; + #[link_name = "\u{1}_aws_lc_0_21_0_X509_STORE_set_get_crl"] + pub fn X509_STORE_set_get_crl(store: *mut X509_STORE, get_crl: X509_STORE_CTX_get_crl_fn); } extern "C" { - #[link_name = "\u{1}_aws_lc_0_21_0_X509_STORE_add_cert"] - pub fn X509_STORE_add_cert(ctx: *mut X509_STORE, x: *mut X509) -> ::std::os::raw::c_int; + #[link_name = "\u{1}_aws_lc_0_21_0_X509_STORE_set_check_crl"] + pub fn X509_STORE_set_check_crl(store: *mut X509_STORE, check_crl: X509_STORE_CTX_check_crl_fn); } extern "C" { - #[link_name = "\u{1}_aws_lc_0_21_0_X509_STORE_add_crl"] - pub fn X509_STORE_add_crl(ctx: *mut X509_STORE, x: *mut X509_CRL) -> ::std::os::raw::c_int; + #[link_name = "\u{1}_aws_lc_0_21_0_X509_STORE_CTX_set_chain"] + pub fn X509_STORE_CTX_set_chain(ctx: *mut X509_STORE_CTX, sk: *mut stack_st_X509); } -extern "C" { - #[link_name = "\u{1}_aws_lc_0_21_0_X509_LOOKUP_ctrl"] - pub fn X509_LOOKUP_ctrl( - ctx: *mut X509_LOOKUP, - cmd: ::std::os::raw::c_int, - argc: *const ::std::os::raw::c_char, - argl: ::std::os::raw::c_long, - ret: *mut *mut ::std::os::raw::c_char, - ) -> ::std::os::raw::c_int; +#[repr(C)] +#[derive(Debug, Copy, Clone, PartialEq, Eq)] +pub struct X509_algor_st { + pub algorithm: *mut ASN1_OBJECT, + pub parameter: *mut ASN1_TYPE, } -extern "C" { - #[link_name = "\u{1}_aws_lc_0_21_0_X509_load_cert_file"] - pub fn X509_load_cert_file( - ctx: *mut X509_LOOKUP, - file: *const ::std::os::raw::c_char, - type_: ::std::os::raw::c_int, - ) -> ::std::os::raw::c_int; +#[test] +fn bindgen_test_layout_X509_algor_st() { + const UNINIT: ::std::mem::MaybeUninit = ::std::mem::MaybeUninit::uninit(); + let ptr = UNINIT.as_ptr(); + assert_eq!( + ::std::mem::size_of::(), + 16usize, + concat!("Size of: ", stringify!(X509_algor_st)) + ); + assert_eq!( + ::std::mem::align_of::(), + 8usize, + concat!("Alignment of ", stringify!(X509_algor_st)) + ); + assert_eq!( + unsafe { ::std::ptr::addr_of!((*ptr).algorithm) as usize - ptr as usize }, + 0usize, + concat!( + "Offset of field: ", + stringify!(X509_algor_st), + "::", + stringify!(algorithm) + ) + ); + assert_eq!( + unsafe { ::std::ptr::addr_of!((*ptr).parameter) as usize - ptr as usize }, + 8usize, + concat!( + "Offset of field: ", + stringify!(X509_algor_st), + "::", + stringify!(parameter) + ) + ); } -extern "C" { - #[link_name = "\u{1}_aws_lc_0_21_0_X509_load_crl_file"] - pub fn X509_load_crl_file( - ctx: *mut X509_LOOKUP, - file: *const ::std::os::raw::c_char, - type_: ::std::os::raw::c_int, - ) -> ::std::os::raw::c_int; +impl Default for X509_algor_st { + fn default() -> Self { + let mut s = ::std::mem::MaybeUninit::::uninit(); + unsafe { + ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); + s.assume_init() + } + } } -extern "C" { - #[link_name = "\u{1}_aws_lc_0_21_0_X509_load_cert_crl_file"] - pub fn X509_load_cert_crl_file( - ctx: *mut X509_LOOKUP, - file: *const ::std::os::raw::c_char, - type_: ::std::os::raw::c_int, - ) -> ::std::os::raw::c_int; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct stack_st_DIST_POINT { + _unused: [u8; 0], } -extern "C" { - #[link_name = "\u{1}_aws_lc_0_21_0_X509_STORE_load_locations"] - pub fn X509_STORE_load_locations( - ctx: *mut X509_STORE, - file: *const ::std::os::raw::c_char, - dir: *const ::std::os::raw::c_char, - ) -> ::std::os::raw::c_int; +#[repr(C)] +#[derive(Debug, Copy, Clone, PartialEq, Eq)] +pub struct x509_trust_st { + pub trust: ::std::os::raw::c_int, + pub flags: ::std::os::raw::c_int, + pub check_trust: ::std::option::Option< + unsafe extern "C" fn( + arg1: *const X509_TRUST, + arg2: *mut X509, + arg3: ::std::os::raw::c_int, + ) -> ::std::os::raw::c_int, + >, + pub name: *mut ::std::os::raw::c_char, + pub arg1: ::std::os::raw::c_int, + pub arg2: *mut ::std::os::raw::c_void, } -extern "C" { - #[link_name = "\u{1}_aws_lc_0_21_0_X509_STORE_set_default_paths"] - pub fn X509_STORE_set_default_paths(ctx: *mut X509_STORE) -> ::std::os::raw::c_int; +#[test] +fn bindgen_test_layout_x509_trust_st() { + const UNINIT: ::std::mem::MaybeUninit = ::std::mem::MaybeUninit::uninit(); + let ptr = UNINIT.as_ptr(); + assert_eq!( + ::std::mem::size_of::(), + 40usize, + concat!("Size of: ", stringify!(x509_trust_st)) + ); + assert_eq!( + ::std::mem::align_of::(), + 8usize, + concat!("Alignment of ", stringify!(x509_trust_st)) + ); + assert_eq!( + unsafe { ::std::ptr::addr_of!((*ptr).trust) as usize - ptr as usize }, + 0usize, + concat!( + "Offset of field: ", + stringify!(x509_trust_st), + "::", + stringify!(trust) + ) + ); + assert_eq!( + unsafe { ::std::ptr::addr_of!((*ptr).flags) as usize - ptr as usize }, + 4usize, + concat!( + "Offset of field: ", + stringify!(x509_trust_st), + "::", + stringify!(flags) + ) + ); + assert_eq!( + unsafe { ::std::ptr::addr_of!((*ptr).check_trust) as usize - ptr as usize }, + 8usize, + concat!( + "Offset of field: ", + stringify!(x509_trust_st), + "::", + stringify!(check_trust) + ) + ); + assert_eq!( + unsafe { ::std::ptr::addr_of!((*ptr).name) as usize - ptr as usize }, + 16usize, + concat!( + "Offset of field: ", + stringify!(x509_trust_st), + "::", + stringify!(name) + ) + ); + assert_eq!( + unsafe { ::std::ptr::addr_of!((*ptr).arg1) as usize - ptr as usize }, + 24usize, + concat!( + "Offset of field: ", + stringify!(x509_trust_st), + "::", + stringify!(arg1) + ) + ); + assert_eq!( + unsafe { ::std::ptr::addr_of!((*ptr).arg2) as usize - ptr as usize }, + 32usize, + concat!( + "Offset of field: ", + stringify!(x509_trust_st), + "::", + stringify!(arg2) + ) + ); } -extern "C" { - #[link_name = "\u{1}_aws_lc_0_21_0_X509_STORE_CTX_get_error"] - pub fn X509_STORE_CTX_get_error(ctx: *mut X509_STORE_CTX) -> ::std::os::raw::c_int; +impl Default for x509_trust_st { + fn default() -> Self { + let mut s = ::std::mem::MaybeUninit::::uninit(); + unsafe { + ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); + s.assume_init() + } + } } -extern "C" { - #[link_name = "\u{1}_aws_lc_0_21_0_X509_STORE_CTX_set_error"] - pub fn X509_STORE_CTX_set_error(ctx: *mut X509_STORE_CTX, s: ::std::os::raw::c_int); +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct stack_st_X509_TRUST { + _unused: [u8; 0], } +pub type sk_X509_TRUST_free_func = + ::std::option::Option; +pub type sk_X509_TRUST_copy_func = + ::std::option::Option *mut X509_TRUST>; +pub type sk_X509_TRUST_cmp_func = ::std::option::Option< + unsafe extern "C" fn( + arg1: *const *const X509_TRUST, + arg2: *const *const X509_TRUST, + ) -> ::std::os::raw::c_int, +>; +pub type sk_X509_TRUST_delete_if_func = ::std::option::Option< + unsafe extern "C" fn( + arg1: *mut X509_TRUST, + arg2: *mut ::std::os::raw::c_void, + ) -> ::std::os::raw::c_int, +>; extern "C" { - #[link_name = "\u{1}_aws_lc_0_21_0_X509_STORE_CTX_get_error_depth"] - pub fn X509_STORE_CTX_get_error_depth(ctx: *mut X509_STORE_CTX) -> ::std::os::raw::c_int; + #[link_name = "\u{1}_aws_lc_0_21_0_X509_get_default_cert_area"] + pub fn X509_get_default_cert_area() -> *const ::std::os::raw::c_char; } extern "C" { - #[link_name = "\u{1}_aws_lc_0_21_0_X509_STORE_CTX_get_current_cert"] - pub fn X509_STORE_CTX_get_current_cert(ctx: *mut X509_STORE_CTX) -> *mut X509; + #[link_name = "\u{1}_aws_lc_0_21_0_X509_get_default_cert_dir"] + pub fn X509_get_default_cert_dir() -> *const ::std::os::raw::c_char; } extern "C" { - #[link_name = "\u{1}_aws_lc_0_21_0_X509_STORE_CTX_get0_current_issuer"] - pub fn X509_STORE_CTX_get0_current_issuer(ctx: *mut X509_STORE_CTX) -> *mut X509; + #[link_name = "\u{1}_aws_lc_0_21_0_X509_get_default_cert_file"] + pub fn X509_get_default_cert_file() -> *const ::std::os::raw::c_char; } extern "C" { - #[link_name = "\u{1}_aws_lc_0_21_0_X509_STORE_CTX_get0_current_crl"] - pub fn X509_STORE_CTX_get0_current_crl(ctx: *mut X509_STORE_CTX) -> *mut X509_CRL; + #[link_name = "\u{1}_aws_lc_0_21_0_X509_get_default_cert_dir_env"] + pub fn X509_get_default_cert_dir_env() -> *const ::std::os::raw::c_char; } extern "C" { - #[link_name = "\u{1}_aws_lc_0_21_0_X509_STORE_CTX_get0_chain"] - pub fn X509_STORE_CTX_get0_chain(ctx: *mut X509_STORE_CTX) -> *mut stack_st_X509; + #[link_name = "\u{1}_aws_lc_0_21_0_X509_get_default_cert_file_env"] + pub fn X509_get_default_cert_file_env() -> *const ::std::os::raw::c_char; } extern "C" { - #[link_name = "\u{1}_aws_lc_0_21_0_X509_STORE_CTX_get1_chain"] - pub fn X509_STORE_CTX_get1_chain(ctx: *mut X509_STORE_CTX) -> *mut stack_st_X509; + #[link_name = "\u{1}_aws_lc_0_21_0_X509_get_default_private_dir"] + pub fn X509_get_default_private_dir() -> *const ::std::os::raw::c_char; } extern "C" { - #[link_name = "\u{1}_aws_lc_0_21_0_X509_STORE_CTX_set_cert"] - pub fn X509_STORE_CTX_set_cert(c: *mut X509_STORE_CTX, x: *mut X509); + #[link_name = "\u{1}_aws_lc_0_21_0_X509_TRUST_set"] + pub fn X509_TRUST_set( + t: *mut ::std::os::raw::c_int, + trust: ::std::os::raw::c_int, + ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_0_21_0_X509_STORE_CTX_get0_untrusted"] - pub fn X509_STORE_CTX_get0_untrusted(ctx: *mut X509_STORE_CTX) -> *mut stack_st_X509; + #[link_name = "\u{1}_aws_lc_0_21_0_X509_cmp"] + pub fn X509_cmp(a: *const X509, b: *const X509) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_0_21_0_X509_STORE_CTX_set0_crls"] - pub fn X509_STORE_CTX_set0_crls(c: *mut X509_STORE_CTX, sk: *mut stack_st_X509_CRL); + #[link_name = "\u{1}_aws_lc_0_21_0_X509_NAME_hash"] + pub fn X509_NAME_hash(name: *mut X509_NAME) -> u32; } extern "C" { - #[link_name = "\u{1}_aws_lc_0_21_0_X509_STORE_CTX_set_purpose"] - pub fn X509_STORE_CTX_set_purpose( - ctx: *mut X509_STORE_CTX, - purpose: ::std::os::raw::c_int, - ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}_aws_lc_0_21_0_X509_NAME_hash_old"] + pub fn X509_NAME_hash_old(name: *mut X509_NAME) -> u32; } extern "C" { - #[link_name = "\u{1}_aws_lc_0_21_0_X509_STORE_CTX_set_trust"] - pub fn X509_STORE_CTX_set_trust( - ctx: *mut X509_STORE_CTX, - trust: ::std::os::raw::c_int, - ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}_aws_lc_0_21_0_X509_CRL_match"] + pub fn X509_CRL_match(a: *const X509_CRL, b: *const X509_CRL) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_0_21_0_X509_STORE_CTX_purpose_inherit"] - pub fn X509_STORE_CTX_purpose_inherit( - ctx: *mut X509_STORE_CTX, - def_purpose: ::std::os::raw::c_int, - purpose: ::std::os::raw::c_int, - trust: ::std::os::raw::c_int, - ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}_aws_lc_0_21_0_X509_TRUST_get_count"] + pub fn X509_TRUST_get_count() -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_0_21_0_X509_STORE_CTX_set_flags"] - pub fn X509_STORE_CTX_set_flags(ctx: *mut X509_STORE_CTX, flags: ::std::os::raw::c_ulong); + #[link_name = "\u{1}_aws_lc_0_21_0_X509_TRUST_get0"] + pub fn X509_TRUST_get0(idx: ::std::os::raw::c_int) -> *const X509_TRUST; } extern "C" { - #[link_name = "\u{1}_aws_lc_0_21_0_X509_STORE_CTX_set_time"] - pub fn X509_STORE_CTX_set_time( - ctx: *mut X509_STORE_CTX, - flags: ::std::os::raw::c_ulong, - t: time_t, - ); + #[link_name = "\u{1}_aws_lc_0_21_0_X509_TRUST_get_by_id"] + pub fn X509_TRUST_get_by_id(id: ::std::os::raw::c_int) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_0_21_0_X509_STORE_CTX_set_time_posix"] - pub fn X509_STORE_CTX_set_time_posix( - ctx: *mut X509_STORE_CTX, - flags: ::std::os::raw::c_ulong, - t: i64, - ); + #[link_name = "\u{1}_aws_lc_0_21_0_X509_TRUST_get_flags"] + pub fn X509_TRUST_get_flags(xp: *const X509_TRUST) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_0_21_0_X509_STORE_CTX_get0_param"] - pub fn X509_STORE_CTX_get0_param(ctx: *mut X509_STORE_CTX) -> *mut X509_VERIFY_PARAM; + #[link_name = "\u{1}_aws_lc_0_21_0_X509_TRUST_get0_name"] + pub fn X509_TRUST_get0_name(xp: *const X509_TRUST) -> *mut ::std::os::raw::c_char; } extern "C" { - #[link_name = "\u{1}_aws_lc_0_21_0_X509_STORE_CTX_set0_param"] - pub fn X509_STORE_CTX_set0_param(ctx: *mut X509_STORE_CTX, param: *mut X509_VERIFY_PARAM); + #[link_name = "\u{1}_aws_lc_0_21_0_X509_TRUST_get_trust"] + pub fn X509_TRUST_get_trust(xp: *const X509_TRUST) -> ::std::os::raw::c_int; +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct stack_st_X509_OBJECT { + _unused: [u8; 0], } +pub type sk_X509_OBJECT_free_func = + ::std::option::Option; +pub type sk_X509_OBJECT_copy_func = + ::std::option::Option *mut X509_OBJECT>; +pub type sk_X509_OBJECT_cmp_func = ::std::option::Option< + unsafe extern "C" fn( + arg1: *const *const X509_OBJECT, + arg2: *const *const X509_OBJECT, + ) -> ::std::os::raw::c_int, +>; +pub type sk_X509_OBJECT_delete_if_func = ::std::option::Option< + unsafe extern "C" fn( + arg1: *mut X509_OBJECT, + arg2: *mut ::std::os::raw::c_void, + ) -> ::std::os::raw::c_int, +>; extern "C" { - #[link_name = "\u{1}_aws_lc_0_21_0_X509_STORE_CTX_set_default"] - pub fn X509_STORE_CTX_set_default( - ctx: *mut X509_STORE_CTX, - name: *const ::std::os::raw::c_char, + #[link_name = "\u{1}_aws_lc_0_21_0_X509_LOOKUP_load_file"] + pub fn X509_LOOKUP_load_file( + lookup: *mut X509_LOOKUP, + path: *const ::std::os::raw::c_char, + type_: ::std::os::raw::c_int, ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_0_21_0_X509_STORE_CTX_get_by_subject"] - pub fn X509_STORE_CTX_get_by_subject( - vs: *mut X509_STORE_CTX, + #[link_name = "\u{1}_aws_lc_0_21_0_X509_LOOKUP_add_dir"] + pub fn X509_LOOKUP_add_dir( + lookup: *mut X509_LOOKUP, + path: *const ::std::os::raw::c_char, type_: ::std::os::raw::c_int, - name: *mut X509_NAME, - ret: *mut X509_OBJECT, ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_0_21_0_X509_VERIFY_PARAM_new"] - pub fn X509_VERIFY_PARAM_new() -> *mut X509_VERIFY_PARAM; + #[link_name = "\u{1}_aws_lc_0_21_0_X509_OBJECT_new"] + pub fn X509_OBJECT_new() -> *mut X509_OBJECT; } extern "C" { - #[link_name = "\u{1}_aws_lc_0_21_0_X509_VERIFY_PARAM_free"] - pub fn X509_VERIFY_PARAM_free(param: *mut X509_VERIFY_PARAM); + #[link_name = "\u{1}_aws_lc_0_21_0_X509_OBJECT_free"] + pub fn X509_OBJECT_free(obj: *mut X509_OBJECT); } extern "C" { - #[link_name = "\u{1}_aws_lc_0_21_0_X509_VERIFY_PARAM_inherit"] - pub fn X509_VERIFY_PARAM_inherit( - to: *mut X509_VERIFY_PARAM, - from: *const X509_VERIFY_PARAM, - ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}_aws_lc_0_21_0_X509_OBJECT_get_type"] + pub fn X509_OBJECT_get_type(obj: *const X509_OBJECT) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_0_21_0_X509_VERIFY_PARAM_set1"] - pub fn X509_VERIFY_PARAM_set1( - to: *mut X509_VERIFY_PARAM, - from: *const X509_VERIFY_PARAM, - ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}_aws_lc_0_21_0_X509_OBJECT_get0_X509"] + pub fn X509_OBJECT_get0_X509(obj: *const X509_OBJECT) -> *mut X509; } extern "C" { - #[link_name = "\u{1}_aws_lc_0_21_0_X509_VERIFY_PARAM_set_flags"] - pub fn X509_VERIFY_PARAM_set_flags( - param: *mut X509_VERIFY_PARAM, - flags: ::std::os::raw::c_ulong, - ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}_aws_lc_0_21_0_X509_OBJECT_get0_X509_CRL"] + pub fn X509_OBJECT_get0_X509_CRL(a: *const X509_OBJECT) -> *mut X509_CRL; } extern "C" { - #[link_name = "\u{1}_aws_lc_0_21_0_X509_VERIFY_PARAM_clear_flags"] - pub fn X509_VERIFY_PARAM_clear_flags( - param: *mut X509_VERIFY_PARAM, - flags: ::std::os::raw::c_ulong, + #[link_name = "\u{1}_aws_lc_0_21_0_X509_OBJECT_set1_X509"] + pub fn X509_OBJECT_set1_X509(a: *mut X509_OBJECT, obj: *mut X509) -> ::std::os::raw::c_int; +} +extern "C" { + #[link_name = "\u{1}_aws_lc_0_21_0_X509_OBJECT_set1_X509_CRL"] + pub fn X509_OBJECT_set1_X509_CRL( + a: *mut X509_OBJECT, + obj: *mut X509_CRL, ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_0_21_0_X509_VERIFY_PARAM_get_flags"] - pub fn X509_VERIFY_PARAM_get_flags(param: *const X509_VERIFY_PARAM) -> ::std::os::raw::c_ulong; + #[link_name = "\u{1}_aws_lc_0_21_0_X509_STORE_lock"] + pub fn X509_STORE_lock(v: *mut X509_STORE) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_0_21_0_X509_VERIFY_PARAM_set_purpose"] - pub fn X509_VERIFY_PARAM_set_purpose( - param: *mut X509_VERIFY_PARAM, - purpose: ::std::os::raw::c_int, - ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}_aws_lc_0_21_0_X509_STORE_unlock"] + pub fn X509_STORE_unlock(v: *mut X509_STORE) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_0_21_0_X509_VERIFY_PARAM_set_trust"] - pub fn X509_VERIFY_PARAM_set_trust( - param: *mut X509_VERIFY_PARAM, - trust: ::std::os::raw::c_int, - ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}_aws_lc_0_21_0_X509_STORE_get0_objects"] + pub fn X509_STORE_get0_objects(st: *mut X509_STORE) -> *mut stack_st_X509_OBJECT; } extern "C" { - #[link_name = "\u{1}_aws_lc_0_21_0_X509_VERIFY_PARAM_set_depth"] - pub fn X509_VERIFY_PARAM_set_depth(param: *mut X509_VERIFY_PARAM, depth: ::std::os::raw::c_int); + #[link_name = "\u{1}_aws_lc_0_21_0_X509_STORE_CTX_get1_certs"] + pub fn X509_STORE_CTX_get1_certs( + st: *mut X509_STORE_CTX, + nm: *mut X509_NAME, + ) -> *mut stack_st_X509; } extern "C" { - #[link_name = "\u{1}_aws_lc_0_21_0_X509_VERIFY_PARAM_set_time"] - pub fn X509_VERIFY_PARAM_set_time(param: *mut X509_VERIFY_PARAM, t: time_t); + #[link_name = "\u{1}_aws_lc_0_21_0_X509_STORE_CTX_get1_crls"] + pub fn X509_STORE_CTX_get1_crls( + st: *mut X509_STORE_CTX, + nm: *mut X509_NAME, + ) -> *mut stack_st_X509_CRL; } extern "C" { - #[link_name = "\u{1}_aws_lc_0_21_0_X509_VERIFY_PARAM_set_time_posix"] - pub fn X509_VERIFY_PARAM_set_time_posix(param: *mut X509_VERIFY_PARAM, t: i64); + #[link_name = "\u{1}_aws_lc_0_21_0_X509_STORE_add_lookup"] + pub fn X509_STORE_add_lookup( + v: *mut X509_STORE, + m: *const X509_LOOKUP_METHOD, + ) -> *mut X509_LOOKUP; } extern "C" { - #[link_name = "\u{1}_aws_lc_0_21_0_X509_VERIFY_PARAM_add0_policy"] - pub fn X509_VERIFY_PARAM_add0_policy( - param: *mut X509_VERIFY_PARAM, - policy: *mut ASN1_OBJECT, - ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}_aws_lc_0_21_0_X509_LOOKUP_hash_dir"] + pub fn X509_LOOKUP_hash_dir() -> *const X509_LOOKUP_METHOD; } extern "C" { - #[link_name = "\u{1}_aws_lc_0_21_0_X509_VERIFY_PARAM_set1_policies"] - pub fn X509_VERIFY_PARAM_set1_policies( - param: *mut X509_VERIFY_PARAM, - policies: *const stack_st_ASN1_OBJECT, - ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}_aws_lc_0_21_0_X509_LOOKUP_file"] + pub fn X509_LOOKUP_file() -> *const X509_LOOKUP_METHOD; } extern "C" { - #[link_name = "\u{1}_aws_lc_0_21_0_X509_VERIFY_PARAM_set1_host"] - pub fn X509_VERIFY_PARAM_set1_host( - param: *mut X509_VERIFY_PARAM, - name: *const ::std::os::raw::c_char, - namelen: usize, + #[link_name = "\u{1}_aws_lc_0_21_0_X509_STORE_CTX_get_by_subject"] + pub fn X509_STORE_CTX_get_by_subject( + vs: *mut X509_STORE_CTX, + type_: ::std::os::raw::c_int, + name: *mut X509_NAME, + ret: *mut X509_OBJECT, ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_0_21_0_X509_VERIFY_PARAM_add1_host"] - pub fn X509_VERIFY_PARAM_add1_host( - param: *mut X509_VERIFY_PARAM, - name: *const ::std::os::raw::c_char, - name_len: usize, + #[link_name = "\u{1}_aws_lc_0_21_0_X509_LOOKUP_ctrl"] + pub fn X509_LOOKUP_ctrl( + ctx: *mut X509_LOOKUP, + cmd: ::std::os::raw::c_int, + argc: *const ::std::os::raw::c_char, + argl: ::std::os::raw::c_long, + ret: *mut *mut ::std::os::raw::c_char, ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_0_21_0_X509_VERIFY_PARAM_set_hostflags"] - pub fn X509_VERIFY_PARAM_set_hostflags( - param: *mut X509_VERIFY_PARAM, - flags: ::std::os::raw::c_uint, - ); + #[link_name = "\u{1}_aws_lc_0_21_0_X509_load_cert_file"] + pub fn X509_load_cert_file( + ctx: *mut X509_LOOKUP, + file: *const ::std::os::raw::c_char, + type_: ::std::os::raw::c_int, + ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_0_21_0_X509_VERIFY_PARAM_set1_email"] - pub fn X509_VERIFY_PARAM_set1_email( - param: *mut X509_VERIFY_PARAM, - email: *const ::std::os::raw::c_char, - emaillen: usize, + #[link_name = "\u{1}_aws_lc_0_21_0_X509_load_crl_file"] + pub fn X509_load_crl_file( + ctx: *mut X509_LOOKUP, + file: *const ::std::os::raw::c_char, + type_: ::std::os::raw::c_int, ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_0_21_0_X509_VERIFY_PARAM_set1_ip"] - pub fn X509_VERIFY_PARAM_set1_ip( - param: *mut X509_VERIFY_PARAM, - ip: *const ::std::os::raw::c_uchar, - iplen: usize, + #[link_name = "\u{1}_aws_lc_0_21_0_X509_load_cert_crl_file"] + pub fn X509_load_cert_crl_file( + ctx: *mut X509_LOOKUP, + file: *const ::std::os::raw::c_char, + type_: ::std::os::raw::c_int, ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_0_21_0_X509_VERIFY_PARAM_set1_ip_asc"] - pub fn X509_VERIFY_PARAM_set1_ip_asc( - param: *mut X509_VERIFY_PARAM, - ipasc: *const ::std::os::raw::c_char, + #[link_name = "\u{1}_aws_lc_0_21_0_X509_STORE_load_locations"] + pub fn X509_STORE_load_locations( + ctx: *mut X509_STORE, + file: *const ::std::os::raw::c_char, + dir: *const ::std::os::raw::c_char, ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_0_21_0_X509_VERIFY_PARAM_get_depth"] - pub fn X509_VERIFY_PARAM_get_depth(param: *const X509_VERIFY_PARAM) -> ::std::os::raw::c_int; + #[link_name = "\u{1}_aws_lc_0_21_0_X509_STORE_set_default_paths"] + pub fn X509_STORE_set_default_paths(ctx: *mut X509_STORE) -> ::std::os::raw::c_int; } pub type X509V3_EXT_NEW = ::std::option::Option *mut ::std::os::raw::c_void>; @@ -25680,14 +25669,6 @@ extern "C" { flags: ::std::os::raw::c_ulong, ) -> ::std::os::raw::c_int; } -extern "C" { - #[link_name = "\u{1}_aws_lc_0_21_0_X509_check_purpose"] - pub fn X509_check_purpose( - x: *mut X509, - id: ::std::os::raw::c_int, - ca: ::std::os::raw::c_int, - ) -> ::std::os::raw::c_int; -} extern "C" { #[link_name = "\u{1}_aws_lc_0_21_0_X509_PURPOSE_set"] pub fn X509_PURPOSE_set( From 068e3ecd6296c49f35df43123a4d2eeafaa9c92c Mon Sep 17 00:00:00 2001 From: aws-lc-sys-bindings-generator Date: Wed, 28 Aug 2024 14:42:11 +0000 Subject: [PATCH 22/36] Generated bindings for aarch64-unknown-linux-musl --- .../src/aarch64_unknown_linux_musl_crypto.rs | 3591 ++++++++--------- 1 file changed, 1786 insertions(+), 1805 deletions(-) diff --git a/aws-lc-sys/src/aarch64_unknown_linux_musl_crypto.rs b/aws-lc-sys/src/aarch64_unknown_linux_musl_crypto.rs index 01a66d61055..d3f3eeb3a4d 100644 --- a/aws-lc-sys/src/aarch64_unknown_linux_musl_crypto.rs +++ b/aws-lc-sys/src/aarch64_unknown_linux_musl_crypto.rs @@ -111,7 +111,7 @@ pub const AWSLC_VERSION_NAME: &[u8; 7] = b"AWS-LC\0"; pub const OPENSSL_VERSION_NUMBER: i32 = 269488255; pub const SSLEAY_VERSION_NUMBER: i32 = 269488255; pub const AWSLC_API_VERSION: i32 = 29; -pub const AWSLC_VERSION_NUMBER_STRING: &[u8; 7] = b"1.33.0\0"; +pub const AWSLC_VERSION_NUMBER_STRING: &[u8; 7] = b"1.34.2\0"; pub const AES_ENCRYPT: i32 = 1; pub const AES_DECRYPT: i32 = 0; pub const AES_MAXNR: i32 = 14; @@ -132,7 +132,7 @@ pub const CRYPTO_LOCK: i32 = 1; pub const CRYPTO_UNLOCK: i32 = 2; pub const CRYPTO_READ: i32 = 4; pub const CRYPTO_WRITE: i32 = 8; -pub const OPENSSL_VERSION_TEXT: &[u8; 42] = b"OpenSSL 1.1.1 (compatible; AWS-LC 1.33.0)\0"; +pub const OPENSSL_VERSION_TEXT: &[u8; 42] = b"OpenSSL 1.1.1 (compatible; AWS-LC 1.34.2)\0"; pub const OPENSSL_VERSION: i32 = 0; pub const OPENSSL_CFLAGS: i32 = 1; pub const OPENSSL_BUILT_ON: i32 = 2; @@ -3283,6 +3283,14 @@ pub const EVP_PKEY_DH: i32 = 28; pub const HKDF_R_OUTPUT_TOO_LARGE: i32 = 100; pub const MD5_CBLOCK: i32 = 64; pub const MD5_DIGEST_LENGTH: i32 = 16; +pub const HMAC_MD5_PRECOMPUTED_KEY_SIZE: i32 = 32; +pub const HMAC_SHA1_PRECOMPUTED_KEY_SIZE: i32 = 40; +pub const HMAC_SHA224_PRECOMPUTED_KEY_SIZE: i32 = 64; +pub const HMAC_SHA256_PRECOMPUTED_KEY_SIZE: i32 = 64; +pub const HMAC_SHA384_PRECOMPUTED_KEY_SIZE: i32 = 128; +pub const HMAC_SHA512_PRECOMPUTED_KEY_SIZE: i32 = 128; +pub const HMAC_SHA512_224_PRECOMPUTED_KEY_SIZE: i32 = 128; +pub const HMAC_SHA512_256_PRECOMPUTED_KEY_SIZE: i32 = 128; pub const HMAC_MAX_PRECOMPUTED_KEY_SIZE: i32 = 128; pub const HMAC_R_MISSING_PARAMETERS: i32 = 100; pub const HMAC_R_BUFFER_TOO_SMALL: i32 = 102; @@ -3501,63 +3509,6 @@ pub const GEN_EDIPARTY: i32 = 5; pub const GEN_URI: i32 = 6; pub const GEN_IPADD: i32 = 7; pub const GEN_RID: i32 = 8; -pub const X509_FLAG_COMPAT: i32 = 0; -pub const X509_FLAG_NO_HEADER: i32 = 1; -pub const X509_FLAG_NO_VERSION: i32 = 2; -pub const X509_FLAG_NO_SERIAL: i32 = 4; -pub const X509_FLAG_NO_SIGNAME: i32 = 8; -pub const X509_FLAG_NO_ISSUER: i32 = 16; -pub const X509_FLAG_NO_VALIDITY: i32 = 32; -pub const X509_FLAG_NO_SUBJECT: i32 = 64; -pub const X509_FLAG_NO_PUBKEY: i32 = 128; -pub const X509_FLAG_NO_EXTENSIONS: i32 = 256; -pub const X509_FLAG_NO_SIGDUMP: i32 = 512; -pub const X509_FLAG_NO_AUX: i32 = 1024; -pub const X509_FLAG_NO_ATTRIBUTES: i32 = 2048; -pub const X509_FLAG_NO_IDS: i32 = 4096; -pub const X509V3_EXT_UNKNOWN_MASK: i32 = 983040; -pub const X509V3_EXT_DEFAULT: i32 = 0; -pub const X509V3_EXT_ERROR_UNKNOWN: i32 = 65536; -pub const X509V3_EXT_PARSE_UNKNOWN: i32 = 131072; -pub const X509V3_EXT_DUMP_UNKNOWN: i32 = 196608; -pub const XN_FLAG_COMPAT: i32 = 0; -pub const XN_FLAG_SEP_MASK: i32 = 983040; -pub const XN_FLAG_SEP_COMMA_PLUS: i32 = 65536; -pub const XN_FLAG_SEP_CPLUS_SPC: i32 = 131072; -pub const XN_FLAG_SEP_SPLUS_SPC: i32 = 196608; -pub const XN_FLAG_SEP_MULTILINE: i32 = 262144; -pub const XN_FLAG_DN_REV: i32 = 1048576; -pub const XN_FLAG_FN_MASK: i32 = 6291456; -pub const XN_FLAG_FN_SN: i32 = 0; -pub const XN_FLAG_FN_LN: i32 = 2097152; -pub const XN_FLAG_FN_OID: i32 = 4194304; -pub const XN_FLAG_FN_NONE: i32 = 6291456; -pub const XN_FLAG_SPC_EQ: i32 = 8388608; -pub const XN_FLAG_DUMP_UNKNOWN_FIELDS: i32 = 16777216; -pub const XN_FLAG_FN_ALIGN: i32 = 33554432; -pub const XN_FLAG_RFC2253: i32 = 17892119; -pub const XN_FLAG_ONELINE: i32 = 8520479; -pub const XN_FLAG_MULTILINE: i32 = 44302342; -pub const X509V3_CTX_TEST: i32 = 1; -pub const X509_TRUST_DEFAULT: i32 = -1; -pub const X509_TRUST_COMPAT: i32 = 1; -pub const X509_TRUST_SSL_CLIENT: i32 = 2; -pub const X509_TRUST_SSL_SERVER: i32 = 3; -pub const X509_TRUST_EMAIL: i32 = 4; -pub const X509_TRUST_OBJECT_SIGN: i32 = 5; -pub const X509_TRUST_TSA: i32 = 8; -pub const X509_TRUST_TRUSTED: i32 = 1; -pub const X509_TRUST_REJECTED: i32 = 2; -pub const X509_TRUST_UNTRUSTED: i32 = 3; -pub const X509_LU_NONE: i32 = 0; -pub const X509_LU_X509: i32 = 1; -pub const X509_LU_CRL: i32 = 2; -pub const X509_LU_PKEY: i32 = 3; -pub const X509_L_FILE_LOAD: i32 = 1; -pub const X509_L_ADD_DIR: i32 = 2; -pub const X509_FILETYPE_PEM: i32 = 1; -pub const X509_FILETYPE_ASN1: i32 = 2; -pub const X509_FILETYPE_DEFAULT: i32 = 3; pub const X509_V_OK: i32 = 0; pub const X509_V_ERR_UNSPECIFIED: i32 = 1; pub const X509_V_ERR_UNABLE_TO_GET_ISSUER_CERT: i32 = 2; @@ -3619,6 +3570,78 @@ pub const X509_V_ERR_IP_ADDRESS_MISMATCH: i32 = 64; pub const X509_V_ERR_INVALID_CALL: i32 = 65; pub const X509_V_ERR_STORE_LOOKUP: i32 = 66; pub const X509_V_ERR_NAME_CONSTRAINTS_WITHOUT_SANS: i32 = 67; +pub const X509_CHECK_FLAG_NO_WILDCARDS: i32 = 2; +pub const X509_CHECK_FLAG_NEVER_CHECK_SUBJECT: i32 = 32; +pub const X509_PURPOSE_SSL_CLIENT: i32 = 1; +pub const X509_PURPOSE_SSL_SERVER: i32 = 2; +pub const X509_PURPOSE_NS_SSL_SERVER: i32 = 3; +pub const X509_PURPOSE_SMIME_SIGN: i32 = 4; +pub const X509_PURPOSE_SMIME_ENCRYPT: i32 = 5; +pub const X509_PURPOSE_CRL_SIGN: i32 = 6; +pub const X509_PURPOSE_ANY: i32 = 7; +pub const X509_PURPOSE_OCSP_HELPER: i32 = 8; +pub const X509_PURPOSE_TIMESTAMP_SIGN: i32 = 9; +pub const X509_TRUST_COMPAT: i32 = 1; +pub const X509_TRUST_SSL_CLIENT: i32 = 2; +pub const X509_TRUST_SSL_SERVER: i32 = 3; +pub const X509_TRUST_EMAIL: i32 = 4; +pub const X509_TRUST_OBJECT_SIGN: i32 = 5; +pub const X509_TRUST_TSA: i32 = 8; +pub const X509_FLAG_COMPAT: i32 = 0; +pub const X509_FLAG_NO_HEADER: i32 = 1; +pub const X509_FLAG_NO_VERSION: i32 = 2; +pub const X509_FLAG_NO_SERIAL: i32 = 4; +pub const X509_FLAG_NO_SIGNAME: i32 = 8; +pub const X509_FLAG_NO_ISSUER: i32 = 16; +pub const X509_FLAG_NO_VALIDITY: i32 = 32; +pub const X509_FLAG_NO_SUBJECT: i32 = 64; +pub const X509_FLAG_NO_PUBKEY: i32 = 128; +pub const X509_FLAG_NO_EXTENSIONS: i32 = 256; +pub const X509_FLAG_NO_SIGDUMP: i32 = 512; +pub const X509_FLAG_NO_AUX: i32 = 1024; +pub const X509_FLAG_NO_ATTRIBUTES: i32 = 2048; +pub const X509_FLAG_NO_IDS: i32 = 4096; +pub const X509V3_EXT_UNKNOWN_MASK: i32 = 983040; +pub const X509V3_EXT_DEFAULT: i32 = 0; +pub const X509V3_EXT_ERROR_UNKNOWN: i32 = 65536; +pub const X509V3_EXT_PARSE_UNKNOWN: i32 = 131072; +pub const X509V3_EXT_DUMP_UNKNOWN: i32 = 196608; +pub const XN_FLAG_COMPAT: i32 = 0; +pub const XN_FLAG_SEP_MASK: i32 = 983040; +pub const XN_FLAG_SEP_COMMA_PLUS: i32 = 65536; +pub const XN_FLAG_SEP_CPLUS_SPC: i32 = 131072; +pub const XN_FLAG_SEP_SPLUS_SPC: i32 = 196608; +pub const XN_FLAG_SEP_MULTILINE: i32 = 262144; +pub const XN_FLAG_DN_REV: i32 = 1048576; +pub const XN_FLAG_FN_MASK: i32 = 6291456; +pub const XN_FLAG_FN_SN: i32 = 0; +pub const XN_FLAG_FN_LN: i32 = 2097152; +pub const XN_FLAG_FN_OID: i32 = 4194304; +pub const XN_FLAG_FN_NONE: i32 = 6291456; +pub const XN_FLAG_SPC_EQ: i32 = 8388608; +pub const XN_FLAG_DUMP_UNKNOWN_FIELDS: i32 = 16777216; +pub const XN_FLAG_FN_ALIGN: i32 = 33554432; +pub const XN_FLAG_RFC2253: i32 = 17892119; +pub const XN_FLAG_ONELINE: i32 = 8520479; +pub const XN_FLAG_MULTILINE: i32 = 44302342; +pub const X509_TRUST_TRUSTED: i32 = 1; +pub const X509_TRUST_REJECTED: i32 = 2; +pub const X509_TRUST_UNTRUSTED: i32 = 3; +pub const X509V3_CTX_TEST: i32 = 1; +pub const X509_CHECK_FLAG_ALWAYS_CHECK_SUBJECT: i32 = 0; +pub const X509_CHECK_FLAG_MULTI_LABEL_WILDCARDS: i32 = 0; +pub const X509_CHECK_FLAG_SINGLE_LABEL_SUBDOMAINS: i32 = 0; +pub const X509_CHECK_FLAG_NO_PARTIAL_WILDCARDS: i32 = 0; +pub const X509_TRUST_DEFAULT: i32 = -1; +pub const X509_LU_NONE: i32 = 0; +pub const X509_LU_X509: i32 = 1; +pub const X509_LU_CRL: i32 = 2; +pub const X509_LU_PKEY: i32 = 3; +pub const X509_L_FILE_LOAD: i32 = 1; +pub const X509_L_ADD_DIR: i32 = 2; +pub const X509_FILETYPE_PEM: i32 = 1; +pub const X509_FILETYPE_ASN1: i32 = 2; +pub const X509_FILETYPE_DEFAULT: i32 = 3; pub const X509_V_FLAG_CB_ISSUER_CHECK: i32 = 1; pub const X509_V_FLAG_USE_CHECK_TIME: i32 = 2; pub const X509_V_FLAG_CRL_CHECK: i32 = 4; @@ -3650,15 +3673,6 @@ pub const NS_SSL_CA: i32 = 4; pub const NS_SMIME_CA: i32 = 2; pub const NS_OBJSIGN_CA: i32 = 1; pub const NS_ANY_CA: i32 = 7; -pub const X509_PURPOSE_SSL_CLIENT: i32 = 1; -pub const X509_PURPOSE_SSL_SERVER: i32 = 2; -pub const X509_PURPOSE_NS_SSL_SERVER: i32 = 3; -pub const X509_PURPOSE_SMIME_SIGN: i32 = 4; -pub const X509_PURPOSE_SMIME_ENCRYPT: i32 = 5; -pub const X509_PURPOSE_CRL_SIGN: i32 = 6; -pub const X509_PURPOSE_ANY: i32 = 7; -pub const X509_PURPOSE_OCSP_HELPER: i32 = 8; -pub const X509_PURPOSE_TIMESTAMP_SIGN: i32 = 9; pub const X509V3_ADD_OP_MASK: i32 = 15; pub const X509V3_ADD_DEFAULT: i32 = 0; pub const X509V3_ADD_APPEND: i32 = 1; @@ -3667,12 +3681,6 @@ pub const X509V3_ADD_REPLACE_EXISTING: i32 = 3; pub const X509V3_ADD_KEEP_EXISTING: i32 = 4; pub const X509V3_ADD_DELETE: i32 = 5; pub const X509V3_ADD_SILENT: i32 = 16; -pub const X509_CHECK_FLAG_NO_WILDCARDS: i32 = 2; -pub const X509_CHECK_FLAG_NEVER_CHECK_SUBJECT: i32 = 32; -pub const X509_CHECK_FLAG_NO_PARTIAL_WILDCARDS: i32 = 0; -pub const X509_CHECK_FLAG_ALWAYS_CHECK_SUBJECT: i32 = 0; -pub const X509_CHECK_FLAG_MULTI_LABEL_WILDCARDS: i32 = 0; -pub const X509_CHECK_FLAG_SINGLE_LABEL_SUBDOMAINS: i32 = 0; pub const X509_R_AKID_MISMATCH: i32 = 100; pub const X509_R_BAD_PKCS7_VERSION: i32 = 101; pub const X509_R_BAD_X509_FILETYPE: i32 = 102; @@ -13084,24 +13092,6 @@ extern "C" { enc: ::std::os::raw::c_int, ); } -extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_DES_decrypt3"] - pub fn DES_decrypt3( - data: *mut u32, - ks1: *const DES_key_schedule, - ks2: *const DES_key_schedule, - ks3: *const DES_key_schedule, - ); -} -extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_DES_encrypt3"] - pub fn DES_encrypt3( - data: *mut u32, - ks1: *const DES_key_schedule, - ks2: *const DES_key_schedule, - ks3: *const DES_key_schedule, - ); -} extern "C" { #[link_name = "\u{1}aws_lc_0_21_0_DH_new"] pub fn DH_new() -> *mut DH; @@ -21106,1751 +21096,1558 @@ extern "C" { idx: ::std::os::raw::c_int, ) -> *mut ASN1_TYPE; } -#[repr(C)] -#[derive(Debug, Copy, Clone, PartialEq, Eq)] -pub struct Netscape_spki_st { - pub spkac: *mut NETSCAPE_SPKAC, - pub sig_algor: *mut X509_ALGOR, - pub signature: *mut ASN1_BIT_STRING, -} -#[test] -fn bindgen_test_layout_Netscape_spki_st() { - const UNINIT: ::std::mem::MaybeUninit = ::std::mem::MaybeUninit::uninit(); - let ptr = UNINIT.as_ptr(); - assert_eq!( - ::std::mem::size_of::(), - 24usize, - concat!("Size of: ", stringify!(Netscape_spki_st)) - ); - assert_eq!( - ::std::mem::align_of::(), - 8usize, - concat!("Alignment of ", stringify!(Netscape_spki_st)) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).spkac) as usize - ptr as usize }, - 0usize, - concat!( - "Offset of field: ", - stringify!(Netscape_spki_st), - "::", - stringify!(spkac) - ) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).sig_algor) as usize - ptr as usize }, - 8usize, - concat!( - "Offset of field: ", - stringify!(Netscape_spki_st), - "::", - stringify!(sig_algor) - ) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).signature) as usize - ptr as usize }, - 16usize, - concat!( - "Offset of field: ", - stringify!(Netscape_spki_st), - "::", - stringify!(signature) - ) - ); +extern "C" { + #[link_name = "\u{1}aws_lc_0_21_0_X509_STORE_new"] + pub fn X509_STORE_new() -> *mut X509_STORE; } -impl Default for Netscape_spki_st { - fn default() -> Self { - let mut s = ::std::mem::MaybeUninit::::uninit(); - unsafe { - ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() - } - } +extern "C" { + #[link_name = "\u{1}aws_lc_0_21_0_X509_STORE_up_ref"] + pub fn X509_STORE_up_ref(store: *mut X509_STORE) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_NETSCAPE_SPKI_it"] - pub static NETSCAPE_SPKI_it: ASN1_ITEM; + #[link_name = "\u{1}aws_lc_0_21_0_X509_STORE_free"] + pub fn X509_STORE_free(store: *mut X509_STORE); } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_NETSCAPE_SPKI_new"] - pub fn NETSCAPE_SPKI_new() -> *mut NETSCAPE_SPKI; + #[link_name = "\u{1}aws_lc_0_21_0_X509_STORE_add_cert"] + pub fn X509_STORE_add_cert(store: *mut X509_STORE, x509: *mut X509) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_NETSCAPE_SPKI_free"] - pub fn NETSCAPE_SPKI_free(spki: *mut NETSCAPE_SPKI); + #[link_name = "\u{1}aws_lc_0_21_0_X509_STORE_add_crl"] + pub fn X509_STORE_add_crl(store: *mut X509_STORE, crl: *mut X509_CRL) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_d2i_NETSCAPE_SPKI"] - pub fn d2i_NETSCAPE_SPKI( - out: *mut *mut NETSCAPE_SPKI, - inp: *mut *const u8, - len: ::std::os::raw::c_long, - ) -> *mut NETSCAPE_SPKI; + #[link_name = "\u{1}aws_lc_0_21_0_X509_STORE_get0_param"] + pub fn X509_STORE_get0_param(store: *mut X509_STORE) -> *mut X509_VERIFY_PARAM; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_i2d_NETSCAPE_SPKI"] - pub fn i2d_NETSCAPE_SPKI( - spki: *const NETSCAPE_SPKI, - outp: *mut *mut u8, + #[link_name = "\u{1}aws_lc_0_21_0_X509_STORE_set1_param"] + pub fn X509_STORE_set1_param( + store: *mut X509_STORE, + param: *const X509_VERIFY_PARAM, ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_NETSCAPE_SPKI_verify"] - pub fn NETSCAPE_SPKI_verify( - spki: *mut NETSCAPE_SPKI, - pkey: *mut EVP_PKEY, + #[link_name = "\u{1}aws_lc_0_21_0_X509_STORE_set_flags"] + pub fn X509_STORE_set_flags( + store: *mut X509_STORE, + flags: ::std::os::raw::c_ulong, ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_NETSCAPE_SPKI_b64_decode"] - pub fn NETSCAPE_SPKI_b64_decode( - str_: *const ::std::os::raw::c_char, - len: ossl_ssize_t, - ) -> *mut NETSCAPE_SPKI; + #[link_name = "\u{1}aws_lc_0_21_0_X509_STORE_set_depth"] + pub fn X509_STORE_set_depth( + store: *mut X509_STORE, + depth: ::std::os::raw::c_int, + ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_NETSCAPE_SPKI_b64_encode"] - pub fn NETSCAPE_SPKI_b64_encode(spki: *mut NETSCAPE_SPKI) -> *mut ::std::os::raw::c_char; + #[link_name = "\u{1}aws_lc_0_21_0_X509_STORE_set_purpose"] + pub fn X509_STORE_set_purpose( + store: *mut X509_STORE, + purpose: ::std::os::raw::c_int, + ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_NETSCAPE_SPKI_get_pubkey"] - pub fn NETSCAPE_SPKI_get_pubkey(spki: *const NETSCAPE_SPKI) -> *mut EVP_PKEY; + #[link_name = "\u{1}aws_lc_0_21_0_X509_STORE_set_trust"] + pub fn X509_STORE_set_trust( + store: *mut X509_STORE, + trust: ::std::os::raw::c_int, + ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_NETSCAPE_SPKI_set_pubkey"] - pub fn NETSCAPE_SPKI_set_pubkey( - spki: *mut NETSCAPE_SPKI, - pkey: *mut EVP_PKEY, - ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_0_21_0_X509_STORE_CTX_new"] + pub fn X509_STORE_CTX_new() -> *mut X509_STORE_CTX; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_NETSCAPE_SPKI_sign"] - pub fn NETSCAPE_SPKI_sign( - spki: *mut NETSCAPE_SPKI, - pkey: *mut EVP_PKEY, - md: *const EVP_MD, + #[link_name = "\u{1}aws_lc_0_21_0_X509_STORE_CTX_free"] + pub fn X509_STORE_CTX_free(ctx: *mut X509_STORE_CTX); +} +extern "C" { + #[link_name = "\u{1}aws_lc_0_21_0_X509_STORE_CTX_init"] + pub fn X509_STORE_CTX_init( + ctx: *mut X509_STORE_CTX, + store: *mut X509_STORE, + x509: *mut X509, + chain: *mut stack_st_X509, ) -> ::std::os::raw::c_int; } -#[repr(C)] -#[derive(Debug, Copy, Clone, PartialEq, Eq)] -pub struct Netscape_spkac_st { - pub pubkey: *mut X509_PUBKEY, - pub challenge: *mut ASN1_IA5STRING, +extern "C" { + #[link_name = "\u{1}aws_lc_0_21_0_X509_verify_cert"] + pub fn X509_verify_cert(ctx: *mut X509_STORE_CTX) -> ::std::os::raw::c_int; } -#[test] -fn bindgen_test_layout_Netscape_spkac_st() { - const UNINIT: ::std::mem::MaybeUninit = ::std::mem::MaybeUninit::uninit(); - let ptr = UNINIT.as_ptr(); - assert_eq!( - ::std::mem::size_of::(), - 16usize, - concat!("Size of: ", stringify!(Netscape_spkac_st)) - ); - assert_eq!( - ::std::mem::align_of::(), - 8usize, - concat!("Alignment of ", stringify!(Netscape_spkac_st)) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).pubkey) as usize - ptr as usize }, - 0usize, - concat!( - "Offset of field: ", - stringify!(Netscape_spkac_st), - "::", - stringify!(pubkey) - ) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).challenge) as usize - ptr as usize }, - 8usize, - concat!( - "Offset of field: ", - stringify!(Netscape_spkac_st), - "::", - stringify!(challenge) - ) - ); +extern "C" { + #[link_name = "\u{1}aws_lc_0_21_0_X509_STORE_CTX_get0_chain"] + pub fn X509_STORE_CTX_get0_chain(ctx: *mut X509_STORE_CTX) -> *mut stack_st_X509; } -impl Default for Netscape_spkac_st { - fn default() -> Self { - let mut s = ::std::mem::MaybeUninit::::uninit(); - unsafe { - ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() - } - } +extern "C" { + #[link_name = "\u{1}aws_lc_0_21_0_X509_STORE_CTX_get1_chain"] + pub fn X509_STORE_CTX_get1_chain(ctx: *mut X509_STORE_CTX) -> *mut stack_st_X509; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_NETSCAPE_SPKAC_it"] - pub static NETSCAPE_SPKAC_it: ASN1_ITEM; + #[link_name = "\u{1}aws_lc_0_21_0_X509_STORE_CTX_set_cert"] + pub fn X509_STORE_CTX_set_cert(c: *mut X509_STORE_CTX, x: *mut X509); } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_NETSCAPE_SPKAC_new"] - pub fn NETSCAPE_SPKAC_new() -> *mut NETSCAPE_SPKAC; + #[link_name = "\u{1}aws_lc_0_21_0_X509_STORE_CTX_get_error"] + pub fn X509_STORE_CTX_get_error(ctx: *mut X509_STORE_CTX) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_NETSCAPE_SPKAC_free"] - pub fn NETSCAPE_SPKAC_free(spkac: *mut NETSCAPE_SPKAC); + #[link_name = "\u{1}aws_lc_0_21_0_X509_STORE_CTX_set_error"] + pub fn X509_STORE_CTX_set_error(ctx: *mut X509_STORE_CTX, err: ::std::os::raw::c_int); } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_d2i_NETSCAPE_SPKAC"] - pub fn d2i_NETSCAPE_SPKAC( - out: *mut *mut NETSCAPE_SPKAC, - inp: *mut *const u8, - len: ::std::os::raw::c_long, - ) -> *mut NETSCAPE_SPKAC; + #[link_name = "\u{1}aws_lc_0_21_0_X509_verify_cert_error_string"] + pub fn X509_verify_cert_error_string( + err: ::std::os::raw::c_long, + ) -> *const ::std::os::raw::c_char; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_i2d_NETSCAPE_SPKAC"] - pub fn i2d_NETSCAPE_SPKAC( - spkac: *const NETSCAPE_SPKAC, - outp: *mut *mut u8, - ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_0_21_0_X509_STORE_CTX_get_error_depth"] + pub fn X509_STORE_CTX_get_error_depth(ctx: *mut X509_STORE_CTX) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_NETSCAPE_SPKI_print"] - pub fn NETSCAPE_SPKI_print(out: *mut BIO, spki: *mut NETSCAPE_SPKI) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_0_21_0_X509_STORE_CTX_get_current_cert"] + pub fn X509_STORE_CTX_get_current_cert(ctx: *mut X509_STORE_CTX) -> *mut X509; } -#[repr(C)] -#[derive(Debug, Copy, Clone, PartialEq, Eq)] -pub struct rsa_pss_params_st { - pub hashAlgorithm: *mut X509_ALGOR, - pub maskGenAlgorithm: *mut X509_ALGOR, - pub saltLength: *mut ASN1_INTEGER, - pub trailerField: *mut ASN1_INTEGER, - pub maskHash: *mut X509_ALGOR, +extern "C" { + #[link_name = "\u{1}aws_lc_0_21_0_X509_STORE_CTX_get0_current_issuer"] + pub fn X509_STORE_CTX_get0_current_issuer(ctx: *mut X509_STORE_CTX) -> *mut X509; } -#[test] -fn bindgen_test_layout_rsa_pss_params_st() { - const UNINIT: ::std::mem::MaybeUninit = ::std::mem::MaybeUninit::uninit(); - let ptr = UNINIT.as_ptr(); - assert_eq!( - ::std::mem::size_of::(), - 40usize, - concat!("Size of: ", stringify!(rsa_pss_params_st)) - ); - assert_eq!( - ::std::mem::align_of::(), - 8usize, - concat!("Alignment of ", stringify!(rsa_pss_params_st)) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).hashAlgorithm) as usize - ptr as usize }, - 0usize, - concat!( - "Offset of field: ", - stringify!(rsa_pss_params_st), - "::", - stringify!(hashAlgorithm) - ) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).maskGenAlgorithm) as usize - ptr as usize }, - 8usize, - concat!( - "Offset of field: ", - stringify!(rsa_pss_params_st), - "::", - stringify!(maskGenAlgorithm) - ) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).saltLength) as usize - ptr as usize }, - 16usize, - concat!( - "Offset of field: ", - stringify!(rsa_pss_params_st), - "::", - stringify!(saltLength) - ) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).trailerField) as usize - ptr as usize }, - 24usize, - concat!( - "Offset of field: ", - stringify!(rsa_pss_params_st), - "::", - stringify!(trailerField) - ) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).maskHash) as usize - ptr as usize }, - 32usize, - concat!( - "Offset of field: ", - stringify!(rsa_pss_params_st), - "::", - stringify!(maskHash) - ) - ); +extern "C" { + #[link_name = "\u{1}aws_lc_0_21_0_X509_STORE_CTX_get0_current_crl"] + pub fn X509_STORE_CTX_get0_current_crl(ctx: *mut X509_STORE_CTX) -> *mut X509_CRL; } -impl Default for rsa_pss_params_st { - fn default() -> Self { - let mut s = ::std::mem::MaybeUninit::::uninit(); - unsafe { - ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() - } - } +extern "C" { + #[link_name = "\u{1}aws_lc_0_21_0_X509_STORE_CTX_get0_store"] + pub fn X509_STORE_CTX_get0_store(ctx: *mut X509_STORE_CTX) -> *mut X509_STORE; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_RSA_PSS_PARAMS_it"] - pub static RSA_PSS_PARAMS_it: ASN1_ITEM; + #[link_name = "\u{1}aws_lc_0_21_0_X509_STORE_CTX_get0_cert"] + pub fn X509_STORE_CTX_get0_cert(ctx: *mut X509_STORE_CTX) -> *mut X509; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_RSA_PSS_PARAMS_new"] - pub fn RSA_PSS_PARAMS_new() -> *mut RSA_PSS_PARAMS; + #[link_name = "\u{1}aws_lc_0_21_0_X509_STORE_CTX_get0_untrusted"] + pub fn X509_STORE_CTX_get0_untrusted(ctx: *mut X509_STORE_CTX) -> *mut stack_st_X509; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_RSA_PSS_PARAMS_free"] - pub fn RSA_PSS_PARAMS_free(params: *mut RSA_PSS_PARAMS); + #[link_name = "\u{1}aws_lc_0_21_0_X509_STORE_CTX_set0_trusted_stack"] + pub fn X509_STORE_CTX_set0_trusted_stack(ctx: *mut X509_STORE_CTX, sk: *mut stack_st_X509); } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_d2i_RSA_PSS_PARAMS"] - pub fn d2i_RSA_PSS_PARAMS( - out: *mut *mut RSA_PSS_PARAMS, - inp: *mut *const u8, - len: ::std::os::raw::c_long, - ) -> *mut RSA_PSS_PARAMS; + #[link_name = "\u{1}aws_lc_0_21_0_X509_STORE_CTX_set0_crls"] + pub fn X509_STORE_CTX_set0_crls(ctx: *mut X509_STORE_CTX, sk: *mut stack_st_X509_CRL); } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_i2d_RSA_PSS_PARAMS"] - pub fn i2d_RSA_PSS_PARAMS( - in_: *const RSA_PSS_PARAMS, - outp: *mut *mut u8, + #[link_name = "\u{1}aws_lc_0_21_0_X509_STORE_CTX_set_default"] + pub fn X509_STORE_CTX_set_default( + ctx: *mut X509_STORE_CTX, + name: *const ::std::os::raw::c_char, ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_PKCS8_PRIV_KEY_INFO_it"] - pub static PKCS8_PRIV_KEY_INFO_it: ASN1_ITEM; + #[link_name = "\u{1}aws_lc_0_21_0_X509_STORE_CTX_get0_param"] + pub fn X509_STORE_CTX_get0_param(ctx: *mut X509_STORE_CTX) -> *mut X509_VERIFY_PARAM; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_PKCS8_PRIV_KEY_INFO_new"] - pub fn PKCS8_PRIV_KEY_INFO_new() -> *mut PKCS8_PRIV_KEY_INFO; -} -extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_PKCS8_PRIV_KEY_INFO_free"] - pub fn PKCS8_PRIV_KEY_INFO_free(key: *mut PKCS8_PRIV_KEY_INFO); -} -extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_d2i_PKCS8_PRIV_KEY_INFO"] - pub fn d2i_PKCS8_PRIV_KEY_INFO( - out: *mut *mut PKCS8_PRIV_KEY_INFO, - inp: *mut *const u8, - len: ::std::os::raw::c_long, - ) -> *mut PKCS8_PRIV_KEY_INFO; -} -extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_i2d_PKCS8_PRIV_KEY_INFO"] - pub fn i2d_PKCS8_PRIV_KEY_INFO( - key: *const PKCS8_PRIV_KEY_INFO, - outp: *mut *mut u8, - ) -> ::std::os::raw::c_int; -} -extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_EVP_PKCS82PKEY"] - pub fn EVP_PKCS82PKEY(p8: *const PKCS8_PRIV_KEY_INFO) -> *mut EVP_PKEY; + #[link_name = "\u{1}aws_lc_0_21_0_X509_STORE_CTX_set0_param"] + pub fn X509_STORE_CTX_set0_param(ctx: *mut X509_STORE_CTX, param: *mut X509_VERIFY_PARAM); } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_EVP_PKEY2PKCS8"] - pub fn EVP_PKEY2PKCS8(pkey: *const EVP_PKEY) -> *mut PKCS8_PRIV_KEY_INFO; + #[link_name = "\u{1}aws_lc_0_21_0_X509_STORE_CTX_set_flags"] + pub fn X509_STORE_CTX_set_flags(ctx: *mut X509_STORE_CTX, flags: ::std::os::raw::c_ulong); } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_X509_SIG_it"] - pub static X509_SIG_it: ASN1_ITEM; + #[link_name = "\u{1}aws_lc_0_21_0_X509_STORE_CTX_set_time"] + pub fn X509_STORE_CTX_set_time( + ctx: *mut X509_STORE_CTX, + flags: ::std::os::raw::c_ulong, + t: time_t, + ); } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_X509_SIG_new"] - pub fn X509_SIG_new() -> *mut X509_SIG; + #[link_name = "\u{1}aws_lc_0_21_0_X509_STORE_CTX_set_time_posix"] + pub fn X509_STORE_CTX_set_time_posix( + ctx: *mut X509_STORE_CTX, + flags: ::std::os::raw::c_ulong, + t: i64, + ); } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_X509_SIG_free"] - pub fn X509_SIG_free(key: *mut X509_SIG); + #[link_name = "\u{1}aws_lc_0_21_0_X509_STORE_CTX_set_depth"] + pub fn X509_STORE_CTX_set_depth(ctx: *mut X509_STORE_CTX, depth: ::std::os::raw::c_int); } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_d2i_X509_SIG"] - pub fn d2i_X509_SIG( - out: *mut *mut X509_SIG, - inp: *mut *const u8, - len: ::std::os::raw::c_long, - ) -> *mut X509_SIG; + #[link_name = "\u{1}aws_lc_0_21_0_X509_STORE_CTX_set_purpose"] + pub fn X509_STORE_CTX_set_purpose( + ctx: *mut X509_STORE_CTX, + purpose: ::std::os::raw::c_int, + ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_i2d_X509_SIG"] - pub fn i2d_X509_SIG(sig: *const X509_SIG, outp: *mut *mut u8) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_0_21_0_X509_STORE_CTX_set_trust"] + pub fn X509_STORE_CTX_set_trust( + ctx: *mut X509_STORE_CTX, + trust: ::std::os::raw::c_int, + ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_X509_SIG_get0"] - pub fn X509_SIG_get0( - sig: *const X509_SIG, - out_alg: *mut *const X509_ALGOR, - out_digest: *mut *const ASN1_OCTET_STRING, - ); + #[link_name = "\u{1}aws_lc_0_21_0_X509_VERIFY_PARAM_new"] + pub fn X509_VERIFY_PARAM_new() -> *mut X509_VERIFY_PARAM; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_X509_SIG_getm"] - pub fn X509_SIG_getm( - sig: *mut X509_SIG, - out_alg: *mut *mut X509_ALGOR, - out_digest: *mut *mut ASN1_OCTET_STRING, - ); + #[link_name = "\u{1}aws_lc_0_21_0_X509_VERIFY_PARAM_free"] + pub fn X509_VERIFY_PARAM_free(param: *mut X509_VERIFY_PARAM); } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_X509_print_ex"] - pub fn X509_print_ex( - bp: *mut BIO, - x: *mut X509, - nmflag: ::std::os::raw::c_ulong, - cflag: ::std::os::raw::c_ulong, + #[link_name = "\u{1}aws_lc_0_21_0_X509_VERIFY_PARAM_inherit"] + pub fn X509_VERIFY_PARAM_inherit( + to: *mut X509_VERIFY_PARAM, + from: *const X509_VERIFY_PARAM, ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_X509_print_ex_fp"] - pub fn X509_print_ex_fp( - fp: *mut FILE, - x: *mut X509, - nmflag: ::std::os::raw::c_ulong, - cflag: ::std::os::raw::c_ulong, + #[link_name = "\u{1}aws_lc_0_21_0_X509_VERIFY_PARAM_set1"] + pub fn X509_VERIFY_PARAM_set1( + to: *mut X509_VERIFY_PARAM, + from: *const X509_VERIFY_PARAM, ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_X509_print"] - pub fn X509_print(bp: *mut BIO, x: *mut X509) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_0_21_0_X509_VERIFY_PARAM_set_flags"] + pub fn X509_VERIFY_PARAM_set_flags( + param: *mut X509_VERIFY_PARAM, + flags: ::std::os::raw::c_ulong, + ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_X509_print_fp"] - pub fn X509_print_fp(fp: *mut FILE, x: *mut X509) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_0_21_0_X509_VERIFY_PARAM_clear_flags"] + pub fn X509_VERIFY_PARAM_clear_flags( + param: *mut X509_VERIFY_PARAM, + flags: ::std::os::raw::c_ulong, + ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_X509_CRL_print"] - pub fn X509_CRL_print(bp: *mut BIO, x: *mut X509_CRL) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_0_21_0_X509_VERIFY_PARAM_get_flags"] + pub fn X509_VERIFY_PARAM_get_flags(param: *const X509_VERIFY_PARAM) -> ::std::os::raw::c_ulong; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_X509_CRL_print_fp"] - pub fn X509_CRL_print_fp(fp: *mut FILE, x: *mut X509_CRL) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_0_21_0_X509_VERIFY_PARAM_set_depth"] + pub fn X509_VERIFY_PARAM_set_depth(param: *mut X509_VERIFY_PARAM, depth: ::std::os::raw::c_int); } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_X509_REQ_print_ex"] - pub fn X509_REQ_print_ex( - bp: *mut BIO, - x: *mut X509_REQ, - nmflag: ::std::os::raw::c_ulong, - cflag: ::std::os::raw::c_ulong, - ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_0_21_0_X509_VERIFY_PARAM_get_depth"] + pub fn X509_VERIFY_PARAM_get_depth(param: *const X509_VERIFY_PARAM) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_X509_REQ_print"] - pub fn X509_REQ_print(bp: *mut BIO, req: *mut X509_REQ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_0_21_0_X509_VERIFY_PARAM_set_time"] + pub fn X509_VERIFY_PARAM_set_time(param: *mut X509_VERIFY_PARAM, t: time_t); } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_X509_REQ_print_fp"] - pub fn X509_REQ_print_fp(fp: *mut FILE, req: *mut X509_REQ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_0_21_0_X509_VERIFY_PARAM_set_time_posix"] + pub fn X509_VERIFY_PARAM_set_time_posix(param: *mut X509_VERIFY_PARAM, t: i64); } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_X509_NAME_print_ex"] - pub fn X509_NAME_print_ex( - out: *mut BIO, - nm: *const X509_NAME, - indent: ::std::os::raw::c_int, - flags: ::std::os::raw::c_ulong, + #[link_name = "\u{1}aws_lc_0_21_0_X509_VERIFY_PARAM_add0_policy"] + pub fn X509_VERIFY_PARAM_add0_policy( + param: *mut X509_VERIFY_PARAM, + policy: *mut ASN1_OBJECT, ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_X509_NAME_print"] - pub fn X509_NAME_print( - bp: *mut BIO, - name: *const X509_NAME, - obase: ::std::os::raw::c_int, + #[link_name = "\u{1}aws_lc_0_21_0_X509_VERIFY_PARAM_set1_policies"] + pub fn X509_VERIFY_PARAM_set1_policies( + param: *mut X509_VERIFY_PARAM, + policies: *const stack_st_ASN1_OBJECT, ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_X509_NAME_oneline"] - pub fn X509_NAME_oneline( - name: *const X509_NAME, - buf: *mut ::std::os::raw::c_char, - size: ::std::os::raw::c_int, - ) -> *mut ::std::os::raw::c_char; -} -extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_X509_NAME_print_ex_fp"] - pub fn X509_NAME_print_ex_fp( - fp: *mut FILE, - nm: *const X509_NAME, - indent: ::std::os::raw::c_int, - flags: ::std::os::raw::c_ulong, + #[link_name = "\u{1}aws_lc_0_21_0_X509_VERIFY_PARAM_set1_host"] + pub fn X509_VERIFY_PARAM_set1_host( + param: *mut X509_VERIFY_PARAM, + name: *const ::std::os::raw::c_char, + name_len: usize, ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_X509_signature_dump"] - pub fn X509_signature_dump( - bio: *mut BIO, - sig: *const ASN1_STRING, - indent: ::std::os::raw::c_int, + #[link_name = "\u{1}aws_lc_0_21_0_X509_VERIFY_PARAM_add1_host"] + pub fn X509_VERIFY_PARAM_add1_host( + param: *mut X509_VERIFY_PARAM, + name: *const ::std::os::raw::c_char, + name_len: usize, ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_X509_signature_print"] - pub fn X509_signature_print( - bio: *mut BIO, - alg: *const X509_ALGOR, - sig: *const ASN1_STRING, - ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_0_21_0_X509_VERIFY_PARAM_set_hostflags"] + pub fn X509_VERIFY_PARAM_set_hostflags( + param: *mut X509_VERIFY_PARAM, + flags: ::std::os::raw::c_uint, + ); } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_X509V3_EXT_print"] - pub fn X509V3_EXT_print( - out: *mut BIO, - ext: *const X509_EXTENSION, - flag: ::std::os::raw::c_ulong, - indent: ::std::os::raw::c_int, + #[link_name = "\u{1}aws_lc_0_21_0_X509_VERIFY_PARAM_set1_email"] + pub fn X509_VERIFY_PARAM_set1_email( + param: *mut X509_VERIFY_PARAM, + email: *const ::std::os::raw::c_char, + email_len: usize, ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_X509V3_EXT_print_fp"] - pub fn X509V3_EXT_print_fp( - out: *mut FILE, - ext: *const X509_EXTENSION, - flag: ::std::os::raw::c_int, - indent: ::std::os::raw::c_int, + #[link_name = "\u{1}aws_lc_0_21_0_X509_VERIFY_PARAM_set1_ip"] + pub fn X509_VERIFY_PARAM_set1_ip( + param: *mut X509_VERIFY_PARAM, + ip: *const u8, + ip_len: usize, ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_X509V3_extensions_print"] - pub fn X509V3_extensions_print( - out: *mut BIO, - title: *const ::std::os::raw::c_char, - exts: *const stack_st_X509_EXTENSION, - flag: ::std::os::raw::c_ulong, - indent: ::std::os::raw::c_int, + #[link_name = "\u{1}aws_lc_0_21_0_X509_VERIFY_PARAM_set1_ip_asc"] + pub fn X509_VERIFY_PARAM_set1_ip_asc( + param: *mut X509_VERIFY_PARAM, + ipasc: *const ::std::os::raw::c_char, ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_GENERAL_NAME_print"] - pub fn GENERAL_NAME_print(out: *mut BIO, gen: *const GENERAL_NAME) -> ::std::os::raw::c_int; -} -extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_X509_pubkey_digest"] - pub fn X509_pubkey_digest( - x509: *const X509, - md: *const EVP_MD, - out: *mut u8, - out_len: *mut ::std::os::raw::c_uint, + #[link_name = "\u{1}aws_lc_0_21_0_X509_VERIFY_PARAM_set_purpose"] + pub fn X509_VERIFY_PARAM_set_purpose( + param: *mut X509_VERIFY_PARAM, + purpose: ::std::os::raw::c_int, ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_X509_digest"] - pub fn X509_digest( - x509: *const X509, - md: *const EVP_MD, - out: *mut u8, - out_len: *mut ::std::os::raw::c_uint, + #[link_name = "\u{1}aws_lc_0_21_0_X509_VERIFY_PARAM_set_trust"] + pub fn X509_VERIFY_PARAM_set_trust( + param: *mut X509_VERIFY_PARAM, + trust: ::std::os::raw::c_int, ) -> ::std::os::raw::c_int; } -extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_X509_CRL_digest"] - pub fn X509_CRL_digest( - crl: *const X509_CRL, - md: *const EVP_MD, - out: *mut u8, - out_len: *mut ::std::os::raw::c_uint, - ) -> ::std::os::raw::c_int; -} -extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_X509_REQ_digest"] - pub fn X509_REQ_digest( - req: *const X509_REQ, - md: *const EVP_MD, - out: *mut u8, - out_len: *mut ::std::os::raw::c_uint, - ) -> ::std::os::raw::c_int; -} -extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_X509_NAME_digest"] - pub fn X509_NAME_digest( - name: *const X509_NAME, - md: *const EVP_MD, - out: *mut u8, - out_len: *mut ::std::os::raw::c_uint, - ) -> ::std::os::raw::c_int; +#[repr(C)] +#[derive(Debug, Copy, Clone, PartialEq, Eq)] +pub struct Netscape_spki_st { + pub spkac: *mut NETSCAPE_SPKAC, + pub sig_algor: *mut X509_ALGOR, + pub signature: *mut ASN1_BIT_STRING, } -extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_d2i_X509_bio"] - pub fn d2i_X509_bio(bp: *mut BIO, x509: *mut *mut X509) -> *mut X509; +#[test] +fn bindgen_test_layout_Netscape_spki_st() { + const UNINIT: ::std::mem::MaybeUninit = ::std::mem::MaybeUninit::uninit(); + let ptr = UNINIT.as_ptr(); + assert_eq!( + ::std::mem::size_of::(), + 24usize, + concat!("Size of: ", stringify!(Netscape_spki_st)) + ); + assert_eq!( + ::std::mem::align_of::(), + 8usize, + concat!("Alignment of ", stringify!(Netscape_spki_st)) + ); + assert_eq!( + unsafe { ::std::ptr::addr_of!((*ptr).spkac) as usize - ptr as usize }, + 0usize, + concat!( + "Offset of field: ", + stringify!(Netscape_spki_st), + "::", + stringify!(spkac) + ) + ); + assert_eq!( + unsafe { ::std::ptr::addr_of!((*ptr).sig_algor) as usize - ptr as usize }, + 8usize, + concat!( + "Offset of field: ", + stringify!(Netscape_spki_st), + "::", + stringify!(sig_algor) + ) + ); + assert_eq!( + unsafe { ::std::ptr::addr_of!((*ptr).signature) as usize - ptr as usize }, + 16usize, + concat!( + "Offset of field: ", + stringify!(Netscape_spki_st), + "::", + stringify!(signature) + ) + ); } -extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_d2i_X509_CRL_bio"] - pub fn d2i_X509_CRL_bio(bp: *mut BIO, crl: *mut *mut X509_CRL) -> *mut X509_CRL; +impl Default for Netscape_spki_st { + fn default() -> Self { + let mut s = ::std::mem::MaybeUninit::::uninit(); + unsafe { + ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); + s.assume_init() + } + } } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_d2i_X509_REQ_bio"] - pub fn d2i_X509_REQ_bio(bp: *mut BIO, req: *mut *mut X509_REQ) -> *mut X509_REQ; + #[link_name = "\u{1}aws_lc_0_21_0_NETSCAPE_SPKI_it"] + pub static NETSCAPE_SPKI_it: ASN1_ITEM; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_d2i_RSAPrivateKey_bio"] - pub fn d2i_RSAPrivateKey_bio(bp: *mut BIO, rsa: *mut *mut RSA) -> *mut RSA; + #[link_name = "\u{1}aws_lc_0_21_0_NETSCAPE_SPKI_new"] + pub fn NETSCAPE_SPKI_new() -> *mut NETSCAPE_SPKI; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_d2i_RSAPublicKey_bio"] - pub fn d2i_RSAPublicKey_bio(bp: *mut BIO, rsa: *mut *mut RSA) -> *mut RSA; + #[link_name = "\u{1}aws_lc_0_21_0_NETSCAPE_SPKI_free"] + pub fn NETSCAPE_SPKI_free(spki: *mut NETSCAPE_SPKI); } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_d2i_RSA_PUBKEY_bio"] - pub fn d2i_RSA_PUBKEY_bio(bp: *mut BIO, rsa: *mut *mut RSA) -> *mut RSA; + #[link_name = "\u{1}aws_lc_0_21_0_d2i_NETSCAPE_SPKI"] + pub fn d2i_NETSCAPE_SPKI( + out: *mut *mut NETSCAPE_SPKI, + inp: *mut *const u8, + len: ::std::os::raw::c_long, + ) -> *mut NETSCAPE_SPKI; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_d2i_DSA_PUBKEY_bio"] - pub fn d2i_DSA_PUBKEY_bio(bp: *mut BIO, dsa: *mut *mut DSA) -> *mut DSA; + #[link_name = "\u{1}aws_lc_0_21_0_i2d_NETSCAPE_SPKI"] + pub fn i2d_NETSCAPE_SPKI( + spki: *const NETSCAPE_SPKI, + outp: *mut *mut u8, + ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_d2i_DSAPrivateKey_bio"] - pub fn d2i_DSAPrivateKey_bio(bp: *mut BIO, dsa: *mut *mut DSA) -> *mut DSA; + #[link_name = "\u{1}aws_lc_0_21_0_NETSCAPE_SPKI_verify"] + pub fn NETSCAPE_SPKI_verify( + spki: *mut NETSCAPE_SPKI, + pkey: *mut EVP_PKEY, + ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_d2i_EC_PUBKEY_bio"] - pub fn d2i_EC_PUBKEY_bio(bp: *mut BIO, eckey: *mut *mut EC_KEY) -> *mut EC_KEY; + #[link_name = "\u{1}aws_lc_0_21_0_NETSCAPE_SPKI_b64_decode"] + pub fn NETSCAPE_SPKI_b64_decode( + str_: *const ::std::os::raw::c_char, + len: ossl_ssize_t, + ) -> *mut NETSCAPE_SPKI; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_d2i_ECPrivateKey_bio"] - pub fn d2i_ECPrivateKey_bio(bp: *mut BIO, eckey: *mut *mut EC_KEY) -> *mut EC_KEY; + #[link_name = "\u{1}aws_lc_0_21_0_NETSCAPE_SPKI_b64_encode"] + pub fn NETSCAPE_SPKI_b64_encode(spki: *mut NETSCAPE_SPKI) -> *mut ::std::os::raw::c_char; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_d2i_PKCS8_bio"] - pub fn d2i_PKCS8_bio(bp: *mut BIO, p8: *mut *mut X509_SIG) -> *mut X509_SIG; + #[link_name = "\u{1}aws_lc_0_21_0_NETSCAPE_SPKI_get_pubkey"] + pub fn NETSCAPE_SPKI_get_pubkey(spki: *const NETSCAPE_SPKI) -> *mut EVP_PKEY; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_d2i_PKCS8_PRIV_KEY_INFO_bio"] - pub fn d2i_PKCS8_PRIV_KEY_INFO_bio( - bp: *mut BIO, - p8inf: *mut *mut PKCS8_PRIV_KEY_INFO, - ) -> *mut PKCS8_PRIV_KEY_INFO; + #[link_name = "\u{1}aws_lc_0_21_0_NETSCAPE_SPKI_set_pubkey"] + pub fn NETSCAPE_SPKI_set_pubkey( + spki: *mut NETSCAPE_SPKI, + pkey: *mut EVP_PKEY, + ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_d2i_PUBKEY_bio"] - pub fn d2i_PUBKEY_bio(bp: *mut BIO, a: *mut *mut EVP_PKEY) -> *mut EVP_PKEY; + #[link_name = "\u{1}aws_lc_0_21_0_NETSCAPE_SPKI_sign"] + pub fn NETSCAPE_SPKI_sign( + spki: *mut NETSCAPE_SPKI, + pkey: *mut EVP_PKEY, + md: *const EVP_MD, + ) -> ::std::os::raw::c_int; } -extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_d2i_DHparams_bio"] - pub fn d2i_DHparams_bio(bp: *mut BIO, dh: *mut *mut DH) -> *mut DH; +#[repr(C)] +#[derive(Debug, Copy, Clone, PartialEq, Eq)] +pub struct Netscape_spkac_st { + pub pubkey: *mut X509_PUBKEY, + pub challenge: *mut ASN1_IA5STRING, } -extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_d2i_PrivateKey_bio"] - pub fn d2i_PrivateKey_bio(bp: *mut BIO, a: *mut *mut EVP_PKEY) -> *mut EVP_PKEY; +#[test] +fn bindgen_test_layout_Netscape_spkac_st() { + const UNINIT: ::std::mem::MaybeUninit = ::std::mem::MaybeUninit::uninit(); + let ptr = UNINIT.as_ptr(); + assert_eq!( + ::std::mem::size_of::(), + 16usize, + concat!("Size of: ", stringify!(Netscape_spkac_st)) + ); + assert_eq!( + ::std::mem::align_of::(), + 8usize, + concat!("Alignment of ", stringify!(Netscape_spkac_st)) + ); + assert_eq!( + unsafe { ::std::ptr::addr_of!((*ptr).pubkey) as usize - ptr as usize }, + 0usize, + concat!( + "Offset of field: ", + stringify!(Netscape_spkac_st), + "::", + stringify!(pubkey) + ) + ); + assert_eq!( + unsafe { ::std::ptr::addr_of!((*ptr).challenge) as usize - ptr as usize }, + 8usize, + concat!( + "Offset of field: ", + stringify!(Netscape_spkac_st), + "::", + stringify!(challenge) + ) + ); } -extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_i2d_X509_bio"] - pub fn i2d_X509_bio(bp: *mut BIO, x509: *mut X509) -> ::std::os::raw::c_int; +impl Default for Netscape_spkac_st { + fn default() -> Self { + let mut s = ::std::mem::MaybeUninit::::uninit(); + unsafe { + ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); + s.assume_init() + } + } } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_i2d_X509_CRL_bio"] - pub fn i2d_X509_CRL_bio(bp: *mut BIO, crl: *mut X509_CRL) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_0_21_0_NETSCAPE_SPKAC_it"] + pub static NETSCAPE_SPKAC_it: ASN1_ITEM; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_i2d_X509_REQ_bio"] - pub fn i2d_X509_REQ_bio(bp: *mut BIO, req: *mut X509_REQ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_0_21_0_NETSCAPE_SPKAC_new"] + pub fn NETSCAPE_SPKAC_new() -> *mut NETSCAPE_SPKAC; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_i2d_RSAPrivateKey_bio"] - pub fn i2d_RSAPrivateKey_bio(bp: *mut BIO, rsa: *mut RSA) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_0_21_0_NETSCAPE_SPKAC_free"] + pub fn NETSCAPE_SPKAC_free(spkac: *mut NETSCAPE_SPKAC); } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_i2d_RSAPublicKey_bio"] - pub fn i2d_RSAPublicKey_bio(bp: *mut BIO, rsa: *mut RSA) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_0_21_0_d2i_NETSCAPE_SPKAC"] + pub fn d2i_NETSCAPE_SPKAC( + out: *mut *mut NETSCAPE_SPKAC, + inp: *mut *const u8, + len: ::std::os::raw::c_long, + ) -> *mut NETSCAPE_SPKAC; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_i2d_RSA_PUBKEY_bio"] - pub fn i2d_RSA_PUBKEY_bio(bp: *mut BIO, rsa: *mut RSA) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_0_21_0_i2d_NETSCAPE_SPKAC"] + pub fn i2d_NETSCAPE_SPKAC( + spkac: *const NETSCAPE_SPKAC, + outp: *mut *mut u8, + ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_i2d_DSA_PUBKEY_bio"] - pub fn i2d_DSA_PUBKEY_bio(bp: *mut BIO, dsa: *mut DSA) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_0_21_0_NETSCAPE_SPKI_print"] + pub fn NETSCAPE_SPKI_print(out: *mut BIO, spki: *mut NETSCAPE_SPKI) -> ::std::os::raw::c_int; } -extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_i2d_DSAPrivateKey_bio"] - pub fn i2d_DSAPrivateKey_bio(bp: *mut BIO, dsa: *mut DSA) -> ::std::os::raw::c_int; +#[repr(C)] +#[derive(Debug, Copy, Clone, PartialEq, Eq)] +pub struct rsa_pss_params_st { + pub hashAlgorithm: *mut X509_ALGOR, + pub maskGenAlgorithm: *mut X509_ALGOR, + pub saltLength: *mut ASN1_INTEGER, + pub trailerField: *mut ASN1_INTEGER, + pub maskHash: *mut X509_ALGOR, } -extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_i2d_EC_PUBKEY_bio"] - pub fn i2d_EC_PUBKEY_bio(bp: *mut BIO, eckey: *mut EC_KEY) -> ::std::os::raw::c_int; -} -extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_i2d_ECPrivateKey_bio"] - pub fn i2d_ECPrivateKey_bio(bp: *mut BIO, eckey: *mut EC_KEY) -> ::std::os::raw::c_int; +#[test] +fn bindgen_test_layout_rsa_pss_params_st() { + const UNINIT: ::std::mem::MaybeUninit = ::std::mem::MaybeUninit::uninit(); + let ptr = UNINIT.as_ptr(); + assert_eq!( + ::std::mem::size_of::(), + 40usize, + concat!("Size of: ", stringify!(rsa_pss_params_st)) + ); + assert_eq!( + ::std::mem::align_of::(), + 8usize, + concat!("Alignment of ", stringify!(rsa_pss_params_st)) + ); + assert_eq!( + unsafe { ::std::ptr::addr_of!((*ptr).hashAlgorithm) as usize - ptr as usize }, + 0usize, + concat!( + "Offset of field: ", + stringify!(rsa_pss_params_st), + "::", + stringify!(hashAlgorithm) + ) + ); + assert_eq!( + unsafe { ::std::ptr::addr_of!((*ptr).maskGenAlgorithm) as usize - ptr as usize }, + 8usize, + concat!( + "Offset of field: ", + stringify!(rsa_pss_params_st), + "::", + stringify!(maskGenAlgorithm) + ) + ); + assert_eq!( + unsafe { ::std::ptr::addr_of!((*ptr).saltLength) as usize - ptr as usize }, + 16usize, + concat!( + "Offset of field: ", + stringify!(rsa_pss_params_st), + "::", + stringify!(saltLength) + ) + ); + assert_eq!( + unsafe { ::std::ptr::addr_of!((*ptr).trailerField) as usize - ptr as usize }, + 24usize, + concat!( + "Offset of field: ", + stringify!(rsa_pss_params_st), + "::", + stringify!(trailerField) + ) + ); + assert_eq!( + unsafe { ::std::ptr::addr_of!((*ptr).maskHash) as usize - ptr as usize }, + 32usize, + concat!( + "Offset of field: ", + stringify!(rsa_pss_params_st), + "::", + stringify!(maskHash) + ) + ); } -extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_i2d_PKCS8_bio"] - pub fn i2d_PKCS8_bio(bp: *mut BIO, p8: *mut X509_SIG) -> ::std::os::raw::c_int; +impl Default for rsa_pss_params_st { + fn default() -> Self { + let mut s = ::std::mem::MaybeUninit::::uninit(); + unsafe { + ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); + s.assume_init() + } + } } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_i2d_PKCS8_PRIV_KEY_INFO_bio"] - pub fn i2d_PKCS8_PRIV_KEY_INFO_bio( - bp: *mut BIO, - p8inf: *mut PKCS8_PRIV_KEY_INFO, - ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_0_21_0_RSA_PSS_PARAMS_it"] + pub static RSA_PSS_PARAMS_it: ASN1_ITEM; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_i2d_PrivateKey_bio"] - pub fn i2d_PrivateKey_bio(bp: *mut BIO, pkey: *mut EVP_PKEY) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_0_21_0_RSA_PSS_PARAMS_new"] + pub fn RSA_PSS_PARAMS_new() -> *mut RSA_PSS_PARAMS; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_i2d_PUBKEY_bio"] - pub fn i2d_PUBKEY_bio(bp: *mut BIO, pkey: *mut EVP_PKEY) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_0_21_0_RSA_PSS_PARAMS_free"] + pub fn RSA_PSS_PARAMS_free(params: *mut RSA_PSS_PARAMS); } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_i2d_DHparams_bio"] - pub fn i2d_DHparams_bio(bp: *mut BIO, dh: *const DH) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_0_21_0_d2i_RSA_PSS_PARAMS"] + pub fn d2i_RSA_PSS_PARAMS( + out: *mut *mut RSA_PSS_PARAMS, + inp: *mut *const u8, + len: ::std::os::raw::c_long, + ) -> *mut RSA_PSS_PARAMS; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_i2d_PKCS8PrivateKeyInfo_bio"] - pub fn i2d_PKCS8PrivateKeyInfo_bio(bp: *mut BIO, key: *mut EVP_PKEY) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_0_21_0_i2d_RSA_PSS_PARAMS"] + pub fn i2d_RSA_PSS_PARAMS( + in_: *const RSA_PSS_PARAMS, + outp: *mut *mut u8, + ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_d2i_X509_fp"] - pub fn d2i_X509_fp(fp: *mut FILE, x509: *mut *mut X509) -> *mut X509; + #[link_name = "\u{1}aws_lc_0_21_0_PKCS8_PRIV_KEY_INFO_it"] + pub static PKCS8_PRIV_KEY_INFO_it: ASN1_ITEM; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_d2i_X509_CRL_fp"] - pub fn d2i_X509_CRL_fp(fp: *mut FILE, crl: *mut *mut X509_CRL) -> *mut X509_CRL; + #[link_name = "\u{1}aws_lc_0_21_0_PKCS8_PRIV_KEY_INFO_new"] + pub fn PKCS8_PRIV_KEY_INFO_new() -> *mut PKCS8_PRIV_KEY_INFO; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_d2i_X509_REQ_fp"] - pub fn d2i_X509_REQ_fp(fp: *mut FILE, req: *mut *mut X509_REQ) -> *mut X509_REQ; + #[link_name = "\u{1}aws_lc_0_21_0_PKCS8_PRIV_KEY_INFO_free"] + pub fn PKCS8_PRIV_KEY_INFO_free(key: *mut PKCS8_PRIV_KEY_INFO); } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_d2i_RSAPrivateKey_fp"] - pub fn d2i_RSAPrivateKey_fp(fp: *mut FILE, rsa: *mut *mut RSA) -> *mut RSA; + #[link_name = "\u{1}aws_lc_0_21_0_d2i_PKCS8_PRIV_KEY_INFO"] + pub fn d2i_PKCS8_PRIV_KEY_INFO( + out: *mut *mut PKCS8_PRIV_KEY_INFO, + inp: *mut *const u8, + len: ::std::os::raw::c_long, + ) -> *mut PKCS8_PRIV_KEY_INFO; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_d2i_RSAPublicKey_fp"] - pub fn d2i_RSAPublicKey_fp(fp: *mut FILE, rsa: *mut *mut RSA) -> *mut RSA; + #[link_name = "\u{1}aws_lc_0_21_0_i2d_PKCS8_PRIV_KEY_INFO"] + pub fn i2d_PKCS8_PRIV_KEY_INFO( + key: *const PKCS8_PRIV_KEY_INFO, + outp: *mut *mut u8, + ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_d2i_RSA_PUBKEY_fp"] - pub fn d2i_RSA_PUBKEY_fp(fp: *mut FILE, rsa: *mut *mut RSA) -> *mut RSA; + #[link_name = "\u{1}aws_lc_0_21_0_EVP_PKCS82PKEY"] + pub fn EVP_PKCS82PKEY(p8: *const PKCS8_PRIV_KEY_INFO) -> *mut EVP_PKEY; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_d2i_DSA_PUBKEY_fp"] - pub fn d2i_DSA_PUBKEY_fp(fp: *mut FILE, dsa: *mut *mut DSA) -> *mut DSA; + #[link_name = "\u{1}aws_lc_0_21_0_EVP_PKEY2PKCS8"] + pub fn EVP_PKEY2PKCS8(pkey: *const EVP_PKEY) -> *mut PKCS8_PRIV_KEY_INFO; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_d2i_DSAPrivateKey_fp"] - pub fn d2i_DSAPrivateKey_fp(fp: *mut FILE, dsa: *mut *mut DSA) -> *mut DSA; + #[link_name = "\u{1}aws_lc_0_21_0_X509_SIG_it"] + pub static X509_SIG_it: ASN1_ITEM; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_d2i_EC_PUBKEY_fp"] - pub fn d2i_EC_PUBKEY_fp(fp: *mut FILE, eckey: *mut *mut EC_KEY) -> *mut EC_KEY; + #[link_name = "\u{1}aws_lc_0_21_0_X509_SIG_new"] + pub fn X509_SIG_new() -> *mut X509_SIG; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_d2i_ECPrivateKey_fp"] - pub fn d2i_ECPrivateKey_fp(fp: *mut FILE, eckey: *mut *mut EC_KEY) -> *mut EC_KEY; + #[link_name = "\u{1}aws_lc_0_21_0_X509_SIG_free"] + pub fn X509_SIG_free(key: *mut X509_SIG); } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_d2i_PKCS8_fp"] - pub fn d2i_PKCS8_fp(fp: *mut FILE, p8: *mut *mut X509_SIG) -> *mut X509_SIG; + #[link_name = "\u{1}aws_lc_0_21_0_d2i_X509_SIG"] + pub fn d2i_X509_SIG( + out: *mut *mut X509_SIG, + inp: *mut *const u8, + len: ::std::os::raw::c_long, + ) -> *mut X509_SIG; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_d2i_PKCS8_PRIV_KEY_INFO_fp"] - pub fn d2i_PKCS8_PRIV_KEY_INFO_fp( - fp: *mut FILE, - p8inf: *mut *mut PKCS8_PRIV_KEY_INFO, - ) -> *mut PKCS8_PRIV_KEY_INFO; + #[link_name = "\u{1}aws_lc_0_21_0_i2d_X509_SIG"] + pub fn i2d_X509_SIG(sig: *const X509_SIG, outp: *mut *mut u8) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_d2i_PrivateKey_fp"] - pub fn d2i_PrivateKey_fp(fp: *mut FILE, a: *mut *mut EVP_PKEY) -> *mut EVP_PKEY; + #[link_name = "\u{1}aws_lc_0_21_0_X509_SIG_get0"] + pub fn X509_SIG_get0( + sig: *const X509_SIG, + out_alg: *mut *const X509_ALGOR, + out_digest: *mut *const ASN1_OCTET_STRING, + ); } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_d2i_PUBKEY_fp"] - pub fn d2i_PUBKEY_fp(fp: *mut FILE, a: *mut *mut EVP_PKEY) -> *mut EVP_PKEY; + #[link_name = "\u{1}aws_lc_0_21_0_X509_SIG_getm"] + pub fn X509_SIG_getm( + sig: *mut X509_SIG, + out_alg: *mut *mut X509_ALGOR, + out_digest: *mut *mut ASN1_OCTET_STRING, + ); } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_i2d_X509_fp"] - pub fn i2d_X509_fp(fp: *mut FILE, x509: *mut X509) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_0_21_0_X509_print_ex"] + pub fn X509_print_ex( + bp: *mut BIO, + x: *mut X509, + nmflag: ::std::os::raw::c_ulong, + cflag: ::std::os::raw::c_ulong, + ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_i2d_X509_CRL_fp"] - pub fn i2d_X509_CRL_fp(fp: *mut FILE, crl: *mut X509_CRL) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_0_21_0_X509_print_ex_fp"] + pub fn X509_print_ex_fp( + fp: *mut FILE, + x: *mut X509, + nmflag: ::std::os::raw::c_ulong, + cflag: ::std::os::raw::c_ulong, + ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_i2d_X509_REQ_fp"] - pub fn i2d_X509_REQ_fp(fp: *mut FILE, req: *mut X509_REQ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_0_21_0_X509_print"] + pub fn X509_print(bp: *mut BIO, x: *mut X509) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_i2d_RSAPrivateKey_fp"] - pub fn i2d_RSAPrivateKey_fp(fp: *mut FILE, rsa: *mut RSA) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_0_21_0_X509_print_fp"] + pub fn X509_print_fp(fp: *mut FILE, x: *mut X509) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_i2d_RSAPublicKey_fp"] - pub fn i2d_RSAPublicKey_fp(fp: *mut FILE, rsa: *mut RSA) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_0_21_0_X509_CRL_print"] + pub fn X509_CRL_print(bp: *mut BIO, x: *mut X509_CRL) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_i2d_RSA_PUBKEY_fp"] - pub fn i2d_RSA_PUBKEY_fp(fp: *mut FILE, rsa: *mut RSA) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_0_21_0_X509_CRL_print_fp"] + pub fn X509_CRL_print_fp(fp: *mut FILE, x: *mut X509_CRL) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_i2d_DSA_PUBKEY_fp"] - pub fn i2d_DSA_PUBKEY_fp(fp: *mut FILE, dsa: *mut DSA) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_0_21_0_X509_REQ_print_ex"] + pub fn X509_REQ_print_ex( + bp: *mut BIO, + x: *mut X509_REQ, + nmflag: ::std::os::raw::c_ulong, + cflag: ::std::os::raw::c_ulong, + ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_i2d_DSAPrivateKey_fp"] - pub fn i2d_DSAPrivateKey_fp(fp: *mut FILE, dsa: *mut DSA) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_0_21_0_X509_REQ_print"] + pub fn X509_REQ_print(bp: *mut BIO, req: *mut X509_REQ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_i2d_EC_PUBKEY_fp"] - pub fn i2d_EC_PUBKEY_fp(fp: *mut FILE, eckey: *mut EC_KEY) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_0_21_0_X509_REQ_print_fp"] + pub fn X509_REQ_print_fp(fp: *mut FILE, req: *mut X509_REQ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_i2d_ECPrivateKey_fp"] - pub fn i2d_ECPrivateKey_fp(fp: *mut FILE, eckey: *mut EC_KEY) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_0_21_0_X509_NAME_print_ex"] + pub fn X509_NAME_print_ex( + out: *mut BIO, + nm: *const X509_NAME, + indent: ::std::os::raw::c_int, + flags: ::std::os::raw::c_ulong, + ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_i2d_PKCS8_fp"] - pub fn i2d_PKCS8_fp(fp: *mut FILE, p8: *mut X509_SIG) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_0_21_0_X509_NAME_print"] + pub fn X509_NAME_print( + bp: *mut BIO, + name: *const X509_NAME, + obase: ::std::os::raw::c_int, + ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_i2d_PKCS8_PRIV_KEY_INFO_fp"] - pub fn i2d_PKCS8_PRIV_KEY_INFO_fp( + #[link_name = "\u{1}aws_lc_0_21_0_X509_NAME_oneline"] + pub fn X509_NAME_oneline( + name: *const X509_NAME, + buf: *mut ::std::os::raw::c_char, + size: ::std::os::raw::c_int, + ) -> *mut ::std::os::raw::c_char; +} +extern "C" { + #[link_name = "\u{1}aws_lc_0_21_0_X509_NAME_print_ex_fp"] + pub fn X509_NAME_print_ex_fp( fp: *mut FILE, - p8inf: *mut PKCS8_PRIV_KEY_INFO, + nm: *const X509_NAME, + indent: ::std::os::raw::c_int, + flags: ::std::os::raw::c_ulong, ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_i2d_PKCS8PrivateKeyInfo_fp"] - pub fn i2d_PKCS8PrivateKeyInfo_fp(fp: *mut FILE, key: *mut EVP_PKEY) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_0_21_0_X509_signature_dump"] + pub fn X509_signature_dump( + bio: *mut BIO, + sig: *const ASN1_STRING, + indent: ::std::os::raw::c_int, + ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_i2d_PrivateKey_fp"] - pub fn i2d_PrivateKey_fp(fp: *mut FILE, pkey: *mut EVP_PKEY) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_0_21_0_X509_signature_print"] + pub fn X509_signature_print( + bio: *mut BIO, + alg: *const X509_ALGOR, + sig: *const ASN1_STRING, + ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_i2d_PUBKEY_fp"] - pub fn i2d_PUBKEY_fp(fp: *mut FILE, pkey: *mut EVP_PKEY) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_0_21_0_X509V3_EXT_print"] + pub fn X509V3_EXT_print( + out: *mut BIO, + ext: *const X509_EXTENSION, + flag: ::std::os::raw::c_ulong, + indent: ::std::os::raw::c_int, + ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_X509_find_by_issuer_and_serial"] - pub fn X509_find_by_issuer_and_serial( - sk: *const stack_st_X509, - name: *mut X509_NAME, - serial: *const ASN1_INTEGER, - ) -> *mut X509; + #[link_name = "\u{1}aws_lc_0_21_0_X509V3_EXT_print_fp"] + pub fn X509V3_EXT_print_fp( + out: *mut FILE, + ext: *const X509_EXTENSION, + flag: ::std::os::raw::c_int, + indent: ::std::os::raw::c_int, + ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_X509_find_by_subject"] - pub fn X509_find_by_subject(sk: *const stack_st_X509, name: *mut X509_NAME) -> *mut X509; + #[link_name = "\u{1}aws_lc_0_21_0_X509V3_extensions_print"] + pub fn X509V3_extensions_print( + out: *mut BIO, + title: *const ::std::os::raw::c_char, + exts: *const stack_st_X509_EXTENSION, + flag: ::std::os::raw::c_ulong, + indent: ::std::os::raw::c_int, + ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_X509_cmp_time"] - pub fn X509_cmp_time(s: *const ASN1_TIME, t: *const time_t) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_0_21_0_GENERAL_NAME_print"] + pub fn GENERAL_NAME_print(out: *mut BIO, gen: *const GENERAL_NAME) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_X509_cmp_time_posix"] - pub fn X509_cmp_time_posix(s: *const ASN1_TIME, t: i64) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_0_21_0_X509_pubkey_digest"] + pub fn X509_pubkey_digest( + x509: *const X509, + md: *const EVP_MD, + out: *mut u8, + out_len: *mut ::std::os::raw::c_uint, + ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_X509_cmp_current_time"] - pub fn X509_cmp_current_time(s: *const ASN1_TIME) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_0_21_0_X509_digest"] + pub fn X509_digest( + x509: *const X509, + md: *const EVP_MD, + out: *mut u8, + out_len: *mut ::std::os::raw::c_uint, + ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_X509_time_adj"] - pub fn X509_time_adj( - s: *mut ASN1_TIME, - offset_sec: ::std::os::raw::c_long, - t: *const time_t, - ) -> *mut ASN1_TIME; + #[link_name = "\u{1}aws_lc_0_21_0_X509_CRL_digest"] + pub fn X509_CRL_digest( + crl: *const X509_CRL, + md: *const EVP_MD, + out: *mut u8, + out_len: *mut ::std::os::raw::c_uint, + ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_X509_time_adj_ex"] - pub fn X509_time_adj_ex( - s: *mut ASN1_TIME, - offset_day: ::std::os::raw::c_int, - offset_sec: ::std::os::raw::c_long, - t: *const time_t, - ) -> *mut ASN1_TIME; + #[link_name = "\u{1}aws_lc_0_21_0_X509_REQ_digest"] + pub fn X509_REQ_digest( + req: *const X509_REQ, + md: *const EVP_MD, + out: *mut u8, + out_len: *mut ::std::os::raw::c_uint, + ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_X509_gmtime_adj"] - pub fn X509_gmtime_adj(s: *mut ASN1_TIME, offset_sec: ::std::os::raw::c_long) - -> *mut ASN1_TIME; + #[link_name = "\u{1}aws_lc_0_21_0_X509_NAME_digest"] + pub fn X509_NAME_digest( + name: *const X509_NAME, + md: *const EVP_MD, + out: *mut u8, + out_len: *mut ::std::os::raw::c_uint, + ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_X509_issuer_name_cmp"] - pub fn X509_issuer_name_cmp(a: *const X509, b: *const X509) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_0_21_0_d2i_X509_bio"] + pub fn d2i_X509_bio(bp: *mut BIO, x509: *mut *mut X509) -> *mut X509; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_X509_subject_name_cmp"] - pub fn X509_subject_name_cmp(a: *const X509, b: *const X509) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_0_21_0_d2i_X509_CRL_bio"] + pub fn d2i_X509_CRL_bio(bp: *mut BIO, crl: *mut *mut X509_CRL) -> *mut X509_CRL; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_X509_CRL_cmp"] - pub fn X509_CRL_cmp(a: *const X509_CRL, b: *const X509_CRL) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_0_21_0_d2i_X509_REQ_bio"] + pub fn d2i_X509_REQ_bio(bp: *mut BIO, req: *mut *mut X509_REQ) -> *mut X509_REQ; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_X509_issuer_name_hash"] - pub fn X509_issuer_name_hash(x509: *mut X509) -> u32; + #[link_name = "\u{1}aws_lc_0_21_0_d2i_RSAPrivateKey_bio"] + pub fn d2i_RSAPrivateKey_bio(bp: *mut BIO, rsa: *mut *mut RSA) -> *mut RSA; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_X509_subject_name_hash"] - pub fn X509_subject_name_hash(x509: *mut X509) -> u32; + #[link_name = "\u{1}aws_lc_0_21_0_d2i_RSAPublicKey_bio"] + pub fn d2i_RSAPublicKey_bio(bp: *mut BIO, rsa: *mut *mut RSA) -> *mut RSA; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_X509_issuer_name_hash_old"] - pub fn X509_issuer_name_hash_old(x509: *mut X509) -> u32; + #[link_name = "\u{1}aws_lc_0_21_0_d2i_RSA_PUBKEY_bio"] + pub fn d2i_RSA_PUBKEY_bio(bp: *mut BIO, rsa: *mut *mut RSA) -> *mut RSA; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_X509_subject_name_hash_old"] - pub fn X509_subject_name_hash_old(x509: *mut X509) -> u32; + #[link_name = "\u{1}aws_lc_0_21_0_d2i_DSA_PUBKEY_bio"] + pub fn d2i_DSA_PUBKEY_bio(bp: *mut BIO, dsa: *mut *mut DSA) -> *mut DSA; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_X509_get_ex_new_index"] - pub fn X509_get_ex_new_index( - argl: ::std::os::raw::c_long, - argp: *mut ::std::os::raw::c_void, - unused: *mut CRYPTO_EX_unused, - dup_unused: CRYPTO_EX_dup, - free_func: CRYPTO_EX_free, - ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_0_21_0_d2i_DSAPrivateKey_bio"] + pub fn d2i_DSAPrivateKey_bio(bp: *mut BIO, dsa: *mut *mut DSA) -> *mut DSA; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_X509_set_ex_data"] - pub fn X509_set_ex_data( - r: *mut X509, - idx: ::std::os::raw::c_int, - arg: *mut ::std::os::raw::c_void, - ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_0_21_0_d2i_EC_PUBKEY_bio"] + pub fn d2i_EC_PUBKEY_bio(bp: *mut BIO, eckey: *mut *mut EC_KEY) -> *mut EC_KEY; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_X509_get_ex_data"] - pub fn X509_get_ex_data( - r: *mut X509, - idx: ::std::os::raw::c_int, - ) -> *mut ::std::os::raw::c_void; + #[link_name = "\u{1}aws_lc_0_21_0_d2i_ECPrivateKey_bio"] + pub fn d2i_ECPrivateKey_bio(bp: *mut BIO, eckey: *mut *mut EC_KEY) -> *mut EC_KEY; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_X509_STORE_CTX_get_ex_new_index"] - pub fn X509_STORE_CTX_get_ex_new_index( - argl: ::std::os::raw::c_long, - argp: *mut ::std::os::raw::c_void, - unused: *mut CRYPTO_EX_unused, - dup_unused: CRYPTO_EX_dup, - free_func: CRYPTO_EX_free, - ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_0_21_0_d2i_PKCS8_bio"] + pub fn d2i_PKCS8_bio(bp: *mut BIO, p8: *mut *mut X509_SIG) -> *mut X509_SIG; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_X509_STORE_CTX_set_ex_data"] - pub fn X509_STORE_CTX_set_ex_data( - ctx: *mut X509_STORE_CTX, - idx: ::std::os::raw::c_int, - data: *mut ::std::os::raw::c_void, - ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_0_21_0_d2i_PKCS8_PRIV_KEY_INFO_bio"] + pub fn d2i_PKCS8_PRIV_KEY_INFO_bio( + bp: *mut BIO, + p8inf: *mut *mut PKCS8_PRIV_KEY_INFO, + ) -> *mut PKCS8_PRIV_KEY_INFO; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_X509_STORE_CTX_get_ex_data"] - pub fn X509_STORE_CTX_get_ex_data( - ctx: *mut X509_STORE_CTX, - idx: ::std::os::raw::c_int, - ) -> *mut ::std::os::raw::c_void; + #[link_name = "\u{1}aws_lc_0_21_0_d2i_PUBKEY_bio"] + pub fn d2i_PUBKEY_bio(bp: *mut BIO, a: *mut *mut EVP_PKEY) -> *mut EVP_PKEY; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_X509_STORE_get_ex_new_index"] - pub fn X509_STORE_get_ex_new_index( - argl: ::std::os::raw::c_long, - argp: *mut ::std::os::raw::c_void, - unused: *mut CRYPTO_EX_unused, - dup_unused: CRYPTO_EX_dup, - free_func: CRYPTO_EX_free, - ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_0_21_0_d2i_DHparams_bio"] + pub fn d2i_DHparams_bio(bp: *mut BIO, dh: *mut *mut DH) -> *mut DH; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_X509_STORE_set_ex_data"] - pub fn X509_STORE_set_ex_data( - ctx: *mut X509_STORE, - idx: ::std::os::raw::c_int, - data: *mut ::std::os::raw::c_void, - ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_0_21_0_d2i_PrivateKey_bio"] + pub fn d2i_PrivateKey_bio(bp: *mut BIO, a: *mut *mut EVP_PKEY) -> *mut EVP_PKEY; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_X509_STORE_get_ex_data"] - pub fn X509_STORE_get_ex_data( - ctx: *mut X509_STORE, - idx: ::std::os::raw::c_int, - ) -> *mut ::std::os::raw::c_void; + #[link_name = "\u{1}aws_lc_0_21_0_i2d_X509_bio"] + pub fn i2d_X509_bio(bp: *mut BIO, x509: *mut X509) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_ASN1_digest"] - pub fn ASN1_digest( - i2d: i2d_of_void, - type_: *const EVP_MD, - data: *mut ::std::os::raw::c_char, - md: *mut ::std::os::raw::c_uchar, - len: *mut ::std::os::raw::c_uint, - ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_0_21_0_i2d_X509_CRL_bio"] + pub fn i2d_X509_CRL_bio(bp: *mut BIO, crl: *mut X509_CRL) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_ASN1_item_digest"] - pub fn ASN1_item_digest( - it: *const ASN1_ITEM, - type_: *const EVP_MD, - data: *mut ::std::os::raw::c_void, - md: *mut ::std::os::raw::c_uchar, - len: *mut ::std::os::raw::c_uint, - ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_0_21_0_i2d_X509_REQ_bio"] + pub fn i2d_X509_REQ_bio(bp: *mut BIO, req: *mut X509_REQ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_ASN1_item_verify"] - pub fn ASN1_item_verify( - it: *const ASN1_ITEM, - algor1: *const X509_ALGOR, - signature: *const ASN1_BIT_STRING, - data: *mut ::std::os::raw::c_void, - pkey: *mut EVP_PKEY, - ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_0_21_0_i2d_RSAPrivateKey_bio"] + pub fn i2d_RSAPrivateKey_bio(bp: *mut BIO, rsa: *mut RSA) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_ASN1_item_sign"] - pub fn ASN1_item_sign( - it: *const ASN1_ITEM, - algor1: *mut X509_ALGOR, - algor2: *mut X509_ALGOR, - signature: *mut ASN1_BIT_STRING, - data: *mut ::std::os::raw::c_void, - pkey: *mut EVP_PKEY, - type_: *const EVP_MD, - ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_0_21_0_i2d_RSAPublicKey_bio"] + pub fn i2d_RSAPublicKey_bio(bp: *mut BIO, rsa: *mut RSA) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_ASN1_item_sign_ctx"] - pub fn ASN1_item_sign_ctx( - it: *const ASN1_ITEM, - algor1: *mut X509_ALGOR, - algor2: *mut X509_ALGOR, - signature: *mut ASN1_BIT_STRING, - asn: *mut ::std::os::raw::c_void, - ctx: *mut EVP_MD_CTX, - ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_0_21_0_i2d_RSA_PUBKEY_bio"] + pub fn i2d_RSA_PUBKEY_bio(bp: *mut BIO, rsa: *mut RSA) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_X509_supported_extension"] - pub fn X509_supported_extension(ex: *const X509_EXTENSION) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_0_21_0_i2d_DSA_PUBKEY_bio"] + pub fn i2d_DSA_PUBKEY_bio(bp: *mut BIO, dsa: *mut DSA) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_X509_check_ca"] - pub fn X509_check_ca(x509: *mut X509) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_0_21_0_i2d_DSAPrivateKey_bio"] + pub fn i2d_DSAPrivateKey_bio(bp: *mut BIO, dsa: *mut DSA) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_X509_check_issued"] - pub fn X509_check_issued(issuer: *mut X509, subject: *mut X509) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_0_21_0_i2d_EC_PUBKEY_bio"] + pub fn i2d_EC_PUBKEY_bio(bp: *mut BIO, eckey: *mut EC_KEY) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_NAME_CONSTRAINTS_check"] - pub fn NAME_CONSTRAINTS_check( - x509: *mut X509, - nc: *mut NAME_CONSTRAINTS, - ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_0_21_0_i2d_ECPrivateKey_bio"] + pub fn i2d_ECPrivateKey_bio(bp: *mut BIO, eckey: *mut EC_KEY) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_X509_check_host"] - pub fn X509_check_host( - x509: *const X509, - chk: *const ::std::os::raw::c_char, - chklen: usize, - flags: ::std::os::raw::c_uint, - out_peername: *mut *mut ::std::os::raw::c_char, - ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_0_21_0_i2d_PKCS8_bio"] + pub fn i2d_PKCS8_bio(bp: *mut BIO, p8: *mut X509_SIG) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_X509_check_email"] - pub fn X509_check_email( - x509: *const X509, - chk: *const ::std::os::raw::c_char, - chklen: usize, - flags: ::std::os::raw::c_uint, + #[link_name = "\u{1}aws_lc_0_21_0_i2d_PKCS8_PRIV_KEY_INFO_bio"] + pub fn i2d_PKCS8_PRIV_KEY_INFO_bio( + bp: *mut BIO, + p8inf: *mut PKCS8_PRIV_KEY_INFO, ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_X509_check_ip"] - pub fn X509_check_ip( - x509: *const X509, - chk: *const u8, - chklen: usize, - flags: ::std::os::raw::c_uint, - ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_0_21_0_i2d_PrivateKey_bio"] + pub fn i2d_PrivateKey_bio(bp: *mut BIO, pkey: *mut EVP_PKEY) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_X509_check_ip_asc"] - pub fn X509_check_ip_asc( - x509: *const X509, - ipasc: *const ::std::os::raw::c_char, - flags: ::std::os::raw::c_uint, - ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_0_21_0_i2d_PUBKEY_bio"] + pub fn i2d_PUBKEY_bio(bp: *mut BIO, pkey: *mut EVP_PKEY) -> ::std::os::raw::c_int; } -#[repr(C)] -#[derive(Debug, Copy, Clone, PartialEq, Eq)] -pub struct private_key_st { - pub dec_pkey: *mut EVP_PKEY, +extern "C" { + #[link_name = "\u{1}aws_lc_0_21_0_i2d_DHparams_bio"] + pub fn i2d_DHparams_bio(bp: *mut BIO, dh: *const DH) -> ::std::os::raw::c_int; } -#[test] -fn bindgen_test_layout_private_key_st() { - const UNINIT: ::std::mem::MaybeUninit = ::std::mem::MaybeUninit::uninit(); - let ptr = UNINIT.as_ptr(); - assert_eq!( - ::std::mem::size_of::(), - 8usize, - concat!("Size of: ", stringify!(private_key_st)) - ); - assert_eq!( - ::std::mem::align_of::(), - 8usize, - concat!("Alignment of ", stringify!(private_key_st)) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).dec_pkey) as usize - ptr as usize }, - 0usize, - concat!( - "Offset of field: ", - stringify!(private_key_st), - "::", - stringify!(dec_pkey) - ) - ); +extern "C" { + #[link_name = "\u{1}aws_lc_0_21_0_i2d_PKCS8PrivateKeyInfo_bio"] + pub fn i2d_PKCS8PrivateKeyInfo_bio(bp: *mut BIO, key: *mut EVP_PKEY) -> ::std::os::raw::c_int; } -impl Default for private_key_st { - fn default() -> Self { - let mut s = ::std::mem::MaybeUninit::::uninit(); - unsafe { - ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() - } - } +extern "C" { + #[link_name = "\u{1}aws_lc_0_21_0_d2i_X509_fp"] + pub fn d2i_X509_fp(fp: *mut FILE, x509: *mut *mut X509) -> *mut X509; } -#[repr(C)] -#[derive(Debug, Copy, Clone, PartialEq, Eq)] -pub struct X509_info_st { - pub x509: *mut X509, - pub crl: *mut X509_CRL, - pub x_pkey: *mut X509_PKEY, - pub enc_cipher: EVP_CIPHER_INFO, - pub enc_len: ::std::os::raw::c_int, - pub enc_data: *mut ::std::os::raw::c_char, +extern "C" { + #[link_name = "\u{1}aws_lc_0_21_0_d2i_X509_CRL_fp"] + pub fn d2i_X509_CRL_fp(fp: *mut FILE, crl: *mut *mut X509_CRL) -> *mut X509_CRL; } -#[test] -fn bindgen_test_layout_X509_info_st() { - const UNINIT: ::std::mem::MaybeUninit = ::std::mem::MaybeUninit::uninit(); - let ptr = UNINIT.as_ptr(); - assert_eq!( - ::std::mem::size_of::(), - 64usize, - concat!("Size of: ", stringify!(X509_info_st)) - ); - assert_eq!( - ::std::mem::align_of::(), - 8usize, - concat!("Alignment of ", stringify!(X509_info_st)) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).x509) as usize - ptr as usize }, - 0usize, - concat!( - "Offset of field: ", - stringify!(X509_info_st), - "::", - stringify!(x509) - ) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).crl) as usize - ptr as usize }, - 8usize, - concat!( - "Offset of field: ", - stringify!(X509_info_st), - "::", - stringify!(crl) - ) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).x_pkey) as usize - ptr as usize }, - 16usize, - concat!( - "Offset of field: ", - stringify!(X509_info_st), - "::", - stringify!(x_pkey) - ) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).enc_cipher) as usize - ptr as usize }, - 24usize, - concat!( - "Offset of field: ", - stringify!(X509_info_st), - "::", - stringify!(enc_cipher) - ) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).enc_len) as usize - ptr as usize }, - 48usize, - concat!( - "Offset of field: ", - stringify!(X509_info_st), - "::", - stringify!(enc_len) - ) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).enc_data) as usize - ptr as usize }, - 56usize, - concat!( - "Offset of field: ", - stringify!(X509_info_st), - "::", - stringify!(enc_data) - ) - ); +extern "C" { + #[link_name = "\u{1}aws_lc_0_21_0_d2i_X509_REQ_fp"] + pub fn d2i_X509_REQ_fp(fp: *mut FILE, req: *mut *mut X509_REQ) -> *mut X509_REQ; } -impl Default for X509_info_st { - fn default() -> Self { - let mut s = ::std::mem::MaybeUninit::::uninit(); - unsafe { - ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() - } - } +extern "C" { + #[link_name = "\u{1}aws_lc_0_21_0_d2i_RSAPrivateKey_fp"] + pub fn d2i_RSAPrivateKey_fp(fp: *mut FILE, rsa: *mut *mut RSA) -> *mut RSA; } -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct stack_st_X509_INFO { - _unused: [u8; 0], +extern "C" { + #[link_name = "\u{1}aws_lc_0_21_0_d2i_RSAPublicKey_fp"] + pub fn d2i_RSAPublicKey_fp(fp: *mut FILE, rsa: *mut *mut RSA) -> *mut RSA; } -pub type sk_X509_INFO_free_func = ::std::option::Option; -pub type sk_X509_INFO_copy_func = - ::std::option::Option *mut X509_INFO>; -pub type sk_X509_INFO_cmp_func = ::std::option::Option< - unsafe extern "C" fn( - arg1: *const *const X509_INFO, - arg2: *const *const X509_INFO, - ) -> ::std::os::raw::c_int, ->; -pub type sk_X509_INFO_delete_if_func = ::std::option::Option< - unsafe extern "C" fn( - arg1: *mut X509_INFO, - arg2: *mut ::std::os::raw::c_void, - ) -> ::std::os::raw::c_int, ->; extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_X509_INFO_free"] - pub fn X509_INFO_free(info: *mut X509_INFO); -} -#[repr(C)] -#[derive(Debug, Copy, Clone, PartialEq, Eq)] -pub struct v3_ext_ctx { - pub flags: ::std::os::raw::c_int, - pub issuer_cert: *const X509, - pub subject_cert: *const X509, - pub subject_req: *const X509_REQ, - pub crl: *const X509_CRL, - pub db: *const CONF, -} -#[test] -fn bindgen_test_layout_v3_ext_ctx() { - const UNINIT: ::std::mem::MaybeUninit = ::std::mem::MaybeUninit::uninit(); - let ptr = UNINIT.as_ptr(); - assert_eq!( - ::std::mem::size_of::(), - 48usize, - concat!("Size of: ", stringify!(v3_ext_ctx)) - ); - assert_eq!( - ::std::mem::align_of::(), - 8usize, - concat!("Alignment of ", stringify!(v3_ext_ctx)) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).flags) as usize - ptr as usize }, - 0usize, - concat!( - "Offset of field: ", - stringify!(v3_ext_ctx), - "::", - stringify!(flags) - ) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).issuer_cert) as usize - ptr as usize }, - 8usize, - concat!( - "Offset of field: ", - stringify!(v3_ext_ctx), - "::", - stringify!(issuer_cert) - ) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).subject_cert) as usize - ptr as usize }, - 16usize, - concat!( - "Offset of field: ", - stringify!(v3_ext_ctx), - "::", - stringify!(subject_cert) - ) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).subject_req) as usize - ptr as usize }, - 24usize, - concat!( - "Offset of field: ", - stringify!(v3_ext_ctx), - "::", - stringify!(subject_req) - ) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).crl) as usize - ptr as usize }, - 32usize, - concat!( - "Offset of field: ", - stringify!(v3_ext_ctx), - "::", - stringify!(crl) - ) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).db) as usize - ptr as usize }, - 40usize, - concat!( - "Offset of field: ", - stringify!(v3_ext_ctx), - "::", - stringify!(db) - ) - ); -} -impl Default for v3_ext_ctx { - fn default() -> Self { - let mut s = ::std::mem::MaybeUninit::::uninit(); - unsafe { - ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() - } - } + #[link_name = "\u{1}aws_lc_0_21_0_d2i_RSA_PUBKEY_fp"] + pub fn d2i_RSA_PUBKEY_fp(fp: *mut FILE, rsa: *mut *mut RSA) -> *mut RSA; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_X509V3_set_ctx"] - pub fn X509V3_set_ctx( - ctx: *mut X509V3_CTX, - issuer: *const X509, - subject: *const X509, - req: *const X509_REQ, - crl: *const X509_CRL, - flags: ::std::os::raw::c_int, - ); + #[link_name = "\u{1}aws_lc_0_21_0_d2i_DSA_PUBKEY_fp"] + pub fn d2i_DSA_PUBKEY_fp(fp: *mut FILE, dsa: *mut *mut DSA) -> *mut DSA; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_X509V3_set_nconf"] - pub fn X509V3_set_nconf(ctx: *mut X509V3_CTX, conf: *const CONF); + #[link_name = "\u{1}aws_lc_0_21_0_d2i_DSAPrivateKey_fp"] + pub fn d2i_DSAPrivateKey_fp(fp: *mut FILE, dsa: *mut *mut DSA) -> *mut DSA; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_X509V3_EXT_nconf"] - pub fn X509V3_EXT_nconf( - conf: *const CONF, - ctx: *const X509V3_CTX, - name: *const ::std::os::raw::c_char, - value: *const ::std::os::raw::c_char, - ) -> *mut X509_EXTENSION; + #[link_name = "\u{1}aws_lc_0_21_0_d2i_EC_PUBKEY_fp"] + pub fn d2i_EC_PUBKEY_fp(fp: *mut FILE, eckey: *mut *mut EC_KEY) -> *mut EC_KEY; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_X509V3_EXT_nconf_nid"] - pub fn X509V3_EXT_nconf_nid( - conf: *const CONF, - ctx: *const X509V3_CTX, - ext_nid: ::std::os::raw::c_int, - value: *const ::std::os::raw::c_char, - ) -> *mut X509_EXTENSION; + #[link_name = "\u{1}aws_lc_0_21_0_d2i_ECPrivateKey_fp"] + pub fn d2i_ECPrivateKey_fp(fp: *mut FILE, eckey: *mut *mut EC_KEY) -> *mut EC_KEY; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_X509V3_EXT_conf_nid"] - pub fn X509V3_EXT_conf_nid( - conf: *mut lhash_st_CONF_VALUE, - ctx: *const X509V3_CTX, - ext_nid: ::std::os::raw::c_int, - value: *const ::std::os::raw::c_char, - ) -> *mut X509_EXTENSION; + #[link_name = "\u{1}aws_lc_0_21_0_d2i_PKCS8_fp"] + pub fn d2i_PKCS8_fp(fp: *mut FILE, p8: *mut *mut X509_SIG) -> *mut X509_SIG; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_X509V3_EXT_add_nconf_sk"] - pub fn X509V3_EXT_add_nconf_sk( - conf: *const CONF, - ctx: *const X509V3_CTX, - section: *const ::std::os::raw::c_char, - sk: *mut *mut stack_st_X509_EXTENSION, - ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_0_21_0_d2i_PKCS8_PRIV_KEY_INFO_fp"] + pub fn d2i_PKCS8_PRIV_KEY_INFO_fp( + fp: *mut FILE, + p8inf: *mut *mut PKCS8_PRIV_KEY_INFO, + ) -> *mut PKCS8_PRIV_KEY_INFO; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_X509V3_EXT_add_nconf"] - pub fn X509V3_EXT_add_nconf( - conf: *const CONF, - ctx: *const X509V3_CTX, - section: *const ::std::os::raw::c_char, - cert: *mut X509, - ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_0_21_0_d2i_PrivateKey_fp"] + pub fn d2i_PrivateKey_fp(fp: *mut FILE, a: *mut *mut EVP_PKEY) -> *mut EVP_PKEY; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_X509V3_EXT_REQ_add_nconf"] - pub fn X509V3_EXT_REQ_add_nconf( - conf: *const CONF, - ctx: *const X509V3_CTX, - section: *const ::std::os::raw::c_char, - req: *mut X509_REQ, - ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_0_21_0_d2i_PUBKEY_fp"] + pub fn d2i_PUBKEY_fp(fp: *mut FILE, a: *mut *mut EVP_PKEY) -> *mut EVP_PKEY; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_X509V3_EXT_CRL_add_nconf"] - pub fn X509V3_EXT_CRL_add_nconf( - conf: *const CONF, - ctx: *const X509V3_CTX, - section: *const ::std::os::raw::c_char, - crl: *mut X509_CRL, - ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_0_21_0_i2d_X509_fp"] + pub fn i2d_X509_fp(fp: *mut FILE, x509: *mut X509) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_X509V3_EXT_conf"] - pub fn X509V3_EXT_conf( - conf: *mut lhash_st_CONF_VALUE, - ctx: *mut X509V3_CTX, - name: *const ::std::os::raw::c_char, - value: *const ::std::os::raw::c_char, - ) -> *mut X509_EXTENSION; + #[link_name = "\u{1}aws_lc_0_21_0_i2d_X509_CRL_fp"] + pub fn i2d_X509_CRL_fp(fp: *mut FILE, crl: *mut X509_CRL) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_i2s_ASN1_OCTET_STRING"] - pub fn i2s_ASN1_OCTET_STRING( - method: *const X509V3_EXT_METHOD, - oct: *const ASN1_OCTET_STRING, - ) -> *mut ::std::os::raw::c_char; + #[link_name = "\u{1}aws_lc_0_21_0_i2d_X509_REQ_fp"] + pub fn i2d_X509_REQ_fp(fp: *mut FILE, req: *mut X509_REQ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_s2i_ASN1_OCTET_STRING"] - pub fn s2i_ASN1_OCTET_STRING( - method: *const X509V3_EXT_METHOD, - ctx: *const X509V3_CTX, - str_: *const ::std::os::raw::c_char, - ) -> *mut ASN1_OCTET_STRING; + #[link_name = "\u{1}aws_lc_0_21_0_i2d_RSAPrivateKey_fp"] + pub fn i2d_RSAPrivateKey_fp(fp: *mut FILE, rsa: *mut RSA) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_i2s_ASN1_INTEGER"] - pub fn i2s_ASN1_INTEGER( - method: *const X509V3_EXT_METHOD, - aint: *const ASN1_INTEGER, - ) -> *mut ::std::os::raw::c_char; + #[link_name = "\u{1}aws_lc_0_21_0_i2d_RSAPublicKey_fp"] + pub fn i2d_RSAPublicKey_fp(fp: *mut FILE, rsa: *mut RSA) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_s2i_ASN1_INTEGER"] - pub fn s2i_ASN1_INTEGER( - method: *const X509V3_EXT_METHOD, - value: *const ::std::os::raw::c_char, - ) -> *mut ASN1_INTEGER; + #[link_name = "\u{1}aws_lc_0_21_0_i2d_RSA_PUBKEY_fp"] + pub fn i2d_RSA_PUBKEY_fp(fp: *mut FILE, rsa: *mut RSA) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_i2s_ASN1_ENUMERATED"] - pub fn i2s_ASN1_ENUMERATED( - method: *const X509V3_EXT_METHOD, - aint: *const ASN1_ENUMERATED, - ) -> *mut ::std::os::raw::c_char; + #[link_name = "\u{1}aws_lc_0_21_0_i2d_DSA_PUBKEY_fp"] + pub fn i2d_DSA_PUBKEY_fp(fp: *mut FILE, dsa: *mut DSA) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_X509V3_conf_free"] - pub fn X509V3_conf_free(val: *mut CONF_VALUE); + #[link_name = "\u{1}aws_lc_0_21_0_i2d_DSAPrivateKey_fp"] + pub fn i2d_DSAPrivateKey_fp(fp: *mut FILE, dsa: *mut DSA) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_i2v_GENERAL_NAME"] - pub fn i2v_GENERAL_NAME( - method: *const X509V3_EXT_METHOD, - gen: *const GENERAL_NAME, - ret: *mut stack_st_CONF_VALUE, - ) -> *mut stack_st_CONF_VALUE; + #[link_name = "\u{1}aws_lc_0_21_0_i2d_EC_PUBKEY_fp"] + pub fn i2d_EC_PUBKEY_fp(fp: *mut FILE, eckey: *mut EC_KEY) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_i2v_GENERAL_NAMES"] - pub fn i2v_GENERAL_NAMES( - method: *const X509V3_EXT_METHOD, - gen: *const GENERAL_NAMES, - extlist: *mut stack_st_CONF_VALUE, - ) -> *mut stack_st_CONF_VALUE; + #[link_name = "\u{1}aws_lc_0_21_0_i2d_ECPrivateKey_fp"] + pub fn i2d_ECPrivateKey_fp(fp: *mut FILE, eckey: *mut EC_KEY) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_a2i_IPADDRESS"] - pub fn a2i_IPADDRESS(ipasc: *const ::std::os::raw::c_char) -> *mut ASN1_OCTET_STRING; + #[link_name = "\u{1}aws_lc_0_21_0_i2d_PKCS8_fp"] + pub fn i2d_PKCS8_fp(fp: *mut FILE, p8: *mut X509_SIG) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_a2i_IPADDRESS_NC"] - pub fn a2i_IPADDRESS_NC(ipasc: *const ::std::os::raw::c_char) -> *mut ASN1_OCTET_STRING; + #[link_name = "\u{1}aws_lc_0_21_0_i2d_PKCS8_PRIV_KEY_INFO_fp"] + pub fn i2d_PKCS8_PRIV_KEY_INFO_fp( + fp: *mut FILE, + p8inf: *mut PKCS8_PRIV_KEY_INFO, + ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_X509_get_notBefore"] - pub fn X509_get_notBefore(x509: *const X509) -> *mut ASN1_TIME; + #[link_name = "\u{1}aws_lc_0_21_0_i2d_PKCS8PrivateKeyInfo_fp"] + pub fn i2d_PKCS8PrivateKeyInfo_fp(fp: *mut FILE, key: *mut EVP_PKEY) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_X509_get_notAfter"] - pub fn X509_get_notAfter(x509: *const X509) -> *mut ASN1_TIME; + #[link_name = "\u{1}aws_lc_0_21_0_i2d_PrivateKey_fp"] + pub fn i2d_PrivateKey_fp(fp: *mut FILE, pkey: *mut EVP_PKEY) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_X509_set_notBefore"] - pub fn X509_set_notBefore(x509: *mut X509, tm: *const ASN1_TIME) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_0_21_0_i2d_PUBKEY_fp"] + pub fn i2d_PUBKEY_fp(fp: *mut FILE, pkey: *mut EVP_PKEY) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_X509_set_notAfter"] - pub fn X509_set_notAfter(x509: *mut X509, tm: *const ASN1_TIME) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_0_21_0_X509_find_by_issuer_and_serial"] + pub fn X509_find_by_issuer_and_serial( + sk: *const stack_st_X509, + name: *mut X509_NAME, + serial: *const ASN1_INTEGER, + ) -> *mut X509; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_X509_CRL_get_lastUpdate"] - pub fn X509_CRL_get_lastUpdate(crl: *mut X509_CRL) -> *mut ASN1_TIME; + #[link_name = "\u{1}aws_lc_0_21_0_X509_find_by_subject"] + pub fn X509_find_by_subject(sk: *const stack_st_X509, name: *mut X509_NAME) -> *mut X509; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_X509_CRL_get_nextUpdate"] - pub fn X509_CRL_get_nextUpdate(crl: *mut X509_CRL) -> *mut ASN1_TIME; + #[link_name = "\u{1}aws_lc_0_21_0_X509_cmp_time"] + pub fn X509_cmp_time(s: *const ASN1_TIME, t: *const time_t) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_X509_get_serialNumber"] - pub fn X509_get_serialNumber(x509: *mut X509) -> *mut ASN1_INTEGER; + #[link_name = "\u{1}aws_lc_0_21_0_X509_cmp_time_posix"] + pub fn X509_cmp_time_posix(s: *const ASN1_TIME, t: i64) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_X509_NAME_get_text_by_OBJ"] - pub fn X509_NAME_get_text_by_OBJ( - name: *const X509_NAME, - obj: *const ASN1_OBJECT, - buf: *mut ::std::os::raw::c_char, - len: ::std::os::raw::c_int, - ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_0_21_0_X509_cmp_current_time"] + pub fn X509_cmp_current_time(s: *const ASN1_TIME) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_X509_NAME_get_text_by_NID"] - pub fn X509_NAME_get_text_by_NID( - name: *const X509_NAME, - nid: ::std::os::raw::c_int, - buf: *mut ::std::os::raw::c_char, - len: ::std::os::raw::c_int, - ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_0_21_0_X509_time_adj"] + pub fn X509_time_adj( + s: *mut ASN1_TIME, + offset_sec: ::std::os::raw::c_long, + t: *const time_t, + ) -> *mut ASN1_TIME; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_X509_STORE_CTX_get0_parent_ctx"] - pub fn X509_STORE_CTX_get0_parent_ctx(ctx: *mut X509_STORE_CTX) -> *mut X509_STORE_CTX; + #[link_name = "\u{1}aws_lc_0_21_0_X509_time_adj_ex"] + pub fn X509_time_adj_ex( + s: *mut ASN1_TIME, + offset_day: ::std::os::raw::c_int, + offset_sec: ::std::os::raw::c_long, + t: *const time_t, + ) -> *mut ASN1_TIME; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_X509_LOOKUP_free"] - pub fn X509_LOOKUP_free(ctx: *mut X509_LOOKUP); + #[link_name = "\u{1}aws_lc_0_21_0_X509_gmtime_adj"] + pub fn X509_gmtime_adj(s: *mut ASN1_TIME, offset_sec: ::std::os::raw::c_long) + -> *mut ASN1_TIME; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_X509_STORE_CTX_cleanup"] - pub fn X509_STORE_CTX_cleanup(ctx: *mut X509_STORE_CTX); + #[link_name = "\u{1}aws_lc_0_21_0_X509_issuer_name_cmp"] + pub fn X509_issuer_name_cmp(a: *const X509, b: *const X509) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_X509V3_add_standard_extensions"] - pub fn X509V3_add_standard_extensions() -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_0_21_0_X509_subject_name_cmp"] + pub fn X509_subject_name_cmp(a: *const X509, b: *const X509) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_X509V3_parse_list"] - pub fn X509V3_parse_list(line: *const ::std::os::raw::c_char) -> *mut stack_st_CONF_VALUE; + #[link_name = "\u{1}aws_lc_0_21_0_X509_CRL_cmp"] + pub fn X509_CRL_cmp(a: *const X509_CRL, b: *const X509_CRL) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_X509_STORE_CTX_get_chain"] - pub fn X509_STORE_CTX_get_chain(ctx: *mut X509_STORE_CTX) -> *mut stack_st_X509; + #[link_name = "\u{1}aws_lc_0_21_0_X509_issuer_name_hash"] + pub fn X509_issuer_name_hash(x509: *mut X509) -> u32; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_X509_STORE_CTX_trusted_stack"] - pub fn X509_STORE_CTX_trusted_stack(ctx: *mut X509_STORE_CTX, sk: *mut stack_st_X509); + #[link_name = "\u{1}aws_lc_0_21_0_X509_subject_name_hash"] + pub fn X509_subject_name_hash(x509: *mut X509) -> u32; } -pub type X509_STORE_CTX_verify_cb = ::std::option::Option< - unsafe extern "C" fn( - arg1: ::std::os::raw::c_int, - arg2: *mut X509_STORE_CTX, - ) -> ::std::os::raw::c_int, ->; extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_X509_STORE_CTX_set_verify_cb"] - pub fn X509_STORE_CTX_set_verify_cb( - ctx: *mut X509_STORE_CTX, - verify_cb: ::std::option::Option< - unsafe extern "C" fn( - ok: ::std::os::raw::c_int, - ctx: *mut X509_STORE_CTX, - ) -> ::std::os::raw::c_int, - >, - ); + #[link_name = "\u{1}aws_lc_0_21_0_X509_issuer_name_hash_old"] + pub fn X509_issuer_name_hash_old(x509: *mut X509) -> u32; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_X509_STORE_set_verify_cb"] - pub fn X509_STORE_set_verify_cb(store: *mut X509_STORE, verify_cb: X509_STORE_CTX_verify_cb); + #[link_name = "\u{1}aws_lc_0_21_0_X509_subject_name_hash_old"] + pub fn X509_subject_name_hash_old(x509: *mut X509) -> u32; } -pub type X509_STORE_CTX_get_crl_fn = ::std::option::Option< - unsafe extern "C" fn( - ctx: *mut X509_STORE_CTX, - crl: *mut *mut X509_CRL, - x: *mut X509, - ) -> ::std::os::raw::c_int, ->; -pub type X509_STORE_CTX_check_crl_fn = ::std::option::Option< - unsafe extern "C" fn(ctx: *mut X509_STORE_CTX, crl: *mut X509_CRL) -> ::std::os::raw::c_int, ->; extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_X509_STORE_set_get_crl"] - pub fn X509_STORE_set_get_crl(store: *mut X509_STORE, get_crl: X509_STORE_CTX_get_crl_fn); + #[link_name = "\u{1}aws_lc_0_21_0_X509_get_ex_new_index"] + pub fn X509_get_ex_new_index( + argl: ::std::os::raw::c_long, + argp: *mut ::std::os::raw::c_void, + unused: *mut CRYPTO_EX_unused, + dup_unused: CRYPTO_EX_dup, + free_func: CRYPTO_EX_free, + ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_X509_STORE_set_check_crl"] - pub fn X509_STORE_set_check_crl(store: *mut X509_STORE, check_crl: X509_STORE_CTX_check_crl_fn); + #[link_name = "\u{1}aws_lc_0_21_0_X509_set_ex_data"] + pub fn X509_set_ex_data( + r: *mut X509, + idx: ::std::os::raw::c_int, + arg: *mut ::std::os::raw::c_void, + ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_X509_STORE_CTX_set_chain"] - pub fn X509_STORE_CTX_set_chain(ctx: *mut X509_STORE_CTX, sk: *mut stack_st_X509); + #[link_name = "\u{1}aws_lc_0_21_0_X509_get_ex_data"] + pub fn X509_get_ex_data( + r: *mut X509, + idx: ::std::os::raw::c_int, + ) -> *mut ::std::os::raw::c_void; } -#[repr(C)] -#[derive(Debug, Copy, Clone, PartialEq, Eq)] -pub struct X509_algor_st { - pub algorithm: *mut ASN1_OBJECT, - pub parameter: *mut ASN1_TYPE, +extern "C" { + #[link_name = "\u{1}aws_lc_0_21_0_X509_STORE_CTX_get_ex_new_index"] + pub fn X509_STORE_CTX_get_ex_new_index( + argl: ::std::os::raw::c_long, + argp: *mut ::std::os::raw::c_void, + unused: *mut CRYPTO_EX_unused, + dup_unused: CRYPTO_EX_dup, + free_func: CRYPTO_EX_free, + ) -> ::std::os::raw::c_int; } -#[test] -fn bindgen_test_layout_X509_algor_st() { - const UNINIT: ::std::mem::MaybeUninit = ::std::mem::MaybeUninit::uninit(); - let ptr = UNINIT.as_ptr(); - assert_eq!( - ::std::mem::size_of::(), - 16usize, - concat!("Size of: ", stringify!(X509_algor_st)) - ); - assert_eq!( - ::std::mem::align_of::(), - 8usize, - concat!("Alignment of ", stringify!(X509_algor_st)) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).algorithm) as usize - ptr as usize }, - 0usize, - concat!( - "Offset of field: ", - stringify!(X509_algor_st), - "::", - stringify!(algorithm) - ) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).parameter) as usize - ptr as usize }, - 8usize, - concat!( - "Offset of field: ", - stringify!(X509_algor_st), - "::", - stringify!(parameter) - ) - ); +extern "C" { + #[link_name = "\u{1}aws_lc_0_21_0_X509_STORE_CTX_set_ex_data"] + pub fn X509_STORE_CTX_set_ex_data( + ctx: *mut X509_STORE_CTX, + idx: ::std::os::raw::c_int, + data: *mut ::std::os::raw::c_void, + ) -> ::std::os::raw::c_int; } -impl Default for X509_algor_st { - fn default() -> Self { - let mut s = ::std::mem::MaybeUninit::::uninit(); - unsafe { - ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() - } - } +extern "C" { + #[link_name = "\u{1}aws_lc_0_21_0_X509_STORE_CTX_get_ex_data"] + pub fn X509_STORE_CTX_get_ex_data( + ctx: *mut X509_STORE_CTX, + idx: ::std::os::raw::c_int, + ) -> *mut ::std::os::raw::c_void; } -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct stack_st_DIST_POINT { - _unused: [u8; 0], +extern "C" { + #[link_name = "\u{1}aws_lc_0_21_0_X509_STORE_get_ex_new_index"] + pub fn X509_STORE_get_ex_new_index( + argl: ::std::os::raw::c_long, + argp: *mut ::std::os::raw::c_void, + unused: *mut CRYPTO_EX_unused, + dup_unused: CRYPTO_EX_dup, + free_func: CRYPTO_EX_free, + ) -> ::std::os::raw::c_int; } -#[repr(C)] -#[derive(Debug, Copy, Clone, PartialEq, Eq)] -pub struct x509_trust_st { - pub trust: ::std::os::raw::c_int, - pub flags: ::std::os::raw::c_int, - pub check_trust: ::std::option::Option< - unsafe extern "C" fn( - arg1: *const X509_TRUST, - arg2: *mut X509, - arg3: ::std::os::raw::c_int, - ) -> ::std::os::raw::c_int, - >, - pub name: *mut ::std::os::raw::c_char, - pub arg1: ::std::os::raw::c_int, - pub arg2: *mut ::std::os::raw::c_void, +extern "C" { + #[link_name = "\u{1}aws_lc_0_21_0_X509_STORE_set_ex_data"] + pub fn X509_STORE_set_ex_data( + ctx: *mut X509_STORE, + idx: ::std::os::raw::c_int, + data: *mut ::std::os::raw::c_void, + ) -> ::std::os::raw::c_int; } -#[test] -fn bindgen_test_layout_x509_trust_st() { - const UNINIT: ::std::mem::MaybeUninit = ::std::mem::MaybeUninit::uninit(); - let ptr = UNINIT.as_ptr(); - assert_eq!( - ::std::mem::size_of::(), - 40usize, - concat!("Size of: ", stringify!(x509_trust_st)) - ); - assert_eq!( - ::std::mem::align_of::(), - 8usize, - concat!("Alignment of ", stringify!(x509_trust_st)) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).trust) as usize - ptr as usize }, +extern "C" { + #[link_name = "\u{1}aws_lc_0_21_0_X509_STORE_get_ex_data"] + pub fn X509_STORE_get_ex_data( + ctx: *mut X509_STORE, + idx: ::std::os::raw::c_int, + ) -> *mut ::std::os::raw::c_void; +} +extern "C" { + #[link_name = "\u{1}aws_lc_0_21_0_ASN1_digest"] + pub fn ASN1_digest( + i2d: i2d_of_void, + type_: *const EVP_MD, + data: *mut ::std::os::raw::c_char, + md: *mut ::std::os::raw::c_uchar, + len: *mut ::std::os::raw::c_uint, + ) -> ::std::os::raw::c_int; +} +extern "C" { + #[link_name = "\u{1}aws_lc_0_21_0_ASN1_item_digest"] + pub fn ASN1_item_digest( + it: *const ASN1_ITEM, + type_: *const EVP_MD, + data: *mut ::std::os::raw::c_void, + md: *mut ::std::os::raw::c_uchar, + len: *mut ::std::os::raw::c_uint, + ) -> ::std::os::raw::c_int; +} +extern "C" { + #[link_name = "\u{1}aws_lc_0_21_0_ASN1_item_verify"] + pub fn ASN1_item_verify( + it: *const ASN1_ITEM, + algor1: *const X509_ALGOR, + signature: *const ASN1_BIT_STRING, + data: *mut ::std::os::raw::c_void, + pkey: *mut EVP_PKEY, + ) -> ::std::os::raw::c_int; +} +extern "C" { + #[link_name = "\u{1}aws_lc_0_21_0_ASN1_item_sign"] + pub fn ASN1_item_sign( + it: *const ASN1_ITEM, + algor1: *mut X509_ALGOR, + algor2: *mut X509_ALGOR, + signature: *mut ASN1_BIT_STRING, + data: *mut ::std::os::raw::c_void, + pkey: *mut EVP_PKEY, + type_: *const EVP_MD, + ) -> ::std::os::raw::c_int; +} +extern "C" { + #[link_name = "\u{1}aws_lc_0_21_0_ASN1_item_sign_ctx"] + pub fn ASN1_item_sign_ctx( + it: *const ASN1_ITEM, + algor1: *mut X509_ALGOR, + algor2: *mut X509_ALGOR, + signature: *mut ASN1_BIT_STRING, + asn: *mut ::std::os::raw::c_void, + ctx: *mut EVP_MD_CTX, + ) -> ::std::os::raw::c_int; +} +extern "C" { + #[link_name = "\u{1}aws_lc_0_21_0_X509_supported_extension"] + pub fn X509_supported_extension(ex: *const X509_EXTENSION) -> ::std::os::raw::c_int; +} +extern "C" { + #[link_name = "\u{1}aws_lc_0_21_0_X509_check_ca"] + pub fn X509_check_ca(x509: *mut X509) -> ::std::os::raw::c_int; +} +extern "C" { + #[link_name = "\u{1}aws_lc_0_21_0_X509_check_issued"] + pub fn X509_check_issued(issuer: *mut X509, subject: *mut X509) -> ::std::os::raw::c_int; +} +extern "C" { + #[link_name = "\u{1}aws_lc_0_21_0_NAME_CONSTRAINTS_check"] + pub fn NAME_CONSTRAINTS_check( + x509: *mut X509, + nc: *mut NAME_CONSTRAINTS, + ) -> ::std::os::raw::c_int; +} +extern "C" { + #[link_name = "\u{1}aws_lc_0_21_0_X509_check_host"] + pub fn X509_check_host( + x509: *const X509, + chk: *const ::std::os::raw::c_char, + chklen: usize, + flags: ::std::os::raw::c_uint, + out_peername: *mut *mut ::std::os::raw::c_char, + ) -> ::std::os::raw::c_int; +} +extern "C" { + #[link_name = "\u{1}aws_lc_0_21_0_X509_check_email"] + pub fn X509_check_email( + x509: *const X509, + chk: *const ::std::os::raw::c_char, + chklen: usize, + flags: ::std::os::raw::c_uint, + ) -> ::std::os::raw::c_int; +} +extern "C" { + #[link_name = "\u{1}aws_lc_0_21_0_X509_check_ip"] + pub fn X509_check_ip( + x509: *const X509, + chk: *const u8, + chklen: usize, + flags: ::std::os::raw::c_uint, + ) -> ::std::os::raw::c_int; +} +extern "C" { + #[link_name = "\u{1}aws_lc_0_21_0_X509_check_ip_asc"] + pub fn X509_check_ip_asc( + x509: *const X509, + ipasc: *const ::std::os::raw::c_char, + flags: ::std::os::raw::c_uint, + ) -> ::std::os::raw::c_int; +} +extern "C" { + #[link_name = "\u{1}aws_lc_0_21_0_X509_STORE_CTX_get1_issuer"] + pub fn X509_STORE_CTX_get1_issuer( + out_issuer: *mut *mut X509, + ctx: *mut X509_STORE_CTX, + x509: *mut X509, + ) -> ::std::os::raw::c_int; +} +extern "C" { + #[link_name = "\u{1}aws_lc_0_21_0_X509_check_purpose"] + pub fn X509_check_purpose( + x509: *mut X509, + purpose: ::std::os::raw::c_int, + ca: ::std::os::raw::c_int, + ) -> ::std::os::raw::c_int; +} +extern "C" { + #[link_name = "\u{1}aws_lc_0_21_0_X509_check_trust"] + pub fn X509_check_trust( + x509: *mut X509, + id: ::std::os::raw::c_int, + flags: ::std::os::raw::c_int, + ) -> ::std::os::raw::c_int; +} +#[repr(C)] +#[derive(Debug, Copy, Clone, PartialEq, Eq)] +pub struct private_key_st { + pub dec_pkey: *mut EVP_PKEY, +} +#[test] +fn bindgen_test_layout_private_key_st() { + const UNINIT: ::std::mem::MaybeUninit = ::std::mem::MaybeUninit::uninit(); + let ptr = UNINIT.as_ptr(); + assert_eq!( + ::std::mem::size_of::(), + 8usize, + concat!("Size of: ", stringify!(private_key_st)) + ); + assert_eq!( + ::std::mem::align_of::(), + 8usize, + concat!("Alignment of ", stringify!(private_key_st)) + ); + assert_eq!( + unsafe { ::std::ptr::addr_of!((*ptr).dec_pkey) as usize - ptr as usize }, 0usize, concat!( "Offset of field: ", - stringify!(x509_trust_st), + stringify!(private_key_st), "::", - stringify!(trust) + stringify!(dec_pkey) ) ); +} +impl Default for private_key_st { + fn default() -> Self { + let mut s = ::std::mem::MaybeUninit::::uninit(); + unsafe { + ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); + s.assume_init() + } + } +} +#[repr(C)] +#[derive(Debug, Copy, Clone, PartialEq, Eq)] +pub struct X509_info_st { + pub x509: *mut X509, + pub crl: *mut X509_CRL, + pub x_pkey: *mut X509_PKEY, + pub enc_cipher: EVP_CIPHER_INFO, + pub enc_len: ::std::os::raw::c_int, + pub enc_data: *mut ::std::os::raw::c_char, +} +#[test] +fn bindgen_test_layout_X509_info_st() { + const UNINIT: ::std::mem::MaybeUninit = ::std::mem::MaybeUninit::uninit(); + let ptr = UNINIT.as_ptr(); assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).flags) as usize - ptr as usize }, - 4usize, + ::std::mem::size_of::(), + 64usize, + concat!("Size of: ", stringify!(X509_info_st)) + ); + assert_eq!( + ::std::mem::align_of::(), + 8usize, + concat!("Alignment of ", stringify!(X509_info_st)) + ); + assert_eq!( + unsafe { ::std::ptr::addr_of!((*ptr).x509) as usize - ptr as usize }, + 0usize, concat!( "Offset of field: ", - stringify!(x509_trust_st), + stringify!(X509_info_st), "::", - stringify!(flags) + stringify!(x509) ) ); assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).check_trust) as usize - ptr as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).crl) as usize - ptr as usize }, 8usize, concat!( "Offset of field: ", - stringify!(x509_trust_st), + stringify!(X509_info_st), "::", - stringify!(check_trust) + stringify!(crl) ) ); assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).name) as usize - ptr as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).x_pkey) as usize - ptr as usize }, 16usize, concat!( "Offset of field: ", - stringify!(x509_trust_st), + stringify!(X509_info_st), "::", - stringify!(name) + stringify!(x_pkey) ) ); assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).arg1) as usize - ptr as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).enc_cipher) as usize - ptr as usize }, 24usize, concat!( "Offset of field: ", - stringify!(x509_trust_st), + stringify!(X509_info_st), "::", - stringify!(arg1) + stringify!(enc_cipher) ) ); assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).arg2) as usize - ptr as usize }, - 32usize, + unsafe { ::std::ptr::addr_of!((*ptr).enc_len) as usize - ptr as usize }, + 48usize, concat!( "Offset of field: ", - stringify!(x509_trust_st), + stringify!(X509_info_st), "::", - stringify!(arg2) + stringify!(enc_len) + ) + ); + assert_eq!( + unsafe { ::std::ptr::addr_of!((*ptr).enc_data) as usize - ptr as usize }, + 56usize, + concat!( + "Offset of field: ", + stringify!(X509_info_st), + "::", + stringify!(enc_data) ) ); } -impl Default for x509_trust_st { +impl Default for X509_info_st { fn default() -> Self { let mut s = ::std::mem::MaybeUninit::::uninit(); unsafe { @@ -22861,609 +22658,801 @@ impl Default for x509_trust_st { } #[repr(C)] #[derive(Debug, Copy, Clone)] -pub struct stack_st_X509_TRUST { +pub struct stack_st_X509_INFO { _unused: [u8; 0], } -pub type sk_X509_TRUST_free_func = - ::std::option::Option; -pub type sk_X509_TRUST_copy_func = - ::std::option::Option *mut X509_TRUST>; -pub type sk_X509_TRUST_cmp_func = ::std::option::Option< +pub type sk_X509_INFO_free_func = ::std::option::Option; +pub type sk_X509_INFO_copy_func = + ::std::option::Option *mut X509_INFO>; +pub type sk_X509_INFO_cmp_func = ::std::option::Option< unsafe extern "C" fn( - arg1: *const *const X509_TRUST, - arg2: *const *const X509_TRUST, + arg1: *const *const X509_INFO, + arg2: *const *const X509_INFO, ) -> ::std::os::raw::c_int, >; -pub type sk_X509_TRUST_delete_if_func = ::std::option::Option< +pub type sk_X509_INFO_delete_if_func = ::std::option::Option< unsafe extern "C" fn( - arg1: *mut X509_TRUST, + arg1: *mut X509_INFO, arg2: *mut ::std::os::raw::c_void, ) -> ::std::os::raw::c_int, >; extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_X509_verify_cert_error_string"] - pub fn X509_verify_cert_error_string( - err: ::std::os::raw::c_long, - ) -> *const ::std::os::raw::c_char; + #[link_name = "\u{1}aws_lc_0_21_0_X509_INFO_free"] + pub fn X509_INFO_free(info: *mut X509_INFO); } -extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_X509_get_default_cert_area"] - pub fn X509_get_default_cert_area() -> *const ::std::os::raw::c_char; +#[repr(C)] +#[derive(Debug, Copy, Clone, PartialEq, Eq)] +pub struct v3_ext_ctx { + pub flags: ::std::os::raw::c_int, + pub issuer_cert: *const X509, + pub subject_cert: *const X509, + pub subject_req: *const X509_REQ, + pub crl: *const X509_CRL, + pub db: *const CONF, +} +#[test] +fn bindgen_test_layout_v3_ext_ctx() { + const UNINIT: ::std::mem::MaybeUninit = ::std::mem::MaybeUninit::uninit(); + let ptr = UNINIT.as_ptr(); + assert_eq!( + ::std::mem::size_of::(), + 48usize, + concat!("Size of: ", stringify!(v3_ext_ctx)) + ); + assert_eq!( + ::std::mem::align_of::(), + 8usize, + concat!("Alignment of ", stringify!(v3_ext_ctx)) + ); + assert_eq!( + unsafe { ::std::ptr::addr_of!((*ptr).flags) as usize - ptr as usize }, + 0usize, + concat!( + "Offset of field: ", + stringify!(v3_ext_ctx), + "::", + stringify!(flags) + ) + ); + assert_eq!( + unsafe { ::std::ptr::addr_of!((*ptr).issuer_cert) as usize - ptr as usize }, + 8usize, + concat!( + "Offset of field: ", + stringify!(v3_ext_ctx), + "::", + stringify!(issuer_cert) + ) + ); + assert_eq!( + unsafe { ::std::ptr::addr_of!((*ptr).subject_cert) as usize - ptr as usize }, + 16usize, + concat!( + "Offset of field: ", + stringify!(v3_ext_ctx), + "::", + stringify!(subject_cert) + ) + ); + assert_eq!( + unsafe { ::std::ptr::addr_of!((*ptr).subject_req) as usize - ptr as usize }, + 24usize, + concat!( + "Offset of field: ", + stringify!(v3_ext_ctx), + "::", + stringify!(subject_req) + ) + ); + assert_eq!( + unsafe { ::std::ptr::addr_of!((*ptr).crl) as usize - ptr as usize }, + 32usize, + concat!( + "Offset of field: ", + stringify!(v3_ext_ctx), + "::", + stringify!(crl) + ) + ); + assert_eq!( + unsafe { ::std::ptr::addr_of!((*ptr).db) as usize - ptr as usize }, + 40usize, + concat!( + "Offset of field: ", + stringify!(v3_ext_ctx), + "::", + stringify!(db) + ) + ); +} +impl Default for v3_ext_ctx { + fn default() -> Self { + let mut s = ::std::mem::MaybeUninit::::uninit(); + unsafe { + ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); + s.assume_init() + } + } } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_X509_get_default_cert_dir"] - pub fn X509_get_default_cert_dir() -> *const ::std::os::raw::c_char; + #[link_name = "\u{1}aws_lc_0_21_0_X509V3_set_ctx"] + pub fn X509V3_set_ctx( + ctx: *mut X509V3_CTX, + issuer: *const X509, + subject: *const X509, + req: *const X509_REQ, + crl: *const X509_CRL, + flags: ::std::os::raw::c_int, + ); } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_X509_get_default_cert_file"] - pub fn X509_get_default_cert_file() -> *const ::std::os::raw::c_char; + #[link_name = "\u{1}aws_lc_0_21_0_X509V3_set_nconf"] + pub fn X509V3_set_nconf(ctx: *mut X509V3_CTX, conf: *const CONF); } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_X509_get_default_cert_dir_env"] - pub fn X509_get_default_cert_dir_env() -> *const ::std::os::raw::c_char; + #[link_name = "\u{1}aws_lc_0_21_0_X509V3_EXT_nconf"] + pub fn X509V3_EXT_nconf( + conf: *const CONF, + ctx: *const X509V3_CTX, + name: *const ::std::os::raw::c_char, + value: *const ::std::os::raw::c_char, + ) -> *mut X509_EXTENSION; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_X509_get_default_cert_file_env"] - pub fn X509_get_default_cert_file_env() -> *const ::std::os::raw::c_char; + #[link_name = "\u{1}aws_lc_0_21_0_X509V3_EXT_nconf_nid"] + pub fn X509V3_EXT_nconf_nid( + conf: *const CONF, + ctx: *const X509V3_CTX, + ext_nid: ::std::os::raw::c_int, + value: *const ::std::os::raw::c_char, + ) -> *mut X509_EXTENSION; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_X509_get_default_private_dir"] - pub fn X509_get_default_private_dir() -> *const ::std::os::raw::c_char; + #[link_name = "\u{1}aws_lc_0_21_0_X509V3_EXT_conf_nid"] + pub fn X509V3_EXT_conf_nid( + conf: *mut lhash_st_CONF_VALUE, + ctx: *const X509V3_CTX, + ext_nid: ::std::os::raw::c_int, + value: *const ::std::os::raw::c_char, + ) -> *mut X509_EXTENSION; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_X509_TRUST_set"] - pub fn X509_TRUST_set( - t: *mut ::std::os::raw::c_int, - trust: ::std::os::raw::c_int, + #[link_name = "\u{1}aws_lc_0_21_0_X509V3_EXT_add_nconf_sk"] + pub fn X509V3_EXT_add_nconf_sk( + conf: *const CONF, + ctx: *const X509V3_CTX, + section: *const ::std::os::raw::c_char, + sk: *mut *mut stack_st_X509_EXTENSION, ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_X509_cmp"] - pub fn X509_cmp(a: *const X509, b: *const X509) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_0_21_0_X509V3_EXT_add_nconf"] + pub fn X509V3_EXT_add_nconf( + conf: *const CONF, + ctx: *const X509V3_CTX, + section: *const ::std::os::raw::c_char, + cert: *mut X509, + ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_X509_NAME_hash"] - pub fn X509_NAME_hash(name: *mut X509_NAME) -> u32; + #[link_name = "\u{1}aws_lc_0_21_0_X509V3_EXT_REQ_add_nconf"] + pub fn X509V3_EXT_REQ_add_nconf( + conf: *const CONF, + ctx: *const X509V3_CTX, + section: *const ::std::os::raw::c_char, + req: *mut X509_REQ, + ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_X509_NAME_hash_old"] - pub fn X509_NAME_hash_old(name: *mut X509_NAME) -> u32; + #[link_name = "\u{1}aws_lc_0_21_0_X509V3_EXT_CRL_add_nconf"] + pub fn X509V3_EXT_CRL_add_nconf( + conf: *const CONF, + ctx: *const X509V3_CTX, + section: *const ::std::os::raw::c_char, + crl: *mut X509_CRL, + ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_X509_CRL_match"] - pub fn X509_CRL_match(a: *const X509_CRL, b: *const X509_CRL) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_0_21_0_X509V3_EXT_conf"] + pub fn X509V3_EXT_conf( + conf: *mut lhash_st_CONF_VALUE, + ctx: *mut X509V3_CTX, + name: *const ::std::os::raw::c_char, + value: *const ::std::os::raw::c_char, + ) -> *mut X509_EXTENSION; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_X509_verify_cert"] - pub fn X509_verify_cert(ctx: *mut X509_STORE_CTX) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_0_21_0_i2s_ASN1_OCTET_STRING"] + pub fn i2s_ASN1_OCTET_STRING( + method: *const X509V3_EXT_METHOD, + oct: *const ASN1_OCTET_STRING, + ) -> *mut ::std::os::raw::c_char; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_X509_check_trust"] - pub fn X509_check_trust( - x: *mut X509, - id: ::std::os::raw::c_int, - flags: ::std::os::raw::c_int, - ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_0_21_0_s2i_ASN1_OCTET_STRING"] + pub fn s2i_ASN1_OCTET_STRING( + method: *const X509V3_EXT_METHOD, + ctx: *const X509V3_CTX, + str_: *const ::std::os::raw::c_char, + ) -> *mut ASN1_OCTET_STRING; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_X509_TRUST_get_count"] - pub fn X509_TRUST_get_count() -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_0_21_0_i2s_ASN1_INTEGER"] + pub fn i2s_ASN1_INTEGER( + method: *const X509V3_EXT_METHOD, + aint: *const ASN1_INTEGER, + ) -> *mut ::std::os::raw::c_char; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_X509_TRUST_get0"] - pub fn X509_TRUST_get0(idx: ::std::os::raw::c_int) -> *const X509_TRUST; + #[link_name = "\u{1}aws_lc_0_21_0_s2i_ASN1_INTEGER"] + pub fn s2i_ASN1_INTEGER( + method: *const X509V3_EXT_METHOD, + value: *const ::std::os::raw::c_char, + ) -> *mut ASN1_INTEGER; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_X509_TRUST_get_by_id"] - pub fn X509_TRUST_get_by_id(id: ::std::os::raw::c_int) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_0_21_0_i2s_ASN1_ENUMERATED"] + pub fn i2s_ASN1_ENUMERATED( + method: *const X509V3_EXT_METHOD, + aint: *const ASN1_ENUMERATED, + ) -> *mut ::std::os::raw::c_char; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_X509_TRUST_get_flags"] - pub fn X509_TRUST_get_flags(xp: *const X509_TRUST) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_0_21_0_X509V3_conf_free"] + pub fn X509V3_conf_free(val: *mut CONF_VALUE); } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_X509_TRUST_get0_name"] - pub fn X509_TRUST_get0_name(xp: *const X509_TRUST) -> *mut ::std::os::raw::c_char; + #[link_name = "\u{1}aws_lc_0_21_0_i2v_GENERAL_NAME"] + pub fn i2v_GENERAL_NAME( + method: *const X509V3_EXT_METHOD, + gen: *const GENERAL_NAME, + ret: *mut stack_st_CONF_VALUE, + ) -> *mut stack_st_CONF_VALUE; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_X509_TRUST_get_trust"] - pub fn X509_TRUST_get_trust(xp: *const X509_TRUST) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_0_21_0_i2v_GENERAL_NAMES"] + pub fn i2v_GENERAL_NAMES( + method: *const X509V3_EXT_METHOD, + gen: *const GENERAL_NAMES, + extlist: *mut stack_st_CONF_VALUE, + ) -> *mut stack_st_CONF_VALUE; } -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct stack_st_X509_OBJECT { - _unused: [u8; 0], -} -pub type sk_X509_OBJECT_free_func = - ::std::option::Option; -pub type sk_X509_OBJECT_copy_func = - ::std::option::Option *mut X509_OBJECT>; -pub type sk_X509_OBJECT_cmp_func = ::std::option::Option< - unsafe extern "C" fn( - arg1: *const *const X509_OBJECT, - arg2: *const *const X509_OBJECT, - ) -> ::std::os::raw::c_int, ->; -pub type sk_X509_OBJECT_delete_if_func = ::std::option::Option< - unsafe extern "C" fn( - arg1: *mut X509_OBJECT, - arg2: *mut ::std::os::raw::c_void, - ) -> ::std::os::raw::c_int, ->; extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_X509_STORE_set_depth"] - pub fn X509_STORE_set_depth( - store: *mut X509_STORE, - depth: ::std::os::raw::c_int, - ) -> ::std::os::raw::c_int; -} -extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_X509_STORE_CTX_set_depth"] - pub fn X509_STORE_CTX_set_depth(ctx: *mut X509_STORE_CTX, depth: ::std::os::raw::c_int); + #[link_name = "\u{1}aws_lc_0_21_0_a2i_IPADDRESS"] + pub fn a2i_IPADDRESS(ipasc: *const ::std::os::raw::c_char) -> *mut ASN1_OCTET_STRING; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_X509_LOOKUP_load_file"] - pub fn X509_LOOKUP_load_file( - lookup: *mut X509_LOOKUP, - path: *const ::std::os::raw::c_char, - type_: ::std::os::raw::c_int, - ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_0_21_0_a2i_IPADDRESS_NC"] + pub fn a2i_IPADDRESS_NC(ipasc: *const ::std::os::raw::c_char) -> *mut ASN1_OCTET_STRING; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_X509_LOOKUP_add_dir"] - pub fn X509_LOOKUP_add_dir( - lookup: *mut X509_LOOKUP, - path: *const ::std::os::raw::c_char, - type_: ::std::os::raw::c_int, - ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_0_21_0_X509_get_notBefore"] + pub fn X509_get_notBefore(x509: *const X509) -> *mut ASN1_TIME; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_X509_OBJECT_new"] - pub fn X509_OBJECT_new() -> *mut X509_OBJECT; + #[link_name = "\u{1}aws_lc_0_21_0_X509_get_notAfter"] + pub fn X509_get_notAfter(x509: *const X509) -> *mut ASN1_TIME; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_X509_OBJECT_free"] - pub fn X509_OBJECT_free(obj: *mut X509_OBJECT); + #[link_name = "\u{1}aws_lc_0_21_0_X509_set_notBefore"] + pub fn X509_set_notBefore(x509: *mut X509, tm: *const ASN1_TIME) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_X509_OBJECT_get_type"] - pub fn X509_OBJECT_get_type(obj: *const X509_OBJECT) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_0_21_0_X509_set_notAfter"] + pub fn X509_set_notAfter(x509: *mut X509, tm: *const ASN1_TIME) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_X509_OBJECT_get0_X509"] - pub fn X509_OBJECT_get0_X509(obj: *const X509_OBJECT) -> *mut X509; + #[link_name = "\u{1}aws_lc_0_21_0_X509_CRL_get_lastUpdate"] + pub fn X509_CRL_get_lastUpdate(crl: *mut X509_CRL) -> *mut ASN1_TIME; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_X509_OBJECT_get0_X509_CRL"] - pub fn X509_OBJECT_get0_X509_CRL(a: *const X509_OBJECT) -> *mut X509_CRL; + #[link_name = "\u{1}aws_lc_0_21_0_X509_CRL_get_nextUpdate"] + pub fn X509_CRL_get_nextUpdate(crl: *mut X509_CRL) -> *mut ASN1_TIME; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_X509_OBJECT_set1_X509"] - pub fn X509_OBJECT_set1_X509(a: *mut X509_OBJECT, obj: *mut X509) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_0_21_0_X509_get_serialNumber"] + pub fn X509_get_serialNumber(x509: *mut X509) -> *mut ASN1_INTEGER; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_X509_OBJECT_set1_X509_CRL"] - pub fn X509_OBJECT_set1_X509_CRL( - a: *mut X509_OBJECT, - obj: *mut X509_CRL, + #[link_name = "\u{1}aws_lc_0_21_0_X509_NAME_get_text_by_OBJ"] + pub fn X509_NAME_get_text_by_OBJ( + name: *const X509_NAME, + obj: *const ASN1_OBJECT, + buf: *mut ::std::os::raw::c_char, + len: ::std::os::raw::c_int, ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_X509_STORE_lock"] - pub fn X509_STORE_lock(v: *mut X509_STORE) -> ::std::os::raw::c_int; -} -extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_X509_STORE_unlock"] - pub fn X509_STORE_unlock(v: *mut X509_STORE) -> ::std::os::raw::c_int; -} -extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_X509_STORE_new"] - pub fn X509_STORE_new() -> *mut X509_STORE; -} -extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_X509_STORE_up_ref"] - pub fn X509_STORE_up_ref(store: *mut X509_STORE) -> ::std::os::raw::c_int; -} -extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_X509_STORE_free"] - pub fn X509_STORE_free(store: *mut X509_STORE); -} -extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_X509_STORE_get0_objects"] - pub fn X509_STORE_get0_objects(st: *mut X509_STORE) -> *mut stack_st_X509_OBJECT; -} -extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_X509_STORE_CTX_get1_certs"] - pub fn X509_STORE_CTX_get1_certs( - st: *mut X509_STORE_CTX, - nm: *mut X509_NAME, - ) -> *mut stack_st_X509; -} -extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_X509_STORE_CTX_get1_crls"] - pub fn X509_STORE_CTX_get1_crls( - st: *mut X509_STORE_CTX, - nm: *mut X509_NAME, - ) -> *mut stack_st_X509_CRL; -} -extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_X509_STORE_set_flags"] - pub fn X509_STORE_set_flags( - store: *mut X509_STORE, - flags: ::std::os::raw::c_ulong, + #[link_name = "\u{1}aws_lc_0_21_0_X509_NAME_get_text_by_NID"] + pub fn X509_NAME_get_text_by_NID( + name: *const X509_NAME, + nid: ::std::os::raw::c_int, + buf: *mut ::std::os::raw::c_char, + len: ::std::os::raw::c_int, ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_X509_STORE_set_purpose"] - pub fn X509_STORE_set_purpose( - store: *mut X509_STORE, - purpose: ::std::os::raw::c_int, - ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_0_21_0_X509_STORE_CTX_get0_parent_ctx"] + pub fn X509_STORE_CTX_get0_parent_ctx(ctx: *mut X509_STORE_CTX) -> *mut X509_STORE_CTX; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_X509_STORE_set_trust"] - pub fn X509_STORE_set_trust( - store: *mut X509_STORE, - trust: ::std::os::raw::c_int, - ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_0_21_0_X509_LOOKUP_free"] + pub fn X509_LOOKUP_free(ctx: *mut X509_LOOKUP); } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_X509_STORE_set1_param"] - pub fn X509_STORE_set1_param( - store: *mut X509_STORE, - param: *const X509_VERIFY_PARAM, - ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_0_21_0_X509_STORE_CTX_cleanup"] + pub fn X509_STORE_CTX_cleanup(ctx: *mut X509_STORE_CTX); } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_X509_STORE_get0_param"] - pub fn X509_STORE_get0_param(store: *mut X509_STORE) -> *mut X509_VERIFY_PARAM; + #[link_name = "\u{1}aws_lc_0_21_0_X509V3_add_standard_extensions"] + pub fn X509V3_add_standard_extensions() -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_X509_STORE_CTX_new"] - pub fn X509_STORE_CTX_new() -> *mut X509_STORE_CTX; + #[link_name = "\u{1}aws_lc_0_21_0_X509V3_parse_list"] + pub fn X509V3_parse_list(line: *const ::std::os::raw::c_char) -> *mut stack_st_CONF_VALUE; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_X509_STORE_CTX_get1_issuer"] - pub fn X509_STORE_CTX_get1_issuer( - issuer: *mut *mut X509, - ctx: *mut X509_STORE_CTX, - x: *mut X509, - ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_0_21_0_X509_STORE_CTX_get_chain"] + pub fn X509_STORE_CTX_get_chain(ctx: *mut X509_STORE_CTX) -> *mut stack_st_X509; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_X509_STORE_CTX_free"] - pub fn X509_STORE_CTX_free(ctx: *mut X509_STORE_CTX); + #[link_name = "\u{1}aws_lc_0_21_0_X509_STORE_CTX_trusted_stack"] + pub fn X509_STORE_CTX_trusted_stack(ctx: *mut X509_STORE_CTX, sk: *mut stack_st_X509); } +pub type X509_STORE_CTX_verify_cb = ::std::option::Option< + unsafe extern "C" fn( + arg1: ::std::os::raw::c_int, + arg2: *mut X509_STORE_CTX, + ) -> ::std::os::raw::c_int, +>; extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_X509_STORE_CTX_init"] - pub fn X509_STORE_CTX_init( + #[link_name = "\u{1}aws_lc_0_21_0_X509_STORE_CTX_set_verify_cb"] + pub fn X509_STORE_CTX_set_verify_cb( ctx: *mut X509_STORE_CTX, - store: *mut X509_STORE, - x509: *mut X509, - chain: *mut stack_st_X509, - ) -> ::std::os::raw::c_int; -} -extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_X509_STORE_CTX_set0_trusted_stack"] - pub fn X509_STORE_CTX_set0_trusted_stack(ctx: *mut X509_STORE_CTX, sk: *mut stack_st_X509); -} -extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_X509_STORE_CTX_get0_store"] - pub fn X509_STORE_CTX_get0_store(ctx: *mut X509_STORE_CTX) -> *mut X509_STORE; -} -extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_X509_STORE_CTX_get0_cert"] - pub fn X509_STORE_CTX_get0_cert(ctx: *mut X509_STORE_CTX) -> *mut X509; -} -extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_X509_STORE_add_lookup"] - pub fn X509_STORE_add_lookup( - v: *mut X509_STORE, - m: *const X509_LOOKUP_METHOD, - ) -> *mut X509_LOOKUP; + verify_cb: ::std::option::Option< + unsafe extern "C" fn( + ok: ::std::os::raw::c_int, + ctx: *mut X509_STORE_CTX, + ) -> ::std::os::raw::c_int, + >, + ); } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_X509_LOOKUP_hash_dir"] - pub fn X509_LOOKUP_hash_dir() -> *const X509_LOOKUP_METHOD; + #[link_name = "\u{1}aws_lc_0_21_0_X509_STORE_set_verify_cb"] + pub fn X509_STORE_set_verify_cb(store: *mut X509_STORE, verify_cb: X509_STORE_CTX_verify_cb); } +pub type X509_STORE_CTX_get_crl_fn = ::std::option::Option< + unsafe extern "C" fn( + ctx: *mut X509_STORE_CTX, + crl: *mut *mut X509_CRL, + x: *mut X509, + ) -> ::std::os::raw::c_int, +>; +pub type X509_STORE_CTX_check_crl_fn = ::std::option::Option< + unsafe extern "C" fn(ctx: *mut X509_STORE_CTX, crl: *mut X509_CRL) -> ::std::os::raw::c_int, +>; extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_X509_LOOKUP_file"] - pub fn X509_LOOKUP_file() -> *const X509_LOOKUP_METHOD; + #[link_name = "\u{1}aws_lc_0_21_0_X509_STORE_set_get_crl"] + pub fn X509_STORE_set_get_crl(store: *mut X509_STORE, get_crl: X509_STORE_CTX_get_crl_fn); } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_X509_STORE_add_cert"] - pub fn X509_STORE_add_cert(ctx: *mut X509_STORE, x: *mut X509) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_0_21_0_X509_STORE_set_check_crl"] + pub fn X509_STORE_set_check_crl(store: *mut X509_STORE, check_crl: X509_STORE_CTX_check_crl_fn); } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_X509_STORE_add_crl"] - pub fn X509_STORE_add_crl(ctx: *mut X509_STORE, x: *mut X509_CRL) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_0_21_0_X509_STORE_CTX_set_chain"] + pub fn X509_STORE_CTX_set_chain(ctx: *mut X509_STORE_CTX, sk: *mut stack_st_X509); } -extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_X509_LOOKUP_ctrl"] - pub fn X509_LOOKUP_ctrl( - ctx: *mut X509_LOOKUP, - cmd: ::std::os::raw::c_int, - argc: *const ::std::os::raw::c_char, - argl: ::std::os::raw::c_long, - ret: *mut *mut ::std::os::raw::c_char, - ) -> ::std::os::raw::c_int; +#[repr(C)] +#[derive(Debug, Copy, Clone, PartialEq, Eq)] +pub struct X509_algor_st { + pub algorithm: *mut ASN1_OBJECT, + pub parameter: *mut ASN1_TYPE, } -extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_X509_load_cert_file"] - pub fn X509_load_cert_file( - ctx: *mut X509_LOOKUP, - file: *const ::std::os::raw::c_char, - type_: ::std::os::raw::c_int, - ) -> ::std::os::raw::c_int; +#[test] +fn bindgen_test_layout_X509_algor_st() { + const UNINIT: ::std::mem::MaybeUninit = ::std::mem::MaybeUninit::uninit(); + let ptr = UNINIT.as_ptr(); + assert_eq!( + ::std::mem::size_of::(), + 16usize, + concat!("Size of: ", stringify!(X509_algor_st)) + ); + assert_eq!( + ::std::mem::align_of::(), + 8usize, + concat!("Alignment of ", stringify!(X509_algor_st)) + ); + assert_eq!( + unsafe { ::std::ptr::addr_of!((*ptr).algorithm) as usize - ptr as usize }, + 0usize, + concat!( + "Offset of field: ", + stringify!(X509_algor_st), + "::", + stringify!(algorithm) + ) + ); + assert_eq!( + unsafe { ::std::ptr::addr_of!((*ptr).parameter) as usize - ptr as usize }, + 8usize, + concat!( + "Offset of field: ", + stringify!(X509_algor_st), + "::", + stringify!(parameter) + ) + ); } -extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_X509_load_crl_file"] - pub fn X509_load_crl_file( - ctx: *mut X509_LOOKUP, - file: *const ::std::os::raw::c_char, - type_: ::std::os::raw::c_int, - ) -> ::std::os::raw::c_int; +impl Default for X509_algor_st { + fn default() -> Self { + let mut s = ::std::mem::MaybeUninit::::uninit(); + unsafe { + ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); + s.assume_init() + } + } } -extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_X509_load_cert_crl_file"] - pub fn X509_load_cert_crl_file( - ctx: *mut X509_LOOKUP, - file: *const ::std::os::raw::c_char, - type_: ::std::os::raw::c_int, - ) -> ::std::os::raw::c_int; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct stack_st_DIST_POINT { + _unused: [u8; 0], } -extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_X509_STORE_load_locations"] - pub fn X509_STORE_load_locations( - ctx: *mut X509_STORE, - file: *const ::std::os::raw::c_char, - dir: *const ::std::os::raw::c_char, - ) -> ::std::os::raw::c_int; +#[repr(C)] +#[derive(Debug, Copy, Clone, PartialEq, Eq)] +pub struct x509_trust_st { + pub trust: ::std::os::raw::c_int, + pub flags: ::std::os::raw::c_int, + pub check_trust: ::std::option::Option< + unsafe extern "C" fn( + arg1: *const X509_TRUST, + arg2: *mut X509, + arg3: ::std::os::raw::c_int, + ) -> ::std::os::raw::c_int, + >, + pub name: *mut ::std::os::raw::c_char, + pub arg1: ::std::os::raw::c_int, + pub arg2: *mut ::std::os::raw::c_void, } -extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_X509_STORE_set_default_paths"] - pub fn X509_STORE_set_default_paths(ctx: *mut X509_STORE) -> ::std::os::raw::c_int; +#[test] +fn bindgen_test_layout_x509_trust_st() { + const UNINIT: ::std::mem::MaybeUninit = ::std::mem::MaybeUninit::uninit(); + let ptr = UNINIT.as_ptr(); + assert_eq!( + ::std::mem::size_of::(), + 40usize, + concat!("Size of: ", stringify!(x509_trust_st)) + ); + assert_eq!( + ::std::mem::align_of::(), + 8usize, + concat!("Alignment of ", stringify!(x509_trust_st)) + ); + assert_eq!( + unsafe { ::std::ptr::addr_of!((*ptr).trust) as usize - ptr as usize }, + 0usize, + concat!( + "Offset of field: ", + stringify!(x509_trust_st), + "::", + stringify!(trust) + ) + ); + assert_eq!( + unsafe { ::std::ptr::addr_of!((*ptr).flags) as usize - ptr as usize }, + 4usize, + concat!( + "Offset of field: ", + stringify!(x509_trust_st), + "::", + stringify!(flags) + ) + ); + assert_eq!( + unsafe { ::std::ptr::addr_of!((*ptr).check_trust) as usize - ptr as usize }, + 8usize, + concat!( + "Offset of field: ", + stringify!(x509_trust_st), + "::", + stringify!(check_trust) + ) + ); + assert_eq!( + unsafe { ::std::ptr::addr_of!((*ptr).name) as usize - ptr as usize }, + 16usize, + concat!( + "Offset of field: ", + stringify!(x509_trust_st), + "::", + stringify!(name) + ) + ); + assert_eq!( + unsafe { ::std::ptr::addr_of!((*ptr).arg1) as usize - ptr as usize }, + 24usize, + concat!( + "Offset of field: ", + stringify!(x509_trust_st), + "::", + stringify!(arg1) + ) + ); + assert_eq!( + unsafe { ::std::ptr::addr_of!((*ptr).arg2) as usize - ptr as usize }, + 32usize, + concat!( + "Offset of field: ", + stringify!(x509_trust_st), + "::", + stringify!(arg2) + ) + ); } -extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_X509_STORE_CTX_get_error"] - pub fn X509_STORE_CTX_get_error(ctx: *mut X509_STORE_CTX) -> ::std::os::raw::c_int; +impl Default for x509_trust_st { + fn default() -> Self { + let mut s = ::std::mem::MaybeUninit::::uninit(); + unsafe { + ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); + s.assume_init() + } + } } -extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_X509_STORE_CTX_set_error"] - pub fn X509_STORE_CTX_set_error(ctx: *mut X509_STORE_CTX, s: ::std::os::raw::c_int); +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct stack_st_X509_TRUST { + _unused: [u8; 0], } +pub type sk_X509_TRUST_free_func = + ::std::option::Option; +pub type sk_X509_TRUST_copy_func = + ::std::option::Option *mut X509_TRUST>; +pub type sk_X509_TRUST_cmp_func = ::std::option::Option< + unsafe extern "C" fn( + arg1: *const *const X509_TRUST, + arg2: *const *const X509_TRUST, + ) -> ::std::os::raw::c_int, +>; +pub type sk_X509_TRUST_delete_if_func = ::std::option::Option< + unsafe extern "C" fn( + arg1: *mut X509_TRUST, + arg2: *mut ::std::os::raw::c_void, + ) -> ::std::os::raw::c_int, +>; extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_X509_STORE_CTX_get_error_depth"] - pub fn X509_STORE_CTX_get_error_depth(ctx: *mut X509_STORE_CTX) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_0_21_0_X509_get_default_cert_area"] + pub fn X509_get_default_cert_area() -> *const ::std::os::raw::c_char; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_X509_STORE_CTX_get_current_cert"] - pub fn X509_STORE_CTX_get_current_cert(ctx: *mut X509_STORE_CTX) -> *mut X509; + #[link_name = "\u{1}aws_lc_0_21_0_X509_get_default_cert_dir"] + pub fn X509_get_default_cert_dir() -> *const ::std::os::raw::c_char; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_X509_STORE_CTX_get0_current_issuer"] - pub fn X509_STORE_CTX_get0_current_issuer(ctx: *mut X509_STORE_CTX) -> *mut X509; + #[link_name = "\u{1}aws_lc_0_21_0_X509_get_default_cert_file"] + pub fn X509_get_default_cert_file() -> *const ::std::os::raw::c_char; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_X509_STORE_CTX_get0_current_crl"] - pub fn X509_STORE_CTX_get0_current_crl(ctx: *mut X509_STORE_CTX) -> *mut X509_CRL; + #[link_name = "\u{1}aws_lc_0_21_0_X509_get_default_cert_dir_env"] + pub fn X509_get_default_cert_dir_env() -> *const ::std::os::raw::c_char; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_X509_STORE_CTX_get0_chain"] - pub fn X509_STORE_CTX_get0_chain(ctx: *mut X509_STORE_CTX) -> *mut stack_st_X509; + #[link_name = "\u{1}aws_lc_0_21_0_X509_get_default_cert_file_env"] + pub fn X509_get_default_cert_file_env() -> *const ::std::os::raw::c_char; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_X509_STORE_CTX_get1_chain"] - pub fn X509_STORE_CTX_get1_chain(ctx: *mut X509_STORE_CTX) -> *mut stack_st_X509; + #[link_name = "\u{1}aws_lc_0_21_0_X509_get_default_private_dir"] + pub fn X509_get_default_private_dir() -> *const ::std::os::raw::c_char; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_X509_STORE_CTX_set_cert"] - pub fn X509_STORE_CTX_set_cert(c: *mut X509_STORE_CTX, x: *mut X509); + #[link_name = "\u{1}aws_lc_0_21_0_X509_TRUST_set"] + pub fn X509_TRUST_set( + t: *mut ::std::os::raw::c_int, + trust: ::std::os::raw::c_int, + ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_X509_STORE_CTX_get0_untrusted"] - pub fn X509_STORE_CTX_get0_untrusted(ctx: *mut X509_STORE_CTX) -> *mut stack_st_X509; + #[link_name = "\u{1}aws_lc_0_21_0_X509_cmp"] + pub fn X509_cmp(a: *const X509, b: *const X509) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_X509_STORE_CTX_set0_crls"] - pub fn X509_STORE_CTX_set0_crls(c: *mut X509_STORE_CTX, sk: *mut stack_st_X509_CRL); + #[link_name = "\u{1}aws_lc_0_21_0_X509_NAME_hash"] + pub fn X509_NAME_hash(name: *mut X509_NAME) -> u32; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_X509_STORE_CTX_set_purpose"] - pub fn X509_STORE_CTX_set_purpose( - ctx: *mut X509_STORE_CTX, - purpose: ::std::os::raw::c_int, - ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_0_21_0_X509_NAME_hash_old"] + pub fn X509_NAME_hash_old(name: *mut X509_NAME) -> u32; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_X509_STORE_CTX_set_trust"] - pub fn X509_STORE_CTX_set_trust( - ctx: *mut X509_STORE_CTX, - trust: ::std::os::raw::c_int, - ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_0_21_0_X509_CRL_match"] + pub fn X509_CRL_match(a: *const X509_CRL, b: *const X509_CRL) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_X509_STORE_CTX_purpose_inherit"] - pub fn X509_STORE_CTX_purpose_inherit( - ctx: *mut X509_STORE_CTX, - def_purpose: ::std::os::raw::c_int, - purpose: ::std::os::raw::c_int, - trust: ::std::os::raw::c_int, - ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_0_21_0_X509_TRUST_get_count"] + pub fn X509_TRUST_get_count() -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_X509_STORE_CTX_set_flags"] - pub fn X509_STORE_CTX_set_flags(ctx: *mut X509_STORE_CTX, flags: ::std::os::raw::c_ulong); + #[link_name = "\u{1}aws_lc_0_21_0_X509_TRUST_get0"] + pub fn X509_TRUST_get0(idx: ::std::os::raw::c_int) -> *const X509_TRUST; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_X509_STORE_CTX_set_time"] - pub fn X509_STORE_CTX_set_time( - ctx: *mut X509_STORE_CTX, - flags: ::std::os::raw::c_ulong, - t: time_t, - ); + #[link_name = "\u{1}aws_lc_0_21_0_X509_TRUST_get_by_id"] + pub fn X509_TRUST_get_by_id(id: ::std::os::raw::c_int) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_X509_STORE_CTX_set_time_posix"] - pub fn X509_STORE_CTX_set_time_posix( - ctx: *mut X509_STORE_CTX, - flags: ::std::os::raw::c_ulong, - t: i64, - ); + #[link_name = "\u{1}aws_lc_0_21_0_X509_TRUST_get_flags"] + pub fn X509_TRUST_get_flags(xp: *const X509_TRUST) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_X509_STORE_CTX_get0_param"] - pub fn X509_STORE_CTX_get0_param(ctx: *mut X509_STORE_CTX) -> *mut X509_VERIFY_PARAM; + #[link_name = "\u{1}aws_lc_0_21_0_X509_TRUST_get0_name"] + pub fn X509_TRUST_get0_name(xp: *const X509_TRUST) -> *mut ::std::os::raw::c_char; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_X509_STORE_CTX_set0_param"] - pub fn X509_STORE_CTX_set0_param(ctx: *mut X509_STORE_CTX, param: *mut X509_VERIFY_PARAM); + #[link_name = "\u{1}aws_lc_0_21_0_X509_TRUST_get_trust"] + pub fn X509_TRUST_get_trust(xp: *const X509_TRUST) -> ::std::os::raw::c_int; +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct stack_st_X509_OBJECT { + _unused: [u8; 0], } +pub type sk_X509_OBJECT_free_func = + ::std::option::Option; +pub type sk_X509_OBJECT_copy_func = + ::std::option::Option *mut X509_OBJECT>; +pub type sk_X509_OBJECT_cmp_func = ::std::option::Option< + unsafe extern "C" fn( + arg1: *const *const X509_OBJECT, + arg2: *const *const X509_OBJECT, + ) -> ::std::os::raw::c_int, +>; +pub type sk_X509_OBJECT_delete_if_func = ::std::option::Option< + unsafe extern "C" fn( + arg1: *mut X509_OBJECT, + arg2: *mut ::std::os::raw::c_void, + ) -> ::std::os::raw::c_int, +>; extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_X509_STORE_CTX_set_default"] - pub fn X509_STORE_CTX_set_default( - ctx: *mut X509_STORE_CTX, - name: *const ::std::os::raw::c_char, + #[link_name = "\u{1}aws_lc_0_21_0_X509_LOOKUP_load_file"] + pub fn X509_LOOKUP_load_file( + lookup: *mut X509_LOOKUP, + path: *const ::std::os::raw::c_char, + type_: ::std::os::raw::c_int, ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_X509_STORE_CTX_get_by_subject"] - pub fn X509_STORE_CTX_get_by_subject( - vs: *mut X509_STORE_CTX, + #[link_name = "\u{1}aws_lc_0_21_0_X509_LOOKUP_add_dir"] + pub fn X509_LOOKUP_add_dir( + lookup: *mut X509_LOOKUP, + path: *const ::std::os::raw::c_char, type_: ::std::os::raw::c_int, - name: *mut X509_NAME, - ret: *mut X509_OBJECT, ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_X509_VERIFY_PARAM_new"] - pub fn X509_VERIFY_PARAM_new() -> *mut X509_VERIFY_PARAM; + #[link_name = "\u{1}aws_lc_0_21_0_X509_OBJECT_new"] + pub fn X509_OBJECT_new() -> *mut X509_OBJECT; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_X509_VERIFY_PARAM_free"] - pub fn X509_VERIFY_PARAM_free(param: *mut X509_VERIFY_PARAM); + #[link_name = "\u{1}aws_lc_0_21_0_X509_OBJECT_free"] + pub fn X509_OBJECT_free(obj: *mut X509_OBJECT); } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_X509_VERIFY_PARAM_inherit"] - pub fn X509_VERIFY_PARAM_inherit( - to: *mut X509_VERIFY_PARAM, - from: *const X509_VERIFY_PARAM, - ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_0_21_0_X509_OBJECT_get_type"] + pub fn X509_OBJECT_get_type(obj: *const X509_OBJECT) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_X509_VERIFY_PARAM_set1"] - pub fn X509_VERIFY_PARAM_set1( - to: *mut X509_VERIFY_PARAM, - from: *const X509_VERIFY_PARAM, - ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_0_21_0_X509_OBJECT_get0_X509"] + pub fn X509_OBJECT_get0_X509(obj: *const X509_OBJECT) -> *mut X509; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_X509_VERIFY_PARAM_set_flags"] - pub fn X509_VERIFY_PARAM_set_flags( - param: *mut X509_VERIFY_PARAM, - flags: ::std::os::raw::c_ulong, - ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_0_21_0_X509_OBJECT_get0_X509_CRL"] + pub fn X509_OBJECT_get0_X509_CRL(a: *const X509_OBJECT) -> *mut X509_CRL; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_X509_VERIFY_PARAM_clear_flags"] - pub fn X509_VERIFY_PARAM_clear_flags( - param: *mut X509_VERIFY_PARAM, - flags: ::std::os::raw::c_ulong, + #[link_name = "\u{1}aws_lc_0_21_0_X509_OBJECT_set1_X509"] + pub fn X509_OBJECT_set1_X509(a: *mut X509_OBJECT, obj: *mut X509) -> ::std::os::raw::c_int; +} +extern "C" { + #[link_name = "\u{1}aws_lc_0_21_0_X509_OBJECT_set1_X509_CRL"] + pub fn X509_OBJECT_set1_X509_CRL( + a: *mut X509_OBJECT, + obj: *mut X509_CRL, ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_X509_VERIFY_PARAM_get_flags"] - pub fn X509_VERIFY_PARAM_get_flags(param: *const X509_VERIFY_PARAM) -> ::std::os::raw::c_ulong; + #[link_name = "\u{1}aws_lc_0_21_0_X509_STORE_lock"] + pub fn X509_STORE_lock(v: *mut X509_STORE) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_X509_VERIFY_PARAM_set_purpose"] - pub fn X509_VERIFY_PARAM_set_purpose( - param: *mut X509_VERIFY_PARAM, - purpose: ::std::os::raw::c_int, - ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_0_21_0_X509_STORE_unlock"] + pub fn X509_STORE_unlock(v: *mut X509_STORE) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_X509_VERIFY_PARAM_set_trust"] - pub fn X509_VERIFY_PARAM_set_trust( - param: *mut X509_VERIFY_PARAM, - trust: ::std::os::raw::c_int, - ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_0_21_0_X509_STORE_get0_objects"] + pub fn X509_STORE_get0_objects(st: *mut X509_STORE) -> *mut stack_st_X509_OBJECT; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_X509_VERIFY_PARAM_set_depth"] - pub fn X509_VERIFY_PARAM_set_depth(param: *mut X509_VERIFY_PARAM, depth: ::std::os::raw::c_int); + #[link_name = "\u{1}aws_lc_0_21_0_X509_STORE_CTX_get1_certs"] + pub fn X509_STORE_CTX_get1_certs( + st: *mut X509_STORE_CTX, + nm: *mut X509_NAME, + ) -> *mut stack_st_X509; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_X509_VERIFY_PARAM_set_time"] - pub fn X509_VERIFY_PARAM_set_time(param: *mut X509_VERIFY_PARAM, t: time_t); + #[link_name = "\u{1}aws_lc_0_21_0_X509_STORE_CTX_get1_crls"] + pub fn X509_STORE_CTX_get1_crls( + st: *mut X509_STORE_CTX, + nm: *mut X509_NAME, + ) -> *mut stack_st_X509_CRL; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_X509_VERIFY_PARAM_set_time_posix"] - pub fn X509_VERIFY_PARAM_set_time_posix(param: *mut X509_VERIFY_PARAM, t: i64); + #[link_name = "\u{1}aws_lc_0_21_0_X509_STORE_add_lookup"] + pub fn X509_STORE_add_lookup( + v: *mut X509_STORE, + m: *const X509_LOOKUP_METHOD, + ) -> *mut X509_LOOKUP; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_X509_VERIFY_PARAM_add0_policy"] - pub fn X509_VERIFY_PARAM_add0_policy( - param: *mut X509_VERIFY_PARAM, - policy: *mut ASN1_OBJECT, - ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_0_21_0_X509_LOOKUP_hash_dir"] + pub fn X509_LOOKUP_hash_dir() -> *const X509_LOOKUP_METHOD; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_X509_VERIFY_PARAM_set1_policies"] - pub fn X509_VERIFY_PARAM_set1_policies( - param: *mut X509_VERIFY_PARAM, - policies: *const stack_st_ASN1_OBJECT, - ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_0_21_0_X509_LOOKUP_file"] + pub fn X509_LOOKUP_file() -> *const X509_LOOKUP_METHOD; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_X509_VERIFY_PARAM_set1_host"] - pub fn X509_VERIFY_PARAM_set1_host( - param: *mut X509_VERIFY_PARAM, - name: *const ::std::os::raw::c_char, - namelen: usize, + #[link_name = "\u{1}aws_lc_0_21_0_X509_STORE_CTX_get_by_subject"] + pub fn X509_STORE_CTX_get_by_subject( + vs: *mut X509_STORE_CTX, + type_: ::std::os::raw::c_int, + name: *mut X509_NAME, + ret: *mut X509_OBJECT, ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_X509_VERIFY_PARAM_add1_host"] - pub fn X509_VERIFY_PARAM_add1_host( - param: *mut X509_VERIFY_PARAM, - name: *const ::std::os::raw::c_char, - name_len: usize, + #[link_name = "\u{1}aws_lc_0_21_0_X509_LOOKUP_ctrl"] + pub fn X509_LOOKUP_ctrl( + ctx: *mut X509_LOOKUP, + cmd: ::std::os::raw::c_int, + argc: *const ::std::os::raw::c_char, + argl: ::std::os::raw::c_long, + ret: *mut *mut ::std::os::raw::c_char, ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_X509_VERIFY_PARAM_set_hostflags"] - pub fn X509_VERIFY_PARAM_set_hostflags( - param: *mut X509_VERIFY_PARAM, - flags: ::std::os::raw::c_uint, - ); + #[link_name = "\u{1}aws_lc_0_21_0_X509_load_cert_file"] + pub fn X509_load_cert_file( + ctx: *mut X509_LOOKUP, + file: *const ::std::os::raw::c_char, + type_: ::std::os::raw::c_int, + ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_X509_VERIFY_PARAM_set1_email"] - pub fn X509_VERIFY_PARAM_set1_email( - param: *mut X509_VERIFY_PARAM, - email: *const ::std::os::raw::c_char, - emaillen: usize, + #[link_name = "\u{1}aws_lc_0_21_0_X509_load_crl_file"] + pub fn X509_load_crl_file( + ctx: *mut X509_LOOKUP, + file: *const ::std::os::raw::c_char, + type_: ::std::os::raw::c_int, ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_X509_VERIFY_PARAM_set1_ip"] - pub fn X509_VERIFY_PARAM_set1_ip( - param: *mut X509_VERIFY_PARAM, - ip: *const ::std::os::raw::c_uchar, - iplen: usize, + #[link_name = "\u{1}aws_lc_0_21_0_X509_load_cert_crl_file"] + pub fn X509_load_cert_crl_file( + ctx: *mut X509_LOOKUP, + file: *const ::std::os::raw::c_char, + type_: ::std::os::raw::c_int, ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_X509_VERIFY_PARAM_set1_ip_asc"] - pub fn X509_VERIFY_PARAM_set1_ip_asc( - param: *mut X509_VERIFY_PARAM, - ipasc: *const ::std::os::raw::c_char, + #[link_name = "\u{1}aws_lc_0_21_0_X509_STORE_load_locations"] + pub fn X509_STORE_load_locations( + ctx: *mut X509_STORE, + file: *const ::std::os::raw::c_char, + dir: *const ::std::os::raw::c_char, ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_X509_VERIFY_PARAM_get_depth"] - pub fn X509_VERIFY_PARAM_get_depth(param: *const X509_VERIFY_PARAM) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_0_21_0_X509_STORE_set_default_paths"] + pub fn X509_STORE_set_default_paths(ctx: *mut X509_STORE) -> ::std::os::raw::c_int; } pub type X509V3_EXT_NEW = ::std::option::Option *mut ::std::os::raw::c_void>; @@ -25405,14 +25394,6 @@ extern "C" { flags: ::std::os::raw::c_ulong, ) -> ::std::os::raw::c_int; } -extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_X509_check_purpose"] - pub fn X509_check_purpose( - x: *mut X509, - id: ::std::os::raw::c_int, - ca: ::std::os::raw::c_int, - ) -> ::std::os::raw::c_int; -} extern "C" { #[link_name = "\u{1}aws_lc_0_21_0_X509_PURPOSE_set"] pub fn X509_PURPOSE_set( From 0f81e164ba8969af34fbed0d66fe5dc2a119865d Mon Sep 17 00:00:00 2001 From: aws-lc-sys-bindings-generator Date: Wed, 28 Aug 2024 14:42:57 +0000 Subject: [PATCH 23/36] Generated bindings for x86_64-unknown-linux-musl --- .../src/x86_64_unknown_linux_musl_crypto.rs | 3591 ++++++++--------- 1 file changed, 1786 insertions(+), 1805 deletions(-) diff --git a/aws-lc-sys/src/x86_64_unknown_linux_musl_crypto.rs b/aws-lc-sys/src/x86_64_unknown_linux_musl_crypto.rs index be7948d0998..a20202e19ee 100644 --- a/aws-lc-sys/src/x86_64_unknown_linux_musl_crypto.rs +++ b/aws-lc-sys/src/x86_64_unknown_linux_musl_crypto.rs @@ -111,7 +111,7 @@ pub const AWSLC_VERSION_NAME: &[u8; 7] = b"AWS-LC\0"; pub const OPENSSL_VERSION_NUMBER: i32 = 269488255; pub const SSLEAY_VERSION_NUMBER: i32 = 269488255; pub const AWSLC_API_VERSION: i32 = 29; -pub const AWSLC_VERSION_NUMBER_STRING: &[u8; 7] = b"1.33.0\0"; +pub const AWSLC_VERSION_NUMBER_STRING: &[u8; 7] = b"1.34.2\0"; pub const AES_ENCRYPT: i32 = 1; pub const AES_DECRYPT: i32 = 0; pub const AES_MAXNR: i32 = 14; @@ -132,7 +132,7 @@ pub const CRYPTO_LOCK: i32 = 1; pub const CRYPTO_UNLOCK: i32 = 2; pub const CRYPTO_READ: i32 = 4; pub const CRYPTO_WRITE: i32 = 8; -pub const OPENSSL_VERSION_TEXT: &[u8; 42] = b"OpenSSL 1.1.1 (compatible; AWS-LC 1.33.0)\0"; +pub const OPENSSL_VERSION_TEXT: &[u8; 42] = b"OpenSSL 1.1.1 (compatible; AWS-LC 1.34.2)\0"; pub const OPENSSL_VERSION: i32 = 0; pub const OPENSSL_CFLAGS: i32 = 1; pub const OPENSSL_BUILT_ON: i32 = 2; @@ -3283,6 +3283,14 @@ pub const EVP_PKEY_DH: i32 = 28; pub const HKDF_R_OUTPUT_TOO_LARGE: i32 = 100; pub const MD5_CBLOCK: i32 = 64; pub const MD5_DIGEST_LENGTH: i32 = 16; +pub const HMAC_MD5_PRECOMPUTED_KEY_SIZE: i32 = 32; +pub const HMAC_SHA1_PRECOMPUTED_KEY_SIZE: i32 = 40; +pub const HMAC_SHA224_PRECOMPUTED_KEY_SIZE: i32 = 64; +pub const HMAC_SHA256_PRECOMPUTED_KEY_SIZE: i32 = 64; +pub const HMAC_SHA384_PRECOMPUTED_KEY_SIZE: i32 = 128; +pub const HMAC_SHA512_PRECOMPUTED_KEY_SIZE: i32 = 128; +pub const HMAC_SHA512_224_PRECOMPUTED_KEY_SIZE: i32 = 128; +pub const HMAC_SHA512_256_PRECOMPUTED_KEY_SIZE: i32 = 128; pub const HMAC_MAX_PRECOMPUTED_KEY_SIZE: i32 = 128; pub const HMAC_R_MISSING_PARAMETERS: i32 = 100; pub const HMAC_R_BUFFER_TOO_SMALL: i32 = 102; @@ -3501,63 +3509,6 @@ pub const GEN_EDIPARTY: i32 = 5; pub const GEN_URI: i32 = 6; pub const GEN_IPADD: i32 = 7; pub const GEN_RID: i32 = 8; -pub const X509_FLAG_COMPAT: i32 = 0; -pub const X509_FLAG_NO_HEADER: i32 = 1; -pub const X509_FLAG_NO_VERSION: i32 = 2; -pub const X509_FLAG_NO_SERIAL: i32 = 4; -pub const X509_FLAG_NO_SIGNAME: i32 = 8; -pub const X509_FLAG_NO_ISSUER: i32 = 16; -pub const X509_FLAG_NO_VALIDITY: i32 = 32; -pub const X509_FLAG_NO_SUBJECT: i32 = 64; -pub const X509_FLAG_NO_PUBKEY: i32 = 128; -pub const X509_FLAG_NO_EXTENSIONS: i32 = 256; -pub const X509_FLAG_NO_SIGDUMP: i32 = 512; -pub const X509_FLAG_NO_AUX: i32 = 1024; -pub const X509_FLAG_NO_ATTRIBUTES: i32 = 2048; -pub const X509_FLAG_NO_IDS: i32 = 4096; -pub const X509V3_EXT_UNKNOWN_MASK: i32 = 983040; -pub const X509V3_EXT_DEFAULT: i32 = 0; -pub const X509V3_EXT_ERROR_UNKNOWN: i32 = 65536; -pub const X509V3_EXT_PARSE_UNKNOWN: i32 = 131072; -pub const X509V3_EXT_DUMP_UNKNOWN: i32 = 196608; -pub const XN_FLAG_COMPAT: i32 = 0; -pub const XN_FLAG_SEP_MASK: i32 = 983040; -pub const XN_FLAG_SEP_COMMA_PLUS: i32 = 65536; -pub const XN_FLAG_SEP_CPLUS_SPC: i32 = 131072; -pub const XN_FLAG_SEP_SPLUS_SPC: i32 = 196608; -pub const XN_FLAG_SEP_MULTILINE: i32 = 262144; -pub const XN_FLAG_DN_REV: i32 = 1048576; -pub const XN_FLAG_FN_MASK: i32 = 6291456; -pub const XN_FLAG_FN_SN: i32 = 0; -pub const XN_FLAG_FN_LN: i32 = 2097152; -pub const XN_FLAG_FN_OID: i32 = 4194304; -pub const XN_FLAG_FN_NONE: i32 = 6291456; -pub const XN_FLAG_SPC_EQ: i32 = 8388608; -pub const XN_FLAG_DUMP_UNKNOWN_FIELDS: i32 = 16777216; -pub const XN_FLAG_FN_ALIGN: i32 = 33554432; -pub const XN_FLAG_RFC2253: i32 = 17892119; -pub const XN_FLAG_ONELINE: i32 = 8520479; -pub const XN_FLAG_MULTILINE: i32 = 44302342; -pub const X509V3_CTX_TEST: i32 = 1; -pub const X509_TRUST_DEFAULT: i32 = -1; -pub const X509_TRUST_COMPAT: i32 = 1; -pub const X509_TRUST_SSL_CLIENT: i32 = 2; -pub const X509_TRUST_SSL_SERVER: i32 = 3; -pub const X509_TRUST_EMAIL: i32 = 4; -pub const X509_TRUST_OBJECT_SIGN: i32 = 5; -pub const X509_TRUST_TSA: i32 = 8; -pub const X509_TRUST_TRUSTED: i32 = 1; -pub const X509_TRUST_REJECTED: i32 = 2; -pub const X509_TRUST_UNTRUSTED: i32 = 3; -pub const X509_LU_NONE: i32 = 0; -pub const X509_LU_X509: i32 = 1; -pub const X509_LU_CRL: i32 = 2; -pub const X509_LU_PKEY: i32 = 3; -pub const X509_L_FILE_LOAD: i32 = 1; -pub const X509_L_ADD_DIR: i32 = 2; -pub const X509_FILETYPE_PEM: i32 = 1; -pub const X509_FILETYPE_ASN1: i32 = 2; -pub const X509_FILETYPE_DEFAULT: i32 = 3; pub const X509_V_OK: i32 = 0; pub const X509_V_ERR_UNSPECIFIED: i32 = 1; pub const X509_V_ERR_UNABLE_TO_GET_ISSUER_CERT: i32 = 2; @@ -3619,6 +3570,78 @@ pub const X509_V_ERR_IP_ADDRESS_MISMATCH: i32 = 64; pub const X509_V_ERR_INVALID_CALL: i32 = 65; pub const X509_V_ERR_STORE_LOOKUP: i32 = 66; pub const X509_V_ERR_NAME_CONSTRAINTS_WITHOUT_SANS: i32 = 67; +pub const X509_CHECK_FLAG_NO_WILDCARDS: i32 = 2; +pub const X509_CHECK_FLAG_NEVER_CHECK_SUBJECT: i32 = 32; +pub const X509_PURPOSE_SSL_CLIENT: i32 = 1; +pub const X509_PURPOSE_SSL_SERVER: i32 = 2; +pub const X509_PURPOSE_NS_SSL_SERVER: i32 = 3; +pub const X509_PURPOSE_SMIME_SIGN: i32 = 4; +pub const X509_PURPOSE_SMIME_ENCRYPT: i32 = 5; +pub const X509_PURPOSE_CRL_SIGN: i32 = 6; +pub const X509_PURPOSE_ANY: i32 = 7; +pub const X509_PURPOSE_OCSP_HELPER: i32 = 8; +pub const X509_PURPOSE_TIMESTAMP_SIGN: i32 = 9; +pub const X509_TRUST_COMPAT: i32 = 1; +pub const X509_TRUST_SSL_CLIENT: i32 = 2; +pub const X509_TRUST_SSL_SERVER: i32 = 3; +pub const X509_TRUST_EMAIL: i32 = 4; +pub const X509_TRUST_OBJECT_SIGN: i32 = 5; +pub const X509_TRUST_TSA: i32 = 8; +pub const X509_FLAG_COMPAT: i32 = 0; +pub const X509_FLAG_NO_HEADER: i32 = 1; +pub const X509_FLAG_NO_VERSION: i32 = 2; +pub const X509_FLAG_NO_SERIAL: i32 = 4; +pub const X509_FLAG_NO_SIGNAME: i32 = 8; +pub const X509_FLAG_NO_ISSUER: i32 = 16; +pub const X509_FLAG_NO_VALIDITY: i32 = 32; +pub const X509_FLAG_NO_SUBJECT: i32 = 64; +pub const X509_FLAG_NO_PUBKEY: i32 = 128; +pub const X509_FLAG_NO_EXTENSIONS: i32 = 256; +pub const X509_FLAG_NO_SIGDUMP: i32 = 512; +pub const X509_FLAG_NO_AUX: i32 = 1024; +pub const X509_FLAG_NO_ATTRIBUTES: i32 = 2048; +pub const X509_FLAG_NO_IDS: i32 = 4096; +pub const X509V3_EXT_UNKNOWN_MASK: i32 = 983040; +pub const X509V3_EXT_DEFAULT: i32 = 0; +pub const X509V3_EXT_ERROR_UNKNOWN: i32 = 65536; +pub const X509V3_EXT_PARSE_UNKNOWN: i32 = 131072; +pub const X509V3_EXT_DUMP_UNKNOWN: i32 = 196608; +pub const XN_FLAG_COMPAT: i32 = 0; +pub const XN_FLAG_SEP_MASK: i32 = 983040; +pub const XN_FLAG_SEP_COMMA_PLUS: i32 = 65536; +pub const XN_FLAG_SEP_CPLUS_SPC: i32 = 131072; +pub const XN_FLAG_SEP_SPLUS_SPC: i32 = 196608; +pub const XN_FLAG_SEP_MULTILINE: i32 = 262144; +pub const XN_FLAG_DN_REV: i32 = 1048576; +pub const XN_FLAG_FN_MASK: i32 = 6291456; +pub const XN_FLAG_FN_SN: i32 = 0; +pub const XN_FLAG_FN_LN: i32 = 2097152; +pub const XN_FLAG_FN_OID: i32 = 4194304; +pub const XN_FLAG_FN_NONE: i32 = 6291456; +pub const XN_FLAG_SPC_EQ: i32 = 8388608; +pub const XN_FLAG_DUMP_UNKNOWN_FIELDS: i32 = 16777216; +pub const XN_FLAG_FN_ALIGN: i32 = 33554432; +pub const XN_FLAG_RFC2253: i32 = 17892119; +pub const XN_FLAG_ONELINE: i32 = 8520479; +pub const XN_FLAG_MULTILINE: i32 = 44302342; +pub const X509_TRUST_TRUSTED: i32 = 1; +pub const X509_TRUST_REJECTED: i32 = 2; +pub const X509_TRUST_UNTRUSTED: i32 = 3; +pub const X509V3_CTX_TEST: i32 = 1; +pub const X509_CHECK_FLAG_ALWAYS_CHECK_SUBJECT: i32 = 0; +pub const X509_CHECK_FLAG_MULTI_LABEL_WILDCARDS: i32 = 0; +pub const X509_CHECK_FLAG_SINGLE_LABEL_SUBDOMAINS: i32 = 0; +pub const X509_CHECK_FLAG_NO_PARTIAL_WILDCARDS: i32 = 0; +pub const X509_TRUST_DEFAULT: i32 = -1; +pub const X509_LU_NONE: i32 = 0; +pub const X509_LU_X509: i32 = 1; +pub const X509_LU_CRL: i32 = 2; +pub const X509_LU_PKEY: i32 = 3; +pub const X509_L_FILE_LOAD: i32 = 1; +pub const X509_L_ADD_DIR: i32 = 2; +pub const X509_FILETYPE_PEM: i32 = 1; +pub const X509_FILETYPE_ASN1: i32 = 2; +pub const X509_FILETYPE_DEFAULT: i32 = 3; pub const X509_V_FLAG_CB_ISSUER_CHECK: i32 = 1; pub const X509_V_FLAG_USE_CHECK_TIME: i32 = 2; pub const X509_V_FLAG_CRL_CHECK: i32 = 4; @@ -3650,15 +3673,6 @@ pub const NS_SSL_CA: i32 = 4; pub const NS_SMIME_CA: i32 = 2; pub const NS_OBJSIGN_CA: i32 = 1; pub const NS_ANY_CA: i32 = 7; -pub const X509_PURPOSE_SSL_CLIENT: i32 = 1; -pub const X509_PURPOSE_SSL_SERVER: i32 = 2; -pub const X509_PURPOSE_NS_SSL_SERVER: i32 = 3; -pub const X509_PURPOSE_SMIME_SIGN: i32 = 4; -pub const X509_PURPOSE_SMIME_ENCRYPT: i32 = 5; -pub const X509_PURPOSE_CRL_SIGN: i32 = 6; -pub const X509_PURPOSE_ANY: i32 = 7; -pub const X509_PURPOSE_OCSP_HELPER: i32 = 8; -pub const X509_PURPOSE_TIMESTAMP_SIGN: i32 = 9; pub const X509V3_ADD_OP_MASK: i32 = 15; pub const X509V3_ADD_DEFAULT: i32 = 0; pub const X509V3_ADD_APPEND: i32 = 1; @@ -3667,12 +3681,6 @@ pub const X509V3_ADD_REPLACE_EXISTING: i32 = 3; pub const X509V3_ADD_KEEP_EXISTING: i32 = 4; pub const X509V3_ADD_DELETE: i32 = 5; pub const X509V3_ADD_SILENT: i32 = 16; -pub const X509_CHECK_FLAG_NO_WILDCARDS: i32 = 2; -pub const X509_CHECK_FLAG_NEVER_CHECK_SUBJECT: i32 = 32; -pub const X509_CHECK_FLAG_NO_PARTIAL_WILDCARDS: i32 = 0; -pub const X509_CHECK_FLAG_ALWAYS_CHECK_SUBJECT: i32 = 0; -pub const X509_CHECK_FLAG_MULTI_LABEL_WILDCARDS: i32 = 0; -pub const X509_CHECK_FLAG_SINGLE_LABEL_SUBDOMAINS: i32 = 0; pub const X509_R_AKID_MISMATCH: i32 = 100; pub const X509_R_BAD_PKCS7_VERSION: i32 = 101; pub const X509_R_BAD_X509_FILETYPE: i32 = 102; @@ -13084,24 +13092,6 @@ extern "C" { enc: ::std::os::raw::c_int, ); } -extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_DES_decrypt3"] - pub fn DES_decrypt3( - data: *mut u32, - ks1: *const DES_key_schedule, - ks2: *const DES_key_schedule, - ks3: *const DES_key_schedule, - ); -} -extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_DES_encrypt3"] - pub fn DES_encrypt3( - data: *mut u32, - ks1: *const DES_key_schedule, - ks2: *const DES_key_schedule, - ks3: *const DES_key_schedule, - ); -} extern "C" { #[link_name = "\u{1}aws_lc_0_21_0_DH_new"] pub fn DH_new() -> *mut DH; @@ -21106,1751 +21096,1558 @@ extern "C" { idx: ::std::os::raw::c_int, ) -> *mut ASN1_TYPE; } -#[repr(C)] -#[derive(Debug, Copy, Clone, PartialEq, Eq)] -pub struct Netscape_spki_st { - pub spkac: *mut NETSCAPE_SPKAC, - pub sig_algor: *mut X509_ALGOR, - pub signature: *mut ASN1_BIT_STRING, -} -#[test] -fn bindgen_test_layout_Netscape_spki_st() { - const UNINIT: ::std::mem::MaybeUninit = ::std::mem::MaybeUninit::uninit(); - let ptr = UNINIT.as_ptr(); - assert_eq!( - ::std::mem::size_of::(), - 24usize, - concat!("Size of: ", stringify!(Netscape_spki_st)) - ); - assert_eq!( - ::std::mem::align_of::(), - 8usize, - concat!("Alignment of ", stringify!(Netscape_spki_st)) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).spkac) as usize - ptr as usize }, - 0usize, - concat!( - "Offset of field: ", - stringify!(Netscape_spki_st), - "::", - stringify!(spkac) - ) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).sig_algor) as usize - ptr as usize }, - 8usize, - concat!( - "Offset of field: ", - stringify!(Netscape_spki_st), - "::", - stringify!(sig_algor) - ) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).signature) as usize - ptr as usize }, - 16usize, - concat!( - "Offset of field: ", - stringify!(Netscape_spki_st), - "::", - stringify!(signature) - ) - ); +extern "C" { + #[link_name = "\u{1}aws_lc_0_21_0_X509_STORE_new"] + pub fn X509_STORE_new() -> *mut X509_STORE; } -impl Default for Netscape_spki_st { - fn default() -> Self { - let mut s = ::std::mem::MaybeUninit::::uninit(); - unsafe { - ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() - } - } +extern "C" { + #[link_name = "\u{1}aws_lc_0_21_0_X509_STORE_up_ref"] + pub fn X509_STORE_up_ref(store: *mut X509_STORE) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_NETSCAPE_SPKI_it"] - pub static NETSCAPE_SPKI_it: ASN1_ITEM; + #[link_name = "\u{1}aws_lc_0_21_0_X509_STORE_free"] + pub fn X509_STORE_free(store: *mut X509_STORE); } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_NETSCAPE_SPKI_new"] - pub fn NETSCAPE_SPKI_new() -> *mut NETSCAPE_SPKI; + #[link_name = "\u{1}aws_lc_0_21_0_X509_STORE_add_cert"] + pub fn X509_STORE_add_cert(store: *mut X509_STORE, x509: *mut X509) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_NETSCAPE_SPKI_free"] - pub fn NETSCAPE_SPKI_free(spki: *mut NETSCAPE_SPKI); + #[link_name = "\u{1}aws_lc_0_21_0_X509_STORE_add_crl"] + pub fn X509_STORE_add_crl(store: *mut X509_STORE, crl: *mut X509_CRL) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_d2i_NETSCAPE_SPKI"] - pub fn d2i_NETSCAPE_SPKI( - out: *mut *mut NETSCAPE_SPKI, - inp: *mut *const u8, - len: ::std::os::raw::c_long, - ) -> *mut NETSCAPE_SPKI; + #[link_name = "\u{1}aws_lc_0_21_0_X509_STORE_get0_param"] + pub fn X509_STORE_get0_param(store: *mut X509_STORE) -> *mut X509_VERIFY_PARAM; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_i2d_NETSCAPE_SPKI"] - pub fn i2d_NETSCAPE_SPKI( - spki: *const NETSCAPE_SPKI, - outp: *mut *mut u8, + #[link_name = "\u{1}aws_lc_0_21_0_X509_STORE_set1_param"] + pub fn X509_STORE_set1_param( + store: *mut X509_STORE, + param: *const X509_VERIFY_PARAM, ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_NETSCAPE_SPKI_verify"] - pub fn NETSCAPE_SPKI_verify( - spki: *mut NETSCAPE_SPKI, - pkey: *mut EVP_PKEY, + #[link_name = "\u{1}aws_lc_0_21_0_X509_STORE_set_flags"] + pub fn X509_STORE_set_flags( + store: *mut X509_STORE, + flags: ::std::os::raw::c_ulong, ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_NETSCAPE_SPKI_b64_decode"] - pub fn NETSCAPE_SPKI_b64_decode( - str_: *const ::std::os::raw::c_char, - len: ossl_ssize_t, - ) -> *mut NETSCAPE_SPKI; + #[link_name = "\u{1}aws_lc_0_21_0_X509_STORE_set_depth"] + pub fn X509_STORE_set_depth( + store: *mut X509_STORE, + depth: ::std::os::raw::c_int, + ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_NETSCAPE_SPKI_b64_encode"] - pub fn NETSCAPE_SPKI_b64_encode(spki: *mut NETSCAPE_SPKI) -> *mut ::std::os::raw::c_char; + #[link_name = "\u{1}aws_lc_0_21_0_X509_STORE_set_purpose"] + pub fn X509_STORE_set_purpose( + store: *mut X509_STORE, + purpose: ::std::os::raw::c_int, + ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_NETSCAPE_SPKI_get_pubkey"] - pub fn NETSCAPE_SPKI_get_pubkey(spki: *const NETSCAPE_SPKI) -> *mut EVP_PKEY; + #[link_name = "\u{1}aws_lc_0_21_0_X509_STORE_set_trust"] + pub fn X509_STORE_set_trust( + store: *mut X509_STORE, + trust: ::std::os::raw::c_int, + ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_NETSCAPE_SPKI_set_pubkey"] - pub fn NETSCAPE_SPKI_set_pubkey( - spki: *mut NETSCAPE_SPKI, - pkey: *mut EVP_PKEY, - ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_0_21_0_X509_STORE_CTX_new"] + pub fn X509_STORE_CTX_new() -> *mut X509_STORE_CTX; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_NETSCAPE_SPKI_sign"] - pub fn NETSCAPE_SPKI_sign( - spki: *mut NETSCAPE_SPKI, - pkey: *mut EVP_PKEY, - md: *const EVP_MD, + #[link_name = "\u{1}aws_lc_0_21_0_X509_STORE_CTX_free"] + pub fn X509_STORE_CTX_free(ctx: *mut X509_STORE_CTX); +} +extern "C" { + #[link_name = "\u{1}aws_lc_0_21_0_X509_STORE_CTX_init"] + pub fn X509_STORE_CTX_init( + ctx: *mut X509_STORE_CTX, + store: *mut X509_STORE, + x509: *mut X509, + chain: *mut stack_st_X509, ) -> ::std::os::raw::c_int; } -#[repr(C)] -#[derive(Debug, Copy, Clone, PartialEq, Eq)] -pub struct Netscape_spkac_st { - pub pubkey: *mut X509_PUBKEY, - pub challenge: *mut ASN1_IA5STRING, +extern "C" { + #[link_name = "\u{1}aws_lc_0_21_0_X509_verify_cert"] + pub fn X509_verify_cert(ctx: *mut X509_STORE_CTX) -> ::std::os::raw::c_int; } -#[test] -fn bindgen_test_layout_Netscape_spkac_st() { - const UNINIT: ::std::mem::MaybeUninit = ::std::mem::MaybeUninit::uninit(); - let ptr = UNINIT.as_ptr(); - assert_eq!( - ::std::mem::size_of::(), - 16usize, - concat!("Size of: ", stringify!(Netscape_spkac_st)) - ); - assert_eq!( - ::std::mem::align_of::(), - 8usize, - concat!("Alignment of ", stringify!(Netscape_spkac_st)) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).pubkey) as usize - ptr as usize }, - 0usize, - concat!( - "Offset of field: ", - stringify!(Netscape_spkac_st), - "::", - stringify!(pubkey) - ) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).challenge) as usize - ptr as usize }, - 8usize, - concat!( - "Offset of field: ", - stringify!(Netscape_spkac_st), - "::", - stringify!(challenge) - ) - ); +extern "C" { + #[link_name = "\u{1}aws_lc_0_21_0_X509_STORE_CTX_get0_chain"] + pub fn X509_STORE_CTX_get0_chain(ctx: *mut X509_STORE_CTX) -> *mut stack_st_X509; } -impl Default for Netscape_spkac_st { - fn default() -> Self { - let mut s = ::std::mem::MaybeUninit::::uninit(); - unsafe { - ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() - } - } +extern "C" { + #[link_name = "\u{1}aws_lc_0_21_0_X509_STORE_CTX_get1_chain"] + pub fn X509_STORE_CTX_get1_chain(ctx: *mut X509_STORE_CTX) -> *mut stack_st_X509; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_NETSCAPE_SPKAC_it"] - pub static NETSCAPE_SPKAC_it: ASN1_ITEM; + #[link_name = "\u{1}aws_lc_0_21_0_X509_STORE_CTX_set_cert"] + pub fn X509_STORE_CTX_set_cert(c: *mut X509_STORE_CTX, x: *mut X509); } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_NETSCAPE_SPKAC_new"] - pub fn NETSCAPE_SPKAC_new() -> *mut NETSCAPE_SPKAC; + #[link_name = "\u{1}aws_lc_0_21_0_X509_STORE_CTX_get_error"] + pub fn X509_STORE_CTX_get_error(ctx: *mut X509_STORE_CTX) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_NETSCAPE_SPKAC_free"] - pub fn NETSCAPE_SPKAC_free(spkac: *mut NETSCAPE_SPKAC); + #[link_name = "\u{1}aws_lc_0_21_0_X509_STORE_CTX_set_error"] + pub fn X509_STORE_CTX_set_error(ctx: *mut X509_STORE_CTX, err: ::std::os::raw::c_int); } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_d2i_NETSCAPE_SPKAC"] - pub fn d2i_NETSCAPE_SPKAC( - out: *mut *mut NETSCAPE_SPKAC, - inp: *mut *const u8, - len: ::std::os::raw::c_long, - ) -> *mut NETSCAPE_SPKAC; + #[link_name = "\u{1}aws_lc_0_21_0_X509_verify_cert_error_string"] + pub fn X509_verify_cert_error_string( + err: ::std::os::raw::c_long, + ) -> *const ::std::os::raw::c_char; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_i2d_NETSCAPE_SPKAC"] - pub fn i2d_NETSCAPE_SPKAC( - spkac: *const NETSCAPE_SPKAC, - outp: *mut *mut u8, - ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_0_21_0_X509_STORE_CTX_get_error_depth"] + pub fn X509_STORE_CTX_get_error_depth(ctx: *mut X509_STORE_CTX) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_NETSCAPE_SPKI_print"] - pub fn NETSCAPE_SPKI_print(out: *mut BIO, spki: *mut NETSCAPE_SPKI) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_0_21_0_X509_STORE_CTX_get_current_cert"] + pub fn X509_STORE_CTX_get_current_cert(ctx: *mut X509_STORE_CTX) -> *mut X509; } -#[repr(C)] -#[derive(Debug, Copy, Clone, PartialEq, Eq)] -pub struct rsa_pss_params_st { - pub hashAlgorithm: *mut X509_ALGOR, - pub maskGenAlgorithm: *mut X509_ALGOR, - pub saltLength: *mut ASN1_INTEGER, - pub trailerField: *mut ASN1_INTEGER, - pub maskHash: *mut X509_ALGOR, +extern "C" { + #[link_name = "\u{1}aws_lc_0_21_0_X509_STORE_CTX_get0_current_issuer"] + pub fn X509_STORE_CTX_get0_current_issuer(ctx: *mut X509_STORE_CTX) -> *mut X509; } -#[test] -fn bindgen_test_layout_rsa_pss_params_st() { - const UNINIT: ::std::mem::MaybeUninit = ::std::mem::MaybeUninit::uninit(); - let ptr = UNINIT.as_ptr(); - assert_eq!( - ::std::mem::size_of::(), - 40usize, - concat!("Size of: ", stringify!(rsa_pss_params_st)) - ); - assert_eq!( - ::std::mem::align_of::(), - 8usize, - concat!("Alignment of ", stringify!(rsa_pss_params_st)) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).hashAlgorithm) as usize - ptr as usize }, - 0usize, - concat!( - "Offset of field: ", - stringify!(rsa_pss_params_st), - "::", - stringify!(hashAlgorithm) - ) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).maskGenAlgorithm) as usize - ptr as usize }, - 8usize, - concat!( - "Offset of field: ", - stringify!(rsa_pss_params_st), - "::", - stringify!(maskGenAlgorithm) - ) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).saltLength) as usize - ptr as usize }, - 16usize, - concat!( - "Offset of field: ", - stringify!(rsa_pss_params_st), - "::", - stringify!(saltLength) - ) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).trailerField) as usize - ptr as usize }, - 24usize, - concat!( - "Offset of field: ", - stringify!(rsa_pss_params_st), - "::", - stringify!(trailerField) - ) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).maskHash) as usize - ptr as usize }, - 32usize, - concat!( - "Offset of field: ", - stringify!(rsa_pss_params_st), - "::", - stringify!(maskHash) - ) - ); +extern "C" { + #[link_name = "\u{1}aws_lc_0_21_0_X509_STORE_CTX_get0_current_crl"] + pub fn X509_STORE_CTX_get0_current_crl(ctx: *mut X509_STORE_CTX) -> *mut X509_CRL; } -impl Default for rsa_pss_params_st { - fn default() -> Self { - let mut s = ::std::mem::MaybeUninit::::uninit(); - unsafe { - ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() - } - } +extern "C" { + #[link_name = "\u{1}aws_lc_0_21_0_X509_STORE_CTX_get0_store"] + pub fn X509_STORE_CTX_get0_store(ctx: *mut X509_STORE_CTX) -> *mut X509_STORE; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_RSA_PSS_PARAMS_it"] - pub static RSA_PSS_PARAMS_it: ASN1_ITEM; + #[link_name = "\u{1}aws_lc_0_21_0_X509_STORE_CTX_get0_cert"] + pub fn X509_STORE_CTX_get0_cert(ctx: *mut X509_STORE_CTX) -> *mut X509; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_RSA_PSS_PARAMS_new"] - pub fn RSA_PSS_PARAMS_new() -> *mut RSA_PSS_PARAMS; + #[link_name = "\u{1}aws_lc_0_21_0_X509_STORE_CTX_get0_untrusted"] + pub fn X509_STORE_CTX_get0_untrusted(ctx: *mut X509_STORE_CTX) -> *mut stack_st_X509; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_RSA_PSS_PARAMS_free"] - pub fn RSA_PSS_PARAMS_free(params: *mut RSA_PSS_PARAMS); + #[link_name = "\u{1}aws_lc_0_21_0_X509_STORE_CTX_set0_trusted_stack"] + pub fn X509_STORE_CTX_set0_trusted_stack(ctx: *mut X509_STORE_CTX, sk: *mut stack_st_X509); } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_d2i_RSA_PSS_PARAMS"] - pub fn d2i_RSA_PSS_PARAMS( - out: *mut *mut RSA_PSS_PARAMS, - inp: *mut *const u8, - len: ::std::os::raw::c_long, - ) -> *mut RSA_PSS_PARAMS; + #[link_name = "\u{1}aws_lc_0_21_0_X509_STORE_CTX_set0_crls"] + pub fn X509_STORE_CTX_set0_crls(ctx: *mut X509_STORE_CTX, sk: *mut stack_st_X509_CRL); } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_i2d_RSA_PSS_PARAMS"] - pub fn i2d_RSA_PSS_PARAMS( - in_: *const RSA_PSS_PARAMS, - outp: *mut *mut u8, + #[link_name = "\u{1}aws_lc_0_21_0_X509_STORE_CTX_set_default"] + pub fn X509_STORE_CTX_set_default( + ctx: *mut X509_STORE_CTX, + name: *const ::std::os::raw::c_char, ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_PKCS8_PRIV_KEY_INFO_it"] - pub static PKCS8_PRIV_KEY_INFO_it: ASN1_ITEM; + #[link_name = "\u{1}aws_lc_0_21_0_X509_STORE_CTX_get0_param"] + pub fn X509_STORE_CTX_get0_param(ctx: *mut X509_STORE_CTX) -> *mut X509_VERIFY_PARAM; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_PKCS8_PRIV_KEY_INFO_new"] - pub fn PKCS8_PRIV_KEY_INFO_new() -> *mut PKCS8_PRIV_KEY_INFO; -} -extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_PKCS8_PRIV_KEY_INFO_free"] - pub fn PKCS8_PRIV_KEY_INFO_free(key: *mut PKCS8_PRIV_KEY_INFO); -} -extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_d2i_PKCS8_PRIV_KEY_INFO"] - pub fn d2i_PKCS8_PRIV_KEY_INFO( - out: *mut *mut PKCS8_PRIV_KEY_INFO, - inp: *mut *const u8, - len: ::std::os::raw::c_long, - ) -> *mut PKCS8_PRIV_KEY_INFO; -} -extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_i2d_PKCS8_PRIV_KEY_INFO"] - pub fn i2d_PKCS8_PRIV_KEY_INFO( - key: *const PKCS8_PRIV_KEY_INFO, - outp: *mut *mut u8, - ) -> ::std::os::raw::c_int; -} -extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_EVP_PKCS82PKEY"] - pub fn EVP_PKCS82PKEY(p8: *const PKCS8_PRIV_KEY_INFO) -> *mut EVP_PKEY; + #[link_name = "\u{1}aws_lc_0_21_0_X509_STORE_CTX_set0_param"] + pub fn X509_STORE_CTX_set0_param(ctx: *mut X509_STORE_CTX, param: *mut X509_VERIFY_PARAM); } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_EVP_PKEY2PKCS8"] - pub fn EVP_PKEY2PKCS8(pkey: *const EVP_PKEY) -> *mut PKCS8_PRIV_KEY_INFO; + #[link_name = "\u{1}aws_lc_0_21_0_X509_STORE_CTX_set_flags"] + pub fn X509_STORE_CTX_set_flags(ctx: *mut X509_STORE_CTX, flags: ::std::os::raw::c_ulong); } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_X509_SIG_it"] - pub static X509_SIG_it: ASN1_ITEM; + #[link_name = "\u{1}aws_lc_0_21_0_X509_STORE_CTX_set_time"] + pub fn X509_STORE_CTX_set_time( + ctx: *mut X509_STORE_CTX, + flags: ::std::os::raw::c_ulong, + t: time_t, + ); } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_X509_SIG_new"] - pub fn X509_SIG_new() -> *mut X509_SIG; + #[link_name = "\u{1}aws_lc_0_21_0_X509_STORE_CTX_set_time_posix"] + pub fn X509_STORE_CTX_set_time_posix( + ctx: *mut X509_STORE_CTX, + flags: ::std::os::raw::c_ulong, + t: i64, + ); } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_X509_SIG_free"] - pub fn X509_SIG_free(key: *mut X509_SIG); + #[link_name = "\u{1}aws_lc_0_21_0_X509_STORE_CTX_set_depth"] + pub fn X509_STORE_CTX_set_depth(ctx: *mut X509_STORE_CTX, depth: ::std::os::raw::c_int); } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_d2i_X509_SIG"] - pub fn d2i_X509_SIG( - out: *mut *mut X509_SIG, - inp: *mut *const u8, - len: ::std::os::raw::c_long, - ) -> *mut X509_SIG; + #[link_name = "\u{1}aws_lc_0_21_0_X509_STORE_CTX_set_purpose"] + pub fn X509_STORE_CTX_set_purpose( + ctx: *mut X509_STORE_CTX, + purpose: ::std::os::raw::c_int, + ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_i2d_X509_SIG"] - pub fn i2d_X509_SIG(sig: *const X509_SIG, outp: *mut *mut u8) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_0_21_0_X509_STORE_CTX_set_trust"] + pub fn X509_STORE_CTX_set_trust( + ctx: *mut X509_STORE_CTX, + trust: ::std::os::raw::c_int, + ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_X509_SIG_get0"] - pub fn X509_SIG_get0( - sig: *const X509_SIG, - out_alg: *mut *const X509_ALGOR, - out_digest: *mut *const ASN1_OCTET_STRING, - ); + #[link_name = "\u{1}aws_lc_0_21_0_X509_VERIFY_PARAM_new"] + pub fn X509_VERIFY_PARAM_new() -> *mut X509_VERIFY_PARAM; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_X509_SIG_getm"] - pub fn X509_SIG_getm( - sig: *mut X509_SIG, - out_alg: *mut *mut X509_ALGOR, - out_digest: *mut *mut ASN1_OCTET_STRING, - ); + #[link_name = "\u{1}aws_lc_0_21_0_X509_VERIFY_PARAM_free"] + pub fn X509_VERIFY_PARAM_free(param: *mut X509_VERIFY_PARAM); } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_X509_print_ex"] - pub fn X509_print_ex( - bp: *mut BIO, - x: *mut X509, - nmflag: ::std::os::raw::c_ulong, - cflag: ::std::os::raw::c_ulong, + #[link_name = "\u{1}aws_lc_0_21_0_X509_VERIFY_PARAM_inherit"] + pub fn X509_VERIFY_PARAM_inherit( + to: *mut X509_VERIFY_PARAM, + from: *const X509_VERIFY_PARAM, ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_X509_print_ex_fp"] - pub fn X509_print_ex_fp( - fp: *mut FILE, - x: *mut X509, - nmflag: ::std::os::raw::c_ulong, - cflag: ::std::os::raw::c_ulong, + #[link_name = "\u{1}aws_lc_0_21_0_X509_VERIFY_PARAM_set1"] + pub fn X509_VERIFY_PARAM_set1( + to: *mut X509_VERIFY_PARAM, + from: *const X509_VERIFY_PARAM, ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_X509_print"] - pub fn X509_print(bp: *mut BIO, x: *mut X509) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_0_21_0_X509_VERIFY_PARAM_set_flags"] + pub fn X509_VERIFY_PARAM_set_flags( + param: *mut X509_VERIFY_PARAM, + flags: ::std::os::raw::c_ulong, + ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_X509_print_fp"] - pub fn X509_print_fp(fp: *mut FILE, x: *mut X509) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_0_21_0_X509_VERIFY_PARAM_clear_flags"] + pub fn X509_VERIFY_PARAM_clear_flags( + param: *mut X509_VERIFY_PARAM, + flags: ::std::os::raw::c_ulong, + ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_X509_CRL_print"] - pub fn X509_CRL_print(bp: *mut BIO, x: *mut X509_CRL) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_0_21_0_X509_VERIFY_PARAM_get_flags"] + pub fn X509_VERIFY_PARAM_get_flags(param: *const X509_VERIFY_PARAM) -> ::std::os::raw::c_ulong; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_X509_CRL_print_fp"] - pub fn X509_CRL_print_fp(fp: *mut FILE, x: *mut X509_CRL) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_0_21_0_X509_VERIFY_PARAM_set_depth"] + pub fn X509_VERIFY_PARAM_set_depth(param: *mut X509_VERIFY_PARAM, depth: ::std::os::raw::c_int); } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_X509_REQ_print_ex"] - pub fn X509_REQ_print_ex( - bp: *mut BIO, - x: *mut X509_REQ, - nmflag: ::std::os::raw::c_ulong, - cflag: ::std::os::raw::c_ulong, - ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_0_21_0_X509_VERIFY_PARAM_get_depth"] + pub fn X509_VERIFY_PARAM_get_depth(param: *const X509_VERIFY_PARAM) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_X509_REQ_print"] - pub fn X509_REQ_print(bp: *mut BIO, req: *mut X509_REQ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_0_21_0_X509_VERIFY_PARAM_set_time"] + pub fn X509_VERIFY_PARAM_set_time(param: *mut X509_VERIFY_PARAM, t: time_t); } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_X509_REQ_print_fp"] - pub fn X509_REQ_print_fp(fp: *mut FILE, req: *mut X509_REQ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_0_21_0_X509_VERIFY_PARAM_set_time_posix"] + pub fn X509_VERIFY_PARAM_set_time_posix(param: *mut X509_VERIFY_PARAM, t: i64); } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_X509_NAME_print_ex"] - pub fn X509_NAME_print_ex( - out: *mut BIO, - nm: *const X509_NAME, - indent: ::std::os::raw::c_int, - flags: ::std::os::raw::c_ulong, + #[link_name = "\u{1}aws_lc_0_21_0_X509_VERIFY_PARAM_add0_policy"] + pub fn X509_VERIFY_PARAM_add0_policy( + param: *mut X509_VERIFY_PARAM, + policy: *mut ASN1_OBJECT, ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_X509_NAME_print"] - pub fn X509_NAME_print( - bp: *mut BIO, - name: *const X509_NAME, - obase: ::std::os::raw::c_int, + #[link_name = "\u{1}aws_lc_0_21_0_X509_VERIFY_PARAM_set1_policies"] + pub fn X509_VERIFY_PARAM_set1_policies( + param: *mut X509_VERIFY_PARAM, + policies: *const stack_st_ASN1_OBJECT, ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_X509_NAME_oneline"] - pub fn X509_NAME_oneline( - name: *const X509_NAME, - buf: *mut ::std::os::raw::c_char, - size: ::std::os::raw::c_int, - ) -> *mut ::std::os::raw::c_char; -} -extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_X509_NAME_print_ex_fp"] - pub fn X509_NAME_print_ex_fp( - fp: *mut FILE, - nm: *const X509_NAME, - indent: ::std::os::raw::c_int, - flags: ::std::os::raw::c_ulong, + #[link_name = "\u{1}aws_lc_0_21_0_X509_VERIFY_PARAM_set1_host"] + pub fn X509_VERIFY_PARAM_set1_host( + param: *mut X509_VERIFY_PARAM, + name: *const ::std::os::raw::c_char, + name_len: usize, ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_X509_signature_dump"] - pub fn X509_signature_dump( - bio: *mut BIO, - sig: *const ASN1_STRING, - indent: ::std::os::raw::c_int, + #[link_name = "\u{1}aws_lc_0_21_0_X509_VERIFY_PARAM_add1_host"] + pub fn X509_VERIFY_PARAM_add1_host( + param: *mut X509_VERIFY_PARAM, + name: *const ::std::os::raw::c_char, + name_len: usize, ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_X509_signature_print"] - pub fn X509_signature_print( - bio: *mut BIO, - alg: *const X509_ALGOR, - sig: *const ASN1_STRING, - ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_0_21_0_X509_VERIFY_PARAM_set_hostflags"] + pub fn X509_VERIFY_PARAM_set_hostflags( + param: *mut X509_VERIFY_PARAM, + flags: ::std::os::raw::c_uint, + ); } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_X509V3_EXT_print"] - pub fn X509V3_EXT_print( - out: *mut BIO, - ext: *const X509_EXTENSION, - flag: ::std::os::raw::c_ulong, - indent: ::std::os::raw::c_int, + #[link_name = "\u{1}aws_lc_0_21_0_X509_VERIFY_PARAM_set1_email"] + pub fn X509_VERIFY_PARAM_set1_email( + param: *mut X509_VERIFY_PARAM, + email: *const ::std::os::raw::c_char, + email_len: usize, ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_X509V3_EXT_print_fp"] - pub fn X509V3_EXT_print_fp( - out: *mut FILE, - ext: *const X509_EXTENSION, - flag: ::std::os::raw::c_int, - indent: ::std::os::raw::c_int, + #[link_name = "\u{1}aws_lc_0_21_0_X509_VERIFY_PARAM_set1_ip"] + pub fn X509_VERIFY_PARAM_set1_ip( + param: *mut X509_VERIFY_PARAM, + ip: *const u8, + ip_len: usize, ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_X509V3_extensions_print"] - pub fn X509V3_extensions_print( - out: *mut BIO, - title: *const ::std::os::raw::c_char, - exts: *const stack_st_X509_EXTENSION, - flag: ::std::os::raw::c_ulong, - indent: ::std::os::raw::c_int, + #[link_name = "\u{1}aws_lc_0_21_0_X509_VERIFY_PARAM_set1_ip_asc"] + pub fn X509_VERIFY_PARAM_set1_ip_asc( + param: *mut X509_VERIFY_PARAM, + ipasc: *const ::std::os::raw::c_char, ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_GENERAL_NAME_print"] - pub fn GENERAL_NAME_print(out: *mut BIO, gen: *const GENERAL_NAME) -> ::std::os::raw::c_int; -} -extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_X509_pubkey_digest"] - pub fn X509_pubkey_digest( - x509: *const X509, - md: *const EVP_MD, - out: *mut u8, - out_len: *mut ::std::os::raw::c_uint, + #[link_name = "\u{1}aws_lc_0_21_0_X509_VERIFY_PARAM_set_purpose"] + pub fn X509_VERIFY_PARAM_set_purpose( + param: *mut X509_VERIFY_PARAM, + purpose: ::std::os::raw::c_int, ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_X509_digest"] - pub fn X509_digest( - x509: *const X509, - md: *const EVP_MD, - out: *mut u8, - out_len: *mut ::std::os::raw::c_uint, + #[link_name = "\u{1}aws_lc_0_21_0_X509_VERIFY_PARAM_set_trust"] + pub fn X509_VERIFY_PARAM_set_trust( + param: *mut X509_VERIFY_PARAM, + trust: ::std::os::raw::c_int, ) -> ::std::os::raw::c_int; } -extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_X509_CRL_digest"] - pub fn X509_CRL_digest( - crl: *const X509_CRL, - md: *const EVP_MD, - out: *mut u8, - out_len: *mut ::std::os::raw::c_uint, - ) -> ::std::os::raw::c_int; -} -extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_X509_REQ_digest"] - pub fn X509_REQ_digest( - req: *const X509_REQ, - md: *const EVP_MD, - out: *mut u8, - out_len: *mut ::std::os::raw::c_uint, - ) -> ::std::os::raw::c_int; -} -extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_X509_NAME_digest"] - pub fn X509_NAME_digest( - name: *const X509_NAME, - md: *const EVP_MD, - out: *mut u8, - out_len: *mut ::std::os::raw::c_uint, - ) -> ::std::os::raw::c_int; +#[repr(C)] +#[derive(Debug, Copy, Clone, PartialEq, Eq)] +pub struct Netscape_spki_st { + pub spkac: *mut NETSCAPE_SPKAC, + pub sig_algor: *mut X509_ALGOR, + pub signature: *mut ASN1_BIT_STRING, } -extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_d2i_X509_bio"] - pub fn d2i_X509_bio(bp: *mut BIO, x509: *mut *mut X509) -> *mut X509; +#[test] +fn bindgen_test_layout_Netscape_spki_st() { + const UNINIT: ::std::mem::MaybeUninit = ::std::mem::MaybeUninit::uninit(); + let ptr = UNINIT.as_ptr(); + assert_eq!( + ::std::mem::size_of::(), + 24usize, + concat!("Size of: ", stringify!(Netscape_spki_st)) + ); + assert_eq!( + ::std::mem::align_of::(), + 8usize, + concat!("Alignment of ", stringify!(Netscape_spki_st)) + ); + assert_eq!( + unsafe { ::std::ptr::addr_of!((*ptr).spkac) as usize - ptr as usize }, + 0usize, + concat!( + "Offset of field: ", + stringify!(Netscape_spki_st), + "::", + stringify!(spkac) + ) + ); + assert_eq!( + unsafe { ::std::ptr::addr_of!((*ptr).sig_algor) as usize - ptr as usize }, + 8usize, + concat!( + "Offset of field: ", + stringify!(Netscape_spki_st), + "::", + stringify!(sig_algor) + ) + ); + assert_eq!( + unsafe { ::std::ptr::addr_of!((*ptr).signature) as usize - ptr as usize }, + 16usize, + concat!( + "Offset of field: ", + stringify!(Netscape_spki_st), + "::", + stringify!(signature) + ) + ); } -extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_d2i_X509_CRL_bio"] - pub fn d2i_X509_CRL_bio(bp: *mut BIO, crl: *mut *mut X509_CRL) -> *mut X509_CRL; +impl Default for Netscape_spki_st { + fn default() -> Self { + let mut s = ::std::mem::MaybeUninit::::uninit(); + unsafe { + ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); + s.assume_init() + } + } } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_d2i_X509_REQ_bio"] - pub fn d2i_X509_REQ_bio(bp: *mut BIO, req: *mut *mut X509_REQ) -> *mut X509_REQ; + #[link_name = "\u{1}aws_lc_0_21_0_NETSCAPE_SPKI_it"] + pub static NETSCAPE_SPKI_it: ASN1_ITEM; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_d2i_RSAPrivateKey_bio"] - pub fn d2i_RSAPrivateKey_bio(bp: *mut BIO, rsa: *mut *mut RSA) -> *mut RSA; + #[link_name = "\u{1}aws_lc_0_21_0_NETSCAPE_SPKI_new"] + pub fn NETSCAPE_SPKI_new() -> *mut NETSCAPE_SPKI; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_d2i_RSAPublicKey_bio"] - pub fn d2i_RSAPublicKey_bio(bp: *mut BIO, rsa: *mut *mut RSA) -> *mut RSA; + #[link_name = "\u{1}aws_lc_0_21_0_NETSCAPE_SPKI_free"] + pub fn NETSCAPE_SPKI_free(spki: *mut NETSCAPE_SPKI); } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_d2i_RSA_PUBKEY_bio"] - pub fn d2i_RSA_PUBKEY_bio(bp: *mut BIO, rsa: *mut *mut RSA) -> *mut RSA; + #[link_name = "\u{1}aws_lc_0_21_0_d2i_NETSCAPE_SPKI"] + pub fn d2i_NETSCAPE_SPKI( + out: *mut *mut NETSCAPE_SPKI, + inp: *mut *const u8, + len: ::std::os::raw::c_long, + ) -> *mut NETSCAPE_SPKI; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_d2i_DSA_PUBKEY_bio"] - pub fn d2i_DSA_PUBKEY_bio(bp: *mut BIO, dsa: *mut *mut DSA) -> *mut DSA; + #[link_name = "\u{1}aws_lc_0_21_0_i2d_NETSCAPE_SPKI"] + pub fn i2d_NETSCAPE_SPKI( + spki: *const NETSCAPE_SPKI, + outp: *mut *mut u8, + ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_d2i_DSAPrivateKey_bio"] - pub fn d2i_DSAPrivateKey_bio(bp: *mut BIO, dsa: *mut *mut DSA) -> *mut DSA; + #[link_name = "\u{1}aws_lc_0_21_0_NETSCAPE_SPKI_verify"] + pub fn NETSCAPE_SPKI_verify( + spki: *mut NETSCAPE_SPKI, + pkey: *mut EVP_PKEY, + ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_d2i_EC_PUBKEY_bio"] - pub fn d2i_EC_PUBKEY_bio(bp: *mut BIO, eckey: *mut *mut EC_KEY) -> *mut EC_KEY; + #[link_name = "\u{1}aws_lc_0_21_0_NETSCAPE_SPKI_b64_decode"] + pub fn NETSCAPE_SPKI_b64_decode( + str_: *const ::std::os::raw::c_char, + len: ossl_ssize_t, + ) -> *mut NETSCAPE_SPKI; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_d2i_ECPrivateKey_bio"] - pub fn d2i_ECPrivateKey_bio(bp: *mut BIO, eckey: *mut *mut EC_KEY) -> *mut EC_KEY; + #[link_name = "\u{1}aws_lc_0_21_0_NETSCAPE_SPKI_b64_encode"] + pub fn NETSCAPE_SPKI_b64_encode(spki: *mut NETSCAPE_SPKI) -> *mut ::std::os::raw::c_char; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_d2i_PKCS8_bio"] - pub fn d2i_PKCS8_bio(bp: *mut BIO, p8: *mut *mut X509_SIG) -> *mut X509_SIG; + #[link_name = "\u{1}aws_lc_0_21_0_NETSCAPE_SPKI_get_pubkey"] + pub fn NETSCAPE_SPKI_get_pubkey(spki: *const NETSCAPE_SPKI) -> *mut EVP_PKEY; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_d2i_PKCS8_PRIV_KEY_INFO_bio"] - pub fn d2i_PKCS8_PRIV_KEY_INFO_bio( - bp: *mut BIO, - p8inf: *mut *mut PKCS8_PRIV_KEY_INFO, - ) -> *mut PKCS8_PRIV_KEY_INFO; + #[link_name = "\u{1}aws_lc_0_21_0_NETSCAPE_SPKI_set_pubkey"] + pub fn NETSCAPE_SPKI_set_pubkey( + spki: *mut NETSCAPE_SPKI, + pkey: *mut EVP_PKEY, + ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_d2i_PUBKEY_bio"] - pub fn d2i_PUBKEY_bio(bp: *mut BIO, a: *mut *mut EVP_PKEY) -> *mut EVP_PKEY; + #[link_name = "\u{1}aws_lc_0_21_0_NETSCAPE_SPKI_sign"] + pub fn NETSCAPE_SPKI_sign( + spki: *mut NETSCAPE_SPKI, + pkey: *mut EVP_PKEY, + md: *const EVP_MD, + ) -> ::std::os::raw::c_int; } -extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_d2i_DHparams_bio"] - pub fn d2i_DHparams_bio(bp: *mut BIO, dh: *mut *mut DH) -> *mut DH; +#[repr(C)] +#[derive(Debug, Copy, Clone, PartialEq, Eq)] +pub struct Netscape_spkac_st { + pub pubkey: *mut X509_PUBKEY, + pub challenge: *mut ASN1_IA5STRING, } -extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_d2i_PrivateKey_bio"] - pub fn d2i_PrivateKey_bio(bp: *mut BIO, a: *mut *mut EVP_PKEY) -> *mut EVP_PKEY; +#[test] +fn bindgen_test_layout_Netscape_spkac_st() { + const UNINIT: ::std::mem::MaybeUninit = ::std::mem::MaybeUninit::uninit(); + let ptr = UNINIT.as_ptr(); + assert_eq!( + ::std::mem::size_of::(), + 16usize, + concat!("Size of: ", stringify!(Netscape_spkac_st)) + ); + assert_eq!( + ::std::mem::align_of::(), + 8usize, + concat!("Alignment of ", stringify!(Netscape_spkac_st)) + ); + assert_eq!( + unsafe { ::std::ptr::addr_of!((*ptr).pubkey) as usize - ptr as usize }, + 0usize, + concat!( + "Offset of field: ", + stringify!(Netscape_spkac_st), + "::", + stringify!(pubkey) + ) + ); + assert_eq!( + unsafe { ::std::ptr::addr_of!((*ptr).challenge) as usize - ptr as usize }, + 8usize, + concat!( + "Offset of field: ", + stringify!(Netscape_spkac_st), + "::", + stringify!(challenge) + ) + ); } -extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_i2d_X509_bio"] - pub fn i2d_X509_bio(bp: *mut BIO, x509: *mut X509) -> ::std::os::raw::c_int; +impl Default for Netscape_spkac_st { + fn default() -> Self { + let mut s = ::std::mem::MaybeUninit::::uninit(); + unsafe { + ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); + s.assume_init() + } + } } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_i2d_X509_CRL_bio"] - pub fn i2d_X509_CRL_bio(bp: *mut BIO, crl: *mut X509_CRL) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_0_21_0_NETSCAPE_SPKAC_it"] + pub static NETSCAPE_SPKAC_it: ASN1_ITEM; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_i2d_X509_REQ_bio"] - pub fn i2d_X509_REQ_bio(bp: *mut BIO, req: *mut X509_REQ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_0_21_0_NETSCAPE_SPKAC_new"] + pub fn NETSCAPE_SPKAC_new() -> *mut NETSCAPE_SPKAC; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_i2d_RSAPrivateKey_bio"] - pub fn i2d_RSAPrivateKey_bio(bp: *mut BIO, rsa: *mut RSA) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_0_21_0_NETSCAPE_SPKAC_free"] + pub fn NETSCAPE_SPKAC_free(spkac: *mut NETSCAPE_SPKAC); } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_i2d_RSAPublicKey_bio"] - pub fn i2d_RSAPublicKey_bio(bp: *mut BIO, rsa: *mut RSA) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_0_21_0_d2i_NETSCAPE_SPKAC"] + pub fn d2i_NETSCAPE_SPKAC( + out: *mut *mut NETSCAPE_SPKAC, + inp: *mut *const u8, + len: ::std::os::raw::c_long, + ) -> *mut NETSCAPE_SPKAC; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_i2d_RSA_PUBKEY_bio"] - pub fn i2d_RSA_PUBKEY_bio(bp: *mut BIO, rsa: *mut RSA) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_0_21_0_i2d_NETSCAPE_SPKAC"] + pub fn i2d_NETSCAPE_SPKAC( + spkac: *const NETSCAPE_SPKAC, + outp: *mut *mut u8, + ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_i2d_DSA_PUBKEY_bio"] - pub fn i2d_DSA_PUBKEY_bio(bp: *mut BIO, dsa: *mut DSA) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_0_21_0_NETSCAPE_SPKI_print"] + pub fn NETSCAPE_SPKI_print(out: *mut BIO, spki: *mut NETSCAPE_SPKI) -> ::std::os::raw::c_int; } -extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_i2d_DSAPrivateKey_bio"] - pub fn i2d_DSAPrivateKey_bio(bp: *mut BIO, dsa: *mut DSA) -> ::std::os::raw::c_int; +#[repr(C)] +#[derive(Debug, Copy, Clone, PartialEq, Eq)] +pub struct rsa_pss_params_st { + pub hashAlgorithm: *mut X509_ALGOR, + pub maskGenAlgorithm: *mut X509_ALGOR, + pub saltLength: *mut ASN1_INTEGER, + pub trailerField: *mut ASN1_INTEGER, + pub maskHash: *mut X509_ALGOR, } -extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_i2d_EC_PUBKEY_bio"] - pub fn i2d_EC_PUBKEY_bio(bp: *mut BIO, eckey: *mut EC_KEY) -> ::std::os::raw::c_int; -} -extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_i2d_ECPrivateKey_bio"] - pub fn i2d_ECPrivateKey_bio(bp: *mut BIO, eckey: *mut EC_KEY) -> ::std::os::raw::c_int; +#[test] +fn bindgen_test_layout_rsa_pss_params_st() { + const UNINIT: ::std::mem::MaybeUninit = ::std::mem::MaybeUninit::uninit(); + let ptr = UNINIT.as_ptr(); + assert_eq!( + ::std::mem::size_of::(), + 40usize, + concat!("Size of: ", stringify!(rsa_pss_params_st)) + ); + assert_eq!( + ::std::mem::align_of::(), + 8usize, + concat!("Alignment of ", stringify!(rsa_pss_params_st)) + ); + assert_eq!( + unsafe { ::std::ptr::addr_of!((*ptr).hashAlgorithm) as usize - ptr as usize }, + 0usize, + concat!( + "Offset of field: ", + stringify!(rsa_pss_params_st), + "::", + stringify!(hashAlgorithm) + ) + ); + assert_eq!( + unsafe { ::std::ptr::addr_of!((*ptr).maskGenAlgorithm) as usize - ptr as usize }, + 8usize, + concat!( + "Offset of field: ", + stringify!(rsa_pss_params_st), + "::", + stringify!(maskGenAlgorithm) + ) + ); + assert_eq!( + unsafe { ::std::ptr::addr_of!((*ptr).saltLength) as usize - ptr as usize }, + 16usize, + concat!( + "Offset of field: ", + stringify!(rsa_pss_params_st), + "::", + stringify!(saltLength) + ) + ); + assert_eq!( + unsafe { ::std::ptr::addr_of!((*ptr).trailerField) as usize - ptr as usize }, + 24usize, + concat!( + "Offset of field: ", + stringify!(rsa_pss_params_st), + "::", + stringify!(trailerField) + ) + ); + assert_eq!( + unsafe { ::std::ptr::addr_of!((*ptr).maskHash) as usize - ptr as usize }, + 32usize, + concat!( + "Offset of field: ", + stringify!(rsa_pss_params_st), + "::", + stringify!(maskHash) + ) + ); } -extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_i2d_PKCS8_bio"] - pub fn i2d_PKCS8_bio(bp: *mut BIO, p8: *mut X509_SIG) -> ::std::os::raw::c_int; +impl Default for rsa_pss_params_st { + fn default() -> Self { + let mut s = ::std::mem::MaybeUninit::::uninit(); + unsafe { + ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); + s.assume_init() + } + } } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_i2d_PKCS8_PRIV_KEY_INFO_bio"] - pub fn i2d_PKCS8_PRIV_KEY_INFO_bio( - bp: *mut BIO, - p8inf: *mut PKCS8_PRIV_KEY_INFO, - ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_0_21_0_RSA_PSS_PARAMS_it"] + pub static RSA_PSS_PARAMS_it: ASN1_ITEM; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_i2d_PrivateKey_bio"] - pub fn i2d_PrivateKey_bio(bp: *mut BIO, pkey: *mut EVP_PKEY) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_0_21_0_RSA_PSS_PARAMS_new"] + pub fn RSA_PSS_PARAMS_new() -> *mut RSA_PSS_PARAMS; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_i2d_PUBKEY_bio"] - pub fn i2d_PUBKEY_bio(bp: *mut BIO, pkey: *mut EVP_PKEY) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_0_21_0_RSA_PSS_PARAMS_free"] + pub fn RSA_PSS_PARAMS_free(params: *mut RSA_PSS_PARAMS); } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_i2d_DHparams_bio"] - pub fn i2d_DHparams_bio(bp: *mut BIO, dh: *const DH) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_0_21_0_d2i_RSA_PSS_PARAMS"] + pub fn d2i_RSA_PSS_PARAMS( + out: *mut *mut RSA_PSS_PARAMS, + inp: *mut *const u8, + len: ::std::os::raw::c_long, + ) -> *mut RSA_PSS_PARAMS; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_i2d_PKCS8PrivateKeyInfo_bio"] - pub fn i2d_PKCS8PrivateKeyInfo_bio(bp: *mut BIO, key: *mut EVP_PKEY) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_0_21_0_i2d_RSA_PSS_PARAMS"] + pub fn i2d_RSA_PSS_PARAMS( + in_: *const RSA_PSS_PARAMS, + outp: *mut *mut u8, + ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_d2i_X509_fp"] - pub fn d2i_X509_fp(fp: *mut FILE, x509: *mut *mut X509) -> *mut X509; + #[link_name = "\u{1}aws_lc_0_21_0_PKCS8_PRIV_KEY_INFO_it"] + pub static PKCS8_PRIV_KEY_INFO_it: ASN1_ITEM; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_d2i_X509_CRL_fp"] - pub fn d2i_X509_CRL_fp(fp: *mut FILE, crl: *mut *mut X509_CRL) -> *mut X509_CRL; + #[link_name = "\u{1}aws_lc_0_21_0_PKCS8_PRIV_KEY_INFO_new"] + pub fn PKCS8_PRIV_KEY_INFO_new() -> *mut PKCS8_PRIV_KEY_INFO; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_d2i_X509_REQ_fp"] - pub fn d2i_X509_REQ_fp(fp: *mut FILE, req: *mut *mut X509_REQ) -> *mut X509_REQ; + #[link_name = "\u{1}aws_lc_0_21_0_PKCS8_PRIV_KEY_INFO_free"] + pub fn PKCS8_PRIV_KEY_INFO_free(key: *mut PKCS8_PRIV_KEY_INFO); } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_d2i_RSAPrivateKey_fp"] - pub fn d2i_RSAPrivateKey_fp(fp: *mut FILE, rsa: *mut *mut RSA) -> *mut RSA; + #[link_name = "\u{1}aws_lc_0_21_0_d2i_PKCS8_PRIV_KEY_INFO"] + pub fn d2i_PKCS8_PRIV_KEY_INFO( + out: *mut *mut PKCS8_PRIV_KEY_INFO, + inp: *mut *const u8, + len: ::std::os::raw::c_long, + ) -> *mut PKCS8_PRIV_KEY_INFO; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_d2i_RSAPublicKey_fp"] - pub fn d2i_RSAPublicKey_fp(fp: *mut FILE, rsa: *mut *mut RSA) -> *mut RSA; + #[link_name = "\u{1}aws_lc_0_21_0_i2d_PKCS8_PRIV_KEY_INFO"] + pub fn i2d_PKCS8_PRIV_KEY_INFO( + key: *const PKCS8_PRIV_KEY_INFO, + outp: *mut *mut u8, + ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_d2i_RSA_PUBKEY_fp"] - pub fn d2i_RSA_PUBKEY_fp(fp: *mut FILE, rsa: *mut *mut RSA) -> *mut RSA; + #[link_name = "\u{1}aws_lc_0_21_0_EVP_PKCS82PKEY"] + pub fn EVP_PKCS82PKEY(p8: *const PKCS8_PRIV_KEY_INFO) -> *mut EVP_PKEY; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_d2i_DSA_PUBKEY_fp"] - pub fn d2i_DSA_PUBKEY_fp(fp: *mut FILE, dsa: *mut *mut DSA) -> *mut DSA; + #[link_name = "\u{1}aws_lc_0_21_0_EVP_PKEY2PKCS8"] + pub fn EVP_PKEY2PKCS8(pkey: *const EVP_PKEY) -> *mut PKCS8_PRIV_KEY_INFO; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_d2i_DSAPrivateKey_fp"] - pub fn d2i_DSAPrivateKey_fp(fp: *mut FILE, dsa: *mut *mut DSA) -> *mut DSA; + #[link_name = "\u{1}aws_lc_0_21_0_X509_SIG_it"] + pub static X509_SIG_it: ASN1_ITEM; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_d2i_EC_PUBKEY_fp"] - pub fn d2i_EC_PUBKEY_fp(fp: *mut FILE, eckey: *mut *mut EC_KEY) -> *mut EC_KEY; + #[link_name = "\u{1}aws_lc_0_21_0_X509_SIG_new"] + pub fn X509_SIG_new() -> *mut X509_SIG; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_d2i_ECPrivateKey_fp"] - pub fn d2i_ECPrivateKey_fp(fp: *mut FILE, eckey: *mut *mut EC_KEY) -> *mut EC_KEY; + #[link_name = "\u{1}aws_lc_0_21_0_X509_SIG_free"] + pub fn X509_SIG_free(key: *mut X509_SIG); } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_d2i_PKCS8_fp"] - pub fn d2i_PKCS8_fp(fp: *mut FILE, p8: *mut *mut X509_SIG) -> *mut X509_SIG; + #[link_name = "\u{1}aws_lc_0_21_0_d2i_X509_SIG"] + pub fn d2i_X509_SIG( + out: *mut *mut X509_SIG, + inp: *mut *const u8, + len: ::std::os::raw::c_long, + ) -> *mut X509_SIG; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_d2i_PKCS8_PRIV_KEY_INFO_fp"] - pub fn d2i_PKCS8_PRIV_KEY_INFO_fp( - fp: *mut FILE, - p8inf: *mut *mut PKCS8_PRIV_KEY_INFO, - ) -> *mut PKCS8_PRIV_KEY_INFO; + #[link_name = "\u{1}aws_lc_0_21_0_i2d_X509_SIG"] + pub fn i2d_X509_SIG(sig: *const X509_SIG, outp: *mut *mut u8) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_d2i_PrivateKey_fp"] - pub fn d2i_PrivateKey_fp(fp: *mut FILE, a: *mut *mut EVP_PKEY) -> *mut EVP_PKEY; + #[link_name = "\u{1}aws_lc_0_21_0_X509_SIG_get0"] + pub fn X509_SIG_get0( + sig: *const X509_SIG, + out_alg: *mut *const X509_ALGOR, + out_digest: *mut *const ASN1_OCTET_STRING, + ); } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_d2i_PUBKEY_fp"] - pub fn d2i_PUBKEY_fp(fp: *mut FILE, a: *mut *mut EVP_PKEY) -> *mut EVP_PKEY; + #[link_name = "\u{1}aws_lc_0_21_0_X509_SIG_getm"] + pub fn X509_SIG_getm( + sig: *mut X509_SIG, + out_alg: *mut *mut X509_ALGOR, + out_digest: *mut *mut ASN1_OCTET_STRING, + ); } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_i2d_X509_fp"] - pub fn i2d_X509_fp(fp: *mut FILE, x509: *mut X509) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_0_21_0_X509_print_ex"] + pub fn X509_print_ex( + bp: *mut BIO, + x: *mut X509, + nmflag: ::std::os::raw::c_ulong, + cflag: ::std::os::raw::c_ulong, + ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_i2d_X509_CRL_fp"] - pub fn i2d_X509_CRL_fp(fp: *mut FILE, crl: *mut X509_CRL) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_0_21_0_X509_print_ex_fp"] + pub fn X509_print_ex_fp( + fp: *mut FILE, + x: *mut X509, + nmflag: ::std::os::raw::c_ulong, + cflag: ::std::os::raw::c_ulong, + ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_i2d_X509_REQ_fp"] - pub fn i2d_X509_REQ_fp(fp: *mut FILE, req: *mut X509_REQ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_0_21_0_X509_print"] + pub fn X509_print(bp: *mut BIO, x: *mut X509) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_i2d_RSAPrivateKey_fp"] - pub fn i2d_RSAPrivateKey_fp(fp: *mut FILE, rsa: *mut RSA) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_0_21_0_X509_print_fp"] + pub fn X509_print_fp(fp: *mut FILE, x: *mut X509) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_i2d_RSAPublicKey_fp"] - pub fn i2d_RSAPublicKey_fp(fp: *mut FILE, rsa: *mut RSA) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_0_21_0_X509_CRL_print"] + pub fn X509_CRL_print(bp: *mut BIO, x: *mut X509_CRL) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_i2d_RSA_PUBKEY_fp"] - pub fn i2d_RSA_PUBKEY_fp(fp: *mut FILE, rsa: *mut RSA) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_0_21_0_X509_CRL_print_fp"] + pub fn X509_CRL_print_fp(fp: *mut FILE, x: *mut X509_CRL) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_i2d_DSA_PUBKEY_fp"] - pub fn i2d_DSA_PUBKEY_fp(fp: *mut FILE, dsa: *mut DSA) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_0_21_0_X509_REQ_print_ex"] + pub fn X509_REQ_print_ex( + bp: *mut BIO, + x: *mut X509_REQ, + nmflag: ::std::os::raw::c_ulong, + cflag: ::std::os::raw::c_ulong, + ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_i2d_DSAPrivateKey_fp"] - pub fn i2d_DSAPrivateKey_fp(fp: *mut FILE, dsa: *mut DSA) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_0_21_0_X509_REQ_print"] + pub fn X509_REQ_print(bp: *mut BIO, req: *mut X509_REQ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_i2d_EC_PUBKEY_fp"] - pub fn i2d_EC_PUBKEY_fp(fp: *mut FILE, eckey: *mut EC_KEY) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_0_21_0_X509_REQ_print_fp"] + pub fn X509_REQ_print_fp(fp: *mut FILE, req: *mut X509_REQ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_i2d_ECPrivateKey_fp"] - pub fn i2d_ECPrivateKey_fp(fp: *mut FILE, eckey: *mut EC_KEY) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_0_21_0_X509_NAME_print_ex"] + pub fn X509_NAME_print_ex( + out: *mut BIO, + nm: *const X509_NAME, + indent: ::std::os::raw::c_int, + flags: ::std::os::raw::c_ulong, + ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_i2d_PKCS8_fp"] - pub fn i2d_PKCS8_fp(fp: *mut FILE, p8: *mut X509_SIG) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_0_21_0_X509_NAME_print"] + pub fn X509_NAME_print( + bp: *mut BIO, + name: *const X509_NAME, + obase: ::std::os::raw::c_int, + ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_i2d_PKCS8_PRIV_KEY_INFO_fp"] - pub fn i2d_PKCS8_PRIV_KEY_INFO_fp( + #[link_name = "\u{1}aws_lc_0_21_0_X509_NAME_oneline"] + pub fn X509_NAME_oneline( + name: *const X509_NAME, + buf: *mut ::std::os::raw::c_char, + size: ::std::os::raw::c_int, + ) -> *mut ::std::os::raw::c_char; +} +extern "C" { + #[link_name = "\u{1}aws_lc_0_21_0_X509_NAME_print_ex_fp"] + pub fn X509_NAME_print_ex_fp( fp: *mut FILE, - p8inf: *mut PKCS8_PRIV_KEY_INFO, + nm: *const X509_NAME, + indent: ::std::os::raw::c_int, + flags: ::std::os::raw::c_ulong, ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_i2d_PKCS8PrivateKeyInfo_fp"] - pub fn i2d_PKCS8PrivateKeyInfo_fp(fp: *mut FILE, key: *mut EVP_PKEY) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_0_21_0_X509_signature_dump"] + pub fn X509_signature_dump( + bio: *mut BIO, + sig: *const ASN1_STRING, + indent: ::std::os::raw::c_int, + ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_i2d_PrivateKey_fp"] - pub fn i2d_PrivateKey_fp(fp: *mut FILE, pkey: *mut EVP_PKEY) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_0_21_0_X509_signature_print"] + pub fn X509_signature_print( + bio: *mut BIO, + alg: *const X509_ALGOR, + sig: *const ASN1_STRING, + ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_i2d_PUBKEY_fp"] - pub fn i2d_PUBKEY_fp(fp: *mut FILE, pkey: *mut EVP_PKEY) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_0_21_0_X509V3_EXT_print"] + pub fn X509V3_EXT_print( + out: *mut BIO, + ext: *const X509_EXTENSION, + flag: ::std::os::raw::c_ulong, + indent: ::std::os::raw::c_int, + ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_X509_find_by_issuer_and_serial"] - pub fn X509_find_by_issuer_and_serial( - sk: *const stack_st_X509, - name: *mut X509_NAME, - serial: *const ASN1_INTEGER, - ) -> *mut X509; + #[link_name = "\u{1}aws_lc_0_21_0_X509V3_EXT_print_fp"] + pub fn X509V3_EXT_print_fp( + out: *mut FILE, + ext: *const X509_EXTENSION, + flag: ::std::os::raw::c_int, + indent: ::std::os::raw::c_int, + ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_X509_find_by_subject"] - pub fn X509_find_by_subject(sk: *const stack_st_X509, name: *mut X509_NAME) -> *mut X509; + #[link_name = "\u{1}aws_lc_0_21_0_X509V3_extensions_print"] + pub fn X509V3_extensions_print( + out: *mut BIO, + title: *const ::std::os::raw::c_char, + exts: *const stack_st_X509_EXTENSION, + flag: ::std::os::raw::c_ulong, + indent: ::std::os::raw::c_int, + ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_X509_cmp_time"] - pub fn X509_cmp_time(s: *const ASN1_TIME, t: *const time_t) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_0_21_0_GENERAL_NAME_print"] + pub fn GENERAL_NAME_print(out: *mut BIO, gen: *const GENERAL_NAME) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_X509_cmp_time_posix"] - pub fn X509_cmp_time_posix(s: *const ASN1_TIME, t: i64) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_0_21_0_X509_pubkey_digest"] + pub fn X509_pubkey_digest( + x509: *const X509, + md: *const EVP_MD, + out: *mut u8, + out_len: *mut ::std::os::raw::c_uint, + ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_X509_cmp_current_time"] - pub fn X509_cmp_current_time(s: *const ASN1_TIME) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_0_21_0_X509_digest"] + pub fn X509_digest( + x509: *const X509, + md: *const EVP_MD, + out: *mut u8, + out_len: *mut ::std::os::raw::c_uint, + ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_X509_time_adj"] - pub fn X509_time_adj( - s: *mut ASN1_TIME, - offset_sec: ::std::os::raw::c_long, - t: *const time_t, - ) -> *mut ASN1_TIME; + #[link_name = "\u{1}aws_lc_0_21_0_X509_CRL_digest"] + pub fn X509_CRL_digest( + crl: *const X509_CRL, + md: *const EVP_MD, + out: *mut u8, + out_len: *mut ::std::os::raw::c_uint, + ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_X509_time_adj_ex"] - pub fn X509_time_adj_ex( - s: *mut ASN1_TIME, - offset_day: ::std::os::raw::c_int, - offset_sec: ::std::os::raw::c_long, - t: *const time_t, - ) -> *mut ASN1_TIME; + #[link_name = "\u{1}aws_lc_0_21_0_X509_REQ_digest"] + pub fn X509_REQ_digest( + req: *const X509_REQ, + md: *const EVP_MD, + out: *mut u8, + out_len: *mut ::std::os::raw::c_uint, + ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_X509_gmtime_adj"] - pub fn X509_gmtime_adj(s: *mut ASN1_TIME, offset_sec: ::std::os::raw::c_long) - -> *mut ASN1_TIME; + #[link_name = "\u{1}aws_lc_0_21_0_X509_NAME_digest"] + pub fn X509_NAME_digest( + name: *const X509_NAME, + md: *const EVP_MD, + out: *mut u8, + out_len: *mut ::std::os::raw::c_uint, + ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_X509_issuer_name_cmp"] - pub fn X509_issuer_name_cmp(a: *const X509, b: *const X509) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_0_21_0_d2i_X509_bio"] + pub fn d2i_X509_bio(bp: *mut BIO, x509: *mut *mut X509) -> *mut X509; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_X509_subject_name_cmp"] - pub fn X509_subject_name_cmp(a: *const X509, b: *const X509) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_0_21_0_d2i_X509_CRL_bio"] + pub fn d2i_X509_CRL_bio(bp: *mut BIO, crl: *mut *mut X509_CRL) -> *mut X509_CRL; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_X509_CRL_cmp"] - pub fn X509_CRL_cmp(a: *const X509_CRL, b: *const X509_CRL) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_0_21_0_d2i_X509_REQ_bio"] + pub fn d2i_X509_REQ_bio(bp: *mut BIO, req: *mut *mut X509_REQ) -> *mut X509_REQ; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_X509_issuer_name_hash"] - pub fn X509_issuer_name_hash(x509: *mut X509) -> u32; + #[link_name = "\u{1}aws_lc_0_21_0_d2i_RSAPrivateKey_bio"] + pub fn d2i_RSAPrivateKey_bio(bp: *mut BIO, rsa: *mut *mut RSA) -> *mut RSA; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_X509_subject_name_hash"] - pub fn X509_subject_name_hash(x509: *mut X509) -> u32; + #[link_name = "\u{1}aws_lc_0_21_0_d2i_RSAPublicKey_bio"] + pub fn d2i_RSAPublicKey_bio(bp: *mut BIO, rsa: *mut *mut RSA) -> *mut RSA; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_X509_issuer_name_hash_old"] - pub fn X509_issuer_name_hash_old(x509: *mut X509) -> u32; + #[link_name = "\u{1}aws_lc_0_21_0_d2i_RSA_PUBKEY_bio"] + pub fn d2i_RSA_PUBKEY_bio(bp: *mut BIO, rsa: *mut *mut RSA) -> *mut RSA; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_X509_subject_name_hash_old"] - pub fn X509_subject_name_hash_old(x509: *mut X509) -> u32; + #[link_name = "\u{1}aws_lc_0_21_0_d2i_DSA_PUBKEY_bio"] + pub fn d2i_DSA_PUBKEY_bio(bp: *mut BIO, dsa: *mut *mut DSA) -> *mut DSA; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_X509_get_ex_new_index"] - pub fn X509_get_ex_new_index( - argl: ::std::os::raw::c_long, - argp: *mut ::std::os::raw::c_void, - unused: *mut CRYPTO_EX_unused, - dup_unused: CRYPTO_EX_dup, - free_func: CRYPTO_EX_free, - ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_0_21_0_d2i_DSAPrivateKey_bio"] + pub fn d2i_DSAPrivateKey_bio(bp: *mut BIO, dsa: *mut *mut DSA) -> *mut DSA; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_X509_set_ex_data"] - pub fn X509_set_ex_data( - r: *mut X509, - idx: ::std::os::raw::c_int, - arg: *mut ::std::os::raw::c_void, - ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_0_21_0_d2i_EC_PUBKEY_bio"] + pub fn d2i_EC_PUBKEY_bio(bp: *mut BIO, eckey: *mut *mut EC_KEY) -> *mut EC_KEY; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_X509_get_ex_data"] - pub fn X509_get_ex_data( - r: *mut X509, - idx: ::std::os::raw::c_int, - ) -> *mut ::std::os::raw::c_void; + #[link_name = "\u{1}aws_lc_0_21_0_d2i_ECPrivateKey_bio"] + pub fn d2i_ECPrivateKey_bio(bp: *mut BIO, eckey: *mut *mut EC_KEY) -> *mut EC_KEY; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_X509_STORE_CTX_get_ex_new_index"] - pub fn X509_STORE_CTX_get_ex_new_index( - argl: ::std::os::raw::c_long, - argp: *mut ::std::os::raw::c_void, - unused: *mut CRYPTO_EX_unused, - dup_unused: CRYPTO_EX_dup, - free_func: CRYPTO_EX_free, - ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_0_21_0_d2i_PKCS8_bio"] + pub fn d2i_PKCS8_bio(bp: *mut BIO, p8: *mut *mut X509_SIG) -> *mut X509_SIG; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_X509_STORE_CTX_set_ex_data"] - pub fn X509_STORE_CTX_set_ex_data( - ctx: *mut X509_STORE_CTX, - idx: ::std::os::raw::c_int, - data: *mut ::std::os::raw::c_void, - ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_0_21_0_d2i_PKCS8_PRIV_KEY_INFO_bio"] + pub fn d2i_PKCS8_PRIV_KEY_INFO_bio( + bp: *mut BIO, + p8inf: *mut *mut PKCS8_PRIV_KEY_INFO, + ) -> *mut PKCS8_PRIV_KEY_INFO; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_X509_STORE_CTX_get_ex_data"] - pub fn X509_STORE_CTX_get_ex_data( - ctx: *mut X509_STORE_CTX, - idx: ::std::os::raw::c_int, - ) -> *mut ::std::os::raw::c_void; + #[link_name = "\u{1}aws_lc_0_21_0_d2i_PUBKEY_bio"] + pub fn d2i_PUBKEY_bio(bp: *mut BIO, a: *mut *mut EVP_PKEY) -> *mut EVP_PKEY; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_X509_STORE_get_ex_new_index"] - pub fn X509_STORE_get_ex_new_index( - argl: ::std::os::raw::c_long, - argp: *mut ::std::os::raw::c_void, - unused: *mut CRYPTO_EX_unused, - dup_unused: CRYPTO_EX_dup, - free_func: CRYPTO_EX_free, - ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_0_21_0_d2i_DHparams_bio"] + pub fn d2i_DHparams_bio(bp: *mut BIO, dh: *mut *mut DH) -> *mut DH; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_X509_STORE_set_ex_data"] - pub fn X509_STORE_set_ex_data( - ctx: *mut X509_STORE, - idx: ::std::os::raw::c_int, - data: *mut ::std::os::raw::c_void, - ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_0_21_0_d2i_PrivateKey_bio"] + pub fn d2i_PrivateKey_bio(bp: *mut BIO, a: *mut *mut EVP_PKEY) -> *mut EVP_PKEY; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_X509_STORE_get_ex_data"] - pub fn X509_STORE_get_ex_data( - ctx: *mut X509_STORE, - idx: ::std::os::raw::c_int, - ) -> *mut ::std::os::raw::c_void; + #[link_name = "\u{1}aws_lc_0_21_0_i2d_X509_bio"] + pub fn i2d_X509_bio(bp: *mut BIO, x509: *mut X509) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_ASN1_digest"] - pub fn ASN1_digest( - i2d: i2d_of_void, - type_: *const EVP_MD, - data: *mut ::std::os::raw::c_char, - md: *mut ::std::os::raw::c_uchar, - len: *mut ::std::os::raw::c_uint, - ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_0_21_0_i2d_X509_CRL_bio"] + pub fn i2d_X509_CRL_bio(bp: *mut BIO, crl: *mut X509_CRL) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_ASN1_item_digest"] - pub fn ASN1_item_digest( - it: *const ASN1_ITEM, - type_: *const EVP_MD, - data: *mut ::std::os::raw::c_void, - md: *mut ::std::os::raw::c_uchar, - len: *mut ::std::os::raw::c_uint, - ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_0_21_0_i2d_X509_REQ_bio"] + pub fn i2d_X509_REQ_bio(bp: *mut BIO, req: *mut X509_REQ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_ASN1_item_verify"] - pub fn ASN1_item_verify( - it: *const ASN1_ITEM, - algor1: *const X509_ALGOR, - signature: *const ASN1_BIT_STRING, - data: *mut ::std::os::raw::c_void, - pkey: *mut EVP_PKEY, - ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_0_21_0_i2d_RSAPrivateKey_bio"] + pub fn i2d_RSAPrivateKey_bio(bp: *mut BIO, rsa: *mut RSA) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_ASN1_item_sign"] - pub fn ASN1_item_sign( - it: *const ASN1_ITEM, - algor1: *mut X509_ALGOR, - algor2: *mut X509_ALGOR, - signature: *mut ASN1_BIT_STRING, - data: *mut ::std::os::raw::c_void, - pkey: *mut EVP_PKEY, - type_: *const EVP_MD, - ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_0_21_0_i2d_RSAPublicKey_bio"] + pub fn i2d_RSAPublicKey_bio(bp: *mut BIO, rsa: *mut RSA) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_ASN1_item_sign_ctx"] - pub fn ASN1_item_sign_ctx( - it: *const ASN1_ITEM, - algor1: *mut X509_ALGOR, - algor2: *mut X509_ALGOR, - signature: *mut ASN1_BIT_STRING, - asn: *mut ::std::os::raw::c_void, - ctx: *mut EVP_MD_CTX, - ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_0_21_0_i2d_RSA_PUBKEY_bio"] + pub fn i2d_RSA_PUBKEY_bio(bp: *mut BIO, rsa: *mut RSA) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_X509_supported_extension"] - pub fn X509_supported_extension(ex: *const X509_EXTENSION) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_0_21_0_i2d_DSA_PUBKEY_bio"] + pub fn i2d_DSA_PUBKEY_bio(bp: *mut BIO, dsa: *mut DSA) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_X509_check_ca"] - pub fn X509_check_ca(x509: *mut X509) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_0_21_0_i2d_DSAPrivateKey_bio"] + pub fn i2d_DSAPrivateKey_bio(bp: *mut BIO, dsa: *mut DSA) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_X509_check_issued"] - pub fn X509_check_issued(issuer: *mut X509, subject: *mut X509) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_0_21_0_i2d_EC_PUBKEY_bio"] + pub fn i2d_EC_PUBKEY_bio(bp: *mut BIO, eckey: *mut EC_KEY) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_NAME_CONSTRAINTS_check"] - pub fn NAME_CONSTRAINTS_check( - x509: *mut X509, - nc: *mut NAME_CONSTRAINTS, - ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_0_21_0_i2d_ECPrivateKey_bio"] + pub fn i2d_ECPrivateKey_bio(bp: *mut BIO, eckey: *mut EC_KEY) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_X509_check_host"] - pub fn X509_check_host( - x509: *const X509, - chk: *const ::std::os::raw::c_char, - chklen: usize, - flags: ::std::os::raw::c_uint, - out_peername: *mut *mut ::std::os::raw::c_char, - ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_0_21_0_i2d_PKCS8_bio"] + pub fn i2d_PKCS8_bio(bp: *mut BIO, p8: *mut X509_SIG) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_X509_check_email"] - pub fn X509_check_email( - x509: *const X509, - chk: *const ::std::os::raw::c_char, - chklen: usize, - flags: ::std::os::raw::c_uint, + #[link_name = "\u{1}aws_lc_0_21_0_i2d_PKCS8_PRIV_KEY_INFO_bio"] + pub fn i2d_PKCS8_PRIV_KEY_INFO_bio( + bp: *mut BIO, + p8inf: *mut PKCS8_PRIV_KEY_INFO, ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_X509_check_ip"] - pub fn X509_check_ip( - x509: *const X509, - chk: *const u8, - chklen: usize, - flags: ::std::os::raw::c_uint, - ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_0_21_0_i2d_PrivateKey_bio"] + pub fn i2d_PrivateKey_bio(bp: *mut BIO, pkey: *mut EVP_PKEY) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_X509_check_ip_asc"] - pub fn X509_check_ip_asc( - x509: *const X509, - ipasc: *const ::std::os::raw::c_char, - flags: ::std::os::raw::c_uint, - ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_0_21_0_i2d_PUBKEY_bio"] + pub fn i2d_PUBKEY_bio(bp: *mut BIO, pkey: *mut EVP_PKEY) -> ::std::os::raw::c_int; } -#[repr(C)] -#[derive(Debug, Copy, Clone, PartialEq, Eq)] -pub struct private_key_st { - pub dec_pkey: *mut EVP_PKEY, +extern "C" { + #[link_name = "\u{1}aws_lc_0_21_0_i2d_DHparams_bio"] + pub fn i2d_DHparams_bio(bp: *mut BIO, dh: *const DH) -> ::std::os::raw::c_int; } -#[test] -fn bindgen_test_layout_private_key_st() { - const UNINIT: ::std::mem::MaybeUninit = ::std::mem::MaybeUninit::uninit(); - let ptr = UNINIT.as_ptr(); - assert_eq!( - ::std::mem::size_of::(), - 8usize, - concat!("Size of: ", stringify!(private_key_st)) - ); - assert_eq!( - ::std::mem::align_of::(), - 8usize, - concat!("Alignment of ", stringify!(private_key_st)) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).dec_pkey) as usize - ptr as usize }, - 0usize, - concat!( - "Offset of field: ", - stringify!(private_key_st), - "::", - stringify!(dec_pkey) - ) - ); +extern "C" { + #[link_name = "\u{1}aws_lc_0_21_0_i2d_PKCS8PrivateKeyInfo_bio"] + pub fn i2d_PKCS8PrivateKeyInfo_bio(bp: *mut BIO, key: *mut EVP_PKEY) -> ::std::os::raw::c_int; } -impl Default for private_key_st { - fn default() -> Self { - let mut s = ::std::mem::MaybeUninit::::uninit(); - unsafe { - ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() - } - } +extern "C" { + #[link_name = "\u{1}aws_lc_0_21_0_d2i_X509_fp"] + pub fn d2i_X509_fp(fp: *mut FILE, x509: *mut *mut X509) -> *mut X509; } -#[repr(C)] -#[derive(Debug, Copy, Clone, PartialEq, Eq)] -pub struct X509_info_st { - pub x509: *mut X509, - pub crl: *mut X509_CRL, - pub x_pkey: *mut X509_PKEY, - pub enc_cipher: EVP_CIPHER_INFO, - pub enc_len: ::std::os::raw::c_int, - pub enc_data: *mut ::std::os::raw::c_char, +extern "C" { + #[link_name = "\u{1}aws_lc_0_21_0_d2i_X509_CRL_fp"] + pub fn d2i_X509_CRL_fp(fp: *mut FILE, crl: *mut *mut X509_CRL) -> *mut X509_CRL; } -#[test] -fn bindgen_test_layout_X509_info_st() { - const UNINIT: ::std::mem::MaybeUninit = ::std::mem::MaybeUninit::uninit(); - let ptr = UNINIT.as_ptr(); - assert_eq!( - ::std::mem::size_of::(), - 64usize, - concat!("Size of: ", stringify!(X509_info_st)) - ); - assert_eq!( - ::std::mem::align_of::(), - 8usize, - concat!("Alignment of ", stringify!(X509_info_st)) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).x509) as usize - ptr as usize }, - 0usize, - concat!( - "Offset of field: ", - stringify!(X509_info_st), - "::", - stringify!(x509) - ) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).crl) as usize - ptr as usize }, - 8usize, - concat!( - "Offset of field: ", - stringify!(X509_info_st), - "::", - stringify!(crl) - ) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).x_pkey) as usize - ptr as usize }, - 16usize, - concat!( - "Offset of field: ", - stringify!(X509_info_st), - "::", - stringify!(x_pkey) - ) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).enc_cipher) as usize - ptr as usize }, - 24usize, - concat!( - "Offset of field: ", - stringify!(X509_info_st), - "::", - stringify!(enc_cipher) - ) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).enc_len) as usize - ptr as usize }, - 48usize, - concat!( - "Offset of field: ", - stringify!(X509_info_st), - "::", - stringify!(enc_len) - ) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).enc_data) as usize - ptr as usize }, - 56usize, - concat!( - "Offset of field: ", - stringify!(X509_info_st), - "::", - stringify!(enc_data) - ) - ); +extern "C" { + #[link_name = "\u{1}aws_lc_0_21_0_d2i_X509_REQ_fp"] + pub fn d2i_X509_REQ_fp(fp: *mut FILE, req: *mut *mut X509_REQ) -> *mut X509_REQ; } -impl Default for X509_info_st { - fn default() -> Self { - let mut s = ::std::mem::MaybeUninit::::uninit(); - unsafe { - ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() - } - } +extern "C" { + #[link_name = "\u{1}aws_lc_0_21_0_d2i_RSAPrivateKey_fp"] + pub fn d2i_RSAPrivateKey_fp(fp: *mut FILE, rsa: *mut *mut RSA) -> *mut RSA; } -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct stack_st_X509_INFO { - _unused: [u8; 0], +extern "C" { + #[link_name = "\u{1}aws_lc_0_21_0_d2i_RSAPublicKey_fp"] + pub fn d2i_RSAPublicKey_fp(fp: *mut FILE, rsa: *mut *mut RSA) -> *mut RSA; } -pub type sk_X509_INFO_free_func = ::std::option::Option; -pub type sk_X509_INFO_copy_func = - ::std::option::Option *mut X509_INFO>; -pub type sk_X509_INFO_cmp_func = ::std::option::Option< - unsafe extern "C" fn( - arg1: *const *const X509_INFO, - arg2: *const *const X509_INFO, - ) -> ::std::os::raw::c_int, ->; -pub type sk_X509_INFO_delete_if_func = ::std::option::Option< - unsafe extern "C" fn( - arg1: *mut X509_INFO, - arg2: *mut ::std::os::raw::c_void, - ) -> ::std::os::raw::c_int, ->; extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_X509_INFO_free"] - pub fn X509_INFO_free(info: *mut X509_INFO); -} -#[repr(C)] -#[derive(Debug, Copy, Clone, PartialEq, Eq)] -pub struct v3_ext_ctx { - pub flags: ::std::os::raw::c_int, - pub issuer_cert: *const X509, - pub subject_cert: *const X509, - pub subject_req: *const X509_REQ, - pub crl: *const X509_CRL, - pub db: *const CONF, -} -#[test] -fn bindgen_test_layout_v3_ext_ctx() { - const UNINIT: ::std::mem::MaybeUninit = ::std::mem::MaybeUninit::uninit(); - let ptr = UNINIT.as_ptr(); - assert_eq!( - ::std::mem::size_of::(), - 48usize, - concat!("Size of: ", stringify!(v3_ext_ctx)) - ); - assert_eq!( - ::std::mem::align_of::(), - 8usize, - concat!("Alignment of ", stringify!(v3_ext_ctx)) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).flags) as usize - ptr as usize }, - 0usize, - concat!( - "Offset of field: ", - stringify!(v3_ext_ctx), - "::", - stringify!(flags) - ) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).issuer_cert) as usize - ptr as usize }, - 8usize, - concat!( - "Offset of field: ", - stringify!(v3_ext_ctx), - "::", - stringify!(issuer_cert) - ) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).subject_cert) as usize - ptr as usize }, - 16usize, - concat!( - "Offset of field: ", - stringify!(v3_ext_ctx), - "::", - stringify!(subject_cert) - ) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).subject_req) as usize - ptr as usize }, - 24usize, - concat!( - "Offset of field: ", - stringify!(v3_ext_ctx), - "::", - stringify!(subject_req) - ) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).crl) as usize - ptr as usize }, - 32usize, - concat!( - "Offset of field: ", - stringify!(v3_ext_ctx), - "::", - stringify!(crl) - ) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).db) as usize - ptr as usize }, - 40usize, - concat!( - "Offset of field: ", - stringify!(v3_ext_ctx), - "::", - stringify!(db) - ) - ); -} -impl Default for v3_ext_ctx { - fn default() -> Self { - let mut s = ::std::mem::MaybeUninit::::uninit(); - unsafe { - ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() - } - } + #[link_name = "\u{1}aws_lc_0_21_0_d2i_RSA_PUBKEY_fp"] + pub fn d2i_RSA_PUBKEY_fp(fp: *mut FILE, rsa: *mut *mut RSA) -> *mut RSA; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_X509V3_set_ctx"] - pub fn X509V3_set_ctx( - ctx: *mut X509V3_CTX, - issuer: *const X509, - subject: *const X509, - req: *const X509_REQ, - crl: *const X509_CRL, - flags: ::std::os::raw::c_int, - ); + #[link_name = "\u{1}aws_lc_0_21_0_d2i_DSA_PUBKEY_fp"] + pub fn d2i_DSA_PUBKEY_fp(fp: *mut FILE, dsa: *mut *mut DSA) -> *mut DSA; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_X509V3_set_nconf"] - pub fn X509V3_set_nconf(ctx: *mut X509V3_CTX, conf: *const CONF); + #[link_name = "\u{1}aws_lc_0_21_0_d2i_DSAPrivateKey_fp"] + pub fn d2i_DSAPrivateKey_fp(fp: *mut FILE, dsa: *mut *mut DSA) -> *mut DSA; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_X509V3_EXT_nconf"] - pub fn X509V3_EXT_nconf( - conf: *const CONF, - ctx: *const X509V3_CTX, - name: *const ::std::os::raw::c_char, - value: *const ::std::os::raw::c_char, - ) -> *mut X509_EXTENSION; + #[link_name = "\u{1}aws_lc_0_21_0_d2i_EC_PUBKEY_fp"] + pub fn d2i_EC_PUBKEY_fp(fp: *mut FILE, eckey: *mut *mut EC_KEY) -> *mut EC_KEY; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_X509V3_EXT_nconf_nid"] - pub fn X509V3_EXT_nconf_nid( - conf: *const CONF, - ctx: *const X509V3_CTX, - ext_nid: ::std::os::raw::c_int, - value: *const ::std::os::raw::c_char, - ) -> *mut X509_EXTENSION; + #[link_name = "\u{1}aws_lc_0_21_0_d2i_ECPrivateKey_fp"] + pub fn d2i_ECPrivateKey_fp(fp: *mut FILE, eckey: *mut *mut EC_KEY) -> *mut EC_KEY; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_X509V3_EXT_conf_nid"] - pub fn X509V3_EXT_conf_nid( - conf: *mut lhash_st_CONF_VALUE, - ctx: *const X509V3_CTX, - ext_nid: ::std::os::raw::c_int, - value: *const ::std::os::raw::c_char, - ) -> *mut X509_EXTENSION; + #[link_name = "\u{1}aws_lc_0_21_0_d2i_PKCS8_fp"] + pub fn d2i_PKCS8_fp(fp: *mut FILE, p8: *mut *mut X509_SIG) -> *mut X509_SIG; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_X509V3_EXT_add_nconf_sk"] - pub fn X509V3_EXT_add_nconf_sk( - conf: *const CONF, - ctx: *const X509V3_CTX, - section: *const ::std::os::raw::c_char, - sk: *mut *mut stack_st_X509_EXTENSION, - ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_0_21_0_d2i_PKCS8_PRIV_KEY_INFO_fp"] + pub fn d2i_PKCS8_PRIV_KEY_INFO_fp( + fp: *mut FILE, + p8inf: *mut *mut PKCS8_PRIV_KEY_INFO, + ) -> *mut PKCS8_PRIV_KEY_INFO; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_X509V3_EXT_add_nconf"] - pub fn X509V3_EXT_add_nconf( - conf: *const CONF, - ctx: *const X509V3_CTX, - section: *const ::std::os::raw::c_char, - cert: *mut X509, - ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_0_21_0_d2i_PrivateKey_fp"] + pub fn d2i_PrivateKey_fp(fp: *mut FILE, a: *mut *mut EVP_PKEY) -> *mut EVP_PKEY; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_X509V3_EXT_REQ_add_nconf"] - pub fn X509V3_EXT_REQ_add_nconf( - conf: *const CONF, - ctx: *const X509V3_CTX, - section: *const ::std::os::raw::c_char, - req: *mut X509_REQ, - ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_0_21_0_d2i_PUBKEY_fp"] + pub fn d2i_PUBKEY_fp(fp: *mut FILE, a: *mut *mut EVP_PKEY) -> *mut EVP_PKEY; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_X509V3_EXT_CRL_add_nconf"] - pub fn X509V3_EXT_CRL_add_nconf( - conf: *const CONF, - ctx: *const X509V3_CTX, - section: *const ::std::os::raw::c_char, - crl: *mut X509_CRL, - ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_0_21_0_i2d_X509_fp"] + pub fn i2d_X509_fp(fp: *mut FILE, x509: *mut X509) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_X509V3_EXT_conf"] - pub fn X509V3_EXT_conf( - conf: *mut lhash_st_CONF_VALUE, - ctx: *mut X509V3_CTX, - name: *const ::std::os::raw::c_char, - value: *const ::std::os::raw::c_char, - ) -> *mut X509_EXTENSION; + #[link_name = "\u{1}aws_lc_0_21_0_i2d_X509_CRL_fp"] + pub fn i2d_X509_CRL_fp(fp: *mut FILE, crl: *mut X509_CRL) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_i2s_ASN1_OCTET_STRING"] - pub fn i2s_ASN1_OCTET_STRING( - method: *const X509V3_EXT_METHOD, - oct: *const ASN1_OCTET_STRING, - ) -> *mut ::std::os::raw::c_char; + #[link_name = "\u{1}aws_lc_0_21_0_i2d_X509_REQ_fp"] + pub fn i2d_X509_REQ_fp(fp: *mut FILE, req: *mut X509_REQ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_s2i_ASN1_OCTET_STRING"] - pub fn s2i_ASN1_OCTET_STRING( - method: *const X509V3_EXT_METHOD, - ctx: *const X509V3_CTX, - str_: *const ::std::os::raw::c_char, - ) -> *mut ASN1_OCTET_STRING; + #[link_name = "\u{1}aws_lc_0_21_0_i2d_RSAPrivateKey_fp"] + pub fn i2d_RSAPrivateKey_fp(fp: *mut FILE, rsa: *mut RSA) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_i2s_ASN1_INTEGER"] - pub fn i2s_ASN1_INTEGER( - method: *const X509V3_EXT_METHOD, - aint: *const ASN1_INTEGER, - ) -> *mut ::std::os::raw::c_char; + #[link_name = "\u{1}aws_lc_0_21_0_i2d_RSAPublicKey_fp"] + pub fn i2d_RSAPublicKey_fp(fp: *mut FILE, rsa: *mut RSA) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_s2i_ASN1_INTEGER"] - pub fn s2i_ASN1_INTEGER( - method: *const X509V3_EXT_METHOD, - value: *const ::std::os::raw::c_char, - ) -> *mut ASN1_INTEGER; + #[link_name = "\u{1}aws_lc_0_21_0_i2d_RSA_PUBKEY_fp"] + pub fn i2d_RSA_PUBKEY_fp(fp: *mut FILE, rsa: *mut RSA) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_i2s_ASN1_ENUMERATED"] - pub fn i2s_ASN1_ENUMERATED( - method: *const X509V3_EXT_METHOD, - aint: *const ASN1_ENUMERATED, - ) -> *mut ::std::os::raw::c_char; + #[link_name = "\u{1}aws_lc_0_21_0_i2d_DSA_PUBKEY_fp"] + pub fn i2d_DSA_PUBKEY_fp(fp: *mut FILE, dsa: *mut DSA) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_X509V3_conf_free"] - pub fn X509V3_conf_free(val: *mut CONF_VALUE); + #[link_name = "\u{1}aws_lc_0_21_0_i2d_DSAPrivateKey_fp"] + pub fn i2d_DSAPrivateKey_fp(fp: *mut FILE, dsa: *mut DSA) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_i2v_GENERAL_NAME"] - pub fn i2v_GENERAL_NAME( - method: *const X509V3_EXT_METHOD, - gen: *const GENERAL_NAME, - ret: *mut stack_st_CONF_VALUE, - ) -> *mut stack_st_CONF_VALUE; + #[link_name = "\u{1}aws_lc_0_21_0_i2d_EC_PUBKEY_fp"] + pub fn i2d_EC_PUBKEY_fp(fp: *mut FILE, eckey: *mut EC_KEY) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_i2v_GENERAL_NAMES"] - pub fn i2v_GENERAL_NAMES( - method: *const X509V3_EXT_METHOD, - gen: *const GENERAL_NAMES, - extlist: *mut stack_st_CONF_VALUE, - ) -> *mut stack_st_CONF_VALUE; + #[link_name = "\u{1}aws_lc_0_21_0_i2d_ECPrivateKey_fp"] + pub fn i2d_ECPrivateKey_fp(fp: *mut FILE, eckey: *mut EC_KEY) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_a2i_IPADDRESS"] - pub fn a2i_IPADDRESS(ipasc: *const ::std::os::raw::c_char) -> *mut ASN1_OCTET_STRING; + #[link_name = "\u{1}aws_lc_0_21_0_i2d_PKCS8_fp"] + pub fn i2d_PKCS8_fp(fp: *mut FILE, p8: *mut X509_SIG) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_a2i_IPADDRESS_NC"] - pub fn a2i_IPADDRESS_NC(ipasc: *const ::std::os::raw::c_char) -> *mut ASN1_OCTET_STRING; + #[link_name = "\u{1}aws_lc_0_21_0_i2d_PKCS8_PRIV_KEY_INFO_fp"] + pub fn i2d_PKCS8_PRIV_KEY_INFO_fp( + fp: *mut FILE, + p8inf: *mut PKCS8_PRIV_KEY_INFO, + ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_X509_get_notBefore"] - pub fn X509_get_notBefore(x509: *const X509) -> *mut ASN1_TIME; + #[link_name = "\u{1}aws_lc_0_21_0_i2d_PKCS8PrivateKeyInfo_fp"] + pub fn i2d_PKCS8PrivateKeyInfo_fp(fp: *mut FILE, key: *mut EVP_PKEY) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_X509_get_notAfter"] - pub fn X509_get_notAfter(x509: *const X509) -> *mut ASN1_TIME; + #[link_name = "\u{1}aws_lc_0_21_0_i2d_PrivateKey_fp"] + pub fn i2d_PrivateKey_fp(fp: *mut FILE, pkey: *mut EVP_PKEY) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_X509_set_notBefore"] - pub fn X509_set_notBefore(x509: *mut X509, tm: *const ASN1_TIME) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_0_21_0_i2d_PUBKEY_fp"] + pub fn i2d_PUBKEY_fp(fp: *mut FILE, pkey: *mut EVP_PKEY) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_X509_set_notAfter"] - pub fn X509_set_notAfter(x509: *mut X509, tm: *const ASN1_TIME) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_0_21_0_X509_find_by_issuer_and_serial"] + pub fn X509_find_by_issuer_and_serial( + sk: *const stack_st_X509, + name: *mut X509_NAME, + serial: *const ASN1_INTEGER, + ) -> *mut X509; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_X509_CRL_get_lastUpdate"] - pub fn X509_CRL_get_lastUpdate(crl: *mut X509_CRL) -> *mut ASN1_TIME; + #[link_name = "\u{1}aws_lc_0_21_0_X509_find_by_subject"] + pub fn X509_find_by_subject(sk: *const stack_st_X509, name: *mut X509_NAME) -> *mut X509; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_X509_CRL_get_nextUpdate"] - pub fn X509_CRL_get_nextUpdate(crl: *mut X509_CRL) -> *mut ASN1_TIME; + #[link_name = "\u{1}aws_lc_0_21_0_X509_cmp_time"] + pub fn X509_cmp_time(s: *const ASN1_TIME, t: *const time_t) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_X509_get_serialNumber"] - pub fn X509_get_serialNumber(x509: *mut X509) -> *mut ASN1_INTEGER; + #[link_name = "\u{1}aws_lc_0_21_0_X509_cmp_time_posix"] + pub fn X509_cmp_time_posix(s: *const ASN1_TIME, t: i64) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_X509_NAME_get_text_by_OBJ"] - pub fn X509_NAME_get_text_by_OBJ( - name: *const X509_NAME, - obj: *const ASN1_OBJECT, - buf: *mut ::std::os::raw::c_char, - len: ::std::os::raw::c_int, - ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_0_21_0_X509_cmp_current_time"] + pub fn X509_cmp_current_time(s: *const ASN1_TIME) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_X509_NAME_get_text_by_NID"] - pub fn X509_NAME_get_text_by_NID( - name: *const X509_NAME, - nid: ::std::os::raw::c_int, - buf: *mut ::std::os::raw::c_char, - len: ::std::os::raw::c_int, - ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_0_21_0_X509_time_adj"] + pub fn X509_time_adj( + s: *mut ASN1_TIME, + offset_sec: ::std::os::raw::c_long, + t: *const time_t, + ) -> *mut ASN1_TIME; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_X509_STORE_CTX_get0_parent_ctx"] - pub fn X509_STORE_CTX_get0_parent_ctx(ctx: *mut X509_STORE_CTX) -> *mut X509_STORE_CTX; + #[link_name = "\u{1}aws_lc_0_21_0_X509_time_adj_ex"] + pub fn X509_time_adj_ex( + s: *mut ASN1_TIME, + offset_day: ::std::os::raw::c_int, + offset_sec: ::std::os::raw::c_long, + t: *const time_t, + ) -> *mut ASN1_TIME; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_X509_LOOKUP_free"] - pub fn X509_LOOKUP_free(ctx: *mut X509_LOOKUP); + #[link_name = "\u{1}aws_lc_0_21_0_X509_gmtime_adj"] + pub fn X509_gmtime_adj(s: *mut ASN1_TIME, offset_sec: ::std::os::raw::c_long) + -> *mut ASN1_TIME; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_X509_STORE_CTX_cleanup"] - pub fn X509_STORE_CTX_cleanup(ctx: *mut X509_STORE_CTX); + #[link_name = "\u{1}aws_lc_0_21_0_X509_issuer_name_cmp"] + pub fn X509_issuer_name_cmp(a: *const X509, b: *const X509) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_X509V3_add_standard_extensions"] - pub fn X509V3_add_standard_extensions() -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_0_21_0_X509_subject_name_cmp"] + pub fn X509_subject_name_cmp(a: *const X509, b: *const X509) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_X509V3_parse_list"] - pub fn X509V3_parse_list(line: *const ::std::os::raw::c_char) -> *mut stack_st_CONF_VALUE; + #[link_name = "\u{1}aws_lc_0_21_0_X509_CRL_cmp"] + pub fn X509_CRL_cmp(a: *const X509_CRL, b: *const X509_CRL) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_X509_STORE_CTX_get_chain"] - pub fn X509_STORE_CTX_get_chain(ctx: *mut X509_STORE_CTX) -> *mut stack_st_X509; + #[link_name = "\u{1}aws_lc_0_21_0_X509_issuer_name_hash"] + pub fn X509_issuer_name_hash(x509: *mut X509) -> u32; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_X509_STORE_CTX_trusted_stack"] - pub fn X509_STORE_CTX_trusted_stack(ctx: *mut X509_STORE_CTX, sk: *mut stack_st_X509); + #[link_name = "\u{1}aws_lc_0_21_0_X509_subject_name_hash"] + pub fn X509_subject_name_hash(x509: *mut X509) -> u32; } -pub type X509_STORE_CTX_verify_cb = ::std::option::Option< - unsafe extern "C" fn( - arg1: ::std::os::raw::c_int, - arg2: *mut X509_STORE_CTX, - ) -> ::std::os::raw::c_int, ->; extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_X509_STORE_CTX_set_verify_cb"] - pub fn X509_STORE_CTX_set_verify_cb( - ctx: *mut X509_STORE_CTX, - verify_cb: ::std::option::Option< - unsafe extern "C" fn( - ok: ::std::os::raw::c_int, - ctx: *mut X509_STORE_CTX, - ) -> ::std::os::raw::c_int, - >, - ); + #[link_name = "\u{1}aws_lc_0_21_0_X509_issuer_name_hash_old"] + pub fn X509_issuer_name_hash_old(x509: *mut X509) -> u32; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_X509_STORE_set_verify_cb"] - pub fn X509_STORE_set_verify_cb(store: *mut X509_STORE, verify_cb: X509_STORE_CTX_verify_cb); + #[link_name = "\u{1}aws_lc_0_21_0_X509_subject_name_hash_old"] + pub fn X509_subject_name_hash_old(x509: *mut X509) -> u32; } -pub type X509_STORE_CTX_get_crl_fn = ::std::option::Option< - unsafe extern "C" fn( - ctx: *mut X509_STORE_CTX, - crl: *mut *mut X509_CRL, - x: *mut X509, - ) -> ::std::os::raw::c_int, ->; -pub type X509_STORE_CTX_check_crl_fn = ::std::option::Option< - unsafe extern "C" fn(ctx: *mut X509_STORE_CTX, crl: *mut X509_CRL) -> ::std::os::raw::c_int, ->; extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_X509_STORE_set_get_crl"] - pub fn X509_STORE_set_get_crl(store: *mut X509_STORE, get_crl: X509_STORE_CTX_get_crl_fn); + #[link_name = "\u{1}aws_lc_0_21_0_X509_get_ex_new_index"] + pub fn X509_get_ex_new_index( + argl: ::std::os::raw::c_long, + argp: *mut ::std::os::raw::c_void, + unused: *mut CRYPTO_EX_unused, + dup_unused: CRYPTO_EX_dup, + free_func: CRYPTO_EX_free, + ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_X509_STORE_set_check_crl"] - pub fn X509_STORE_set_check_crl(store: *mut X509_STORE, check_crl: X509_STORE_CTX_check_crl_fn); + #[link_name = "\u{1}aws_lc_0_21_0_X509_set_ex_data"] + pub fn X509_set_ex_data( + r: *mut X509, + idx: ::std::os::raw::c_int, + arg: *mut ::std::os::raw::c_void, + ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_X509_STORE_CTX_set_chain"] - pub fn X509_STORE_CTX_set_chain(ctx: *mut X509_STORE_CTX, sk: *mut stack_st_X509); + #[link_name = "\u{1}aws_lc_0_21_0_X509_get_ex_data"] + pub fn X509_get_ex_data( + r: *mut X509, + idx: ::std::os::raw::c_int, + ) -> *mut ::std::os::raw::c_void; } -#[repr(C)] -#[derive(Debug, Copy, Clone, PartialEq, Eq)] -pub struct X509_algor_st { - pub algorithm: *mut ASN1_OBJECT, - pub parameter: *mut ASN1_TYPE, +extern "C" { + #[link_name = "\u{1}aws_lc_0_21_0_X509_STORE_CTX_get_ex_new_index"] + pub fn X509_STORE_CTX_get_ex_new_index( + argl: ::std::os::raw::c_long, + argp: *mut ::std::os::raw::c_void, + unused: *mut CRYPTO_EX_unused, + dup_unused: CRYPTO_EX_dup, + free_func: CRYPTO_EX_free, + ) -> ::std::os::raw::c_int; } -#[test] -fn bindgen_test_layout_X509_algor_st() { - const UNINIT: ::std::mem::MaybeUninit = ::std::mem::MaybeUninit::uninit(); - let ptr = UNINIT.as_ptr(); - assert_eq!( - ::std::mem::size_of::(), - 16usize, - concat!("Size of: ", stringify!(X509_algor_st)) - ); - assert_eq!( - ::std::mem::align_of::(), - 8usize, - concat!("Alignment of ", stringify!(X509_algor_st)) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).algorithm) as usize - ptr as usize }, - 0usize, - concat!( - "Offset of field: ", - stringify!(X509_algor_st), - "::", - stringify!(algorithm) - ) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).parameter) as usize - ptr as usize }, - 8usize, - concat!( - "Offset of field: ", - stringify!(X509_algor_st), - "::", - stringify!(parameter) - ) - ); +extern "C" { + #[link_name = "\u{1}aws_lc_0_21_0_X509_STORE_CTX_set_ex_data"] + pub fn X509_STORE_CTX_set_ex_data( + ctx: *mut X509_STORE_CTX, + idx: ::std::os::raw::c_int, + data: *mut ::std::os::raw::c_void, + ) -> ::std::os::raw::c_int; } -impl Default for X509_algor_st { - fn default() -> Self { - let mut s = ::std::mem::MaybeUninit::::uninit(); - unsafe { - ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() - } - } +extern "C" { + #[link_name = "\u{1}aws_lc_0_21_0_X509_STORE_CTX_get_ex_data"] + pub fn X509_STORE_CTX_get_ex_data( + ctx: *mut X509_STORE_CTX, + idx: ::std::os::raw::c_int, + ) -> *mut ::std::os::raw::c_void; } -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct stack_st_DIST_POINT { - _unused: [u8; 0], +extern "C" { + #[link_name = "\u{1}aws_lc_0_21_0_X509_STORE_get_ex_new_index"] + pub fn X509_STORE_get_ex_new_index( + argl: ::std::os::raw::c_long, + argp: *mut ::std::os::raw::c_void, + unused: *mut CRYPTO_EX_unused, + dup_unused: CRYPTO_EX_dup, + free_func: CRYPTO_EX_free, + ) -> ::std::os::raw::c_int; } -#[repr(C)] -#[derive(Debug, Copy, Clone, PartialEq, Eq)] -pub struct x509_trust_st { - pub trust: ::std::os::raw::c_int, - pub flags: ::std::os::raw::c_int, - pub check_trust: ::std::option::Option< - unsafe extern "C" fn( - arg1: *const X509_TRUST, - arg2: *mut X509, - arg3: ::std::os::raw::c_int, - ) -> ::std::os::raw::c_int, - >, - pub name: *mut ::std::os::raw::c_char, - pub arg1: ::std::os::raw::c_int, - pub arg2: *mut ::std::os::raw::c_void, +extern "C" { + #[link_name = "\u{1}aws_lc_0_21_0_X509_STORE_set_ex_data"] + pub fn X509_STORE_set_ex_data( + ctx: *mut X509_STORE, + idx: ::std::os::raw::c_int, + data: *mut ::std::os::raw::c_void, + ) -> ::std::os::raw::c_int; } -#[test] -fn bindgen_test_layout_x509_trust_st() { - const UNINIT: ::std::mem::MaybeUninit = ::std::mem::MaybeUninit::uninit(); - let ptr = UNINIT.as_ptr(); - assert_eq!( - ::std::mem::size_of::(), - 40usize, - concat!("Size of: ", stringify!(x509_trust_st)) - ); - assert_eq!( - ::std::mem::align_of::(), - 8usize, - concat!("Alignment of ", stringify!(x509_trust_st)) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).trust) as usize - ptr as usize }, +extern "C" { + #[link_name = "\u{1}aws_lc_0_21_0_X509_STORE_get_ex_data"] + pub fn X509_STORE_get_ex_data( + ctx: *mut X509_STORE, + idx: ::std::os::raw::c_int, + ) -> *mut ::std::os::raw::c_void; +} +extern "C" { + #[link_name = "\u{1}aws_lc_0_21_0_ASN1_digest"] + pub fn ASN1_digest( + i2d: i2d_of_void, + type_: *const EVP_MD, + data: *mut ::std::os::raw::c_char, + md: *mut ::std::os::raw::c_uchar, + len: *mut ::std::os::raw::c_uint, + ) -> ::std::os::raw::c_int; +} +extern "C" { + #[link_name = "\u{1}aws_lc_0_21_0_ASN1_item_digest"] + pub fn ASN1_item_digest( + it: *const ASN1_ITEM, + type_: *const EVP_MD, + data: *mut ::std::os::raw::c_void, + md: *mut ::std::os::raw::c_uchar, + len: *mut ::std::os::raw::c_uint, + ) -> ::std::os::raw::c_int; +} +extern "C" { + #[link_name = "\u{1}aws_lc_0_21_0_ASN1_item_verify"] + pub fn ASN1_item_verify( + it: *const ASN1_ITEM, + algor1: *const X509_ALGOR, + signature: *const ASN1_BIT_STRING, + data: *mut ::std::os::raw::c_void, + pkey: *mut EVP_PKEY, + ) -> ::std::os::raw::c_int; +} +extern "C" { + #[link_name = "\u{1}aws_lc_0_21_0_ASN1_item_sign"] + pub fn ASN1_item_sign( + it: *const ASN1_ITEM, + algor1: *mut X509_ALGOR, + algor2: *mut X509_ALGOR, + signature: *mut ASN1_BIT_STRING, + data: *mut ::std::os::raw::c_void, + pkey: *mut EVP_PKEY, + type_: *const EVP_MD, + ) -> ::std::os::raw::c_int; +} +extern "C" { + #[link_name = "\u{1}aws_lc_0_21_0_ASN1_item_sign_ctx"] + pub fn ASN1_item_sign_ctx( + it: *const ASN1_ITEM, + algor1: *mut X509_ALGOR, + algor2: *mut X509_ALGOR, + signature: *mut ASN1_BIT_STRING, + asn: *mut ::std::os::raw::c_void, + ctx: *mut EVP_MD_CTX, + ) -> ::std::os::raw::c_int; +} +extern "C" { + #[link_name = "\u{1}aws_lc_0_21_0_X509_supported_extension"] + pub fn X509_supported_extension(ex: *const X509_EXTENSION) -> ::std::os::raw::c_int; +} +extern "C" { + #[link_name = "\u{1}aws_lc_0_21_0_X509_check_ca"] + pub fn X509_check_ca(x509: *mut X509) -> ::std::os::raw::c_int; +} +extern "C" { + #[link_name = "\u{1}aws_lc_0_21_0_X509_check_issued"] + pub fn X509_check_issued(issuer: *mut X509, subject: *mut X509) -> ::std::os::raw::c_int; +} +extern "C" { + #[link_name = "\u{1}aws_lc_0_21_0_NAME_CONSTRAINTS_check"] + pub fn NAME_CONSTRAINTS_check( + x509: *mut X509, + nc: *mut NAME_CONSTRAINTS, + ) -> ::std::os::raw::c_int; +} +extern "C" { + #[link_name = "\u{1}aws_lc_0_21_0_X509_check_host"] + pub fn X509_check_host( + x509: *const X509, + chk: *const ::std::os::raw::c_char, + chklen: usize, + flags: ::std::os::raw::c_uint, + out_peername: *mut *mut ::std::os::raw::c_char, + ) -> ::std::os::raw::c_int; +} +extern "C" { + #[link_name = "\u{1}aws_lc_0_21_0_X509_check_email"] + pub fn X509_check_email( + x509: *const X509, + chk: *const ::std::os::raw::c_char, + chklen: usize, + flags: ::std::os::raw::c_uint, + ) -> ::std::os::raw::c_int; +} +extern "C" { + #[link_name = "\u{1}aws_lc_0_21_0_X509_check_ip"] + pub fn X509_check_ip( + x509: *const X509, + chk: *const u8, + chklen: usize, + flags: ::std::os::raw::c_uint, + ) -> ::std::os::raw::c_int; +} +extern "C" { + #[link_name = "\u{1}aws_lc_0_21_0_X509_check_ip_asc"] + pub fn X509_check_ip_asc( + x509: *const X509, + ipasc: *const ::std::os::raw::c_char, + flags: ::std::os::raw::c_uint, + ) -> ::std::os::raw::c_int; +} +extern "C" { + #[link_name = "\u{1}aws_lc_0_21_0_X509_STORE_CTX_get1_issuer"] + pub fn X509_STORE_CTX_get1_issuer( + out_issuer: *mut *mut X509, + ctx: *mut X509_STORE_CTX, + x509: *mut X509, + ) -> ::std::os::raw::c_int; +} +extern "C" { + #[link_name = "\u{1}aws_lc_0_21_0_X509_check_purpose"] + pub fn X509_check_purpose( + x509: *mut X509, + purpose: ::std::os::raw::c_int, + ca: ::std::os::raw::c_int, + ) -> ::std::os::raw::c_int; +} +extern "C" { + #[link_name = "\u{1}aws_lc_0_21_0_X509_check_trust"] + pub fn X509_check_trust( + x509: *mut X509, + id: ::std::os::raw::c_int, + flags: ::std::os::raw::c_int, + ) -> ::std::os::raw::c_int; +} +#[repr(C)] +#[derive(Debug, Copy, Clone, PartialEq, Eq)] +pub struct private_key_st { + pub dec_pkey: *mut EVP_PKEY, +} +#[test] +fn bindgen_test_layout_private_key_st() { + const UNINIT: ::std::mem::MaybeUninit = ::std::mem::MaybeUninit::uninit(); + let ptr = UNINIT.as_ptr(); + assert_eq!( + ::std::mem::size_of::(), + 8usize, + concat!("Size of: ", stringify!(private_key_st)) + ); + assert_eq!( + ::std::mem::align_of::(), + 8usize, + concat!("Alignment of ", stringify!(private_key_st)) + ); + assert_eq!( + unsafe { ::std::ptr::addr_of!((*ptr).dec_pkey) as usize - ptr as usize }, 0usize, concat!( "Offset of field: ", - stringify!(x509_trust_st), + stringify!(private_key_st), "::", - stringify!(trust) + stringify!(dec_pkey) ) ); +} +impl Default for private_key_st { + fn default() -> Self { + let mut s = ::std::mem::MaybeUninit::::uninit(); + unsafe { + ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); + s.assume_init() + } + } +} +#[repr(C)] +#[derive(Debug, Copy, Clone, PartialEq, Eq)] +pub struct X509_info_st { + pub x509: *mut X509, + pub crl: *mut X509_CRL, + pub x_pkey: *mut X509_PKEY, + pub enc_cipher: EVP_CIPHER_INFO, + pub enc_len: ::std::os::raw::c_int, + pub enc_data: *mut ::std::os::raw::c_char, +} +#[test] +fn bindgen_test_layout_X509_info_st() { + const UNINIT: ::std::mem::MaybeUninit = ::std::mem::MaybeUninit::uninit(); + let ptr = UNINIT.as_ptr(); assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).flags) as usize - ptr as usize }, - 4usize, + ::std::mem::size_of::(), + 64usize, + concat!("Size of: ", stringify!(X509_info_st)) + ); + assert_eq!( + ::std::mem::align_of::(), + 8usize, + concat!("Alignment of ", stringify!(X509_info_st)) + ); + assert_eq!( + unsafe { ::std::ptr::addr_of!((*ptr).x509) as usize - ptr as usize }, + 0usize, concat!( "Offset of field: ", - stringify!(x509_trust_st), + stringify!(X509_info_st), "::", - stringify!(flags) + stringify!(x509) ) ); assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).check_trust) as usize - ptr as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).crl) as usize - ptr as usize }, 8usize, concat!( "Offset of field: ", - stringify!(x509_trust_st), + stringify!(X509_info_st), "::", - stringify!(check_trust) + stringify!(crl) ) ); assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).name) as usize - ptr as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).x_pkey) as usize - ptr as usize }, 16usize, concat!( "Offset of field: ", - stringify!(x509_trust_st), + stringify!(X509_info_st), "::", - stringify!(name) + stringify!(x_pkey) ) ); assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).arg1) as usize - ptr as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).enc_cipher) as usize - ptr as usize }, 24usize, concat!( "Offset of field: ", - stringify!(x509_trust_st), + stringify!(X509_info_st), "::", - stringify!(arg1) + stringify!(enc_cipher) ) ); assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).arg2) as usize - ptr as usize }, - 32usize, + unsafe { ::std::ptr::addr_of!((*ptr).enc_len) as usize - ptr as usize }, + 48usize, concat!( "Offset of field: ", - stringify!(x509_trust_st), + stringify!(X509_info_st), "::", - stringify!(arg2) + stringify!(enc_len) + ) + ); + assert_eq!( + unsafe { ::std::ptr::addr_of!((*ptr).enc_data) as usize - ptr as usize }, + 56usize, + concat!( + "Offset of field: ", + stringify!(X509_info_st), + "::", + stringify!(enc_data) ) ); } -impl Default for x509_trust_st { +impl Default for X509_info_st { fn default() -> Self { let mut s = ::std::mem::MaybeUninit::::uninit(); unsafe { @@ -22861,609 +22658,801 @@ impl Default for x509_trust_st { } #[repr(C)] #[derive(Debug, Copy, Clone)] -pub struct stack_st_X509_TRUST { +pub struct stack_st_X509_INFO { _unused: [u8; 0], } -pub type sk_X509_TRUST_free_func = - ::std::option::Option; -pub type sk_X509_TRUST_copy_func = - ::std::option::Option *mut X509_TRUST>; -pub type sk_X509_TRUST_cmp_func = ::std::option::Option< +pub type sk_X509_INFO_free_func = ::std::option::Option; +pub type sk_X509_INFO_copy_func = + ::std::option::Option *mut X509_INFO>; +pub type sk_X509_INFO_cmp_func = ::std::option::Option< unsafe extern "C" fn( - arg1: *const *const X509_TRUST, - arg2: *const *const X509_TRUST, + arg1: *const *const X509_INFO, + arg2: *const *const X509_INFO, ) -> ::std::os::raw::c_int, >; -pub type sk_X509_TRUST_delete_if_func = ::std::option::Option< +pub type sk_X509_INFO_delete_if_func = ::std::option::Option< unsafe extern "C" fn( - arg1: *mut X509_TRUST, + arg1: *mut X509_INFO, arg2: *mut ::std::os::raw::c_void, ) -> ::std::os::raw::c_int, >; extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_X509_verify_cert_error_string"] - pub fn X509_verify_cert_error_string( - err: ::std::os::raw::c_long, - ) -> *const ::std::os::raw::c_char; + #[link_name = "\u{1}aws_lc_0_21_0_X509_INFO_free"] + pub fn X509_INFO_free(info: *mut X509_INFO); } -extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_X509_get_default_cert_area"] - pub fn X509_get_default_cert_area() -> *const ::std::os::raw::c_char; +#[repr(C)] +#[derive(Debug, Copy, Clone, PartialEq, Eq)] +pub struct v3_ext_ctx { + pub flags: ::std::os::raw::c_int, + pub issuer_cert: *const X509, + pub subject_cert: *const X509, + pub subject_req: *const X509_REQ, + pub crl: *const X509_CRL, + pub db: *const CONF, +} +#[test] +fn bindgen_test_layout_v3_ext_ctx() { + const UNINIT: ::std::mem::MaybeUninit = ::std::mem::MaybeUninit::uninit(); + let ptr = UNINIT.as_ptr(); + assert_eq!( + ::std::mem::size_of::(), + 48usize, + concat!("Size of: ", stringify!(v3_ext_ctx)) + ); + assert_eq!( + ::std::mem::align_of::(), + 8usize, + concat!("Alignment of ", stringify!(v3_ext_ctx)) + ); + assert_eq!( + unsafe { ::std::ptr::addr_of!((*ptr).flags) as usize - ptr as usize }, + 0usize, + concat!( + "Offset of field: ", + stringify!(v3_ext_ctx), + "::", + stringify!(flags) + ) + ); + assert_eq!( + unsafe { ::std::ptr::addr_of!((*ptr).issuer_cert) as usize - ptr as usize }, + 8usize, + concat!( + "Offset of field: ", + stringify!(v3_ext_ctx), + "::", + stringify!(issuer_cert) + ) + ); + assert_eq!( + unsafe { ::std::ptr::addr_of!((*ptr).subject_cert) as usize - ptr as usize }, + 16usize, + concat!( + "Offset of field: ", + stringify!(v3_ext_ctx), + "::", + stringify!(subject_cert) + ) + ); + assert_eq!( + unsafe { ::std::ptr::addr_of!((*ptr).subject_req) as usize - ptr as usize }, + 24usize, + concat!( + "Offset of field: ", + stringify!(v3_ext_ctx), + "::", + stringify!(subject_req) + ) + ); + assert_eq!( + unsafe { ::std::ptr::addr_of!((*ptr).crl) as usize - ptr as usize }, + 32usize, + concat!( + "Offset of field: ", + stringify!(v3_ext_ctx), + "::", + stringify!(crl) + ) + ); + assert_eq!( + unsafe { ::std::ptr::addr_of!((*ptr).db) as usize - ptr as usize }, + 40usize, + concat!( + "Offset of field: ", + stringify!(v3_ext_ctx), + "::", + stringify!(db) + ) + ); +} +impl Default for v3_ext_ctx { + fn default() -> Self { + let mut s = ::std::mem::MaybeUninit::::uninit(); + unsafe { + ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); + s.assume_init() + } + } } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_X509_get_default_cert_dir"] - pub fn X509_get_default_cert_dir() -> *const ::std::os::raw::c_char; + #[link_name = "\u{1}aws_lc_0_21_0_X509V3_set_ctx"] + pub fn X509V3_set_ctx( + ctx: *mut X509V3_CTX, + issuer: *const X509, + subject: *const X509, + req: *const X509_REQ, + crl: *const X509_CRL, + flags: ::std::os::raw::c_int, + ); } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_X509_get_default_cert_file"] - pub fn X509_get_default_cert_file() -> *const ::std::os::raw::c_char; + #[link_name = "\u{1}aws_lc_0_21_0_X509V3_set_nconf"] + pub fn X509V3_set_nconf(ctx: *mut X509V3_CTX, conf: *const CONF); } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_X509_get_default_cert_dir_env"] - pub fn X509_get_default_cert_dir_env() -> *const ::std::os::raw::c_char; + #[link_name = "\u{1}aws_lc_0_21_0_X509V3_EXT_nconf"] + pub fn X509V3_EXT_nconf( + conf: *const CONF, + ctx: *const X509V3_CTX, + name: *const ::std::os::raw::c_char, + value: *const ::std::os::raw::c_char, + ) -> *mut X509_EXTENSION; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_X509_get_default_cert_file_env"] - pub fn X509_get_default_cert_file_env() -> *const ::std::os::raw::c_char; + #[link_name = "\u{1}aws_lc_0_21_0_X509V3_EXT_nconf_nid"] + pub fn X509V3_EXT_nconf_nid( + conf: *const CONF, + ctx: *const X509V3_CTX, + ext_nid: ::std::os::raw::c_int, + value: *const ::std::os::raw::c_char, + ) -> *mut X509_EXTENSION; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_X509_get_default_private_dir"] - pub fn X509_get_default_private_dir() -> *const ::std::os::raw::c_char; + #[link_name = "\u{1}aws_lc_0_21_0_X509V3_EXT_conf_nid"] + pub fn X509V3_EXT_conf_nid( + conf: *mut lhash_st_CONF_VALUE, + ctx: *const X509V3_CTX, + ext_nid: ::std::os::raw::c_int, + value: *const ::std::os::raw::c_char, + ) -> *mut X509_EXTENSION; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_X509_TRUST_set"] - pub fn X509_TRUST_set( - t: *mut ::std::os::raw::c_int, - trust: ::std::os::raw::c_int, + #[link_name = "\u{1}aws_lc_0_21_0_X509V3_EXT_add_nconf_sk"] + pub fn X509V3_EXT_add_nconf_sk( + conf: *const CONF, + ctx: *const X509V3_CTX, + section: *const ::std::os::raw::c_char, + sk: *mut *mut stack_st_X509_EXTENSION, ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_X509_cmp"] - pub fn X509_cmp(a: *const X509, b: *const X509) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_0_21_0_X509V3_EXT_add_nconf"] + pub fn X509V3_EXT_add_nconf( + conf: *const CONF, + ctx: *const X509V3_CTX, + section: *const ::std::os::raw::c_char, + cert: *mut X509, + ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_X509_NAME_hash"] - pub fn X509_NAME_hash(name: *mut X509_NAME) -> u32; + #[link_name = "\u{1}aws_lc_0_21_0_X509V3_EXT_REQ_add_nconf"] + pub fn X509V3_EXT_REQ_add_nconf( + conf: *const CONF, + ctx: *const X509V3_CTX, + section: *const ::std::os::raw::c_char, + req: *mut X509_REQ, + ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_X509_NAME_hash_old"] - pub fn X509_NAME_hash_old(name: *mut X509_NAME) -> u32; + #[link_name = "\u{1}aws_lc_0_21_0_X509V3_EXT_CRL_add_nconf"] + pub fn X509V3_EXT_CRL_add_nconf( + conf: *const CONF, + ctx: *const X509V3_CTX, + section: *const ::std::os::raw::c_char, + crl: *mut X509_CRL, + ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_X509_CRL_match"] - pub fn X509_CRL_match(a: *const X509_CRL, b: *const X509_CRL) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_0_21_0_X509V3_EXT_conf"] + pub fn X509V3_EXT_conf( + conf: *mut lhash_st_CONF_VALUE, + ctx: *mut X509V3_CTX, + name: *const ::std::os::raw::c_char, + value: *const ::std::os::raw::c_char, + ) -> *mut X509_EXTENSION; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_X509_verify_cert"] - pub fn X509_verify_cert(ctx: *mut X509_STORE_CTX) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_0_21_0_i2s_ASN1_OCTET_STRING"] + pub fn i2s_ASN1_OCTET_STRING( + method: *const X509V3_EXT_METHOD, + oct: *const ASN1_OCTET_STRING, + ) -> *mut ::std::os::raw::c_char; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_X509_check_trust"] - pub fn X509_check_trust( - x: *mut X509, - id: ::std::os::raw::c_int, - flags: ::std::os::raw::c_int, - ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_0_21_0_s2i_ASN1_OCTET_STRING"] + pub fn s2i_ASN1_OCTET_STRING( + method: *const X509V3_EXT_METHOD, + ctx: *const X509V3_CTX, + str_: *const ::std::os::raw::c_char, + ) -> *mut ASN1_OCTET_STRING; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_X509_TRUST_get_count"] - pub fn X509_TRUST_get_count() -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_0_21_0_i2s_ASN1_INTEGER"] + pub fn i2s_ASN1_INTEGER( + method: *const X509V3_EXT_METHOD, + aint: *const ASN1_INTEGER, + ) -> *mut ::std::os::raw::c_char; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_X509_TRUST_get0"] - pub fn X509_TRUST_get0(idx: ::std::os::raw::c_int) -> *const X509_TRUST; + #[link_name = "\u{1}aws_lc_0_21_0_s2i_ASN1_INTEGER"] + pub fn s2i_ASN1_INTEGER( + method: *const X509V3_EXT_METHOD, + value: *const ::std::os::raw::c_char, + ) -> *mut ASN1_INTEGER; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_X509_TRUST_get_by_id"] - pub fn X509_TRUST_get_by_id(id: ::std::os::raw::c_int) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_0_21_0_i2s_ASN1_ENUMERATED"] + pub fn i2s_ASN1_ENUMERATED( + method: *const X509V3_EXT_METHOD, + aint: *const ASN1_ENUMERATED, + ) -> *mut ::std::os::raw::c_char; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_X509_TRUST_get_flags"] - pub fn X509_TRUST_get_flags(xp: *const X509_TRUST) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_0_21_0_X509V3_conf_free"] + pub fn X509V3_conf_free(val: *mut CONF_VALUE); } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_X509_TRUST_get0_name"] - pub fn X509_TRUST_get0_name(xp: *const X509_TRUST) -> *mut ::std::os::raw::c_char; + #[link_name = "\u{1}aws_lc_0_21_0_i2v_GENERAL_NAME"] + pub fn i2v_GENERAL_NAME( + method: *const X509V3_EXT_METHOD, + gen: *const GENERAL_NAME, + ret: *mut stack_st_CONF_VALUE, + ) -> *mut stack_st_CONF_VALUE; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_X509_TRUST_get_trust"] - pub fn X509_TRUST_get_trust(xp: *const X509_TRUST) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_0_21_0_i2v_GENERAL_NAMES"] + pub fn i2v_GENERAL_NAMES( + method: *const X509V3_EXT_METHOD, + gen: *const GENERAL_NAMES, + extlist: *mut stack_st_CONF_VALUE, + ) -> *mut stack_st_CONF_VALUE; } -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct stack_st_X509_OBJECT { - _unused: [u8; 0], -} -pub type sk_X509_OBJECT_free_func = - ::std::option::Option; -pub type sk_X509_OBJECT_copy_func = - ::std::option::Option *mut X509_OBJECT>; -pub type sk_X509_OBJECT_cmp_func = ::std::option::Option< - unsafe extern "C" fn( - arg1: *const *const X509_OBJECT, - arg2: *const *const X509_OBJECT, - ) -> ::std::os::raw::c_int, ->; -pub type sk_X509_OBJECT_delete_if_func = ::std::option::Option< - unsafe extern "C" fn( - arg1: *mut X509_OBJECT, - arg2: *mut ::std::os::raw::c_void, - ) -> ::std::os::raw::c_int, ->; extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_X509_STORE_set_depth"] - pub fn X509_STORE_set_depth( - store: *mut X509_STORE, - depth: ::std::os::raw::c_int, - ) -> ::std::os::raw::c_int; -} -extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_X509_STORE_CTX_set_depth"] - pub fn X509_STORE_CTX_set_depth(ctx: *mut X509_STORE_CTX, depth: ::std::os::raw::c_int); + #[link_name = "\u{1}aws_lc_0_21_0_a2i_IPADDRESS"] + pub fn a2i_IPADDRESS(ipasc: *const ::std::os::raw::c_char) -> *mut ASN1_OCTET_STRING; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_X509_LOOKUP_load_file"] - pub fn X509_LOOKUP_load_file( - lookup: *mut X509_LOOKUP, - path: *const ::std::os::raw::c_char, - type_: ::std::os::raw::c_int, - ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_0_21_0_a2i_IPADDRESS_NC"] + pub fn a2i_IPADDRESS_NC(ipasc: *const ::std::os::raw::c_char) -> *mut ASN1_OCTET_STRING; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_X509_LOOKUP_add_dir"] - pub fn X509_LOOKUP_add_dir( - lookup: *mut X509_LOOKUP, - path: *const ::std::os::raw::c_char, - type_: ::std::os::raw::c_int, - ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_0_21_0_X509_get_notBefore"] + pub fn X509_get_notBefore(x509: *const X509) -> *mut ASN1_TIME; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_X509_OBJECT_new"] - pub fn X509_OBJECT_new() -> *mut X509_OBJECT; + #[link_name = "\u{1}aws_lc_0_21_0_X509_get_notAfter"] + pub fn X509_get_notAfter(x509: *const X509) -> *mut ASN1_TIME; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_X509_OBJECT_free"] - pub fn X509_OBJECT_free(obj: *mut X509_OBJECT); + #[link_name = "\u{1}aws_lc_0_21_0_X509_set_notBefore"] + pub fn X509_set_notBefore(x509: *mut X509, tm: *const ASN1_TIME) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_X509_OBJECT_get_type"] - pub fn X509_OBJECT_get_type(obj: *const X509_OBJECT) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_0_21_0_X509_set_notAfter"] + pub fn X509_set_notAfter(x509: *mut X509, tm: *const ASN1_TIME) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_X509_OBJECT_get0_X509"] - pub fn X509_OBJECT_get0_X509(obj: *const X509_OBJECT) -> *mut X509; + #[link_name = "\u{1}aws_lc_0_21_0_X509_CRL_get_lastUpdate"] + pub fn X509_CRL_get_lastUpdate(crl: *mut X509_CRL) -> *mut ASN1_TIME; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_X509_OBJECT_get0_X509_CRL"] - pub fn X509_OBJECT_get0_X509_CRL(a: *const X509_OBJECT) -> *mut X509_CRL; + #[link_name = "\u{1}aws_lc_0_21_0_X509_CRL_get_nextUpdate"] + pub fn X509_CRL_get_nextUpdate(crl: *mut X509_CRL) -> *mut ASN1_TIME; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_X509_OBJECT_set1_X509"] - pub fn X509_OBJECT_set1_X509(a: *mut X509_OBJECT, obj: *mut X509) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_0_21_0_X509_get_serialNumber"] + pub fn X509_get_serialNumber(x509: *mut X509) -> *mut ASN1_INTEGER; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_X509_OBJECT_set1_X509_CRL"] - pub fn X509_OBJECT_set1_X509_CRL( - a: *mut X509_OBJECT, - obj: *mut X509_CRL, + #[link_name = "\u{1}aws_lc_0_21_0_X509_NAME_get_text_by_OBJ"] + pub fn X509_NAME_get_text_by_OBJ( + name: *const X509_NAME, + obj: *const ASN1_OBJECT, + buf: *mut ::std::os::raw::c_char, + len: ::std::os::raw::c_int, ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_X509_STORE_lock"] - pub fn X509_STORE_lock(v: *mut X509_STORE) -> ::std::os::raw::c_int; -} -extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_X509_STORE_unlock"] - pub fn X509_STORE_unlock(v: *mut X509_STORE) -> ::std::os::raw::c_int; -} -extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_X509_STORE_new"] - pub fn X509_STORE_new() -> *mut X509_STORE; -} -extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_X509_STORE_up_ref"] - pub fn X509_STORE_up_ref(store: *mut X509_STORE) -> ::std::os::raw::c_int; -} -extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_X509_STORE_free"] - pub fn X509_STORE_free(store: *mut X509_STORE); -} -extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_X509_STORE_get0_objects"] - pub fn X509_STORE_get0_objects(st: *mut X509_STORE) -> *mut stack_st_X509_OBJECT; -} -extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_X509_STORE_CTX_get1_certs"] - pub fn X509_STORE_CTX_get1_certs( - st: *mut X509_STORE_CTX, - nm: *mut X509_NAME, - ) -> *mut stack_st_X509; -} -extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_X509_STORE_CTX_get1_crls"] - pub fn X509_STORE_CTX_get1_crls( - st: *mut X509_STORE_CTX, - nm: *mut X509_NAME, - ) -> *mut stack_st_X509_CRL; -} -extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_X509_STORE_set_flags"] - pub fn X509_STORE_set_flags( - store: *mut X509_STORE, - flags: ::std::os::raw::c_ulong, + #[link_name = "\u{1}aws_lc_0_21_0_X509_NAME_get_text_by_NID"] + pub fn X509_NAME_get_text_by_NID( + name: *const X509_NAME, + nid: ::std::os::raw::c_int, + buf: *mut ::std::os::raw::c_char, + len: ::std::os::raw::c_int, ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_X509_STORE_set_purpose"] - pub fn X509_STORE_set_purpose( - store: *mut X509_STORE, - purpose: ::std::os::raw::c_int, - ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_0_21_0_X509_STORE_CTX_get0_parent_ctx"] + pub fn X509_STORE_CTX_get0_parent_ctx(ctx: *mut X509_STORE_CTX) -> *mut X509_STORE_CTX; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_X509_STORE_set_trust"] - pub fn X509_STORE_set_trust( - store: *mut X509_STORE, - trust: ::std::os::raw::c_int, - ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_0_21_0_X509_LOOKUP_free"] + pub fn X509_LOOKUP_free(ctx: *mut X509_LOOKUP); } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_X509_STORE_set1_param"] - pub fn X509_STORE_set1_param( - store: *mut X509_STORE, - param: *const X509_VERIFY_PARAM, - ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_0_21_0_X509_STORE_CTX_cleanup"] + pub fn X509_STORE_CTX_cleanup(ctx: *mut X509_STORE_CTX); } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_X509_STORE_get0_param"] - pub fn X509_STORE_get0_param(store: *mut X509_STORE) -> *mut X509_VERIFY_PARAM; + #[link_name = "\u{1}aws_lc_0_21_0_X509V3_add_standard_extensions"] + pub fn X509V3_add_standard_extensions() -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_X509_STORE_CTX_new"] - pub fn X509_STORE_CTX_new() -> *mut X509_STORE_CTX; + #[link_name = "\u{1}aws_lc_0_21_0_X509V3_parse_list"] + pub fn X509V3_parse_list(line: *const ::std::os::raw::c_char) -> *mut stack_st_CONF_VALUE; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_X509_STORE_CTX_get1_issuer"] - pub fn X509_STORE_CTX_get1_issuer( - issuer: *mut *mut X509, - ctx: *mut X509_STORE_CTX, - x: *mut X509, - ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_0_21_0_X509_STORE_CTX_get_chain"] + pub fn X509_STORE_CTX_get_chain(ctx: *mut X509_STORE_CTX) -> *mut stack_st_X509; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_X509_STORE_CTX_free"] - pub fn X509_STORE_CTX_free(ctx: *mut X509_STORE_CTX); + #[link_name = "\u{1}aws_lc_0_21_0_X509_STORE_CTX_trusted_stack"] + pub fn X509_STORE_CTX_trusted_stack(ctx: *mut X509_STORE_CTX, sk: *mut stack_st_X509); } +pub type X509_STORE_CTX_verify_cb = ::std::option::Option< + unsafe extern "C" fn( + arg1: ::std::os::raw::c_int, + arg2: *mut X509_STORE_CTX, + ) -> ::std::os::raw::c_int, +>; extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_X509_STORE_CTX_init"] - pub fn X509_STORE_CTX_init( + #[link_name = "\u{1}aws_lc_0_21_0_X509_STORE_CTX_set_verify_cb"] + pub fn X509_STORE_CTX_set_verify_cb( ctx: *mut X509_STORE_CTX, - store: *mut X509_STORE, - x509: *mut X509, - chain: *mut stack_st_X509, - ) -> ::std::os::raw::c_int; -} -extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_X509_STORE_CTX_set0_trusted_stack"] - pub fn X509_STORE_CTX_set0_trusted_stack(ctx: *mut X509_STORE_CTX, sk: *mut stack_st_X509); -} -extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_X509_STORE_CTX_get0_store"] - pub fn X509_STORE_CTX_get0_store(ctx: *mut X509_STORE_CTX) -> *mut X509_STORE; -} -extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_X509_STORE_CTX_get0_cert"] - pub fn X509_STORE_CTX_get0_cert(ctx: *mut X509_STORE_CTX) -> *mut X509; -} -extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_X509_STORE_add_lookup"] - pub fn X509_STORE_add_lookup( - v: *mut X509_STORE, - m: *const X509_LOOKUP_METHOD, - ) -> *mut X509_LOOKUP; + verify_cb: ::std::option::Option< + unsafe extern "C" fn( + ok: ::std::os::raw::c_int, + ctx: *mut X509_STORE_CTX, + ) -> ::std::os::raw::c_int, + >, + ); } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_X509_LOOKUP_hash_dir"] - pub fn X509_LOOKUP_hash_dir() -> *const X509_LOOKUP_METHOD; + #[link_name = "\u{1}aws_lc_0_21_0_X509_STORE_set_verify_cb"] + pub fn X509_STORE_set_verify_cb(store: *mut X509_STORE, verify_cb: X509_STORE_CTX_verify_cb); } +pub type X509_STORE_CTX_get_crl_fn = ::std::option::Option< + unsafe extern "C" fn( + ctx: *mut X509_STORE_CTX, + crl: *mut *mut X509_CRL, + x: *mut X509, + ) -> ::std::os::raw::c_int, +>; +pub type X509_STORE_CTX_check_crl_fn = ::std::option::Option< + unsafe extern "C" fn(ctx: *mut X509_STORE_CTX, crl: *mut X509_CRL) -> ::std::os::raw::c_int, +>; extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_X509_LOOKUP_file"] - pub fn X509_LOOKUP_file() -> *const X509_LOOKUP_METHOD; + #[link_name = "\u{1}aws_lc_0_21_0_X509_STORE_set_get_crl"] + pub fn X509_STORE_set_get_crl(store: *mut X509_STORE, get_crl: X509_STORE_CTX_get_crl_fn); } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_X509_STORE_add_cert"] - pub fn X509_STORE_add_cert(ctx: *mut X509_STORE, x: *mut X509) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_0_21_0_X509_STORE_set_check_crl"] + pub fn X509_STORE_set_check_crl(store: *mut X509_STORE, check_crl: X509_STORE_CTX_check_crl_fn); } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_X509_STORE_add_crl"] - pub fn X509_STORE_add_crl(ctx: *mut X509_STORE, x: *mut X509_CRL) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_0_21_0_X509_STORE_CTX_set_chain"] + pub fn X509_STORE_CTX_set_chain(ctx: *mut X509_STORE_CTX, sk: *mut stack_st_X509); } -extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_X509_LOOKUP_ctrl"] - pub fn X509_LOOKUP_ctrl( - ctx: *mut X509_LOOKUP, - cmd: ::std::os::raw::c_int, - argc: *const ::std::os::raw::c_char, - argl: ::std::os::raw::c_long, - ret: *mut *mut ::std::os::raw::c_char, - ) -> ::std::os::raw::c_int; +#[repr(C)] +#[derive(Debug, Copy, Clone, PartialEq, Eq)] +pub struct X509_algor_st { + pub algorithm: *mut ASN1_OBJECT, + pub parameter: *mut ASN1_TYPE, } -extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_X509_load_cert_file"] - pub fn X509_load_cert_file( - ctx: *mut X509_LOOKUP, - file: *const ::std::os::raw::c_char, - type_: ::std::os::raw::c_int, - ) -> ::std::os::raw::c_int; +#[test] +fn bindgen_test_layout_X509_algor_st() { + const UNINIT: ::std::mem::MaybeUninit = ::std::mem::MaybeUninit::uninit(); + let ptr = UNINIT.as_ptr(); + assert_eq!( + ::std::mem::size_of::(), + 16usize, + concat!("Size of: ", stringify!(X509_algor_st)) + ); + assert_eq!( + ::std::mem::align_of::(), + 8usize, + concat!("Alignment of ", stringify!(X509_algor_st)) + ); + assert_eq!( + unsafe { ::std::ptr::addr_of!((*ptr).algorithm) as usize - ptr as usize }, + 0usize, + concat!( + "Offset of field: ", + stringify!(X509_algor_st), + "::", + stringify!(algorithm) + ) + ); + assert_eq!( + unsafe { ::std::ptr::addr_of!((*ptr).parameter) as usize - ptr as usize }, + 8usize, + concat!( + "Offset of field: ", + stringify!(X509_algor_st), + "::", + stringify!(parameter) + ) + ); } -extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_X509_load_crl_file"] - pub fn X509_load_crl_file( - ctx: *mut X509_LOOKUP, - file: *const ::std::os::raw::c_char, - type_: ::std::os::raw::c_int, - ) -> ::std::os::raw::c_int; +impl Default for X509_algor_st { + fn default() -> Self { + let mut s = ::std::mem::MaybeUninit::::uninit(); + unsafe { + ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); + s.assume_init() + } + } } -extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_X509_load_cert_crl_file"] - pub fn X509_load_cert_crl_file( - ctx: *mut X509_LOOKUP, - file: *const ::std::os::raw::c_char, - type_: ::std::os::raw::c_int, - ) -> ::std::os::raw::c_int; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct stack_st_DIST_POINT { + _unused: [u8; 0], } -extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_X509_STORE_load_locations"] - pub fn X509_STORE_load_locations( - ctx: *mut X509_STORE, - file: *const ::std::os::raw::c_char, - dir: *const ::std::os::raw::c_char, - ) -> ::std::os::raw::c_int; +#[repr(C)] +#[derive(Debug, Copy, Clone, PartialEq, Eq)] +pub struct x509_trust_st { + pub trust: ::std::os::raw::c_int, + pub flags: ::std::os::raw::c_int, + pub check_trust: ::std::option::Option< + unsafe extern "C" fn( + arg1: *const X509_TRUST, + arg2: *mut X509, + arg3: ::std::os::raw::c_int, + ) -> ::std::os::raw::c_int, + >, + pub name: *mut ::std::os::raw::c_char, + pub arg1: ::std::os::raw::c_int, + pub arg2: *mut ::std::os::raw::c_void, } -extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_X509_STORE_set_default_paths"] - pub fn X509_STORE_set_default_paths(ctx: *mut X509_STORE) -> ::std::os::raw::c_int; +#[test] +fn bindgen_test_layout_x509_trust_st() { + const UNINIT: ::std::mem::MaybeUninit = ::std::mem::MaybeUninit::uninit(); + let ptr = UNINIT.as_ptr(); + assert_eq!( + ::std::mem::size_of::(), + 40usize, + concat!("Size of: ", stringify!(x509_trust_st)) + ); + assert_eq!( + ::std::mem::align_of::(), + 8usize, + concat!("Alignment of ", stringify!(x509_trust_st)) + ); + assert_eq!( + unsafe { ::std::ptr::addr_of!((*ptr).trust) as usize - ptr as usize }, + 0usize, + concat!( + "Offset of field: ", + stringify!(x509_trust_st), + "::", + stringify!(trust) + ) + ); + assert_eq!( + unsafe { ::std::ptr::addr_of!((*ptr).flags) as usize - ptr as usize }, + 4usize, + concat!( + "Offset of field: ", + stringify!(x509_trust_st), + "::", + stringify!(flags) + ) + ); + assert_eq!( + unsafe { ::std::ptr::addr_of!((*ptr).check_trust) as usize - ptr as usize }, + 8usize, + concat!( + "Offset of field: ", + stringify!(x509_trust_st), + "::", + stringify!(check_trust) + ) + ); + assert_eq!( + unsafe { ::std::ptr::addr_of!((*ptr).name) as usize - ptr as usize }, + 16usize, + concat!( + "Offset of field: ", + stringify!(x509_trust_st), + "::", + stringify!(name) + ) + ); + assert_eq!( + unsafe { ::std::ptr::addr_of!((*ptr).arg1) as usize - ptr as usize }, + 24usize, + concat!( + "Offset of field: ", + stringify!(x509_trust_st), + "::", + stringify!(arg1) + ) + ); + assert_eq!( + unsafe { ::std::ptr::addr_of!((*ptr).arg2) as usize - ptr as usize }, + 32usize, + concat!( + "Offset of field: ", + stringify!(x509_trust_st), + "::", + stringify!(arg2) + ) + ); } -extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_X509_STORE_CTX_get_error"] - pub fn X509_STORE_CTX_get_error(ctx: *mut X509_STORE_CTX) -> ::std::os::raw::c_int; +impl Default for x509_trust_st { + fn default() -> Self { + let mut s = ::std::mem::MaybeUninit::::uninit(); + unsafe { + ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); + s.assume_init() + } + } } -extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_X509_STORE_CTX_set_error"] - pub fn X509_STORE_CTX_set_error(ctx: *mut X509_STORE_CTX, s: ::std::os::raw::c_int); +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct stack_st_X509_TRUST { + _unused: [u8; 0], } +pub type sk_X509_TRUST_free_func = + ::std::option::Option; +pub type sk_X509_TRUST_copy_func = + ::std::option::Option *mut X509_TRUST>; +pub type sk_X509_TRUST_cmp_func = ::std::option::Option< + unsafe extern "C" fn( + arg1: *const *const X509_TRUST, + arg2: *const *const X509_TRUST, + ) -> ::std::os::raw::c_int, +>; +pub type sk_X509_TRUST_delete_if_func = ::std::option::Option< + unsafe extern "C" fn( + arg1: *mut X509_TRUST, + arg2: *mut ::std::os::raw::c_void, + ) -> ::std::os::raw::c_int, +>; extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_X509_STORE_CTX_get_error_depth"] - pub fn X509_STORE_CTX_get_error_depth(ctx: *mut X509_STORE_CTX) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_0_21_0_X509_get_default_cert_area"] + pub fn X509_get_default_cert_area() -> *const ::std::os::raw::c_char; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_X509_STORE_CTX_get_current_cert"] - pub fn X509_STORE_CTX_get_current_cert(ctx: *mut X509_STORE_CTX) -> *mut X509; + #[link_name = "\u{1}aws_lc_0_21_0_X509_get_default_cert_dir"] + pub fn X509_get_default_cert_dir() -> *const ::std::os::raw::c_char; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_X509_STORE_CTX_get0_current_issuer"] - pub fn X509_STORE_CTX_get0_current_issuer(ctx: *mut X509_STORE_CTX) -> *mut X509; + #[link_name = "\u{1}aws_lc_0_21_0_X509_get_default_cert_file"] + pub fn X509_get_default_cert_file() -> *const ::std::os::raw::c_char; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_X509_STORE_CTX_get0_current_crl"] - pub fn X509_STORE_CTX_get0_current_crl(ctx: *mut X509_STORE_CTX) -> *mut X509_CRL; + #[link_name = "\u{1}aws_lc_0_21_0_X509_get_default_cert_dir_env"] + pub fn X509_get_default_cert_dir_env() -> *const ::std::os::raw::c_char; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_X509_STORE_CTX_get0_chain"] - pub fn X509_STORE_CTX_get0_chain(ctx: *mut X509_STORE_CTX) -> *mut stack_st_X509; + #[link_name = "\u{1}aws_lc_0_21_0_X509_get_default_cert_file_env"] + pub fn X509_get_default_cert_file_env() -> *const ::std::os::raw::c_char; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_X509_STORE_CTX_get1_chain"] - pub fn X509_STORE_CTX_get1_chain(ctx: *mut X509_STORE_CTX) -> *mut stack_st_X509; + #[link_name = "\u{1}aws_lc_0_21_0_X509_get_default_private_dir"] + pub fn X509_get_default_private_dir() -> *const ::std::os::raw::c_char; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_X509_STORE_CTX_set_cert"] - pub fn X509_STORE_CTX_set_cert(c: *mut X509_STORE_CTX, x: *mut X509); + #[link_name = "\u{1}aws_lc_0_21_0_X509_TRUST_set"] + pub fn X509_TRUST_set( + t: *mut ::std::os::raw::c_int, + trust: ::std::os::raw::c_int, + ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_X509_STORE_CTX_get0_untrusted"] - pub fn X509_STORE_CTX_get0_untrusted(ctx: *mut X509_STORE_CTX) -> *mut stack_st_X509; + #[link_name = "\u{1}aws_lc_0_21_0_X509_cmp"] + pub fn X509_cmp(a: *const X509, b: *const X509) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_X509_STORE_CTX_set0_crls"] - pub fn X509_STORE_CTX_set0_crls(c: *mut X509_STORE_CTX, sk: *mut stack_st_X509_CRL); + #[link_name = "\u{1}aws_lc_0_21_0_X509_NAME_hash"] + pub fn X509_NAME_hash(name: *mut X509_NAME) -> u32; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_X509_STORE_CTX_set_purpose"] - pub fn X509_STORE_CTX_set_purpose( - ctx: *mut X509_STORE_CTX, - purpose: ::std::os::raw::c_int, - ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_0_21_0_X509_NAME_hash_old"] + pub fn X509_NAME_hash_old(name: *mut X509_NAME) -> u32; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_X509_STORE_CTX_set_trust"] - pub fn X509_STORE_CTX_set_trust( - ctx: *mut X509_STORE_CTX, - trust: ::std::os::raw::c_int, - ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_0_21_0_X509_CRL_match"] + pub fn X509_CRL_match(a: *const X509_CRL, b: *const X509_CRL) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_X509_STORE_CTX_purpose_inherit"] - pub fn X509_STORE_CTX_purpose_inherit( - ctx: *mut X509_STORE_CTX, - def_purpose: ::std::os::raw::c_int, - purpose: ::std::os::raw::c_int, - trust: ::std::os::raw::c_int, - ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_0_21_0_X509_TRUST_get_count"] + pub fn X509_TRUST_get_count() -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_X509_STORE_CTX_set_flags"] - pub fn X509_STORE_CTX_set_flags(ctx: *mut X509_STORE_CTX, flags: ::std::os::raw::c_ulong); + #[link_name = "\u{1}aws_lc_0_21_0_X509_TRUST_get0"] + pub fn X509_TRUST_get0(idx: ::std::os::raw::c_int) -> *const X509_TRUST; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_X509_STORE_CTX_set_time"] - pub fn X509_STORE_CTX_set_time( - ctx: *mut X509_STORE_CTX, - flags: ::std::os::raw::c_ulong, - t: time_t, - ); + #[link_name = "\u{1}aws_lc_0_21_0_X509_TRUST_get_by_id"] + pub fn X509_TRUST_get_by_id(id: ::std::os::raw::c_int) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_X509_STORE_CTX_set_time_posix"] - pub fn X509_STORE_CTX_set_time_posix( - ctx: *mut X509_STORE_CTX, - flags: ::std::os::raw::c_ulong, - t: i64, - ); + #[link_name = "\u{1}aws_lc_0_21_0_X509_TRUST_get_flags"] + pub fn X509_TRUST_get_flags(xp: *const X509_TRUST) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_X509_STORE_CTX_get0_param"] - pub fn X509_STORE_CTX_get0_param(ctx: *mut X509_STORE_CTX) -> *mut X509_VERIFY_PARAM; + #[link_name = "\u{1}aws_lc_0_21_0_X509_TRUST_get0_name"] + pub fn X509_TRUST_get0_name(xp: *const X509_TRUST) -> *mut ::std::os::raw::c_char; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_X509_STORE_CTX_set0_param"] - pub fn X509_STORE_CTX_set0_param(ctx: *mut X509_STORE_CTX, param: *mut X509_VERIFY_PARAM); + #[link_name = "\u{1}aws_lc_0_21_0_X509_TRUST_get_trust"] + pub fn X509_TRUST_get_trust(xp: *const X509_TRUST) -> ::std::os::raw::c_int; +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct stack_st_X509_OBJECT { + _unused: [u8; 0], } +pub type sk_X509_OBJECT_free_func = + ::std::option::Option; +pub type sk_X509_OBJECT_copy_func = + ::std::option::Option *mut X509_OBJECT>; +pub type sk_X509_OBJECT_cmp_func = ::std::option::Option< + unsafe extern "C" fn( + arg1: *const *const X509_OBJECT, + arg2: *const *const X509_OBJECT, + ) -> ::std::os::raw::c_int, +>; +pub type sk_X509_OBJECT_delete_if_func = ::std::option::Option< + unsafe extern "C" fn( + arg1: *mut X509_OBJECT, + arg2: *mut ::std::os::raw::c_void, + ) -> ::std::os::raw::c_int, +>; extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_X509_STORE_CTX_set_default"] - pub fn X509_STORE_CTX_set_default( - ctx: *mut X509_STORE_CTX, - name: *const ::std::os::raw::c_char, + #[link_name = "\u{1}aws_lc_0_21_0_X509_LOOKUP_load_file"] + pub fn X509_LOOKUP_load_file( + lookup: *mut X509_LOOKUP, + path: *const ::std::os::raw::c_char, + type_: ::std::os::raw::c_int, ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_X509_STORE_CTX_get_by_subject"] - pub fn X509_STORE_CTX_get_by_subject( - vs: *mut X509_STORE_CTX, + #[link_name = "\u{1}aws_lc_0_21_0_X509_LOOKUP_add_dir"] + pub fn X509_LOOKUP_add_dir( + lookup: *mut X509_LOOKUP, + path: *const ::std::os::raw::c_char, type_: ::std::os::raw::c_int, - name: *mut X509_NAME, - ret: *mut X509_OBJECT, ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_X509_VERIFY_PARAM_new"] - pub fn X509_VERIFY_PARAM_new() -> *mut X509_VERIFY_PARAM; + #[link_name = "\u{1}aws_lc_0_21_0_X509_OBJECT_new"] + pub fn X509_OBJECT_new() -> *mut X509_OBJECT; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_X509_VERIFY_PARAM_free"] - pub fn X509_VERIFY_PARAM_free(param: *mut X509_VERIFY_PARAM); + #[link_name = "\u{1}aws_lc_0_21_0_X509_OBJECT_free"] + pub fn X509_OBJECT_free(obj: *mut X509_OBJECT); } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_X509_VERIFY_PARAM_inherit"] - pub fn X509_VERIFY_PARAM_inherit( - to: *mut X509_VERIFY_PARAM, - from: *const X509_VERIFY_PARAM, - ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_0_21_0_X509_OBJECT_get_type"] + pub fn X509_OBJECT_get_type(obj: *const X509_OBJECT) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_X509_VERIFY_PARAM_set1"] - pub fn X509_VERIFY_PARAM_set1( - to: *mut X509_VERIFY_PARAM, - from: *const X509_VERIFY_PARAM, - ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_0_21_0_X509_OBJECT_get0_X509"] + pub fn X509_OBJECT_get0_X509(obj: *const X509_OBJECT) -> *mut X509; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_X509_VERIFY_PARAM_set_flags"] - pub fn X509_VERIFY_PARAM_set_flags( - param: *mut X509_VERIFY_PARAM, - flags: ::std::os::raw::c_ulong, - ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_0_21_0_X509_OBJECT_get0_X509_CRL"] + pub fn X509_OBJECT_get0_X509_CRL(a: *const X509_OBJECT) -> *mut X509_CRL; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_X509_VERIFY_PARAM_clear_flags"] - pub fn X509_VERIFY_PARAM_clear_flags( - param: *mut X509_VERIFY_PARAM, - flags: ::std::os::raw::c_ulong, + #[link_name = "\u{1}aws_lc_0_21_0_X509_OBJECT_set1_X509"] + pub fn X509_OBJECT_set1_X509(a: *mut X509_OBJECT, obj: *mut X509) -> ::std::os::raw::c_int; +} +extern "C" { + #[link_name = "\u{1}aws_lc_0_21_0_X509_OBJECT_set1_X509_CRL"] + pub fn X509_OBJECT_set1_X509_CRL( + a: *mut X509_OBJECT, + obj: *mut X509_CRL, ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_X509_VERIFY_PARAM_get_flags"] - pub fn X509_VERIFY_PARAM_get_flags(param: *const X509_VERIFY_PARAM) -> ::std::os::raw::c_ulong; + #[link_name = "\u{1}aws_lc_0_21_0_X509_STORE_lock"] + pub fn X509_STORE_lock(v: *mut X509_STORE) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_X509_VERIFY_PARAM_set_purpose"] - pub fn X509_VERIFY_PARAM_set_purpose( - param: *mut X509_VERIFY_PARAM, - purpose: ::std::os::raw::c_int, - ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_0_21_0_X509_STORE_unlock"] + pub fn X509_STORE_unlock(v: *mut X509_STORE) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_X509_VERIFY_PARAM_set_trust"] - pub fn X509_VERIFY_PARAM_set_trust( - param: *mut X509_VERIFY_PARAM, - trust: ::std::os::raw::c_int, - ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_0_21_0_X509_STORE_get0_objects"] + pub fn X509_STORE_get0_objects(st: *mut X509_STORE) -> *mut stack_st_X509_OBJECT; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_X509_VERIFY_PARAM_set_depth"] - pub fn X509_VERIFY_PARAM_set_depth(param: *mut X509_VERIFY_PARAM, depth: ::std::os::raw::c_int); + #[link_name = "\u{1}aws_lc_0_21_0_X509_STORE_CTX_get1_certs"] + pub fn X509_STORE_CTX_get1_certs( + st: *mut X509_STORE_CTX, + nm: *mut X509_NAME, + ) -> *mut stack_st_X509; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_X509_VERIFY_PARAM_set_time"] - pub fn X509_VERIFY_PARAM_set_time(param: *mut X509_VERIFY_PARAM, t: time_t); + #[link_name = "\u{1}aws_lc_0_21_0_X509_STORE_CTX_get1_crls"] + pub fn X509_STORE_CTX_get1_crls( + st: *mut X509_STORE_CTX, + nm: *mut X509_NAME, + ) -> *mut stack_st_X509_CRL; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_X509_VERIFY_PARAM_set_time_posix"] - pub fn X509_VERIFY_PARAM_set_time_posix(param: *mut X509_VERIFY_PARAM, t: i64); + #[link_name = "\u{1}aws_lc_0_21_0_X509_STORE_add_lookup"] + pub fn X509_STORE_add_lookup( + v: *mut X509_STORE, + m: *const X509_LOOKUP_METHOD, + ) -> *mut X509_LOOKUP; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_X509_VERIFY_PARAM_add0_policy"] - pub fn X509_VERIFY_PARAM_add0_policy( - param: *mut X509_VERIFY_PARAM, - policy: *mut ASN1_OBJECT, - ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_0_21_0_X509_LOOKUP_hash_dir"] + pub fn X509_LOOKUP_hash_dir() -> *const X509_LOOKUP_METHOD; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_X509_VERIFY_PARAM_set1_policies"] - pub fn X509_VERIFY_PARAM_set1_policies( - param: *mut X509_VERIFY_PARAM, - policies: *const stack_st_ASN1_OBJECT, - ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_0_21_0_X509_LOOKUP_file"] + pub fn X509_LOOKUP_file() -> *const X509_LOOKUP_METHOD; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_X509_VERIFY_PARAM_set1_host"] - pub fn X509_VERIFY_PARAM_set1_host( - param: *mut X509_VERIFY_PARAM, - name: *const ::std::os::raw::c_char, - namelen: usize, + #[link_name = "\u{1}aws_lc_0_21_0_X509_STORE_CTX_get_by_subject"] + pub fn X509_STORE_CTX_get_by_subject( + vs: *mut X509_STORE_CTX, + type_: ::std::os::raw::c_int, + name: *mut X509_NAME, + ret: *mut X509_OBJECT, ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_X509_VERIFY_PARAM_add1_host"] - pub fn X509_VERIFY_PARAM_add1_host( - param: *mut X509_VERIFY_PARAM, - name: *const ::std::os::raw::c_char, - name_len: usize, + #[link_name = "\u{1}aws_lc_0_21_0_X509_LOOKUP_ctrl"] + pub fn X509_LOOKUP_ctrl( + ctx: *mut X509_LOOKUP, + cmd: ::std::os::raw::c_int, + argc: *const ::std::os::raw::c_char, + argl: ::std::os::raw::c_long, + ret: *mut *mut ::std::os::raw::c_char, ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_X509_VERIFY_PARAM_set_hostflags"] - pub fn X509_VERIFY_PARAM_set_hostflags( - param: *mut X509_VERIFY_PARAM, - flags: ::std::os::raw::c_uint, - ); + #[link_name = "\u{1}aws_lc_0_21_0_X509_load_cert_file"] + pub fn X509_load_cert_file( + ctx: *mut X509_LOOKUP, + file: *const ::std::os::raw::c_char, + type_: ::std::os::raw::c_int, + ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_X509_VERIFY_PARAM_set1_email"] - pub fn X509_VERIFY_PARAM_set1_email( - param: *mut X509_VERIFY_PARAM, - email: *const ::std::os::raw::c_char, - emaillen: usize, + #[link_name = "\u{1}aws_lc_0_21_0_X509_load_crl_file"] + pub fn X509_load_crl_file( + ctx: *mut X509_LOOKUP, + file: *const ::std::os::raw::c_char, + type_: ::std::os::raw::c_int, ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_X509_VERIFY_PARAM_set1_ip"] - pub fn X509_VERIFY_PARAM_set1_ip( - param: *mut X509_VERIFY_PARAM, - ip: *const ::std::os::raw::c_uchar, - iplen: usize, + #[link_name = "\u{1}aws_lc_0_21_0_X509_load_cert_crl_file"] + pub fn X509_load_cert_crl_file( + ctx: *mut X509_LOOKUP, + file: *const ::std::os::raw::c_char, + type_: ::std::os::raw::c_int, ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_X509_VERIFY_PARAM_set1_ip_asc"] - pub fn X509_VERIFY_PARAM_set1_ip_asc( - param: *mut X509_VERIFY_PARAM, - ipasc: *const ::std::os::raw::c_char, + #[link_name = "\u{1}aws_lc_0_21_0_X509_STORE_load_locations"] + pub fn X509_STORE_load_locations( + ctx: *mut X509_STORE, + file: *const ::std::os::raw::c_char, + dir: *const ::std::os::raw::c_char, ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_X509_VERIFY_PARAM_get_depth"] - pub fn X509_VERIFY_PARAM_get_depth(param: *const X509_VERIFY_PARAM) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_0_21_0_X509_STORE_set_default_paths"] + pub fn X509_STORE_set_default_paths(ctx: *mut X509_STORE) -> ::std::os::raw::c_int; } pub type X509V3_EXT_NEW = ::std::option::Option *mut ::std::os::raw::c_void>; @@ -25405,14 +25394,6 @@ extern "C" { flags: ::std::os::raw::c_ulong, ) -> ::std::os::raw::c_int; } -extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_X509_check_purpose"] - pub fn X509_check_purpose( - x: *mut X509, - id: ::std::os::raw::c_int, - ca: ::std::os::raw::c_int, - ) -> ::std::os::raw::c_int; -} extern "C" { #[link_name = "\u{1}aws_lc_0_21_0_X509_PURPOSE_set"] pub fn X509_PURPOSE_set( From d97e5b8d28790e3c0f6b4a39960559b22a7329bd Mon Sep 17 00:00:00 2001 From: aws-lc-sys-bindings-generator Date: Wed, 28 Aug 2024 14:42:49 +0000 Subject: [PATCH 24/36] Generated bindings for i686-unknown-linux-gnu --- .../src/i686_unknown_linux_gnu_crypto.rs | 3591 ++++++++--------- 1 file changed, 1786 insertions(+), 1805 deletions(-) diff --git a/aws-lc-sys/src/i686_unknown_linux_gnu_crypto.rs b/aws-lc-sys/src/i686_unknown_linux_gnu_crypto.rs index 3ce7fab427e..41735d7ea96 100644 --- a/aws-lc-sys/src/i686_unknown_linux_gnu_crypto.rs +++ b/aws-lc-sys/src/i686_unknown_linux_gnu_crypto.rs @@ -111,7 +111,7 @@ pub const AWSLC_VERSION_NAME: &[u8; 7] = b"AWS-LC\0"; pub const OPENSSL_VERSION_NUMBER: i32 = 269488255; pub const SSLEAY_VERSION_NUMBER: i32 = 269488255; pub const AWSLC_API_VERSION: i32 = 29; -pub const AWSLC_VERSION_NUMBER_STRING: &[u8; 7] = b"1.33.0\0"; +pub const AWSLC_VERSION_NUMBER_STRING: &[u8; 7] = b"1.34.2\0"; pub const AES_ENCRYPT: i32 = 1; pub const AES_DECRYPT: i32 = 0; pub const AES_MAXNR: i32 = 14; @@ -132,7 +132,7 @@ pub const CRYPTO_LOCK: i32 = 1; pub const CRYPTO_UNLOCK: i32 = 2; pub const CRYPTO_READ: i32 = 4; pub const CRYPTO_WRITE: i32 = 8; -pub const OPENSSL_VERSION_TEXT: &[u8; 42] = b"OpenSSL 1.1.1 (compatible; AWS-LC 1.33.0)\0"; +pub const OPENSSL_VERSION_TEXT: &[u8; 42] = b"OpenSSL 1.1.1 (compatible; AWS-LC 1.34.2)\0"; pub const OPENSSL_VERSION: i32 = 0; pub const OPENSSL_CFLAGS: i32 = 1; pub const OPENSSL_BUILT_ON: i32 = 2; @@ -3283,6 +3283,14 @@ pub const EVP_PKEY_DH: i32 = 28; pub const HKDF_R_OUTPUT_TOO_LARGE: i32 = 100; pub const MD5_CBLOCK: i32 = 64; pub const MD5_DIGEST_LENGTH: i32 = 16; +pub const HMAC_MD5_PRECOMPUTED_KEY_SIZE: i32 = 32; +pub const HMAC_SHA1_PRECOMPUTED_KEY_SIZE: i32 = 40; +pub const HMAC_SHA224_PRECOMPUTED_KEY_SIZE: i32 = 64; +pub const HMAC_SHA256_PRECOMPUTED_KEY_SIZE: i32 = 64; +pub const HMAC_SHA384_PRECOMPUTED_KEY_SIZE: i32 = 128; +pub const HMAC_SHA512_PRECOMPUTED_KEY_SIZE: i32 = 128; +pub const HMAC_SHA512_224_PRECOMPUTED_KEY_SIZE: i32 = 128; +pub const HMAC_SHA512_256_PRECOMPUTED_KEY_SIZE: i32 = 128; pub const HMAC_MAX_PRECOMPUTED_KEY_SIZE: i32 = 128; pub const HMAC_R_MISSING_PARAMETERS: i32 = 100; pub const HMAC_R_BUFFER_TOO_SMALL: i32 = 102; @@ -3501,63 +3509,6 @@ pub const GEN_EDIPARTY: i32 = 5; pub const GEN_URI: i32 = 6; pub const GEN_IPADD: i32 = 7; pub const GEN_RID: i32 = 8; -pub const X509_FLAG_COMPAT: i32 = 0; -pub const X509_FLAG_NO_HEADER: i32 = 1; -pub const X509_FLAG_NO_VERSION: i32 = 2; -pub const X509_FLAG_NO_SERIAL: i32 = 4; -pub const X509_FLAG_NO_SIGNAME: i32 = 8; -pub const X509_FLAG_NO_ISSUER: i32 = 16; -pub const X509_FLAG_NO_VALIDITY: i32 = 32; -pub const X509_FLAG_NO_SUBJECT: i32 = 64; -pub const X509_FLAG_NO_PUBKEY: i32 = 128; -pub const X509_FLAG_NO_EXTENSIONS: i32 = 256; -pub const X509_FLAG_NO_SIGDUMP: i32 = 512; -pub const X509_FLAG_NO_AUX: i32 = 1024; -pub const X509_FLAG_NO_ATTRIBUTES: i32 = 2048; -pub const X509_FLAG_NO_IDS: i32 = 4096; -pub const X509V3_EXT_UNKNOWN_MASK: i32 = 983040; -pub const X509V3_EXT_DEFAULT: i32 = 0; -pub const X509V3_EXT_ERROR_UNKNOWN: i32 = 65536; -pub const X509V3_EXT_PARSE_UNKNOWN: i32 = 131072; -pub const X509V3_EXT_DUMP_UNKNOWN: i32 = 196608; -pub const XN_FLAG_COMPAT: i32 = 0; -pub const XN_FLAG_SEP_MASK: i32 = 983040; -pub const XN_FLAG_SEP_COMMA_PLUS: i32 = 65536; -pub const XN_FLAG_SEP_CPLUS_SPC: i32 = 131072; -pub const XN_FLAG_SEP_SPLUS_SPC: i32 = 196608; -pub const XN_FLAG_SEP_MULTILINE: i32 = 262144; -pub const XN_FLAG_DN_REV: i32 = 1048576; -pub const XN_FLAG_FN_MASK: i32 = 6291456; -pub const XN_FLAG_FN_SN: i32 = 0; -pub const XN_FLAG_FN_LN: i32 = 2097152; -pub const XN_FLAG_FN_OID: i32 = 4194304; -pub const XN_FLAG_FN_NONE: i32 = 6291456; -pub const XN_FLAG_SPC_EQ: i32 = 8388608; -pub const XN_FLAG_DUMP_UNKNOWN_FIELDS: i32 = 16777216; -pub const XN_FLAG_FN_ALIGN: i32 = 33554432; -pub const XN_FLAG_RFC2253: i32 = 17892119; -pub const XN_FLAG_ONELINE: i32 = 8520479; -pub const XN_FLAG_MULTILINE: i32 = 44302342; -pub const X509V3_CTX_TEST: i32 = 1; -pub const X509_TRUST_DEFAULT: i32 = -1; -pub const X509_TRUST_COMPAT: i32 = 1; -pub const X509_TRUST_SSL_CLIENT: i32 = 2; -pub const X509_TRUST_SSL_SERVER: i32 = 3; -pub const X509_TRUST_EMAIL: i32 = 4; -pub const X509_TRUST_OBJECT_SIGN: i32 = 5; -pub const X509_TRUST_TSA: i32 = 8; -pub const X509_TRUST_TRUSTED: i32 = 1; -pub const X509_TRUST_REJECTED: i32 = 2; -pub const X509_TRUST_UNTRUSTED: i32 = 3; -pub const X509_LU_NONE: i32 = 0; -pub const X509_LU_X509: i32 = 1; -pub const X509_LU_CRL: i32 = 2; -pub const X509_LU_PKEY: i32 = 3; -pub const X509_L_FILE_LOAD: i32 = 1; -pub const X509_L_ADD_DIR: i32 = 2; -pub const X509_FILETYPE_PEM: i32 = 1; -pub const X509_FILETYPE_ASN1: i32 = 2; -pub const X509_FILETYPE_DEFAULT: i32 = 3; pub const X509_V_OK: i32 = 0; pub const X509_V_ERR_UNSPECIFIED: i32 = 1; pub const X509_V_ERR_UNABLE_TO_GET_ISSUER_CERT: i32 = 2; @@ -3619,6 +3570,78 @@ pub const X509_V_ERR_IP_ADDRESS_MISMATCH: i32 = 64; pub const X509_V_ERR_INVALID_CALL: i32 = 65; pub const X509_V_ERR_STORE_LOOKUP: i32 = 66; pub const X509_V_ERR_NAME_CONSTRAINTS_WITHOUT_SANS: i32 = 67; +pub const X509_CHECK_FLAG_NO_WILDCARDS: i32 = 2; +pub const X509_CHECK_FLAG_NEVER_CHECK_SUBJECT: i32 = 32; +pub const X509_PURPOSE_SSL_CLIENT: i32 = 1; +pub const X509_PURPOSE_SSL_SERVER: i32 = 2; +pub const X509_PURPOSE_NS_SSL_SERVER: i32 = 3; +pub const X509_PURPOSE_SMIME_SIGN: i32 = 4; +pub const X509_PURPOSE_SMIME_ENCRYPT: i32 = 5; +pub const X509_PURPOSE_CRL_SIGN: i32 = 6; +pub const X509_PURPOSE_ANY: i32 = 7; +pub const X509_PURPOSE_OCSP_HELPER: i32 = 8; +pub const X509_PURPOSE_TIMESTAMP_SIGN: i32 = 9; +pub const X509_TRUST_COMPAT: i32 = 1; +pub const X509_TRUST_SSL_CLIENT: i32 = 2; +pub const X509_TRUST_SSL_SERVER: i32 = 3; +pub const X509_TRUST_EMAIL: i32 = 4; +pub const X509_TRUST_OBJECT_SIGN: i32 = 5; +pub const X509_TRUST_TSA: i32 = 8; +pub const X509_FLAG_COMPAT: i32 = 0; +pub const X509_FLAG_NO_HEADER: i32 = 1; +pub const X509_FLAG_NO_VERSION: i32 = 2; +pub const X509_FLAG_NO_SERIAL: i32 = 4; +pub const X509_FLAG_NO_SIGNAME: i32 = 8; +pub const X509_FLAG_NO_ISSUER: i32 = 16; +pub const X509_FLAG_NO_VALIDITY: i32 = 32; +pub const X509_FLAG_NO_SUBJECT: i32 = 64; +pub const X509_FLAG_NO_PUBKEY: i32 = 128; +pub const X509_FLAG_NO_EXTENSIONS: i32 = 256; +pub const X509_FLAG_NO_SIGDUMP: i32 = 512; +pub const X509_FLAG_NO_AUX: i32 = 1024; +pub const X509_FLAG_NO_ATTRIBUTES: i32 = 2048; +pub const X509_FLAG_NO_IDS: i32 = 4096; +pub const X509V3_EXT_UNKNOWN_MASK: i32 = 983040; +pub const X509V3_EXT_DEFAULT: i32 = 0; +pub const X509V3_EXT_ERROR_UNKNOWN: i32 = 65536; +pub const X509V3_EXT_PARSE_UNKNOWN: i32 = 131072; +pub const X509V3_EXT_DUMP_UNKNOWN: i32 = 196608; +pub const XN_FLAG_COMPAT: i32 = 0; +pub const XN_FLAG_SEP_MASK: i32 = 983040; +pub const XN_FLAG_SEP_COMMA_PLUS: i32 = 65536; +pub const XN_FLAG_SEP_CPLUS_SPC: i32 = 131072; +pub const XN_FLAG_SEP_SPLUS_SPC: i32 = 196608; +pub const XN_FLAG_SEP_MULTILINE: i32 = 262144; +pub const XN_FLAG_DN_REV: i32 = 1048576; +pub const XN_FLAG_FN_MASK: i32 = 6291456; +pub const XN_FLAG_FN_SN: i32 = 0; +pub const XN_FLAG_FN_LN: i32 = 2097152; +pub const XN_FLAG_FN_OID: i32 = 4194304; +pub const XN_FLAG_FN_NONE: i32 = 6291456; +pub const XN_FLAG_SPC_EQ: i32 = 8388608; +pub const XN_FLAG_DUMP_UNKNOWN_FIELDS: i32 = 16777216; +pub const XN_FLAG_FN_ALIGN: i32 = 33554432; +pub const XN_FLAG_RFC2253: i32 = 17892119; +pub const XN_FLAG_ONELINE: i32 = 8520479; +pub const XN_FLAG_MULTILINE: i32 = 44302342; +pub const X509_TRUST_TRUSTED: i32 = 1; +pub const X509_TRUST_REJECTED: i32 = 2; +pub const X509_TRUST_UNTRUSTED: i32 = 3; +pub const X509V3_CTX_TEST: i32 = 1; +pub const X509_CHECK_FLAG_ALWAYS_CHECK_SUBJECT: i32 = 0; +pub const X509_CHECK_FLAG_MULTI_LABEL_WILDCARDS: i32 = 0; +pub const X509_CHECK_FLAG_SINGLE_LABEL_SUBDOMAINS: i32 = 0; +pub const X509_CHECK_FLAG_NO_PARTIAL_WILDCARDS: i32 = 0; +pub const X509_TRUST_DEFAULT: i32 = -1; +pub const X509_LU_NONE: i32 = 0; +pub const X509_LU_X509: i32 = 1; +pub const X509_LU_CRL: i32 = 2; +pub const X509_LU_PKEY: i32 = 3; +pub const X509_L_FILE_LOAD: i32 = 1; +pub const X509_L_ADD_DIR: i32 = 2; +pub const X509_FILETYPE_PEM: i32 = 1; +pub const X509_FILETYPE_ASN1: i32 = 2; +pub const X509_FILETYPE_DEFAULT: i32 = 3; pub const X509_V_FLAG_CB_ISSUER_CHECK: i32 = 1; pub const X509_V_FLAG_USE_CHECK_TIME: i32 = 2; pub const X509_V_FLAG_CRL_CHECK: i32 = 4; @@ -3650,15 +3673,6 @@ pub const NS_SSL_CA: i32 = 4; pub const NS_SMIME_CA: i32 = 2; pub const NS_OBJSIGN_CA: i32 = 1; pub const NS_ANY_CA: i32 = 7; -pub const X509_PURPOSE_SSL_CLIENT: i32 = 1; -pub const X509_PURPOSE_SSL_SERVER: i32 = 2; -pub const X509_PURPOSE_NS_SSL_SERVER: i32 = 3; -pub const X509_PURPOSE_SMIME_SIGN: i32 = 4; -pub const X509_PURPOSE_SMIME_ENCRYPT: i32 = 5; -pub const X509_PURPOSE_CRL_SIGN: i32 = 6; -pub const X509_PURPOSE_ANY: i32 = 7; -pub const X509_PURPOSE_OCSP_HELPER: i32 = 8; -pub const X509_PURPOSE_TIMESTAMP_SIGN: i32 = 9; pub const X509V3_ADD_OP_MASK: i32 = 15; pub const X509V3_ADD_DEFAULT: i32 = 0; pub const X509V3_ADD_APPEND: i32 = 1; @@ -3667,12 +3681,6 @@ pub const X509V3_ADD_REPLACE_EXISTING: i32 = 3; pub const X509V3_ADD_KEEP_EXISTING: i32 = 4; pub const X509V3_ADD_DELETE: i32 = 5; pub const X509V3_ADD_SILENT: i32 = 16; -pub const X509_CHECK_FLAG_NO_WILDCARDS: i32 = 2; -pub const X509_CHECK_FLAG_NEVER_CHECK_SUBJECT: i32 = 32; -pub const X509_CHECK_FLAG_NO_PARTIAL_WILDCARDS: i32 = 0; -pub const X509_CHECK_FLAG_ALWAYS_CHECK_SUBJECT: i32 = 0; -pub const X509_CHECK_FLAG_MULTI_LABEL_WILDCARDS: i32 = 0; -pub const X509_CHECK_FLAG_SINGLE_LABEL_SUBDOMAINS: i32 = 0; pub const X509_R_AKID_MISMATCH: i32 = 100; pub const X509_R_BAD_PKCS7_VERSION: i32 = 101; pub const X509_R_BAD_X509_FILETYPE: i32 = 102; @@ -13395,24 +13403,6 @@ extern "C" { enc: ::std::os::raw::c_int, ); } -extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_DES_decrypt3"] - pub fn DES_decrypt3( - data: *mut u32, - ks1: *const DES_key_schedule, - ks2: *const DES_key_schedule, - ks3: *const DES_key_schedule, - ); -} -extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_DES_encrypt3"] - pub fn DES_encrypt3( - data: *mut u32, - ks1: *const DES_key_schedule, - ks2: *const DES_key_schedule, - ks3: *const DES_key_schedule, - ); -} extern "C" { #[link_name = "\u{1}aws_lc_0_21_0_DH_new"] pub fn DH_new() -> *mut DH; @@ -21417,1751 +21407,1558 @@ extern "C" { idx: ::std::os::raw::c_int, ) -> *mut ASN1_TYPE; } -#[repr(C)] -#[derive(Debug, Copy, Clone, PartialEq, Eq)] -pub struct Netscape_spki_st { - pub spkac: *mut NETSCAPE_SPKAC, - pub sig_algor: *mut X509_ALGOR, - pub signature: *mut ASN1_BIT_STRING, -} -#[test] -fn bindgen_test_layout_Netscape_spki_st() { - const UNINIT: ::std::mem::MaybeUninit = ::std::mem::MaybeUninit::uninit(); - let ptr = UNINIT.as_ptr(); - assert_eq!( - ::std::mem::size_of::(), - 12usize, - concat!("Size of: ", stringify!(Netscape_spki_st)) - ); - assert_eq!( - ::std::mem::align_of::(), - 4usize, - concat!("Alignment of ", stringify!(Netscape_spki_st)) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).spkac) as usize - ptr as usize }, - 0usize, - concat!( - "Offset of field: ", - stringify!(Netscape_spki_st), - "::", - stringify!(spkac) - ) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).sig_algor) as usize - ptr as usize }, - 4usize, - concat!( - "Offset of field: ", - stringify!(Netscape_spki_st), - "::", - stringify!(sig_algor) - ) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).signature) as usize - ptr as usize }, - 8usize, - concat!( - "Offset of field: ", - stringify!(Netscape_spki_st), - "::", - stringify!(signature) - ) - ); +extern "C" { + #[link_name = "\u{1}aws_lc_0_21_0_X509_STORE_new"] + pub fn X509_STORE_new() -> *mut X509_STORE; } -impl Default for Netscape_spki_st { - fn default() -> Self { - let mut s = ::std::mem::MaybeUninit::::uninit(); - unsafe { - ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() - } - } +extern "C" { + #[link_name = "\u{1}aws_lc_0_21_0_X509_STORE_up_ref"] + pub fn X509_STORE_up_ref(store: *mut X509_STORE) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_NETSCAPE_SPKI_it"] - pub static NETSCAPE_SPKI_it: ASN1_ITEM; + #[link_name = "\u{1}aws_lc_0_21_0_X509_STORE_free"] + pub fn X509_STORE_free(store: *mut X509_STORE); } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_NETSCAPE_SPKI_new"] - pub fn NETSCAPE_SPKI_new() -> *mut NETSCAPE_SPKI; + #[link_name = "\u{1}aws_lc_0_21_0_X509_STORE_add_cert"] + pub fn X509_STORE_add_cert(store: *mut X509_STORE, x509: *mut X509) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_NETSCAPE_SPKI_free"] - pub fn NETSCAPE_SPKI_free(spki: *mut NETSCAPE_SPKI); + #[link_name = "\u{1}aws_lc_0_21_0_X509_STORE_add_crl"] + pub fn X509_STORE_add_crl(store: *mut X509_STORE, crl: *mut X509_CRL) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_d2i_NETSCAPE_SPKI"] - pub fn d2i_NETSCAPE_SPKI( - out: *mut *mut NETSCAPE_SPKI, - inp: *mut *const u8, - len: ::std::os::raw::c_long, - ) -> *mut NETSCAPE_SPKI; + #[link_name = "\u{1}aws_lc_0_21_0_X509_STORE_get0_param"] + pub fn X509_STORE_get0_param(store: *mut X509_STORE) -> *mut X509_VERIFY_PARAM; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_i2d_NETSCAPE_SPKI"] - pub fn i2d_NETSCAPE_SPKI( - spki: *const NETSCAPE_SPKI, - outp: *mut *mut u8, + #[link_name = "\u{1}aws_lc_0_21_0_X509_STORE_set1_param"] + pub fn X509_STORE_set1_param( + store: *mut X509_STORE, + param: *const X509_VERIFY_PARAM, ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_NETSCAPE_SPKI_verify"] - pub fn NETSCAPE_SPKI_verify( - spki: *mut NETSCAPE_SPKI, - pkey: *mut EVP_PKEY, + #[link_name = "\u{1}aws_lc_0_21_0_X509_STORE_set_flags"] + pub fn X509_STORE_set_flags( + store: *mut X509_STORE, + flags: ::std::os::raw::c_ulong, ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_NETSCAPE_SPKI_b64_decode"] - pub fn NETSCAPE_SPKI_b64_decode( - str_: *const ::std::os::raw::c_char, - len: ossl_ssize_t, - ) -> *mut NETSCAPE_SPKI; + #[link_name = "\u{1}aws_lc_0_21_0_X509_STORE_set_depth"] + pub fn X509_STORE_set_depth( + store: *mut X509_STORE, + depth: ::std::os::raw::c_int, + ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_NETSCAPE_SPKI_b64_encode"] - pub fn NETSCAPE_SPKI_b64_encode(spki: *mut NETSCAPE_SPKI) -> *mut ::std::os::raw::c_char; + #[link_name = "\u{1}aws_lc_0_21_0_X509_STORE_set_purpose"] + pub fn X509_STORE_set_purpose( + store: *mut X509_STORE, + purpose: ::std::os::raw::c_int, + ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_NETSCAPE_SPKI_get_pubkey"] - pub fn NETSCAPE_SPKI_get_pubkey(spki: *const NETSCAPE_SPKI) -> *mut EVP_PKEY; + #[link_name = "\u{1}aws_lc_0_21_0_X509_STORE_set_trust"] + pub fn X509_STORE_set_trust( + store: *mut X509_STORE, + trust: ::std::os::raw::c_int, + ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_NETSCAPE_SPKI_set_pubkey"] - pub fn NETSCAPE_SPKI_set_pubkey( - spki: *mut NETSCAPE_SPKI, - pkey: *mut EVP_PKEY, - ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_0_21_0_X509_STORE_CTX_new"] + pub fn X509_STORE_CTX_new() -> *mut X509_STORE_CTX; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_NETSCAPE_SPKI_sign"] - pub fn NETSCAPE_SPKI_sign( - spki: *mut NETSCAPE_SPKI, - pkey: *mut EVP_PKEY, - md: *const EVP_MD, + #[link_name = "\u{1}aws_lc_0_21_0_X509_STORE_CTX_free"] + pub fn X509_STORE_CTX_free(ctx: *mut X509_STORE_CTX); +} +extern "C" { + #[link_name = "\u{1}aws_lc_0_21_0_X509_STORE_CTX_init"] + pub fn X509_STORE_CTX_init( + ctx: *mut X509_STORE_CTX, + store: *mut X509_STORE, + x509: *mut X509, + chain: *mut stack_st_X509, ) -> ::std::os::raw::c_int; } -#[repr(C)] -#[derive(Debug, Copy, Clone, PartialEq, Eq)] -pub struct Netscape_spkac_st { - pub pubkey: *mut X509_PUBKEY, - pub challenge: *mut ASN1_IA5STRING, +extern "C" { + #[link_name = "\u{1}aws_lc_0_21_0_X509_verify_cert"] + pub fn X509_verify_cert(ctx: *mut X509_STORE_CTX) -> ::std::os::raw::c_int; } -#[test] -fn bindgen_test_layout_Netscape_spkac_st() { - const UNINIT: ::std::mem::MaybeUninit = ::std::mem::MaybeUninit::uninit(); - let ptr = UNINIT.as_ptr(); - assert_eq!( - ::std::mem::size_of::(), - 8usize, - concat!("Size of: ", stringify!(Netscape_spkac_st)) - ); - assert_eq!( - ::std::mem::align_of::(), - 4usize, - concat!("Alignment of ", stringify!(Netscape_spkac_st)) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).pubkey) as usize - ptr as usize }, - 0usize, - concat!( - "Offset of field: ", - stringify!(Netscape_spkac_st), - "::", - stringify!(pubkey) - ) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).challenge) as usize - ptr as usize }, - 4usize, - concat!( - "Offset of field: ", - stringify!(Netscape_spkac_st), - "::", - stringify!(challenge) - ) - ); +extern "C" { + #[link_name = "\u{1}aws_lc_0_21_0_X509_STORE_CTX_get0_chain"] + pub fn X509_STORE_CTX_get0_chain(ctx: *mut X509_STORE_CTX) -> *mut stack_st_X509; } -impl Default for Netscape_spkac_st { - fn default() -> Self { - let mut s = ::std::mem::MaybeUninit::::uninit(); - unsafe { - ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() - } - } +extern "C" { + #[link_name = "\u{1}aws_lc_0_21_0_X509_STORE_CTX_get1_chain"] + pub fn X509_STORE_CTX_get1_chain(ctx: *mut X509_STORE_CTX) -> *mut stack_st_X509; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_NETSCAPE_SPKAC_it"] - pub static NETSCAPE_SPKAC_it: ASN1_ITEM; + #[link_name = "\u{1}aws_lc_0_21_0_X509_STORE_CTX_set_cert"] + pub fn X509_STORE_CTX_set_cert(c: *mut X509_STORE_CTX, x: *mut X509); } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_NETSCAPE_SPKAC_new"] - pub fn NETSCAPE_SPKAC_new() -> *mut NETSCAPE_SPKAC; + #[link_name = "\u{1}aws_lc_0_21_0_X509_STORE_CTX_get_error"] + pub fn X509_STORE_CTX_get_error(ctx: *mut X509_STORE_CTX) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_NETSCAPE_SPKAC_free"] - pub fn NETSCAPE_SPKAC_free(spkac: *mut NETSCAPE_SPKAC); + #[link_name = "\u{1}aws_lc_0_21_0_X509_STORE_CTX_set_error"] + pub fn X509_STORE_CTX_set_error(ctx: *mut X509_STORE_CTX, err: ::std::os::raw::c_int); } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_d2i_NETSCAPE_SPKAC"] - pub fn d2i_NETSCAPE_SPKAC( - out: *mut *mut NETSCAPE_SPKAC, - inp: *mut *const u8, - len: ::std::os::raw::c_long, - ) -> *mut NETSCAPE_SPKAC; + #[link_name = "\u{1}aws_lc_0_21_0_X509_verify_cert_error_string"] + pub fn X509_verify_cert_error_string( + err: ::std::os::raw::c_long, + ) -> *const ::std::os::raw::c_char; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_i2d_NETSCAPE_SPKAC"] - pub fn i2d_NETSCAPE_SPKAC( - spkac: *const NETSCAPE_SPKAC, - outp: *mut *mut u8, - ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_0_21_0_X509_STORE_CTX_get_error_depth"] + pub fn X509_STORE_CTX_get_error_depth(ctx: *mut X509_STORE_CTX) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_NETSCAPE_SPKI_print"] - pub fn NETSCAPE_SPKI_print(out: *mut BIO, spki: *mut NETSCAPE_SPKI) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_0_21_0_X509_STORE_CTX_get_current_cert"] + pub fn X509_STORE_CTX_get_current_cert(ctx: *mut X509_STORE_CTX) -> *mut X509; } -#[repr(C)] -#[derive(Debug, Copy, Clone, PartialEq, Eq)] -pub struct rsa_pss_params_st { - pub hashAlgorithm: *mut X509_ALGOR, - pub maskGenAlgorithm: *mut X509_ALGOR, - pub saltLength: *mut ASN1_INTEGER, - pub trailerField: *mut ASN1_INTEGER, - pub maskHash: *mut X509_ALGOR, +extern "C" { + #[link_name = "\u{1}aws_lc_0_21_0_X509_STORE_CTX_get0_current_issuer"] + pub fn X509_STORE_CTX_get0_current_issuer(ctx: *mut X509_STORE_CTX) -> *mut X509; } -#[test] -fn bindgen_test_layout_rsa_pss_params_st() { - const UNINIT: ::std::mem::MaybeUninit = ::std::mem::MaybeUninit::uninit(); - let ptr = UNINIT.as_ptr(); - assert_eq!( - ::std::mem::size_of::(), - 20usize, - concat!("Size of: ", stringify!(rsa_pss_params_st)) - ); - assert_eq!( - ::std::mem::align_of::(), - 4usize, - concat!("Alignment of ", stringify!(rsa_pss_params_st)) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).hashAlgorithm) as usize - ptr as usize }, - 0usize, - concat!( - "Offset of field: ", - stringify!(rsa_pss_params_st), - "::", - stringify!(hashAlgorithm) - ) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).maskGenAlgorithm) as usize - ptr as usize }, - 4usize, - concat!( - "Offset of field: ", - stringify!(rsa_pss_params_st), - "::", - stringify!(maskGenAlgorithm) - ) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).saltLength) as usize - ptr as usize }, - 8usize, - concat!( - "Offset of field: ", - stringify!(rsa_pss_params_st), - "::", - stringify!(saltLength) - ) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).trailerField) as usize - ptr as usize }, - 12usize, - concat!( - "Offset of field: ", - stringify!(rsa_pss_params_st), - "::", - stringify!(trailerField) - ) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).maskHash) as usize - ptr as usize }, - 16usize, - concat!( - "Offset of field: ", - stringify!(rsa_pss_params_st), - "::", - stringify!(maskHash) - ) - ); +extern "C" { + #[link_name = "\u{1}aws_lc_0_21_0_X509_STORE_CTX_get0_current_crl"] + pub fn X509_STORE_CTX_get0_current_crl(ctx: *mut X509_STORE_CTX) -> *mut X509_CRL; } -impl Default for rsa_pss_params_st { - fn default() -> Self { - let mut s = ::std::mem::MaybeUninit::::uninit(); - unsafe { - ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() - } - } +extern "C" { + #[link_name = "\u{1}aws_lc_0_21_0_X509_STORE_CTX_get0_store"] + pub fn X509_STORE_CTX_get0_store(ctx: *mut X509_STORE_CTX) -> *mut X509_STORE; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_RSA_PSS_PARAMS_it"] - pub static RSA_PSS_PARAMS_it: ASN1_ITEM; + #[link_name = "\u{1}aws_lc_0_21_0_X509_STORE_CTX_get0_cert"] + pub fn X509_STORE_CTX_get0_cert(ctx: *mut X509_STORE_CTX) -> *mut X509; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_RSA_PSS_PARAMS_new"] - pub fn RSA_PSS_PARAMS_new() -> *mut RSA_PSS_PARAMS; + #[link_name = "\u{1}aws_lc_0_21_0_X509_STORE_CTX_get0_untrusted"] + pub fn X509_STORE_CTX_get0_untrusted(ctx: *mut X509_STORE_CTX) -> *mut stack_st_X509; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_RSA_PSS_PARAMS_free"] - pub fn RSA_PSS_PARAMS_free(params: *mut RSA_PSS_PARAMS); + #[link_name = "\u{1}aws_lc_0_21_0_X509_STORE_CTX_set0_trusted_stack"] + pub fn X509_STORE_CTX_set0_trusted_stack(ctx: *mut X509_STORE_CTX, sk: *mut stack_st_X509); } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_d2i_RSA_PSS_PARAMS"] - pub fn d2i_RSA_PSS_PARAMS( - out: *mut *mut RSA_PSS_PARAMS, - inp: *mut *const u8, - len: ::std::os::raw::c_long, - ) -> *mut RSA_PSS_PARAMS; + #[link_name = "\u{1}aws_lc_0_21_0_X509_STORE_CTX_set0_crls"] + pub fn X509_STORE_CTX_set0_crls(ctx: *mut X509_STORE_CTX, sk: *mut stack_st_X509_CRL); } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_i2d_RSA_PSS_PARAMS"] - pub fn i2d_RSA_PSS_PARAMS( - in_: *const RSA_PSS_PARAMS, - outp: *mut *mut u8, + #[link_name = "\u{1}aws_lc_0_21_0_X509_STORE_CTX_set_default"] + pub fn X509_STORE_CTX_set_default( + ctx: *mut X509_STORE_CTX, + name: *const ::std::os::raw::c_char, ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_PKCS8_PRIV_KEY_INFO_it"] - pub static PKCS8_PRIV_KEY_INFO_it: ASN1_ITEM; + #[link_name = "\u{1}aws_lc_0_21_0_X509_STORE_CTX_get0_param"] + pub fn X509_STORE_CTX_get0_param(ctx: *mut X509_STORE_CTX) -> *mut X509_VERIFY_PARAM; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_PKCS8_PRIV_KEY_INFO_new"] - pub fn PKCS8_PRIV_KEY_INFO_new() -> *mut PKCS8_PRIV_KEY_INFO; -} -extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_PKCS8_PRIV_KEY_INFO_free"] - pub fn PKCS8_PRIV_KEY_INFO_free(key: *mut PKCS8_PRIV_KEY_INFO); -} -extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_d2i_PKCS8_PRIV_KEY_INFO"] - pub fn d2i_PKCS8_PRIV_KEY_INFO( - out: *mut *mut PKCS8_PRIV_KEY_INFO, - inp: *mut *const u8, - len: ::std::os::raw::c_long, - ) -> *mut PKCS8_PRIV_KEY_INFO; -} -extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_i2d_PKCS8_PRIV_KEY_INFO"] - pub fn i2d_PKCS8_PRIV_KEY_INFO( - key: *const PKCS8_PRIV_KEY_INFO, - outp: *mut *mut u8, - ) -> ::std::os::raw::c_int; -} -extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_EVP_PKCS82PKEY"] - pub fn EVP_PKCS82PKEY(p8: *const PKCS8_PRIV_KEY_INFO) -> *mut EVP_PKEY; + #[link_name = "\u{1}aws_lc_0_21_0_X509_STORE_CTX_set0_param"] + pub fn X509_STORE_CTX_set0_param(ctx: *mut X509_STORE_CTX, param: *mut X509_VERIFY_PARAM); } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_EVP_PKEY2PKCS8"] - pub fn EVP_PKEY2PKCS8(pkey: *const EVP_PKEY) -> *mut PKCS8_PRIV_KEY_INFO; + #[link_name = "\u{1}aws_lc_0_21_0_X509_STORE_CTX_set_flags"] + pub fn X509_STORE_CTX_set_flags(ctx: *mut X509_STORE_CTX, flags: ::std::os::raw::c_ulong); } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_X509_SIG_it"] - pub static X509_SIG_it: ASN1_ITEM; + #[link_name = "\u{1}aws_lc_0_21_0_X509_STORE_CTX_set_time"] + pub fn X509_STORE_CTX_set_time( + ctx: *mut X509_STORE_CTX, + flags: ::std::os::raw::c_ulong, + t: time_t, + ); } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_X509_SIG_new"] - pub fn X509_SIG_new() -> *mut X509_SIG; + #[link_name = "\u{1}aws_lc_0_21_0_X509_STORE_CTX_set_time_posix"] + pub fn X509_STORE_CTX_set_time_posix( + ctx: *mut X509_STORE_CTX, + flags: ::std::os::raw::c_ulong, + t: i64, + ); } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_X509_SIG_free"] - pub fn X509_SIG_free(key: *mut X509_SIG); + #[link_name = "\u{1}aws_lc_0_21_0_X509_STORE_CTX_set_depth"] + pub fn X509_STORE_CTX_set_depth(ctx: *mut X509_STORE_CTX, depth: ::std::os::raw::c_int); } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_d2i_X509_SIG"] - pub fn d2i_X509_SIG( - out: *mut *mut X509_SIG, - inp: *mut *const u8, - len: ::std::os::raw::c_long, - ) -> *mut X509_SIG; + #[link_name = "\u{1}aws_lc_0_21_0_X509_STORE_CTX_set_purpose"] + pub fn X509_STORE_CTX_set_purpose( + ctx: *mut X509_STORE_CTX, + purpose: ::std::os::raw::c_int, + ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_i2d_X509_SIG"] - pub fn i2d_X509_SIG(sig: *const X509_SIG, outp: *mut *mut u8) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_0_21_0_X509_STORE_CTX_set_trust"] + pub fn X509_STORE_CTX_set_trust( + ctx: *mut X509_STORE_CTX, + trust: ::std::os::raw::c_int, + ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_X509_SIG_get0"] - pub fn X509_SIG_get0( - sig: *const X509_SIG, - out_alg: *mut *const X509_ALGOR, - out_digest: *mut *const ASN1_OCTET_STRING, - ); + #[link_name = "\u{1}aws_lc_0_21_0_X509_VERIFY_PARAM_new"] + pub fn X509_VERIFY_PARAM_new() -> *mut X509_VERIFY_PARAM; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_X509_SIG_getm"] - pub fn X509_SIG_getm( - sig: *mut X509_SIG, - out_alg: *mut *mut X509_ALGOR, - out_digest: *mut *mut ASN1_OCTET_STRING, - ); + #[link_name = "\u{1}aws_lc_0_21_0_X509_VERIFY_PARAM_free"] + pub fn X509_VERIFY_PARAM_free(param: *mut X509_VERIFY_PARAM); } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_X509_print_ex"] - pub fn X509_print_ex( - bp: *mut BIO, - x: *mut X509, - nmflag: ::std::os::raw::c_ulong, - cflag: ::std::os::raw::c_ulong, + #[link_name = "\u{1}aws_lc_0_21_0_X509_VERIFY_PARAM_inherit"] + pub fn X509_VERIFY_PARAM_inherit( + to: *mut X509_VERIFY_PARAM, + from: *const X509_VERIFY_PARAM, ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_X509_print_ex_fp"] - pub fn X509_print_ex_fp( - fp: *mut FILE, - x: *mut X509, - nmflag: ::std::os::raw::c_ulong, - cflag: ::std::os::raw::c_ulong, + #[link_name = "\u{1}aws_lc_0_21_0_X509_VERIFY_PARAM_set1"] + pub fn X509_VERIFY_PARAM_set1( + to: *mut X509_VERIFY_PARAM, + from: *const X509_VERIFY_PARAM, ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_X509_print"] - pub fn X509_print(bp: *mut BIO, x: *mut X509) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_0_21_0_X509_VERIFY_PARAM_set_flags"] + pub fn X509_VERIFY_PARAM_set_flags( + param: *mut X509_VERIFY_PARAM, + flags: ::std::os::raw::c_ulong, + ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_X509_print_fp"] - pub fn X509_print_fp(fp: *mut FILE, x: *mut X509) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_0_21_0_X509_VERIFY_PARAM_clear_flags"] + pub fn X509_VERIFY_PARAM_clear_flags( + param: *mut X509_VERIFY_PARAM, + flags: ::std::os::raw::c_ulong, + ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_X509_CRL_print"] - pub fn X509_CRL_print(bp: *mut BIO, x: *mut X509_CRL) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_0_21_0_X509_VERIFY_PARAM_get_flags"] + pub fn X509_VERIFY_PARAM_get_flags(param: *const X509_VERIFY_PARAM) -> ::std::os::raw::c_ulong; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_X509_CRL_print_fp"] - pub fn X509_CRL_print_fp(fp: *mut FILE, x: *mut X509_CRL) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_0_21_0_X509_VERIFY_PARAM_set_depth"] + pub fn X509_VERIFY_PARAM_set_depth(param: *mut X509_VERIFY_PARAM, depth: ::std::os::raw::c_int); } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_X509_REQ_print_ex"] - pub fn X509_REQ_print_ex( - bp: *mut BIO, - x: *mut X509_REQ, - nmflag: ::std::os::raw::c_ulong, - cflag: ::std::os::raw::c_ulong, - ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_0_21_0_X509_VERIFY_PARAM_get_depth"] + pub fn X509_VERIFY_PARAM_get_depth(param: *const X509_VERIFY_PARAM) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_X509_REQ_print"] - pub fn X509_REQ_print(bp: *mut BIO, req: *mut X509_REQ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_0_21_0_X509_VERIFY_PARAM_set_time"] + pub fn X509_VERIFY_PARAM_set_time(param: *mut X509_VERIFY_PARAM, t: time_t); } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_X509_REQ_print_fp"] - pub fn X509_REQ_print_fp(fp: *mut FILE, req: *mut X509_REQ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_0_21_0_X509_VERIFY_PARAM_set_time_posix"] + pub fn X509_VERIFY_PARAM_set_time_posix(param: *mut X509_VERIFY_PARAM, t: i64); } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_X509_NAME_print_ex"] - pub fn X509_NAME_print_ex( - out: *mut BIO, - nm: *const X509_NAME, - indent: ::std::os::raw::c_int, - flags: ::std::os::raw::c_ulong, + #[link_name = "\u{1}aws_lc_0_21_0_X509_VERIFY_PARAM_add0_policy"] + pub fn X509_VERIFY_PARAM_add0_policy( + param: *mut X509_VERIFY_PARAM, + policy: *mut ASN1_OBJECT, ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_X509_NAME_print"] - pub fn X509_NAME_print( - bp: *mut BIO, - name: *const X509_NAME, - obase: ::std::os::raw::c_int, + #[link_name = "\u{1}aws_lc_0_21_0_X509_VERIFY_PARAM_set1_policies"] + pub fn X509_VERIFY_PARAM_set1_policies( + param: *mut X509_VERIFY_PARAM, + policies: *const stack_st_ASN1_OBJECT, ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_X509_NAME_oneline"] - pub fn X509_NAME_oneline( - name: *const X509_NAME, - buf: *mut ::std::os::raw::c_char, - size: ::std::os::raw::c_int, - ) -> *mut ::std::os::raw::c_char; -} -extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_X509_NAME_print_ex_fp"] - pub fn X509_NAME_print_ex_fp( - fp: *mut FILE, - nm: *const X509_NAME, - indent: ::std::os::raw::c_int, - flags: ::std::os::raw::c_ulong, + #[link_name = "\u{1}aws_lc_0_21_0_X509_VERIFY_PARAM_set1_host"] + pub fn X509_VERIFY_PARAM_set1_host( + param: *mut X509_VERIFY_PARAM, + name: *const ::std::os::raw::c_char, + name_len: usize, ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_X509_signature_dump"] - pub fn X509_signature_dump( - bio: *mut BIO, - sig: *const ASN1_STRING, - indent: ::std::os::raw::c_int, + #[link_name = "\u{1}aws_lc_0_21_0_X509_VERIFY_PARAM_add1_host"] + pub fn X509_VERIFY_PARAM_add1_host( + param: *mut X509_VERIFY_PARAM, + name: *const ::std::os::raw::c_char, + name_len: usize, ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_X509_signature_print"] - pub fn X509_signature_print( - bio: *mut BIO, - alg: *const X509_ALGOR, - sig: *const ASN1_STRING, - ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_0_21_0_X509_VERIFY_PARAM_set_hostflags"] + pub fn X509_VERIFY_PARAM_set_hostflags( + param: *mut X509_VERIFY_PARAM, + flags: ::std::os::raw::c_uint, + ); } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_X509V3_EXT_print"] - pub fn X509V3_EXT_print( - out: *mut BIO, - ext: *const X509_EXTENSION, - flag: ::std::os::raw::c_ulong, - indent: ::std::os::raw::c_int, + #[link_name = "\u{1}aws_lc_0_21_0_X509_VERIFY_PARAM_set1_email"] + pub fn X509_VERIFY_PARAM_set1_email( + param: *mut X509_VERIFY_PARAM, + email: *const ::std::os::raw::c_char, + email_len: usize, ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_X509V3_EXT_print_fp"] - pub fn X509V3_EXT_print_fp( - out: *mut FILE, - ext: *const X509_EXTENSION, - flag: ::std::os::raw::c_int, - indent: ::std::os::raw::c_int, + #[link_name = "\u{1}aws_lc_0_21_0_X509_VERIFY_PARAM_set1_ip"] + pub fn X509_VERIFY_PARAM_set1_ip( + param: *mut X509_VERIFY_PARAM, + ip: *const u8, + ip_len: usize, ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_X509V3_extensions_print"] - pub fn X509V3_extensions_print( - out: *mut BIO, - title: *const ::std::os::raw::c_char, - exts: *const stack_st_X509_EXTENSION, - flag: ::std::os::raw::c_ulong, - indent: ::std::os::raw::c_int, + #[link_name = "\u{1}aws_lc_0_21_0_X509_VERIFY_PARAM_set1_ip_asc"] + pub fn X509_VERIFY_PARAM_set1_ip_asc( + param: *mut X509_VERIFY_PARAM, + ipasc: *const ::std::os::raw::c_char, ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_GENERAL_NAME_print"] - pub fn GENERAL_NAME_print(out: *mut BIO, gen: *const GENERAL_NAME) -> ::std::os::raw::c_int; -} -extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_X509_pubkey_digest"] - pub fn X509_pubkey_digest( - x509: *const X509, - md: *const EVP_MD, - out: *mut u8, - out_len: *mut ::std::os::raw::c_uint, + #[link_name = "\u{1}aws_lc_0_21_0_X509_VERIFY_PARAM_set_purpose"] + pub fn X509_VERIFY_PARAM_set_purpose( + param: *mut X509_VERIFY_PARAM, + purpose: ::std::os::raw::c_int, ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_X509_digest"] - pub fn X509_digest( - x509: *const X509, - md: *const EVP_MD, - out: *mut u8, - out_len: *mut ::std::os::raw::c_uint, + #[link_name = "\u{1}aws_lc_0_21_0_X509_VERIFY_PARAM_set_trust"] + pub fn X509_VERIFY_PARAM_set_trust( + param: *mut X509_VERIFY_PARAM, + trust: ::std::os::raw::c_int, ) -> ::std::os::raw::c_int; } -extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_X509_CRL_digest"] - pub fn X509_CRL_digest( - crl: *const X509_CRL, - md: *const EVP_MD, - out: *mut u8, - out_len: *mut ::std::os::raw::c_uint, - ) -> ::std::os::raw::c_int; -} -extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_X509_REQ_digest"] - pub fn X509_REQ_digest( - req: *const X509_REQ, - md: *const EVP_MD, - out: *mut u8, - out_len: *mut ::std::os::raw::c_uint, - ) -> ::std::os::raw::c_int; -} -extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_X509_NAME_digest"] - pub fn X509_NAME_digest( - name: *const X509_NAME, - md: *const EVP_MD, - out: *mut u8, - out_len: *mut ::std::os::raw::c_uint, - ) -> ::std::os::raw::c_int; +#[repr(C)] +#[derive(Debug, Copy, Clone, PartialEq, Eq)] +pub struct Netscape_spki_st { + pub spkac: *mut NETSCAPE_SPKAC, + pub sig_algor: *mut X509_ALGOR, + pub signature: *mut ASN1_BIT_STRING, } -extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_d2i_X509_bio"] - pub fn d2i_X509_bio(bp: *mut BIO, x509: *mut *mut X509) -> *mut X509; +#[test] +fn bindgen_test_layout_Netscape_spki_st() { + const UNINIT: ::std::mem::MaybeUninit = ::std::mem::MaybeUninit::uninit(); + let ptr = UNINIT.as_ptr(); + assert_eq!( + ::std::mem::size_of::(), + 12usize, + concat!("Size of: ", stringify!(Netscape_spki_st)) + ); + assert_eq!( + ::std::mem::align_of::(), + 4usize, + concat!("Alignment of ", stringify!(Netscape_spki_st)) + ); + assert_eq!( + unsafe { ::std::ptr::addr_of!((*ptr).spkac) as usize - ptr as usize }, + 0usize, + concat!( + "Offset of field: ", + stringify!(Netscape_spki_st), + "::", + stringify!(spkac) + ) + ); + assert_eq!( + unsafe { ::std::ptr::addr_of!((*ptr).sig_algor) as usize - ptr as usize }, + 4usize, + concat!( + "Offset of field: ", + stringify!(Netscape_spki_st), + "::", + stringify!(sig_algor) + ) + ); + assert_eq!( + unsafe { ::std::ptr::addr_of!((*ptr).signature) as usize - ptr as usize }, + 8usize, + concat!( + "Offset of field: ", + stringify!(Netscape_spki_st), + "::", + stringify!(signature) + ) + ); } -extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_d2i_X509_CRL_bio"] - pub fn d2i_X509_CRL_bio(bp: *mut BIO, crl: *mut *mut X509_CRL) -> *mut X509_CRL; +impl Default for Netscape_spki_st { + fn default() -> Self { + let mut s = ::std::mem::MaybeUninit::::uninit(); + unsafe { + ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); + s.assume_init() + } + } } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_d2i_X509_REQ_bio"] - pub fn d2i_X509_REQ_bio(bp: *mut BIO, req: *mut *mut X509_REQ) -> *mut X509_REQ; + #[link_name = "\u{1}aws_lc_0_21_0_NETSCAPE_SPKI_it"] + pub static NETSCAPE_SPKI_it: ASN1_ITEM; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_d2i_RSAPrivateKey_bio"] - pub fn d2i_RSAPrivateKey_bio(bp: *mut BIO, rsa: *mut *mut RSA) -> *mut RSA; + #[link_name = "\u{1}aws_lc_0_21_0_NETSCAPE_SPKI_new"] + pub fn NETSCAPE_SPKI_new() -> *mut NETSCAPE_SPKI; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_d2i_RSAPublicKey_bio"] - pub fn d2i_RSAPublicKey_bio(bp: *mut BIO, rsa: *mut *mut RSA) -> *mut RSA; + #[link_name = "\u{1}aws_lc_0_21_0_NETSCAPE_SPKI_free"] + pub fn NETSCAPE_SPKI_free(spki: *mut NETSCAPE_SPKI); } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_d2i_RSA_PUBKEY_bio"] - pub fn d2i_RSA_PUBKEY_bio(bp: *mut BIO, rsa: *mut *mut RSA) -> *mut RSA; + #[link_name = "\u{1}aws_lc_0_21_0_d2i_NETSCAPE_SPKI"] + pub fn d2i_NETSCAPE_SPKI( + out: *mut *mut NETSCAPE_SPKI, + inp: *mut *const u8, + len: ::std::os::raw::c_long, + ) -> *mut NETSCAPE_SPKI; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_d2i_DSA_PUBKEY_bio"] - pub fn d2i_DSA_PUBKEY_bio(bp: *mut BIO, dsa: *mut *mut DSA) -> *mut DSA; + #[link_name = "\u{1}aws_lc_0_21_0_i2d_NETSCAPE_SPKI"] + pub fn i2d_NETSCAPE_SPKI( + spki: *const NETSCAPE_SPKI, + outp: *mut *mut u8, + ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_d2i_DSAPrivateKey_bio"] - pub fn d2i_DSAPrivateKey_bio(bp: *mut BIO, dsa: *mut *mut DSA) -> *mut DSA; + #[link_name = "\u{1}aws_lc_0_21_0_NETSCAPE_SPKI_verify"] + pub fn NETSCAPE_SPKI_verify( + spki: *mut NETSCAPE_SPKI, + pkey: *mut EVP_PKEY, + ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_d2i_EC_PUBKEY_bio"] - pub fn d2i_EC_PUBKEY_bio(bp: *mut BIO, eckey: *mut *mut EC_KEY) -> *mut EC_KEY; + #[link_name = "\u{1}aws_lc_0_21_0_NETSCAPE_SPKI_b64_decode"] + pub fn NETSCAPE_SPKI_b64_decode( + str_: *const ::std::os::raw::c_char, + len: ossl_ssize_t, + ) -> *mut NETSCAPE_SPKI; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_d2i_ECPrivateKey_bio"] - pub fn d2i_ECPrivateKey_bio(bp: *mut BIO, eckey: *mut *mut EC_KEY) -> *mut EC_KEY; + #[link_name = "\u{1}aws_lc_0_21_0_NETSCAPE_SPKI_b64_encode"] + pub fn NETSCAPE_SPKI_b64_encode(spki: *mut NETSCAPE_SPKI) -> *mut ::std::os::raw::c_char; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_d2i_PKCS8_bio"] - pub fn d2i_PKCS8_bio(bp: *mut BIO, p8: *mut *mut X509_SIG) -> *mut X509_SIG; + #[link_name = "\u{1}aws_lc_0_21_0_NETSCAPE_SPKI_get_pubkey"] + pub fn NETSCAPE_SPKI_get_pubkey(spki: *const NETSCAPE_SPKI) -> *mut EVP_PKEY; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_d2i_PKCS8_PRIV_KEY_INFO_bio"] - pub fn d2i_PKCS8_PRIV_KEY_INFO_bio( - bp: *mut BIO, - p8inf: *mut *mut PKCS8_PRIV_KEY_INFO, - ) -> *mut PKCS8_PRIV_KEY_INFO; + #[link_name = "\u{1}aws_lc_0_21_0_NETSCAPE_SPKI_set_pubkey"] + pub fn NETSCAPE_SPKI_set_pubkey( + spki: *mut NETSCAPE_SPKI, + pkey: *mut EVP_PKEY, + ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_d2i_PUBKEY_bio"] - pub fn d2i_PUBKEY_bio(bp: *mut BIO, a: *mut *mut EVP_PKEY) -> *mut EVP_PKEY; + #[link_name = "\u{1}aws_lc_0_21_0_NETSCAPE_SPKI_sign"] + pub fn NETSCAPE_SPKI_sign( + spki: *mut NETSCAPE_SPKI, + pkey: *mut EVP_PKEY, + md: *const EVP_MD, + ) -> ::std::os::raw::c_int; } -extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_d2i_DHparams_bio"] - pub fn d2i_DHparams_bio(bp: *mut BIO, dh: *mut *mut DH) -> *mut DH; +#[repr(C)] +#[derive(Debug, Copy, Clone, PartialEq, Eq)] +pub struct Netscape_spkac_st { + pub pubkey: *mut X509_PUBKEY, + pub challenge: *mut ASN1_IA5STRING, } -extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_d2i_PrivateKey_bio"] - pub fn d2i_PrivateKey_bio(bp: *mut BIO, a: *mut *mut EVP_PKEY) -> *mut EVP_PKEY; +#[test] +fn bindgen_test_layout_Netscape_spkac_st() { + const UNINIT: ::std::mem::MaybeUninit = ::std::mem::MaybeUninit::uninit(); + let ptr = UNINIT.as_ptr(); + assert_eq!( + ::std::mem::size_of::(), + 8usize, + concat!("Size of: ", stringify!(Netscape_spkac_st)) + ); + assert_eq!( + ::std::mem::align_of::(), + 4usize, + concat!("Alignment of ", stringify!(Netscape_spkac_st)) + ); + assert_eq!( + unsafe { ::std::ptr::addr_of!((*ptr).pubkey) as usize - ptr as usize }, + 0usize, + concat!( + "Offset of field: ", + stringify!(Netscape_spkac_st), + "::", + stringify!(pubkey) + ) + ); + assert_eq!( + unsafe { ::std::ptr::addr_of!((*ptr).challenge) as usize - ptr as usize }, + 4usize, + concat!( + "Offset of field: ", + stringify!(Netscape_spkac_st), + "::", + stringify!(challenge) + ) + ); } -extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_i2d_X509_bio"] - pub fn i2d_X509_bio(bp: *mut BIO, x509: *mut X509) -> ::std::os::raw::c_int; +impl Default for Netscape_spkac_st { + fn default() -> Self { + let mut s = ::std::mem::MaybeUninit::::uninit(); + unsafe { + ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); + s.assume_init() + } + } } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_i2d_X509_CRL_bio"] - pub fn i2d_X509_CRL_bio(bp: *mut BIO, crl: *mut X509_CRL) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_0_21_0_NETSCAPE_SPKAC_it"] + pub static NETSCAPE_SPKAC_it: ASN1_ITEM; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_i2d_X509_REQ_bio"] - pub fn i2d_X509_REQ_bio(bp: *mut BIO, req: *mut X509_REQ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_0_21_0_NETSCAPE_SPKAC_new"] + pub fn NETSCAPE_SPKAC_new() -> *mut NETSCAPE_SPKAC; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_i2d_RSAPrivateKey_bio"] - pub fn i2d_RSAPrivateKey_bio(bp: *mut BIO, rsa: *mut RSA) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_0_21_0_NETSCAPE_SPKAC_free"] + pub fn NETSCAPE_SPKAC_free(spkac: *mut NETSCAPE_SPKAC); } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_i2d_RSAPublicKey_bio"] - pub fn i2d_RSAPublicKey_bio(bp: *mut BIO, rsa: *mut RSA) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_0_21_0_d2i_NETSCAPE_SPKAC"] + pub fn d2i_NETSCAPE_SPKAC( + out: *mut *mut NETSCAPE_SPKAC, + inp: *mut *const u8, + len: ::std::os::raw::c_long, + ) -> *mut NETSCAPE_SPKAC; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_i2d_RSA_PUBKEY_bio"] - pub fn i2d_RSA_PUBKEY_bio(bp: *mut BIO, rsa: *mut RSA) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_0_21_0_i2d_NETSCAPE_SPKAC"] + pub fn i2d_NETSCAPE_SPKAC( + spkac: *const NETSCAPE_SPKAC, + outp: *mut *mut u8, + ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_i2d_DSA_PUBKEY_bio"] - pub fn i2d_DSA_PUBKEY_bio(bp: *mut BIO, dsa: *mut DSA) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_0_21_0_NETSCAPE_SPKI_print"] + pub fn NETSCAPE_SPKI_print(out: *mut BIO, spki: *mut NETSCAPE_SPKI) -> ::std::os::raw::c_int; } -extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_i2d_DSAPrivateKey_bio"] - pub fn i2d_DSAPrivateKey_bio(bp: *mut BIO, dsa: *mut DSA) -> ::std::os::raw::c_int; +#[repr(C)] +#[derive(Debug, Copy, Clone, PartialEq, Eq)] +pub struct rsa_pss_params_st { + pub hashAlgorithm: *mut X509_ALGOR, + pub maskGenAlgorithm: *mut X509_ALGOR, + pub saltLength: *mut ASN1_INTEGER, + pub trailerField: *mut ASN1_INTEGER, + pub maskHash: *mut X509_ALGOR, } -extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_i2d_EC_PUBKEY_bio"] - pub fn i2d_EC_PUBKEY_bio(bp: *mut BIO, eckey: *mut EC_KEY) -> ::std::os::raw::c_int; -} -extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_i2d_ECPrivateKey_bio"] - pub fn i2d_ECPrivateKey_bio(bp: *mut BIO, eckey: *mut EC_KEY) -> ::std::os::raw::c_int; +#[test] +fn bindgen_test_layout_rsa_pss_params_st() { + const UNINIT: ::std::mem::MaybeUninit = ::std::mem::MaybeUninit::uninit(); + let ptr = UNINIT.as_ptr(); + assert_eq!( + ::std::mem::size_of::(), + 20usize, + concat!("Size of: ", stringify!(rsa_pss_params_st)) + ); + assert_eq!( + ::std::mem::align_of::(), + 4usize, + concat!("Alignment of ", stringify!(rsa_pss_params_st)) + ); + assert_eq!( + unsafe { ::std::ptr::addr_of!((*ptr).hashAlgorithm) as usize - ptr as usize }, + 0usize, + concat!( + "Offset of field: ", + stringify!(rsa_pss_params_st), + "::", + stringify!(hashAlgorithm) + ) + ); + assert_eq!( + unsafe { ::std::ptr::addr_of!((*ptr).maskGenAlgorithm) as usize - ptr as usize }, + 4usize, + concat!( + "Offset of field: ", + stringify!(rsa_pss_params_st), + "::", + stringify!(maskGenAlgorithm) + ) + ); + assert_eq!( + unsafe { ::std::ptr::addr_of!((*ptr).saltLength) as usize - ptr as usize }, + 8usize, + concat!( + "Offset of field: ", + stringify!(rsa_pss_params_st), + "::", + stringify!(saltLength) + ) + ); + assert_eq!( + unsafe { ::std::ptr::addr_of!((*ptr).trailerField) as usize - ptr as usize }, + 12usize, + concat!( + "Offset of field: ", + stringify!(rsa_pss_params_st), + "::", + stringify!(trailerField) + ) + ); + assert_eq!( + unsafe { ::std::ptr::addr_of!((*ptr).maskHash) as usize - ptr as usize }, + 16usize, + concat!( + "Offset of field: ", + stringify!(rsa_pss_params_st), + "::", + stringify!(maskHash) + ) + ); } -extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_i2d_PKCS8_bio"] - pub fn i2d_PKCS8_bio(bp: *mut BIO, p8: *mut X509_SIG) -> ::std::os::raw::c_int; +impl Default for rsa_pss_params_st { + fn default() -> Self { + let mut s = ::std::mem::MaybeUninit::::uninit(); + unsafe { + ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); + s.assume_init() + } + } } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_i2d_PKCS8_PRIV_KEY_INFO_bio"] - pub fn i2d_PKCS8_PRIV_KEY_INFO_bio( - bp: *mut BIO, - p8inf: *mut PKCS8_PRIV_KEY_INFO, - ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_0_21_0_RSA_PSS_PARAMS_it"] + pub static RSA_PSS_PARAMS_it: ASN1_ITEM; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_i2d_PrivateKey_bio"] - pub fn i2d_PrivateKey_bio(bp: *mut BIO, pkey: *mut EVP_PKEY) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_0_21_0_RSA_PSS_PARAMS_new"] + pub fn RSA_PSS_PARAMS_new() -> *mut RSA_PSS_PARAMS; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_i2d_PUBKEY_bio"] - pub fn i2d_PUBKEY_bio(bp: *mut BIO, pkey: *mut EVP_PKEY) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_0_21_0_RSA_PSS_PARAMS_free"] + pub fn RSA_PSS_PARAMS_free(params: *mut RSA_PSS_PARAMS); } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_i2d_DHparams_bio"] - pub fn i2d_DHparams_bio(bp: *mut BIO, dh: *const DH) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_0_21_0_d2i_RSA_PSS_PARAMS"] + pub fn d2i_RSA_PSS_PARAMS( + out: *mut *mut RSA_PSS_PARAMS, + inp: *mut *const u8, + len: ::std::os::raw::c_long, + ) -> *mut RSA_PSS_PARAMS; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_i2d_PKCS8PrivateKeyInfo_bio"] - pub fn i2d_PKCS8PrivateKeyInfo_bio(bp: *mut BIO, key: *mut EVP_PKEY) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_0_21_0_i2d_RSA_PSS_PARAMS"] + pub fn i2d_RSA_PSS_PARAMS( + in_: *const RSA_PSS_PARAMS, + outp: *mut *mut u8, + ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_d2i_X509_fp"] - pub fn d2i_X509_fp(fp: *mut FILE, x509: *mut *mut X509) -> *mut X509; + #[link_name = "\u{1}aws_lc_0_21_0_PKCS8_PRIV_KEY_INFO_it"] + pub static PKCS8_PRIV_KEY_INFO_it: ASN1_ITEM; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_d2i_X509_CRL_fp"] - pub fn d2i_X509_CRL_fp(fp: *mut FILE, crl: *mut *mut X509_CRL) -> *mut X509_CRL; + #[link_name = "\u{1}aws_lc_0_21_0_PKCS8_PRIV_KEY_INFO_new"] + pub fn PKCS8_PRIV_KEY_INFO_new() -> *mut PKCS8_PRIV_KEY_INFO; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_d2i_X509_REQ_fp"] - pub fn d2i_X509_REQ_fp(fp: *mut FILE, req: *mut *mut X509_REQ) -> *mut X509_REQ; + #[link_name = "\u{1}aws_lc_0_21_0_PKCS8_PRIV_KEY_INFO_free"] + pub fn PKCS8_PRIV_KEY_INFO_free(key: *mut PKCS8_PRIV_KEY_INFO); } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_d2i_RSAPrivateKey_fp"] - pub fn d2i_RSAPrivateKey_fp(fp: *mut FILE, rsa: *mut *mut RSA) -> *mut RSA; + #[link_name = "\u{1}aws_lc_0_21_0_d2i_PKCS8_PRIV_KEY_INFO"] + pub fn d2i_PKCS8_PRIV_KEY_INFO( + out: *mut *mut PKCS8_PRIV_KEY_INFO, + inp: *mut *const u8, + len: ::std::os::raw::c_long, + ) -> *mut PKCS8_PRIV_KEY_INFO; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_d2i_RSAPublicKey_fp"] - pub fn d2i_RSAPublicKey_fp(fp: *mut FILE, rsa: *mut *mut RSA) -> *mut RSA; + #[link_name = "\u{1}aws_lc_0_21_0_i2d_PKCS8_PRIV_KEY_INFO"] + pub fn i2d_PKCS8_PRIV_KEY_INFO( + key: *const PKCS8_PRIV_KEY_INFO, + outp: *mut *mut u8, + ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_d2i_RSA_PUBKEY_fp"] - pub fn d2i_RSA_PUBKEY_fp(fp: *mut FILE, rsa: *mut *mut RSA) -> *mut RSA; + #[link_name = "\u{1}aws_lc_0_21_0_EVP_PKCS82PKEY"] + pub fn EVP_PKCS82PKEY(p8: *const PKCS8_PRIV_KEY_INFO) -> *mut EVP_PKEY; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_d2i_DSA_PUBKEY_fp"] - pub fn d2i_DSA_PUBKEY_fp(fp: *mut FILE, dsa: *mut *mut DSA) -> *mut DSA; + #[link_name = "\u{1}aws_lc_0_21_0_EVP_PKEY2PKCS8"] + pub fn EVP_PKEY2PKCS8(pkey: *const EVP_PKEY) -> *mut PKCS8_PRIV_KEY_INFO; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_d2i_DSAPrivateKey_fp"] - pub fn d2i_DSAPrivateKey_fp(fp: *mut FILE, dsa: *mut *mut DSA) -> *mut DSA; + #[link_name = "\u{1}aws_lc_0_21_0_X509_SIG_it"] + pub static X509_SIG_it: ASN1_ITEM; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_d2i_EC_PUBKEY_fp"] - pub fn d2i_EC_PUBKEY_fp(fp: *mut FILE, eckey: *mut *mut EC_KEY) -> *mut EC_KEY; + #[link_name = "\u{1}aws_lc_0_21_0_X509_SIG_new"] + pub fn X509_SIG_new() -> *mut X509_SIG; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_d2i_ECPrivateKey_fp"] - pub fn d2i_ECPrivateKey_fp(fp: *mut FILE, eckey: *mut *mut EC_KEY) -> *mut EC_KEY; + #[link_name = "\u{1}aws_lc_0_21_0_X509_SIG_free"] + pub fn X509_SIG_free(key: *mut X509_SIG); } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_d2i_PKCS8_fp"] - pub fn d2i_PKCS8_fp(fp: *mut FILE, p8: *mut *mut X509_SIG) -> *mut X509_SIG; + #[link_name = "\u{1}aws_lc_0_21_0_d2i_X509_SIG"] + pub fn d2i_X509_SIG( + out: *mut *mut X509_SIG, + inp: *mut *const u8, + len: ::std::os::raw::c_long, + ) -> *mut X509_SIG; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_d2i_PKCS8_PRIV_KEY_INFO_fp"] - pub fn d2i_PKCS8_PRIV_KEY_INFO_fp( - fp: *mut FILE, - p8inf: *mut *mut PKCS8_PRIV_KEY_INFO, - ) -> *mut PKCS8_PRIV_KEY_INFO; + #[link_name = "\u{1}aws_lc_0_21_0_i2d_X509_SIG"] + pub fn i2d_X509_SIG(sig: *const X509_SIG, outp: *mut *mut u8) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_d2i_PrivateKey_fp"] - pub fn d2i_PrivateKey_fp(fp: *mut FILE, a: *mut *mut EVP_PKEY) -> *mut EVP_PKEY; + #[link_name = "\u{1}aws_lc_0_21_0_X509_SIG_get0"] + pub fn X509_SIG_get0( + sig: *const X509_SIG, + out_alg: *mut *const X509_ALGOR, + out_digest: *mut *const ASN1_OCTET_STRING, + ); } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_d2i_PUBKEY_fp"] - pub fn d2i_PUBKEY_fp(fp: *mut FILE, a: *mut *mut EVP_PKEY) -> *mut EVP_PKEY; + #[link_name = "\u{1}aws_lc_0_21_0_X509_SIG_getm"] + pub fn X509_SIG_getm( + sig: *mut X509_SIG, + out_alg: *mut *mut X509_ALGOR, + out_digest: *mut *mut ASN1_OCTET_STRING, + ); } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_i2d_X509_fp"] - pub fn i2d_X509_fp(fp: *mut FILE, x509: *mut X509) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_0_21_0_X509_print_ex"] + pub fn X509_print_ex( + bp: *mut BIO, + x: *mut X509, + nmflag: ::std::os::raw::c_ulong, + cflag: ::std::os::raw::c_ulong, + ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_i2d_X509_CRL_fp"] - pub fn i2d_X509_CRL_fp(fp: *mut FILE, crl: *mut X509_CRL) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_0_21_0_X509_print_ex_fp"] + pub fn X509_print_ex_fp( + fp: *mut FILE, + x: *mut X509, + nmflag: ::std::os::raw::c_ulong, + cflag: ::std::os::raw::c_ulong, + ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_i2d_X509_REQ_fp"] - pub fn i2d_X509_REQ_fp(fp: *mut FILE, req: *mut X509_REQ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_0_21_0_X509_print"] + pub fn X509_print(bp: *mut BIO, x: *mut X509) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_i2d_RSAPrivateKey_fp"] - pub fn i2d_RSAPrivateKey_fp(fp: *mut FILE, rsa: *mut RSA) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_0_21_0_X509_print_fp"] + pub fn X509_print_fp(fp: *mut FILE, x: *mut X509) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_i2d_RSAPublicKey_fp"] - pub fn i2d_RSAPublicKey_fp(fp: *mut FILE, rsa: *mut RSA) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_0_21_0_X509_CRL_print"] + pub fn X509_CRL_print(bp: *mut BIO, x: *mut X509_CRL) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_i2d_RSA_PUBKEY_fp"] - pub fn i2d_RSA_PUBKEY_fp(fp: *mut FILE, rsa: *mut RSA) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_0_21_0_X509_CRL_print_fp"] + pub fn X509_CRL_print_fp(fp: *mut FILE, x: *mut X509_CRL) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_i2d_DSA_PUBKEY_fp"] - pub fn i2d_DSA_PUBKEY_fp(fp: *mut FILE, dsa: *mut DSA) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_0_21_0_X509_REQ_print_ex"] + pub fn X509_REQ_print_ex( + bp: *mut BIO, + x: *mut X509_REQ, + nmflag: ::std::os::raw::c_ulong, + cflag: ::std::os::raw::c_ulong, + ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_i2d_DSAPrivateKey_fp"] - pub fn i2d_DSAPrivateKey_fp(fp: *mut FILE, dsa: *mut DSA) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_0_21_0_X509_REQ_print"] + pub fn X509_REQ_print(bp: *mut BIO, req: *mut X509_REQ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_i2d_EC_PUBKEY_fp"] - pub fn i2d_EC_PUBKEY_fp(fp: *mut FILE, eckey: *mut EC_KEY) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_0_21_0_X509_REQ_print_fp"] + pub fn X509_REQ_print_fp(fp: *mut FILE, req: *mut X509_REQ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_i2d_ECPrivateKey_fp"] - pub fn i2d_ECPrivateKey_fp(fp: *mut FILE, eckey: *mut EC_KEY) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_0_21_0_X509_NAME_print_ex"] + pub fn X509_NAME_print_ex( + out: *mut BIO, + nm: *const X509_NAME, + indent: ::std::os::raw::c_int, + flags: ::std::os::raw::c_ulong, + ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_i2d_PKCS8_fp"] - pub fn i2d_PKCS8_fp(fp: *mut FILE, p8: *mut X509_SIG) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_0_21_0_X509_NAME_print"] + pub fn X509_NAME_print( + bp: *mut BIO, + name: *const X509_NAME, + obase: ::std::os::raw::c_int, + ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_i2d_PKCS8_PRIV_KEY_INFO_fp"] - pub fn i2d_PKCS8_PRIV_KEY_INFO_fp( + #[link_name = "\u{1}aws_lc_0_21_0_X509_NAME_oneline"] + pub fn X509_NAME_oneline( + name: *const X509_NAME, + buf: *mut ::std::os::raw::c_char, + size: ::std::os::raw::c_int, + ) -> *mut ::std::os::raw::c_char; +} +extern "C" { + #[link_name = "\u{1}aws_lc_0_21_0_X509_NAME_print_ex_fp"] + pub fn X509_NAME_print_ex_fp( fp: *mut FILE, - p8inf: *mut PKCS8_PRIV_KEY_INFO, + nm: *const X509_NAME, + indent: ::std::os::raw::c_int, + flags: ::std::os::raw::c_ulong, ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_i2d_PKCS8PrivateKeyInfo_fp"] - pub fn i2d_PKCS8PrivateKeyInfo_fp(fp: *mut FILE, key: *mut EVP_PKEY) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_0_21_0_X509_signature_dump"] + pub fn X509_signature_dump( + bio: *mut BIO, + sig: *const ASN1_STRING, + indent: ::std::os::raw::c_int, + ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_i2d_PrivateKey_fp"] - pub fn i2d_PrivateKey_fp(fp: *mut FILE, pkey: *mut EVP_PKEY) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_0_21_0_X509_signature_print"] + pub fn X509_signature_print( + bio: *mut BIO, + alg: *const X509_ALGOR, + sig: *const ASN1_STRING, + ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_i2d_PUBKEY_fp"] - pub fn i2d_PUBKEY_fp(fp: *mut FILE, pkey: *mut EVP_PKEY) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_0_21_0_X509V3_EXT_print"] + pub fn X509V3_EXT_print( + out: *mut BIO, + ext: *const X509_EXTENSION, + flag: ::std::os::raw::c_ulong, + indent: ::std::os::raw::c_int, + ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_X509_find_by_issuer_and_serial"] - pub fn X509_find_by_issuer_and_serial( - sk: *const stack_st_X509, - name: *mut X509_NAME, - serial: *const ASN1_INTEGER, - ) -> *mut X509; + #[link_name = "\u{1}aws_lc_0_21_0_X509V3_EXT_print_fp"] + pub fn X509V3_EXT_print_fp( + out: *mut FILE, + ext: *const X509_EXTENSION, + flag: ::std::os::raw::c_int, + indent: ::std::os::raw::c_int, + ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_X509_find_by_subject"] - pub fn X509_find_by_subject(sk: *const stack_st_X509, name: *mut X509_NAME) -> *mut X509; + #[link_name = "\u{1}aws_lc_0_21_0_X509V3_extensions_print"] + pub fn X509V3_extensions_print( + out: *mut BIO, + title: *const ::std::os::raw::c_char, + exts: *const stack_st_X509_EXTENSION, + flag: ::std::os::raw::c_ulong, + indent: ::std::os::raw::c_int, + ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_X509_cmp_time"] - pub fn X509_cmp_time(s: *const ASN1_TIME, t: *const time_t) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_0_21_0_GENERAL_NAME_print"] + pub fn GENERAL_NAME_print(out: *mut BIO, gen: *const GENERAL_NAME) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_X509_cmp_time_posix"] - pub fn X509_cmp_time_posix(s: *const ASN1_TIME, t: i64) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_0_21_0_X509_pubkey_digest"] + pub fn X509_pubkey_digest( + x509: *const X509, + md: *const EVP_MD, + out: *mut u8, + out_len: *mut ::std::os::raw::c_uint, + ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_X509_cmp_current_time"] - pub fn X509_cmp_current_time(s: *const ASN1_TIME) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_0_21_0_X509_digest"] + pub fn X509_digest( + x509: *const X509, + md: *const EVP_MD, + out: *mut u8, + out_len: *mut ::std::os::raw::c_uint, + ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_X509_time_adj"] - pub fn X509_time_adj( - s: *mut ASN1_TIME, - offset_sec: ::std::os::raw::c_long, - t: *const time_t, - ) -> *mut ASN1_TIME; + #[link_name = "\u{1}aws_lc_0_21_0_X509_CRL_digest"] + pub fn X509_CRL_digest( + crl: *const X509_CRL, + md: *const EVP_MD, + out: *mut u8, + out_len: *mut ::std::os::raw::c_uint, + ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_X509_time_adj_ex"] - pub fn X509_time_adj_ex( - s: *mut ASN1_TIME, - offset_day: ::std::os::raw::c_int, - offset_sec: ::std::os::raw::c_long, - t: *const time_t, - ) -> *mut ASN1_TIME; + #[link_name = "\u{1}aws_lc_0_21_0_X509_REQ_digest"] + pub fn X509_REQ_digest( + req: *const X509_REQ, + md: *const EVP_MD, + out: *mut u8, + out_len: *mut ::std::os::raw::c_uint, + ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_X509_gmtime_adj"] - pub fn X509_gmtime_adj(s: *mut ASN1_TIME, offset_sec: ::std::os::raw::c_long) - -> *mut ASN1_TIME; + #[link_name = "\u{1}aws_lc_0_21_0_X509_NAME_digest"] + pub fn X509_NAME_digest( + name: *const X509_NAME, + md: *const EVP_MD, + out: *mut u8, + out_len: *mut ::std::os::raw::c_uint, + ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_X509_issuer_name_cmp"] - pub fn X509_issuer_name_cmp(a: *const X509, b: *const X509) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_0_21_0_d2i_X509_bio"] + pub fn d2i_X509_bio(bp: *mut BIO, x509: *mut *mut X509) -> *mut X509; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_X509_subject_name_cmp"] - pub fn X509_subject_name_cmp(a: *const X509, b: *const X509) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_0_21_0_d2i_X509_CRL_bio"] + pub fn d2i_X509_CRL_bio(bp: *mut BIO, crl: *mut *mut X509_CRL) -> *mut X509_CRL; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_X509_CRL_cmp"] - pub fn X509_CRL_cmp(a: *const X509_CRL, b: *const X509_CRL) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_0_21_0_d2i_X509_REQ_bio"] + pub fn d2i_X509_REQ_bio(bp: *mut BIO, req: *mut *mut X509_REQ) -> *mut X509_REQ; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_X509_issuer_name_hash"] - pub fn X509_issuer_name_hash(x509: *mut X509) -> u32; + #[link_name = "\u{1}aws_lc_0_21_0_d2i_RSAPrivateKey_bio"] + pub fn d2i_RSAPrivateKey_bio(bp: *mut BIO, rsa: *mut *mut RSA) -> *mut RSA; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_X509_subject_name_hash"] - pub fn X509_subject_name_hash(x509: *mut X509) -> u32; + #[link_name = "\u{1}aws_lc_0_21_0_d2i_RSAPublicKey_bio"] + pub fn d2i_RSAPublicKey_bio(bp: *mut BIO, rsa: *mut *mut RSA) -> *mut RSA; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_X509_issuer_name_hash_old"] - pub fn X509_issuer_name_hash_old(x509: *mut X509) -> u32; + #[link_name = "\u{1}aws_lc_0_21_0_d2i_RSA_PUBKEY_bio"] + pub fn d2i_RSA_PUBKEY_bio(bp: *mut BIO, rsa: *mut *mut RSA) -> *mut RSA; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_X509_subject_name_hash_old"] - pub fn X509_subject_name_hash_old(x509: *mut X509) -> u32; + #[link_name = "\u{1}aws_lc_0_21_0_d2i_DSA_PUBKEY_bio"] + pub fn d2i_DSA_PUBKEY_bio(bp: *mut BIO, dsa: *mut *mut DSA) -> *mut DSA; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_X509_get_ex_new_index"] - pub fn X509_get_ex_new_index( - argl: ::std::os::raw::c_long, - argp: *mut ::std::os::raw::c_void, - unused: *mut CRYPTO_EX_unused, - dup_unused: CRYPTO_EX_dup, - free_func: CRYPTO_EX_free, - ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_0_21_0_d2i_DSAPrivateKey_bio"] + pub fn d2i_DSAPrivateKey_bio(bp: *mut BIO, dsa: *mut *mut DSA) -> *mut DSA; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_X509_set_ex_data"] - pub fn X509_set_ex_data( - r: *mut X509, - idx: ::std::os::raw::c_int, - arg: *mut ::std::os::raw::c_void, - ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_0_21_0_d2i_EC_PUBKEY_bio"] + pub fn d2i_EC_PUBKEY_bio(bp: *mut BIO, eckey: *mut *mut EC_KEY) -> *mut EC_KEY; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_X509_get_ex_data"] - pub fn X509_get_ex_data( - r: *mut X509, - idx: ::std::os::raw::c_int, - ) -> *mut ::std::os::raw::c_void; + #[link_name = "\u{1}aws_lc_0_21_0_d2i_ECPrivateKey_bio"] + pub fn d2i_ECPrivateKey_bio(bp: *mut BIO, eckey: *mut *mut EC_KEY) -> *mut EC_KEY; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_X509_STORE_CTX_get_ex_new_index"] - pub fn X509_STORE_CTX_get_ex_new_index( - argl: ::std::os::raw::c_long, - argp: *mut ::std::os::raw::c_void, - unused: *mut CRYPTO_EX_unused, - dup_unused: CRYPTO_EX_dup, - free_func: CRYPTO_EX_free, - ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_0_21_0_d2i_PKCS8_bio"] + pub fn d2i_PKCS8_bio(bp: *mut BIO, p8: *mut *mut X509_SIG) -> *mut X509_SIG; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_X509_STORE_CTX_set_ex_data"] - pub fn X509_STORE_CTX_set_ex_data( - ctx: *mut X509_STORE_CTX, - idx: ::std::os::raw::c_int, - data: *mut ::std::os::raw::c_void, - ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_0_21_0_d2i_PKCS8_PRIV_KEY_INFO_bio"] + pub fn d2i_PKCS8_PRIV_KEY_INFO_bio( + bp: *mut BIO, + p8inf: *mut *mut PKCS8_PRIV_KEY_INFO, + ) -> *mut PKCS8_PRIV_KEY_INFO; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_X509_STORE_CTX_get_ex_data"] - pub fn X509_STORE_CTX_get_ex_data( - ctx: *mut X509_STORE_CTX, - idx: ::std::os::raw::c_int, - ) -> *mut ::std::os::raw::c_void; + #[link_name = "\u{1}aws_lc_0_21_0_d2i_PUBKEY_bio"] + pub fn d2i_PUBKEY_bio(bp: *mut BIO, a: *mut *mut EVP_PKEY) -> *mut EVP_PKEY; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_X509_STORE_get_ex_new_index"] - pub fn X509_STORE_get_ex_new_index( - argl: ::std::os::raw::c_long, - argp: *mut ::std::os::raw::c_void, - unused: *mut CRYPTO_EX_unused, - dup_unused: CRYPTO_EX_dup, - free_func: CRYPTO_EX_free, - ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_0_21_0_d2i_DHparams_bio"] + pub fn d2i_DHparams_bio(bp: *mut BIO, dh: *mut *mut DH) -> *mut DH; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_X509_STORE_set_ex_data"] - pub fn X509_STORE_set_ex_data( - ctx: *mut X509_STORE, - idx: ::std::os::raw::c_int, - data: *mut ::std::os::raw::c_void, - ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_0_21_0_d2i_PrivateKey_bio"] + pub fn d2i_PrivateKey_bio(bp: *mut BIO, a: *mut *mut EVP_PKEY) -> *mut EVP_PKEY; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_X509_STORE_get_ex_data"] - pub fn X509_STORE_get_ex_data( - ctx: *mut X509_STORE, - idx: ::std::os::raw::c_int, - ) -> *mut ::std::os::raw::c_void; + #[link_name = "\u{1}aws_lc_0_21_0_i2d_X509_bio"] + pub fn i2d_X509_bio(bp: *mut BIO, x509: *mut X509) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_ASN1_digest"] - pub fn ASN1_digest( - i2d: i2d_of_void, - type_: *const EVP_MD, - data: *mut ::std::os::raw::c_char, - md: *mut ::std::os::raw::c_uchar, - len: *mut ::std::os::raw::c_uint, - ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_0_21_0_i2d_X509_CRL_bio"] + pub fn i2d_X509_CRL_bio(bp: *mut BIO, crl: *mut X509_CRL) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_ASN1_item_digest"] - pub fn ASN1_item_digest( - it: *const ASN1_ITEM, - type_: *const EVP_MD, - data: *mut ::std::os::raw::c_void, - md: *mut ::std::os::raw::c_uchar, - len: *mut ::std::os::raw::c_uint, - ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_0_21_0_i2d_X509_REQ_bio"] + pub fn i2d_X509_REQ_bio(bp: *mut BIO, req: *mut X509_REQ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_ASN1_item_verify"] - pub fn ASN1_item_verify( - it: *const ASN1_ITEM, - algor1: *const X509_ALGOR, - signature: *const ASN1_BIT_STRING, - data: *mut ::std::os::raw::c_void, - pkey: *mut EVP_PKEY, - ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_0_21_0_i2d_RSAPrivateKey_bio"] + pub fn i2d_RSAPrivateKey_bio(bp: *mut BIO, rsa: *mut RSA) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_ASN1_item_sign"] - pub fn ASN1_item_sign( - it: *const ASN1_ITEM, - algor1: *mut X509_ALGOR, - algor2: *mut X509_ALGOR, - signature: *mut ASN1_BIT_STRING, - data: *mut ::std::os::raw::c_void, - pkey: *mut EVP_PKEY, - type_: *const EVP_MD, - ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_0_21_0_i2d_RSAPublicKey_bio"] + pub fn i2d_RSAPublicKey_bio(bp: *mut BIO, rsa: *mut RSA) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_ASN1_item_sign_ctx"] - pub fn ASN1_item_sign_ctx( - it: *const ASN1_ITEM, - algor1: *mut X509_ALGOR, - algor2: *mut X509_ALGOR, - signature: *mut ASN1_BIT_STRING, - asn: *mut ::std::os::raw::c_void, - ctx: *mut EVP_MD_CTX, - ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_0_21_0_i2d_RSA_PUBKEY_bio"] + pub fn i2d_RSA_PUBKEY_bio(bp: *mut BIO, rsa: *mut RSA) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_X509_supported_extension"] - pub fn X509_supported_extension(ex: *const X509_EXTENSION) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_0_21_0_i2d_DSA_PUBKEY_bio"] + pub fn i2d_DSA_PUBKEY_bio(bp: *mut BIO, dsa: *mut DSA) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_X509_check_ca"] - pub fn X509_check_ca(x509: *mut X509) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_0_21_0_i2d_DSAPrivateKey_bio"] + pub fn i2d_DSAPrivateKey_bio(bp: *mut BIO, dsa: *mut DSA) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_X509_check_issued"] - pub fn X509_check_issued(issuer: *mut X509, subject: *mut X509) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_0_21_0_i2d_EC_PUBKEY_bio"] + pub fn i2d_EC_PUBKEY_bio(bp: *mut BIO, eckey: *mut EC_KEY) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_NAME_CONSTRAINTS_check"] - pub fn NAME_CONSTRAINTS_check( - x509: *mut X509, - nc: *mut NAME_CONSTRAINTS, - ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_0_21_0_i2d_ECPrivateKey_bio"] + pub fn i2d_ECPrivateKey_bio(bp: *mut BIO, eckey: *mut EC_KEY) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_X509_check_host"] - pub fn X509_check_host( - x509: *const X509, - chk: *const ::std::os::raw::c_char, - chklen: usize, - flags: ::std::os::raw::c_uint, - out_peername: *mut *mut ::std::os::raw::c_char, - ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_0_21_0_i2d_PKCS8_bio"] + pub fn i2d_PKCS8_bio(bp: *mut BIO, p8: *mut X509_SIG) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_X509_check_email"] - pub fn X509_check_email( - x509: *const X509, - chk: *const ::std::os::raw::c_char, - chklen: usize, - flags: ::std::os::raw::c_uint, + #[link_name = "\u{1}aws_lc_0_21_0_i2d_PKCS8_PRIV_KEY_INFO_bio"] + pub fn i2d_PKCS8_PRIV_KEY_INFO_bio( + bp: *mut BIO, + p8inf: *mut PKCS8_PRIV_KEY_INFO, ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_X509_check_ip"] - pub fn X509_check_ip( - x509: *const X509, - chk: *const u8, - chklen: usize, - flags: ::std::os::raw::c_uint, - ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_0_21_0_i2d_PrivateKey_bio"] + pub fn i2d_PrivateKey_bio(bp: *mut BIO, pkey: *mut EVP_PKEY) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_X509_check_ip_asc"] - pub fn X509_check_ip_asc( - x509: *const X509, - ipasc: *const ::std::os::raw::c_char, - flags: ::std::os::raw::c_uint, - ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_0_21_0_i2d_PUBKEY_bio"] + pub fn i2d_PUBKEY_bio(bp: *mut BIO, pkey: *mut EVP_PKEY) -> ::std::os::raw::c_int; } -#[repr(C)] -#[derive(Debug, Copy, Clone, PartialEq, Eq)] -pub struct private_key_st { - pub dec_pkey: *mut EVP_PKEY, +extern "C" { + #[link_name = "\u{1}aws_lc_0_21_0_i2d_DHparams_bio"] + pub fn i2d_DHparams_bio(bp: *mut BIO, dh: *const DH) -> ::std::os::raw::c_int; } -#[test] -fn bindgen_test_layout_private_key_st() { - const UNINIT: ::std::mem::MaybeUninit = ::std::mem::MaybeUninit::uninit(); - let ptr = UNINIT.as_ptr(); - assert_eq!( - ::std::mem::size_of::(), - 4usize, - concat!("Size of: ", stringify!(private_key_st)) - ); - assert_eq!( - ::std::mem::align_of::(), - 4usize, - concat!("Alignment of ", stringify!(private_key_st)) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).dec_pkey) as usize - ptr as usize }, - 0usize, - concat!( - "Offset of field: ", - stringify!(private_key_st), - "::", - stringify!(dec_pkey) - ) - ); +extern "C" { + #[link_name = "\u{1}aws_lc_0_21_0_i2d_PKCS8PrivateKeyInfo_bio"] + pub fn i2d_PKCS8PrivateKeyInfo_bio(bp: *mut BIO, key: *mut EVP_PKEY) -> ::std::os::raw::c_int; } -impl Default for private_key_st { - fn default() -> Self { - let mut s = ::std::mem::MaybeUninit::::uninit(); - unsafe { - ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() - } - } +extern "C" { + #[link_name = "\u{1}aws_lc_0_21_0_d2i_X509_fp"] + pub fn d2i_X509_fp(fp: *mut FILE, x509: *mut *mut X509) -> *mut X509; } -#[repr(C)] -#[derive(Debug, Copy, Clone, PartialEq, Eq)] -pub struct X509_info_st { - pub x509: *mut X509, - pub crl: *mut X509_CRL, - pub x_pkey: *mut X509_PKEY, - pub enc_cipher: EVP_CIPHER_INFO, - pub enc_len: ::std::os::raw::c_int, - pub enc_data: *mut ::std::os::raw::c_char, +extern "C" { + #[link_name = "\u{1}aws_lc_0_21_0_d2i_X509_CRL_fp"] + pub fn d2i_X509_CRL_fp(fp: *mut FILE, crl: *mut *mut X509_CRL) -> *mut X509_CRL; } -#[test] -fn bindgen_test_layout_X509_info_st() { - const UNINIT: ::std::mem::MaybeUninit = ::std::mem::MaybeUninit::uninit(); - let ptr = UNINIT.as_ptr(); - assert_eq!( - ::std::mem::size_of::(), - 40usize, - concat!("Size of: ", stringify!(X509_info_st)) - ); - assert_eq!( - ::std::mem::align_of::(), - 4usize, - concat!("Alignment of ", stringify!(X509_info_st)) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).x509) as usize - ptr as usize }, - 0usize, - concat!( - "Offset of field: ", - stringify!(X509_info_st), - "::", - stringify!(x509) - ) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).crl) as usize - ptr as usize }, - 4usize, - concat!( - "Offset of field: ", - stringify!(X509_info_st), - "::", - stringify!(crl) - ) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).x_pkey) as usize - ptr as usize }, - 8usize, - concat!( - "Offset of field: ", - stringify!(X509_info_st), - "::", - stringify!(x_pkey) - ) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).enc_cipher) as usize - ptr as usize }, - 12usize, - concat!( - "Offset of field: ", - stringify!(X509_info_st), - "::", - stringify!(enc_cipher) - ) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).enc_len) as usize - ptr as usize }, - 32usize, - concat!( - "Offset of field: ", - stringify!(X509_info_st), - "::", - stringify!(enc_len) - ) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).enc_data) as usize - ptr as usize }, - 36usize, - concat!( - "Offset of field: ", - stringify!(X509_info_st), - "::", - stringify!(enc_data) - ) - ); +extern "C" { + #[link_name = "\u{1}aws_lc_0_21_0_d2i_X509_REQ_fp"] + pub fn d2i_X509_REQ_fp(fp: *mut FILE, req: *mut *mut X509_REQ) -> *mut X509_REQ; } -impl Default for X509_info_st { - fn default() -> Self { - let mut s = ::std::mem::MaybeUninit::::uninit(); - unsafe { - ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() - } - } +extern "C" { + #[link_name = "\u{1}aws_lc_0_21_0_d2i_RSAPrivateKey_fp"] + pub fn d2i_RSAPrivateKey_fp(fp: *mut FILE, rsa: *mut *mut RSA) -> *mut RSA; } -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct stack_st_X509_INFO { - _unused: [u8; 0], +extern "C" { + #[link_name = "\u{1}aws_lc_0_21_0_d2i_RSAPublicKey_fp"] + pub fn d2i_RSAPublicKey_fp(fp: *mut FILE, rsa: *mut *mut RSA) -> *mut RSA; } -pub type sk_X509_INFO_free_func = ::std::option::Option; -pub type sk_X509_INFO_copy_func = - ::std::option::Option *mut X509_INFO>; -pub type sk_X509_INFO_cmp_func = ::std::option::Option< - unsafe extern "C" fn( - arg1: *const *const X509_INFO, - arg2: *const *const X509_INFO, - ) -> ::std::os::raw::c_int, ->; -pub type sk_X509_INFO_delete_if_func = ::std::option::Option< - unsafe extern "C" fn( - arg1: *mut X509_INFO, - arg2: *mut ::std::os::raw::c_void, - ) -> ::std::os::raw::c_int, ->; extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_X509_INFO_free"] - pub fn X509_INFO_free(info: *mut X509_INFO); -} -#[repr(C)] -#[derive(Debug, Copy, Clone, PartialEq, Eq)] -pub struct v3_ext_ctx { - pub flags: ::std::os::raw::c_int, - pub issuer_cert: *const X509, - pub subject_cert: *const X509, - pub subject_req: *const X509_REQ, - pub crl: *const X509_CRL, - pub db: *const CONF, -} -#[test] -fn bindgen_test_layout_v3_ext_ctx() { - const UNINIT: ::std::mem::MaybeUninit = ::std::mem::MaybeUninit::uninit(); - let ptr = UNINIT.as_ptr(); - assert_eq!( - ::std::mem::size_of::(), - 24usize, - concat!("Size of: ", stringify!(v3_ext_ctx)) - ); - assert_eq!( - ::std::mem::align_of::(), - 4usize, - concat!("Alignment of ", stringify!(v3_ext_ctx)) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).flags) as usize - ptr as usize }, - 0usize, - concat!( - "Offset of field: ", - stringify!(v3_ext_ctx), - "::", - stringify!(flags) - ) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).issuer_cert) as usize - ptr as usize }, - 4usize, - concat!( - "Offset of field: ", - stringify!(v3_ext_ctx), - "::", - stringify!(issuer_cert) - ) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).subject_cert) as usize - ptr as usize }, - 8usize, - concat!( - "Offset of field: ", - stringify!(v3_ext_ctx), - "::", - stringify!(subject_cert) - ) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).subject_req) as usize - ptr as usize }, - 12usize, - concat!( - "Offset of field: ", - stringify!(v3_ext_ctx), - "::", - stringify!(subject_req) - ) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).crl) as usize - ptr as usize }, - 16usize, - concat!( - "Offset of field: ", - stringify!(v3_ext_ctx), - "::", - stringify!(crl) - ) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).db) as usize - ptr as usize }, - 20usize, - concat!( - "Offset of field: ", - stringify!(v3_ext_ctx), - "::", - stringify!(db) - ) - ); -} -impl Default for v3_ext_ctx { - fn default() -> Self { - let mut s = ::std::mem::MaybeUninit::::uninit(); - unsafe { - ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() - } - } + #[link_name = "\u{1}aws_lc_0_21_0_d2i_RSA_PUBKEY_fp"] + pub fn d2i_RSA_PUBKEY_fp(fp: *mut FILE, rsa: *mut *mut RSA) -> *mut RSA; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_X509V3_set_ctx"] - pub fn X509V3_set_ctx( - ctx: *mut X509V3_CTX, - issuer: *const X509, - subject: *const X509, - req: *const X509_REQ, - crl: *const X509_CRL, - flags: ::std::os::raw::c_int, - ); + #[link_name = "\u{1}aws_lc_0_21_0_d2i_DSA_PUBKEY_fp"] + pub fn d2i_DSA_PUBKEY_fp(fp: *mut FILE, dsa: *mut *mut DSA) -> *mut DSA; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_X509V3_set_nconf"] - pub fn X509V3_set_nconf(ctx: *mut X509V3_CTX, conf: *const CONF); + #[link_name = "\u{1}aws_lc_0_21_0_d2i_DSAPrivateKey_fp"] + pub fn d2i_DSAPrivateKey_fp(fp: *mut FILE, dsa: *mut *mut DSA) -> *mut DSA; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_X509V3_EXT_nconf"] - pub fn X509V3_EXT_nconf( - conf: *const CONF, - ctx: *const X509V3_CTX, - name: *const ::std::os::raw::c_char, - value: *const ::std::os::raw::c_char, - ) -> *mut X509_EXTENSION; + #[link_name = "\u{1}aws_lc_0_21_0_d2i_EC_PUBKEY_fp"] + pub fn d2i_EC_PUBKEY_fp(fp: *mut FILE, eckey: *mut *mut EC_KEY) -> *mut EC_KEY; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_X509V3_EXT_nconf_nid"] - pub fn X509V3_EXT_nconf_nid( - conf: *const CONF, - ctx: *const X509V3_CTX, - ext_nid: ::std::os::raw::c_int, - value: *const ::std::os::raw::c_char, - ) -> *mut X509_EXTENSION; + #[link_name = "\u{1}aws_lc_0_21_0_d2i_ECPrivateKey_fp"] + pub fn d2i_ECPrivateKey_fp(fp: *mut FILE, eckey: *mut *mut EC_KEY) -> *mut EC_KEY; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_X509V3_EXT_conf_nid"] - pub fn X509V3_EXT_conf_nid( - conf: *mut lhash_st_CONF_VALUE, - ctx: *const X509V3_CTX, - ext_nid: ::std::os::raw::c_int, - value: *const ::std::os::raw::c_char, - ) -> *mut X509_EXTENSION; + #[link_name = "\u{1}aws_lc_0_21_0_d2i_PKCS8_fp"] + pub fn d2i_PKCS8_fp(fp: *mut FILE, p8: *mut *mut X509_SIG) -> *mut X509_SIG; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_X509V3_EXT_add_nconf_sk"] - pub fn X509V3_EXT_add_nconf_sk( - conf: *const CONF, - ctx: *const X509V3_CTX, - section: *const ::std::os::raw::c_char, - sk: *mut *mut stack_st_X509_EXTENSION, - ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_0_21_0_d2i_PKCS8_PRIV_KEY_INFO_fp"] + pub fn d2i_PKCS8_PRIV_KEY_INFO_fp( + fp: *mut FILE, + p8inf: *mut *mut PKCS8_PRIV_KEY_INFO, + ) -> *mut PKCS8_PRIV_KEY_INFO; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_X509V3_EXT_add_nconf"] - pub fn X509V3_EXT_add_nconf( - conf: *const CONF, - ctx: *const X509V3_CTX, - section: *const ::std::os::raw::c_char, - cert: *mut X509, - ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_0_21_0_d2i_PrivateKey_fp"] + pub fn d2i_PrivateKey_fp(fp: *mut FILE, a: *mut *mut EVP_PKEY) -> *mut EVP_PKEY; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_X509V3_EXT_REQ_add_nconf"] - pub fn X509V3_EXT_REQ_add_nconf( - conf: *const CONF, - ctx: *const X509V3_CTX, - section: *const ::std::os::raw::c_char, - req: *mut X509_REQ, - ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_0_21_0_d2i_PUBKEY_fp"] + pub fn d2i_PUBKEY_fp(fp: *mut FILE, a: *mut *mut EVP_PKEY) -> *mut EVP_PKEY; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_X509V3_EXT_CRL_add_nconf"] - pub fn X509V3_EXT_CRL_add_nconf( - conf: *const CONF, - ctx: *const X509V3_CTX, - section: *const ::std::os::raw::c_char, - crl: *mut X509_CRL, - ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_0_21_0_i2d_X509_fp"] + pub fn i2d_X509_fp(fp: *mut FILE, x509: *mut X509) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_X509V3_EXT_conf"] - pub fn X509V3_EXT_conf( - conf: *mut lhash_st_CONF_VALUE, - ctx: *mut X509V3_CTX, - name: *const ::std::os::raw::c_char, - value: *const ::std::os::raw::c_char, - ) -> *mut X509_EXTENSION; + #[link_name = "\u{1}aws_lc_0_21_0_i2d_X509_CRL_fp"] + pub fn i2d_X509_CRL_fp(fp: *mut FILE, crl: *mut X509_CRL) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_i2s_ASN1_OCTET_STRING"] - pub fn i2s_ASN1_OCTET_STRING( - method: *const X509V3_EXT_METHOD, - oct: *const ASN1_OCTET_STRING, - ) -> *mut ::std::os::raw::c_char; + #[link_name = "\u{1}aws_lc_0_21_0_i2d_X509_REQ_fp"] + pub fn i2d_X509_REQ_fp(fp: *mut FILE, req: *mut X509_REQ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_s2i_ASN1_OCTET_STRING"] - pub fn s2i_ASN1_OCTET_STRING( - method: *const X509V3_EXT_METHOD, - ctx: *const X509V3_CTX, - str_: *const ::std::os::raw::c_char, - ) -> *mut ASN1_OCTET_STRING; + #[link_name = "\u{1}aws_lc_0_21_0_i2d_RSAPrivateKey_fp"] + pub fn i2d_RSAPrivateKey_fp(fp: *mut FILE, rsa: *mut RSA) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_i2s_ASN1_INTEGER"] - pub fn i2s_ASN1_INTEGER( - method: *const X509V3_EXT_METHOD, - aint: *const ASN1_INTEGER, - ) -> *mut ::std::os::raw::c_char; + #[link_name = "\u{1}aws_lc_0_21_0_i2d_RSAPublicKey_fp"] + pub fn i2d_RSAPublicKey_fp(fp: *mut FILE, rsa: *mut RSA) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_s2i_ASN1_INTEGER"] - pub fn s2i_ASN1_INTEGER( - method: *const X509V3_EXT_METHOD, - value: *const ::std::os::raw::c_char, - ) -> *mut ASN1_INTEGER; + #[link_name = "\u{1}aws_lc_0_21_0_i2d_RSA_PUBKEY_fp"] + pub fn i2d_RSA_PUBKEY_fp(fp: *mut FILE, rsa: *mut RSA) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_i2s_ASN1_ENUMERATED"] - pub fn i2s_ASN1_ENUMERATED( - method: *const X509V3_EXT_METHOD, - aint: *const ASN1_ENUMERATED, - ) -> *mut ::std::os::raw::c_char; + #[link_name = "\u{1}aws_lc_0_21_0_i2d_DSA_PUBKEY_fp"] + pub fn i2d_DSA_PUBKEY_fp(fp: *mut FILE, dsa: *mut DSA) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_X509V3_conf_free"] - pub fn X509V3_conf_free(val: *mut CONF_VALUE); + #[link_name = "\u{1}aws_lc_0_21_0_i2d_DSAPrivateKey_fp"] + pub fn i2d_DSAPrivateKey_fp(fp: *mut FILE, dsa: *mut DSA) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_i2v_GENERAL_NAME"] - pub fn i2v_GENERAL_NAME( - method: *const X509V3_EXT_METHOD, - gen: *const GENERAL_NAME, - ret: *mut stack_st_CONF_VALUE, - ) -> *mut stack_st_CONF_VALUE; + #[link_name = "\u{1}aws_lc_0_21_0_i2d_EC_PUBKEY_fp"] + pub fn i2d_EC_PUBKEY_fp(fp: *mut FILE, eckey: *mut EC_KEY) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_i2v_GENERAL_NAMES"] - pub fn i2v_GENERAL_NAMES( - method: *const X509V3_EXT_METHOD, - gen: *const GENERAL_NAMES, - extlist: *mut stack_st_CONF_VALUE, - ) -> *mut stack_st_CONF_VALUE; + #[link_name = "\u{1}aws_lc_0_21_0_i2d_ECPrivateKey_fp"] + pub fn i2d_ECPrivateKey_fp(fp: *mut FILE, eckey: *mut EC_KEY) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_a2i_IPADDRESS"] - pub fn a2i_IPADDRESS(ipasc: *const ::std::os::raw::c_char) -> *mut ASN1_OCTET_STRING; + #[link_name = "\u{1}aws_lc_0_21_0_i2d_PKCS8_fp"] + pub fn i2d_PKCS8_fp(fp: *mut FILE, p8: *mut X509_SIG) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_a2i_IPADDRESS_NC"] - pub fn a2i_IPADDRESS_NC(ipasc: *const ::std::os::raw::c_char) -> *mut ASN1_OCTET_STRING; + #[link_name = "\u{1}aws_lc_0_21_0_i2d_PKCS8_PRIV_KEY_INFO_fp"] + pub fn i2d_PKCS8_PRIV_KEY_INFO_fp( + fp: *mut FILE, + p8inf: *mut PKCS8_PRIV_KEY_INFO, + ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_X509_get_notBefore"] - pub fn X509_get_notBefore(x509: *const X509) -> *mut ASN1_TIME; + #[link_name = "\u{1}aws_lc_0_21_0_i2d_PKCS8PrivateKeyInfo_fp"] + pub fn i2d_PKCS8PrivateKeyInfo_fp(fp: *mut FILE, key: *mut EVP_PKEY) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_X509_get_notAfter"] - pub fn X509_get_notAfter(x509: *const X509) -> *mut ASN1_TIME; + #[link_name = "\u{1}aws_lc_0_21_0_i2d_PrivateKey_fp"] + pub fn i2d_PrivateKey_fp(fp: *mut FILE, pkey: *mut EVP_PKEY) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_X509_set_notBefore"] - pub fn X509_set_notBefore(x509: *mut X509, tm: *const ASN1_TIME) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_0_21_0_i2d_PUBKEY_fp"] + pub fn i2d_PUBKEY_fp(fp: *mut FILE, pkey: *mut EVP_PKEY) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_X509_set_notAfter"] - pub fn X509_set_notAfter(x509: *mut X509, tm: *const ASN1_TIME) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_0_21_0_X509_find_by_issuer_and_serial"] + pub fn X509_find_by_issuer_and_serial( + sk: *const stack_st_X509, + name: *mut X509_NAME, + serial: *const ASN1_INTEGER, + ) -> *mut X509; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_X509_CRL_get_lastUpdate"] - pub fn X509_CRL_get_lastUpdate(crl: *mut X509_CRL) -> *mut ASN1_TIME; + #[link_name = "\u{1}aws_lc_0_21_0_X509_find_by_subject"] + pub fn X509_find_by_subject(sk: *const stack_st_X509, name: *mut X509_NAME) -> *mut X509; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_X509_CRL_get_nextUpdate"] - pub fn X509_CRL_get_nextUpdate(crl: *mut X509_CRL) -> *mut ASN1_TIME; + #[link_name = "\u{1}aws_lc_0_21_0_X509_cmp_time"] + pub fn X509_cmp_time(s: *const ASN1_TIME, t: *const time_t) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_X509_get_serialNumber"] - pub fn X509_get_serialNumber(x509: *mut X509) -> *mut ASN1_INTEGER; + #[link_name = "\u{1}aws_lc_0_21_0_X509_cmp_time_posix"] + pub fn X509_cmp_time_posix(s: *const ASN1_TIME, t: i64) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_X509_NAME_get_text_by_OBJ"] - pub fn X509_NAME_get_text_by_OBJ( - name: *const X509_NAME, - obj: *const ASN1_OBJECT, - buf: *mut ::std::os::raw::c_char, - len: ::std::os::raw::c_int, - ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_0_21_0_X509_cmp_current_time"] + pub fn X509_cmp_current_time(s: *const ASN1_TIME) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_X509_NAME_get_text_by_NID"] - pub fn X509_NAME_get_text_by_NID( - name: *const X509_NAME, - nid: ::std::os::raw::c_int, - buf: *mut ::std::os::raw::c_char, - len: ::std::os::raw::c_int, - ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_0_21_0_X509_time_adj"] + pub fn X509_time_adj( + s: *mut ASN1_TIME, + offset_sec: ::std::os::raw::c_long, + t: *const time_t, + ) -> *mut ASN1_TIME; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_X509_STORE_CTX_get0_parent_ctx"] - pub fn X509_STORE_CTX_get0_parent_ctx(ctx: *mut X509_STORE_CTX) -> *mut X509_STORE_CTX; + #[link_name = "\u{1}aws_lc_0_21_0_X509_time_adj_ex"] + pub fn X509_time_adj_ex( + s: *mut ASN1_TIME, + offset_day: ::std::os::raw::c_int, + offset_sec: ::std::os::raw::c_long, + t: *const time_t, + ) -> *mut ASN1_TIME; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_X509_LOOKUP_free"] - pub fn X509_LOOKUP_free(ctx: *mut X509_LOOKUP); + #[link_name = "\u{1}aws_lc_0_21_0_X509_gmtime_adj"] + pub fn X509_gmtime_adj(s: *mut ASN1_TIME, offset_sec: ::std::os::raw::c_long) + -> *mut ASN1_TIME; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_X509_STORE_CTX_cleanup"] - pub fn X509_STORE_CTX_cleanup(ctx: *mut X509_STORE_CTX); + #[link_name = "\u{1}aws_lc_0_21_0_X509_issuer_name_cmp"] + pub fn X509_issuer_name_cmp(a: *const X509, b: *const X509) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_X509V3_add_standard_extensions"] - pub fn X509V3_add_standard_extensions() -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_0_21_0_X509_subject_name_cmp"] + pub fn X509_subject_name_cmp(a: *const X509, b: *const X509) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_X509V3_parse_list"] - pub fn X509V3_parse_list(line: *const ::std::os::raw::c_char) -> *mut stack_st_CONF_VALUE; + #[link_name = "\u{1}aws_lc_0_21_0_X509_CRL_cmp"] + pub fn X509_CRL_cmp(a: *const X509_CRL, b: *const X509_CRL) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_X509_STORE_CTX_get_chain"] - pub fn X509_STORE_CTX_get_chain(ctx: *mut X509_STORE_CTX) -> *mut stack_st_X509; + #[link_name = "\u{1}aws_lc_0_21_0_X509_issuer_name_hash"] + pub fn X509_issuer_name_hash(x509: *mut X509) -> u32; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_X509_STORE_CTX_trusted_stack"] - pub fn X509_STORE_CTX_trusted_stack(ctx: *mut X509_STORE_CTX, sk: *mut stack_st_X509); + #[link_name = "\u{1}aws_lc_0_21_0_X509_subject_name_hash"] + pub fn X509_subject_name_hash(x509: *mut X509) -> u32; } -pub type X509_STORE_CTX_verify_cb = ::std::option::Option< - unsafe extern "C" fn( - arg1: ::std::os::raw::c_int, - arg2: *mut X509_STORE_CTX, - ) -> ::std::os::raw::c_int, ->; extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_X509_STORE_CTX_set_verify_cb"] - pub fn X509_STORE_CTX_set_verify_cb( - ctx: *mut X509_STORE_CTX, - verify_cb: ::std::option::Option< - unsafe extern "C" fn( - ok: ::std::os::raw::c_int, - ctx: *mut X509_STORE_CTX, - ) -> ::std::os::raw::c_int, - >, - ); + #[link_name = "\u{1}aws_lc_0_21_0_X509_issuer_name_hash_old"] + pub fn X509_issuer_name_hash_old(x509: *mut X509) -> u32; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_X509_STORE_set_verify_cb"] - pub fn X509_STORE_set_verify_cb(store: *mut X509_STORE, verify_cb: X509_STORE_CTX_verify_cb); + #[link_name = "\u{1}aws_lc_0_21_0_X509_subject_name_hash_old"] + pub fn X509_subject_name_hash_old(x509: *mut X509) -> u32; } -pub type X509_STORE_CTX_get_crl_fn = ::std::option::Option< - unsafe extern "C" fn( - ctx: *mut X509_STORE_CTX, - crl: *mut *mut X509_CRL, - x: *mut X509, - ) -> ::std::os::raw::c_int, ->; -pub type X509_STORE_CTX_check_crl_fn = ::std::option::Option< - unsafe extern "C" fn(ctx: *mut X509_STORE_CTX, crl: *mut X509_CRL) -> ::std::os::raw::c_int, ->; extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_X509_STORE_set_get_crl"] - pub fn X509_STORE_set_get_crl(store: *mut X509_STORE, get_crl: X509_STORE_CTX_get_crl_fn); + #[link_name = "\u{1}aws_lc_0_21_0_X509_get_ex_new_index"] + pub fn X509_get_ex_new_index( + argl: ::std::os::raw::c_long, + argp: *mut ::std::os::raw::c_void, + unused: *mut CRYPTO_EX_unused, + dup_unused: CRYPTO_EX_dup, + free_func: CRYPTO_EX_free, + ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_X509_STORE_set_check_crl"] - pub fn X509_STORE_set_check_crl(store: *mut X509_STORE, check_crl: X509_STORE_CTX_check_crl_fn); + #[link_name = "\u{1}aws_lc_0_21_0_X509_set_ex_data"] + pub fn X509_set_ex_data( + r: *mut X509, + idx: ::std::os::raw::c_int, + arg: *mut ::std::os::raw::c_void, + ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_X509_STORE_CTX_set_chain"] - pub fn X509_STORE_CTX_set_chain(ctx: *mut X509_STORE_CTX, sk: *mut stack_st_X509); + #[link_name = "\u{1}aws_lc_0_21_0_X509_get_ex_data"] + pub fn X509_get_ex_data( + r: *mut X509, + idx: ::std::os::raw::c_int, + ) -> *mut ::std::os::raw::c_void; } -#[repr(C)] -#[derive(Debug, Copy, Clone, PartialEq, Eq)] -pub struct X509_algor_st { - pub algorithm: *mut ASN1_OBJECT, - pub parameter: *mut ASN1_TYPE, +extern "C" { + #[link_name = "\u{1}aws_lc_0_21_0_X509_STORE_CTX_get_ex_new_index"] + pub fn X509_STORE_CTX_get_ex_new_index( + argl: ::std::os::raw::c_long, + argp: *mut ::std::os::raw::c_void, + unused: *mut CRYPTO_EX_unused, + dup_unused: CRYPTO_EX_dup, + free_func: CRYPTO_EX_free, + ) -> ::std::os::raw::c_int; } -#[test] -fn bindgen_test_layout_X509_algor_st() { - const UNINIT: ::std::mem::MaybeUninit = ::std::mem::MaybeUninit::uninit(); - let ptr = UNINIT.as_ptr(); - assert_eq!( - ::std::mem::size_of::(), - 8usize, - concat!("Size of: ", stringify!(X509_algor_st)) - ); - assert_eq!( - ::std::mem::align_of::(), - 4usize, - concat!("Alignment of ", stringify!(X509_algor_st)) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).algorithm) as usize - ptr as usize }, - 0usize, - concat!( - "Offset of field: ", - stringify!(X509_algor_st), - "::", - stringify!(algorithm) - ) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).parameter) as usize - ptr as usize }, - 4usize, - concat!( - "Offset of field: ", - stringify!(X509_algor_st), - "::", - stringify!(parameter) - ) - ); +extern "C" { + #[link_name = "\u{1}aws_lc_0_21_0_X509_STORE_CTX_set_ex_data"] + pub fn X509_STORE_CTX_set_ex_data( + ctx: *mut X509_STORE_CTX, + idx: ::std::os::raw::c_int, + data: *mut ::std::os::raw::c_void, + ) -> ::std::os::raw::c_int; } -impl Default for X509_algor_st { - fn default() -> Self { - let mut s = ::std::mem::MaybeUninit::::uninit(); - unsafe { - ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() - } - } +extern "C" { + #[link_name = "\u{1}aws_lc_0_21_0_X509_STORE_CTX_get_ex_data"] + pub fn X509_STORE_CTX_get_ex_data( + ctx: *mut X509_STORE_CTX, + idx: ::std::os::raw::c_int, + ) -> *mut ::std::os::raw::c_void; } -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct stack_st_DIST_POINT { - _unused: [u8; 0], +extern "C" { + #[link_name = "\u{1}aws_lc_0_21_0_X509_STORE_get_ex_new_index"] + pub fn X509_STORE_get_ex_new_index( + argl: ::std::os::raw::c_long, + argp: *mut ::std::os::raw::c_void, + unused: *mut CRYPTO_EX_unused, + dup_unused: CRYPTO_EX_dup, + free_func: CRYPTO_EX_free, + ) -> ::std::os::raw::c_int; } -#[repr(C)] -#[derive(Debug, Copy, Clone, PartialEq, Eq)] -pub struct x509_trust_st { - pub trust: ::std::os::raw::c_int, - pub flags: ::std::os::raw::c_int, - pub check_trust: ::std::option::Option< - unsafe extern "C" fn( - arg1: *const X509_TRUST, - arg2: *mut X509, - arg3: ::std::os::raw::c_int, - ) -> ::std::os::raw::c_int, - >, - pub name: *mut ::std::os::raw::c_char, - pub arg1: ::std::os::raw::c_int, - pub arg2: *mut ::std::os::raw::c_void, +extern "C" { + #[link_name = "\u{1}aws_lc_0_21_0_X509_STORE_set_ex_data"] + pub fn X509_STORE_set_ex_data( + ctx: *mut X509_STORE, + idx: ::std::os::raw::c_int, + data: *mut ::std::os::raw::c_void, + ) -> ::std::os::raw::c_int; } -#[test] -fn bindgen_test_layout_x509_trust_st() { - const UNINIT: ::std::mem::MaybeUninit = ::std::mem::MaybeUninit::uninit(); - let ptr = UNINIT.as_ptr(); - assert_eq!( - ::std::mem::size_of::(), - 24usize, - concat!("Size of: ", stringify!(x509_trust_st)) - ); - assert_eq!( - ::std::mem::align_of::(), - 4usize, - concat!("Alignment of ", stringify!(x509_trust_st)) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).trust) as usize - ptr as usize }, +extern "C" { + #[link_name = "\u{1}aws_lc_0_21_0_X509_STORE_get_ex_data"] + pub fn X509_STORE_get_ex_data( + ctx: *mut X509_STORE, + idx: ::std::os::raw::c_int, + ) -> *mut ::std::os::raw::c_void; +} +extern "C" { + #[link_name = "\u{1}aws_lc_0_21_0_ASN1_digest"] + pub fn ASN1_digest( + i2d: i2d_of_void, + type_: *const EVP_MD, + data: *mut ::std::os::raw::c_char, + md: *mut ::std::os::raw::c_uchar, + len: *mut ::std::os::raw::c_uint, + ) -> ::std::os::raw::c_int; +} +extern "C" { + #[link_name = "\u{1}aws_lc_0_21_0_ASN1_item_digest"] + pub fn ASN1_item_digest( + it: *const ASN1_ITEM, + type_: *const EVP_MD, + data: *mut ::std::os::raw::c_void, + md: *mut ::std::os::raw::c_uchar, + len: *mut ::std::os::raw::c_uint, + ) -> ::std::os::raw::c_int; +} +extern "C" { + #[link_name = "\u{1}aws_lc_0_21_0_ASN1_item_verify"] + pub fn ASN1_item_verify( + it: *const ASN1_ITEM, + algor1: *const X509_ALGOR, + signature: *const ASN1_BIT_STRING, + data: *mut ::std::os::raw::c_void, + pkey: *mut EVP_PKEY, + ) -> ::std::os::raw::c_int; +} +extern "C" { + #[link_name = "\u{1}aws_lc_0_21_0_ASN1_item_sign"] + pub fn ASN1_item_sign( + it: *const ASN1_ITEM, + algor1: *mut X509_ALGOR, + algor2: *mut X509_ALGOR, + signature: *mut ASN1_BIT_STRING, + data: *mut ::std::os::raw::c_void, + pkey: *mut EVP_PKEY, + type_: *const EVP_MD, + ) -> ::std::os::raw::c_int; +} +extern "C" { + #[link_name = "\u{1}aws_lc_0_21_0_ASN1_item_sign_ctx"] + pub fn ASN1_item_sign_ctx( + it: *const ASN1_ITEM, + algor1: *mut X509_ALGOR, + algor2: *mut X509_ALGOR, + signature: *mut ASN1_BIT_STRING, + asn: *mut ::std::os::raw::c_void, + ctx: *mut EVP_MD_CTX, + ) -> ::std::os::raw::c_int; +} +extern "C" { + #[link_name = "\u{1}aws_lc_0_21_0_X509_supported_extension"] + pub fn X509_supported_extension(ex: *const X509_EXTENSION) -> ::std::os::raw::c_int; +} +extern "C" { + #[link_name = "\u{1}aws_lc_0_21_0_X509_check_ca"] + pub fn X509_check_ca(x509: *mut X509) -> ::std::os::raw::c_int; +} +extern "C" { + #[link_name = "\u{1}aws_lc_0_21_0_X509_check_issued"] + pub fn X509_check_issued(issuer: *mut X509, subject: *mut X509) -> ::std::os::raw::c_int; +} +extern "C" { + #[link_name = "\u{1}aws_lc_0_21_0_NAME_CONSTRAINTS_check"] + pub fn NAME_CONSTRAINTS_check( + x509: *mut X509, + nc: *mut NAME_CONSTRAINTS, + ) -> ::std::os::raw::c_int; +} +extern "C" { + #[link_name = "\u{1}aws_lc_0_21_0_X509_check_host"] + pub fn X509_check_host( + x509: *const X509, + chk: *const ::std::os::raw::c_char, + chklen: usize, + flags: ::std::os::raw::c_uint, + out_peername: *mut *mut ::std::os::raw::c_char, + ) -> ::std::os::raw::c_int; +} +extern "C" { + #[link_name = "\u{1}aws_lc_0_21_0_X509_check_email"] + pub fn X509_check_email( + x509: *const X509, + chk: *const ::std::os::raw::c_char, + chklen: usize, + flags: ::std::os::raw::c_uint, + ) -> ::std::os::raw::c_int; +} +extern "C" { + #[link_name = "\u{1}aws_lc_0_21_0_X509_check_ip"] + pub fn X509_check_ip( + x509: *const X509, + chk: *const u8, + chklen: usize, + flags: ::std::os::raw::c_uint, + ) -> ::std::os::raw::c_int; +} +extern "C" { + #[link_name = "\u{1}aws_lc_0_21_0_X509_check_ip_asc"] + pub fn X509_check_ip_asc( + x509: *const X509, + ipasc: *const ::std::os::raw::c_char, + flags: ::std::os::raw::c_uint, + ) -> ::std::os::raw::c_int; +} +extern "C" { + #[link_name = "\u{1}aws_lc_0_21_0_X509_STORE_CTX_get1_issuer"] + pub fn X509_STORE_CTX_get1_issuer( + out_issuer: *mut *mut X509, + ctx: *mut X509_STORE_CTX, + x509: *mut X509, + ) -> ::std::os::raw::c_int; +} +extern "C" { + #[link_name = "\u{1}aws_lc_0_21_0_X509_check_purpose"] + pub fn X509_check_purpose( + x509: *mut X509, + purpose: ::std::os::raw::c_int, + ca: ::std::os::raw::c_int, + ) -> ::std::os::raw::c_int; +} +extern "C" { + #[link_name = "\u{1}aws_lc_0_21_0_X509_check_trust"] + pub fn X509_check_trust( + x509: *mut X509, + id: ::std::os::raw::c_int, + flags: ::std::os::raw::c_int, + ) -> ::std::os::raw::c_int; +} +#[repr(C)] +#[derive(Debug, Copy, Clone, PartialEq, Eq)] +pub struct private_key_st { + pub dec_pkey: *mut EVP_PKEY, +} +#[test] +fn bindgen_test_layout_private_key_st() { + const UNINIT: ::std::mem::MaybeUninit = ::std::mem::MaybeUninit::uninit(); + let ptr = UNINIT.as_ptr(); + assert_eq!( + ::std::mem::size_of::(), + 4usize, + concat!("Size of: ", stringify!(private_key_st)) + ); + assert_eq!( + ::std::mem::align_of::(), + 4usize, + concat!("Alignment of ", stringify!(private_key_st)) + ); + assert_eq!( + unsafe { ::std::ptr::addr_of!((*ptr).dec_pkey) as usize - ptr as usize }, 0usize, concat!( "Offset of field: ", - stringify!(x509_trust_st), + stringify!(private_key_st), "::", - stringify!(trust) + stringify!(dec_pkey) ) ); +} +impl Default for private_key_st { + fn default() -> Self { + let mut s = ::std::mem::MaybeUninit::::uninit(); + unsafe { + ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); + s.assume_init() + } + } +} +#[repr(C)] +#[derive(Debug, Copy, Clone, PartialEq, Eq)] +pub struct X509_info_st { + pub x509: *mut X509, + pub crl: *mut X509_CRL, + pub x_pkey: *mut X509_PKEY, + pub enc_cipher: EVP_CIPHER_INFO, + pub enc_len: ::std::os::raw::c_int, + pub enc_data: *mut ::std::os::raw::c_char, +} +#[test] +fn bindgen_test_layout_X509_info_st() { + const UNINIT: ::std::mem::MaybeUninit = ::std::mem::MaybeUninit::uninit(); + let ptr = UNINIT.as_ptr(); assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).flags) as usize - ptr as usize }, + ::std::mem::size_of::(), + 40usize, + concat!("Size of: ", stringify!(X509_info_st)) + ); + assert_eq!( + ::std::mem::align_of::(), 4usize, + concat!("Alignment of ", stringify!(X509_info_st)) + ); + assert_eq!( + unsafe { ::std::ptr::addr_of!((*ptr).x509) as usize - ptr as usize }, + 0usize, concat!( "Offset of field: ", - stringify!(x509_trust_st), + stringify!(X509_info_st), "::", - stringify!(flags) + stringify!(x509) ) ); assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).check_trust) as usize - ptr as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).crl) as usize - ptr as usize }, + 4usize, + concat!( + "Offset of field: ", + stringify!(X509_info_st), + "::", + stringify!(crl) + ) + ); + assert_eq!( + unsafe { ::std::ptr::addr_of!((*ptr).x_pkey) as usize - ptr as usize }, 8usize, concat!( "Offset of field: ", - stringify!(x509_trust_st), + stringify!(X509_info_st), "::", - stringify!(check_trust) + stringify!(x_pkey) ) ); assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).name) as usize - ptr as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).enc_cipher) as usize - ptr as usize }, 12usize, concat!( "Offset of field: ", - stringify!(x509_trust_st), + stringify!(X509_info_st), "::", - stringify!(name) + stringify!(enc_cipher) ) ); assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).arg1) as usize - ptr as usize }, - 16usize, + unsafe { ::std::ptr::addr_of!((*ptr).enc_len) as usize - ptr as usize }, + 32usize, concat!( "Offset of field: ", - stringify!(x509_trust_st), + stringify!(X509_info_st), "::", - stringify!(arg1) + stringify!(enc_len) ) ); assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).arg2) as usize - ptr as usize }, - 20usize, + unsafe { ::std::ptr::addr_of!((*ptr).enc_data) as usize - ptr as usize }, + 36usize, concat!( "Offset of field: ", - stringify!(x509_trust_st), + stringify!(X509_info_st), "::", - stringify!(arg2) + stringify!(enc_data) ) ); } -impl Default for x509_trust_st { +impl Default for X509_info_st { fn default() -> Self { let mut s = ::std::mem::MaybeUninit::::uninit(); unsafe { @@ -23172,609 +22969,801 @@ impl Default for x509_trust_st { } #[repr(C)] #[derive(Debug, Copy, Clone)] -pub struct stack_st_X509_TRUST { +pub struct stack_st_X509_INFO { _unused: [u8; 0], } -pub type sk_X509_TRUST_free_func = - ::std::option::Option; -pub type sk_X509_TRUST_copy_func = - ::std::option::Option *mut X509_TRUST>; -pub type sk_X509_TRUST_cmp_func = ::std::option::Option< +pub type sk_X509_INFO_free_func = ::std::option::Option; +pub type sk_X509_INFO_copy_func = + ::std::option::Option *mut X509_INFO>; +pub type sk_X509_INFO_cmp_func = ::std::option::Option< unsafe extern "C" fn( - arg1: *const *const X509_TRUST, - arg2: *const *const X509_TRUST, + arg1: *const *const X509_INFO, + arg2: *const *const X509_INFO, ) -> ::std::os::raw::c_int, >; -pub type sk_X509_TRUST_delete_if_func = ::std::option::Option< +pub type sk_X509_INFO_delete_if_func = ::std::option::Option< unsafe extern "C" fn( - arg1: *mut X509_TRUST, + arg1: *mut X509_INFO, arg2: *mut ::std::os::raw::c_void, ) -> ::std::os::raw::c_int, >; extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_X509_verify_cert_error_string"] - pub fn X509_verify_cert_error_string( - err: ::std::os::raw::c_long, - ) -> *const ::std::os::raw::c_char; + #[link_name = "\u{1}aws_lc_0_21_0_X509_INFO_free"] + pub fn X509_INFO_free(info: *mut X509_INFO); } -extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_X509_get_default_cert_area"] - pub fn X509_get_default_cert_area() -> *const ::std::os::raw::c_char; +#[repr(C)] +#[derive(Debug, Copy, Clone, PartialEq, Eq)] +pub struct v3_ext_ctx { + pub flags: ::std::os::raw::c_int, + pub issuer_cert: *const X509, + pub subject_cert: *const X509, + pub subject_req: *const X509_REQ, + pub crl: *const X509_CRL, + pub db: *const CONF, +} +#[test] +fn bindgen_test_layout_v3_ext_ctx() { + const UNINIT: ::std::mem::MaybeUninit = ::std::mem::MaybeUninit::uninit(); + let ptr = UNINIT.as_ptr(); + assert_eq!( + ::std::mem::size_of::(), + 24usize, + concat!("Size of: ", stringify!(v3_ext_ctx)) + ); + assert_eq!( + ::std::mem::align_of::(), + 4usize, + concat!("Alignment of ", stringify!(v3_ext_ctx)) + ); + assert_eq!( + unsafe { ::std::ptr::addr_of!((*ptr).flags) as usize - ptr as usize }, + 0usize, + concat!( + "Offset of field: ", + stringify!(v3_ext_ctx), + "::", + stringify!(flags) + ) + ); + assert_eq!( + unsafe { ::std::ptr::addr_of!((*ptr).issuer_cert) as usize - ptr as usize }, + 4usize, + concat!( + "Offset of field: ", + stringify!(v3_ext_ctx), + "::", + stringify!(issuer_cert) + ) + ); + assert_eq!( + unsafe { ::std::ptr::addr_of!((*ptr).subject_cert) as usize - ptr as usize }, + 8usize, + concat!( + "Offset of field: ", + stringify!(v3_ext_ctx), + "::", + stringify!(subject_cert) + ) + ); + assert_eq!( + unsafe { ::std::ptr::addr_of!((*ptr).subject_req) as usize - ptr as usize }, + 12usize, + concat!( + "Offset of field: ", + stringify!(v3_ext_ctx), + "::", + stringify!(subject_req) + ) + ); + assert_eq!( + unsafe { ::std::ptr::addr_of!((*ptr).crl) as usize - ptr as usize }, + 16usize, + concat!( + "Offset of field: ", + stringify!(v3_ext_ctx), + "::", + stringify!(crl) + ) + ); + assert_eq!( + unsafe { ::std::ptr::addr_of!((*ptr).db) as usize - ptr as usize }, + 20usize, + concat!( + "Offset of field: ", + stringify!(v3_ext_ctx), + "::", + stringify!(db) + ) + ); +} +impl Default for v3_ext_ctx { + fn default() -> Self { + let mut s = ::std::mem::MaybeUninit::::uninit(); + unsafe { + ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); + s.assume_init() + } + } } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_X509_get_default_cert_dir"] - pub fn X509_get_default_cert_dir() -> *const ::std::os::raw::c_char; + #[link_name = "\u{1}aws_lc_0_21_0_X509V3_set_ctx"] + pub fn X509V3_set_ctx( + ctx: *mut X509V3_CTX, + issuer: *const X509, + subject: *const X509, + req: *const X509_REQ, + crl: *const X509_CRL, + flags: ::std::os::raw::c_int, + ); } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_X509_get_default_cert_file"] - pub fn X509_get_default_cert_file() -> *const ::std::os::raw::c_char; + #[link_name = "\u{1}aws_lc_0_21_0_X509V3_set_nconf"] + pub fn X509V3_set_nconf(ctx: *mut X509V3_CTX, conf: *const CONF); } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_X509_get_default_cert_dir_env"] - pub fn X509_get_default_cert_dir_env() -> *const ::std::os::raw::c_char; + #[link_name = "\u{1}aws_lc_0_21_0_X509V3_EXT_nconf"] + pub fn X509V3_EXT_nconf( + conf: *const CONF, + ctx: *const X509V3_CTX, + name: *const ::std::os::raw::c_char, + value: *const ::std::os::raw::c_char, + ) -> *mut X509_EXTENSION; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_X509_get_default_cert_file_env"] - pub fn X509_get_default_cert_file_env() -> *const ::std::os::raw::c_char; + #[link_name = "\u{1}aws_lc_0_21_0_X509V3_EXT_nconf_nid"] + pub fn X509V3_EXT_nconf_nid( + conf: *const CONF, + ctx: *const X509V3_CTX, + ext_nid: ::std::os::raw::c_int, + value: *const ::std::os::raw::c_char, + ) -> *mut X509_EXTENSION; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_X509_get_default_private_dir"] - pub fn X509_get_default_private_dir() -> *const ::std::os::raw::c_char; + #[link_name = "\u{1}aws_lc_0_21_0_X509V3_EXT_conf_nid"] + pub fn X509V3_EXT_conf_nid( + conf: *mut lhash_st_CONF_VALUE, + ctx: *const X509V3_CTX, + ext_nid: ::std::os::raw::c_int, + value: *const ::std::os::raw::c_char, + ) -> *mut X509_EXTENSION; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_X509_TRUST_set"] - pub fn X509_TRUST_set( - t: *mut ::std::os::raw::c_int, - trust: ::std::os::raw::c_int, + #[link_name = "\u{1}aws_lc_0_21_0_X509V3_EXT_add_nconf_sk"] + pub fn X509V3_EXT_add_nconf_sk( + conf: *const CONF, + ctx: *const X509V3_CTX, + section: *const ::std::os::raw::c_char, + sk: *mut *mut stack_st_X509_EXTENSION, ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_X509_cmp"] - pub fn X509_cmp(a: *const X509, b: *const X509) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_0_21_0_X509V3_EXT_add_nconf"] + pub fn X509V3_EXT_add_nconf( + conf: *const CONF, + ctx: *const X509V3_CTX, + section: *const ::std::os::raw::c_char, + cert: *mut X509, + ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_X509_NAME_hash"] - pub fn X509_NAME_hash(name: *mut X509_NAME) -> u32; + #[link_name = "\u{1}aws_lc_0_21_0_X509V3_EXT_REQ_add_nconf"] + pub fn X509V3_EXT_REQ_add_nconf( + conf: *const CONF, + ctx: *const X509V3_CTX, + section: *const ::std::os::raw::c_char, + req: *mut X509_REQ, + ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_X509_NAME_hash_old"] - pub fn X509_NAME_hash_old(name: *mut X509_NAME) -> u32; + #[link_name = "\u{1}aws_lc_0_21_0_X509V3_EXT_CRL_add_nconf"] + pub fn X509V3_EXT_CRL_add_nconf( + conf: *const CONF, + ctx: *const X509V3_CTX, + section: *const ::std::os::raw::c_char, + crl: *mut X509_CRL, + ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_X509_CRL_match"] - pub fn X509_CRL_match(a: *const X509_CRL, b: *const X509_CRL) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_0_21_0_X509V3_EXT_conf"] + pub fn X509V3_EXT_conf( + conf: *mut lhash_st_CONF_VALUE, + ctx: *mut X509V3_CTX, + name: *const ::std::os::raw::c_char, + value: *const ::std::os::raw::c_char, + ) -> *mut X509_EXTENSION; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_X509_verify_cert"] - pub fn X509_verify_cert(ctx: *mut X509_STORE_CTX) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_0_21_0_i2s_ASN1_OCTET_STRING"] + pub fn i2s_ASN1_OCTET_STRING( + method: *const X509V3_EXT_METHOD, + oct: *const ASN1_OCTET_STRING, + ) -> *mut ::std::os::raw::c_char; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_X509_check_trust"] - pub fn X509_check_trust( - x: *mut X509, - id: ::std::os::raw::c_int, - flags: ::std::os::raw::c_int, - ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_0_21_0_s2i_ASN1_OCTET_STRING"] + pub fn s2i_ASN1_OCTET_STRING( + method: *const X509V3_EXT_METHOD, + ctx: *const X509V3_CTX, + str_: *const ::std::os::raw::c_char, + ) -> *mut ASN1_OCTET_STRING; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_X509_TRUST_get_count"] - pub fn X509_TRUST_get_count() -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_0_21_0_i2s_ASN1_INTEGER"] + pub fn i2s_ASN1_INTEGER( + method: *const X509V3_EXT_METHOD, + aint: *const ASN1_INTEGER, + ) -> *mut ::std::os::raw::c_char; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_X509_TRUST_get0"] - pub fn X509_TRUST_get0(idx: ::std::os::raw::c_int) -> *const X509_TRUST; + #[link_name = "\u{1}aws_lc_0_21_0_s2i_ASN1_INTEGER"] + pub fn s2i_ASN1_INTEGER( + method: *const X509V3_EXT_METHOD, + value: *const ::std::os::raw::c_char, + ) -> *mut ASN1_INTEGER; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_X509_TRUST_get_by_id"] - pub fn X509_TRUST_get_by_id(id: ::std::os::raw::c_int) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_0_21_0_i2s_ASN1_ENUMERATED"] + pub fn i2s_ASN1_ENUMERATED( + method: *const X509V3_EXT_METHOD, + aint: *const ASN1_ENUMERATED, + ) -> *mut ::std::os::raw::c_char; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_X509_TRUST_get_flags"] - pub fn X509_TRUST_get_flags(xp: *const X509_TRUST) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_0_21_0_X509V3_conf_free"] + pub fn X509V3_conf_free(val: *mut CONF_VALUE); } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_X509_TRUST_get0_name"] - pub fn X509_TRUST_get0_name(xp: *const X509_TRUST) -> *mut ::std::os::raw::c_char; + #[link_name = "\u{1}aws_lc_0_21_0_i2v_GENERAL_NAME"] + pub fn i2v_GENERAL_NAME( + method: *const X509V3_EXT_METHOD, + gen: *const GENERAL_NAME, + ret: *mut stack_st_CONF_VALUE, + ) -> *mut stack_st_CONF_VALUE; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_X509_TRUST_get_trust"] - pub fn X509_TRUST_get_trust(xp: *const X509_TRUST) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_0_21_0_i2v_GENERAL_NAMES"] + pub fn i2v_GENERAL_NAMES( + method: *const X509V3_EXT_METHOD, + gen: *const GENERAL_NAMES, + extlist: *mut stack_st_CONF_VALUE, + ) -> *mut stack_st_CONF_VALUE; } -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct stack_st_X509_OBJECT { - _unused: [u8; 0], -} -pub type sk_X509_OBJECT_free_func = - ::std::option::Option; -pub type sk_X509_OBJECT_copy_func = - ::std::option::Option *mut X509_OBJECT>; -pub type sk_X509_OBJECT_cmp_func = ::std::option::Option< - unsafe extern "C" fn( - arg1: *const *const X509_OBJECT, - arg2: *const *const X509_OBJECT, - ) -> ::std::os::raw::c_int, ->; -pub type sk_X509_OBJECT_delete_if_func = ::std::option::Option< - unsafe extern "C" fn( - arg1: *mut X509_OBJECT, - arg2: *mut ::std::os::raw::c_void, - ) -> ::std::os::raw::c_int, ->; extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_X509_STORE_set_depth"] - pub fn X509_STORE_set_depth( - store: *mut X509_STORE, - depth: ::std::os::raw::c_int, - ) -> ::std::os::raw::c_int; -} -extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_X509_STORE_CTX_set_depth"] - pub fn X509_STORE_CTX_set_depth(ctx: *mut X509_STORE_CTX, depth: ::std::os::raw::c_int); + #[link_name = "\u{1}aws_lc_0_21_0_a2i_IPADDRESS"] + pub fn a2i_IPADDRESS(ipasc: *const ::std::os::raw::c_char) -> *mut ASN1_OCTET_STRING; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_X509_LOOKUP_load_file"] - pub fn X509_LOOKUP_load_file( - lookup: *mut X509_LOOKUP, - path: *const ::std::os::raw::c_char, - type_: ::std::os::raw::c_int, - ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_0_21_0_a2i_IPADDRESS_NC"] + pub fn a2i_IPADDRESS_NC(ipasc: *const ::std::os::raw::c_char) -> *mut ASN1_OCTET_STRING; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_X509_LOOKUP_add_dir"] - pub fn X509_LOOKUP_add_dir( - lookup: *mut X509_LOOKUP, - path: *const ::std::os::raw::c_char, - type_: ::std::os::raw::c_int, - ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_0_21_0_X509_get_notBefore"] + pub fn X509_get_notBefore(x509: *const X509) -> *mut ASN1_TIME; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_X509_OBJECT_new"] - pub fn X509_OBJECT_new() -> *mut X509_OBJECT; + #[link_name = "\u{1}aws_lc_0_21_0_X509_get_notAfter"] + pub fn X509_get_notAfter(x509: *const X509) -> *mut ASN1_TIME; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_X509_OBJECT_free"] - pub fn X509_OBJECT_free(obj: *mut X509_OBJECT); + #[link_name = "\u{1}aws_lc_0_21_0_X509_set_notBefore"] + pub fn X509_set_notBefore(x509: *mut X509, tm: *const ASN1_TIME) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_X509_OBJECT_get_type"] - pub fn X509_OBJECT_get_type(obj: *const X509_OBJECT) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_0_21_0_X509_set_notAfter"] + pub fn X509_set_notAfter(x509: *mut X509, tm: *const ASN1_TIME) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_X509_OBJECT_get0_X509"] - pub fn X509_OBJECT_get0_X509(obj: *const X509_OBJECT) -> *mut X509; + #[link_name = "\u{1}aws_lc_0_21_0_X509_CRL_get_lastUpdate"] + pub fn X509_CRL_get_lastUpdate(crl: *mut X509_CRL) -> *mut ASN1_TIME; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_X509_OBJECT_get0_X509_CRL"] - pub fn X509_OBJECT_get0_X509_CRL(a: *const X509_OBJECT) -> *mut X509_CRL; + #[link_name = "\u{1}aws_lc_0_21_0_X509_CRL_get_nextUpdate"] + pub fn X509_CRL_get_nextUpdate(crl: *mut X509_CRL) -> *mut ASN1_TIME; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_X509_OBJECT_set1_X509"] - pub fn X509_OBJECT_set1_X509(a: *mut X509_OBJECT, obj: *mut X509) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_0_21_0_X509_get_serialNumber"] + pub fn X509_get_serialNumber(x509: *mut X509) -> *mut ASN1_INTEGER; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_X509_OBJECT_set1_X509_CRL"] - pub fn X509_OBJECT_set1_X509_CRL( - a: *mut X509_OBJECT, - obj: *mut X509_CRL, + #[link_name = "\u{1}aws_lc_0_21_0_X509_NAME_get_text_by_OBJ"] + pub fn X509_NAME_get_text_by_OBJ( + name: *const X509_NAME, + obj: *const ASN1_OBJECT, + buf: *mut ::std::os::raw::c_char, + len: ::std::os::raw::c_int, ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_X509_STORE_lock"] - pub fn X509_STORE_lock(v: *mut X509_STORE) -> ::std::os::raw::c_int; -} -extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_X509_STORE_unlock"] - pub fn X509_STORE_unlock(v: *mut X509_STORE) -> ::std::os::raw::c_int; -} -extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_X509_STORE_new"] - pub fn X509_STORE_new() -> *mut X509_STORE; -} -extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_X509_STORE_up_ref"] - pub fn X509_STORE_up_ref(store: *mut X509_STORE) -> ::std::os::raw::c_int; -} -extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_X509_STORE_free"] - pub fn X509_STORE_free(store: *mut X509_STORE); -} -extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_X509_STORE_get0_objects"] - pub fn X509_STORE_get0_objects(st: *mut X509_STORE) -> *mut stack_st_X509_OBJECT; -} -extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_X509_STORE_CTX_get1_certs"] - pub fn X509_STORE_CTX_get1_certs( - st: *mut X509_STORE_CTX, - nm: *mut X509_NAME, - ) -> *mut stack_st_X509; -} -extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_X509_STORE_CTX_get1_crls"] - pub fn X509_STORE_CTX_get1_crls( - st: *mut X509_STORE_CTX, - nm: *mut X509_NAME, - ) -> *mut stack_st_X509_CRL; -} -extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_X509_STORE_set_flags"] - pub fn X509_STORE_set_flags( - store: *mut X509_STORE, - flags: ::std::os::raw::c_ulong, + #[link_name = "\u{1}aws_lc_0_21_0_X509_NAME_get_text_by_NID"] + pub fn X509_NAME_get_text_by_NID( + name: *const X509_NAME, + nid: ::std::os::raw::c_int, + buf: *mut ::std::os::raw::c_char, + len: ::std::os::raw::c_int, ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_X509_STORE_set_purpose"] - pub fn X509_STORE_set_purpose( - store: *mut X509_STORE, - purpose: ::std::os::raw::c_int, - ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_0_21_0_X509_STORE_CTX_get0_parent_ctx"] + pub fn X509_STORE_CTX_get0_parent_ctx(ctx: *mut X509_STORE_CTX) -> *mut X509_STORE_CTX; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_X509_STORE_set_trust"] - pub fn X509_STORE_set_trust( - store: *mut X509_STORE, - trust: ::std::os::raw::c_int, - ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_0_21_0_X509_LOOKUP_free"] + pub fn X509_LOOKUP_free(ctx: *mut X509_LOOKUP); } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_X509_STORE_set1_param"] - pub fn X509_STORE_set1_param( - store: *mut X509_STORE, - param: *const X509_VERIFY_PARAM, - ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_0_21_0_X509_STORE_CTX_cleanup"] + pub fn X509_STORE_CTX_cleanup(ctx: *mut X509_STORE_CTX); } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_X509_STORE_get0_param"] - pub fn X509_STORE_get0_param(store: *mut X509_STORE) -> *mut X509_VERIFY_PARAM; + #[link_name = "\u{1}aws_lc_0_21_0_X509V3_add_standard_extensions"] + pub fn X509V3_add_standard_extensions() -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_X509_STORE_CTX_new"] - pub fn X509_STORE_CTX_new() -> *mut X509_STORE_CTX; + #[link_name = "\u{1}aws_lc_0_21_0_X509V3_parse_list"] + pub fn X509V3_parse_list(line: *const ::std::os::raw::c_char) -> *mut stack_st_CONF_VALUE; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_X509_STORE_CTX_get1_issuer"] - pub fn X509_STORE_CTX_get1_issuer( - issuer: *mut *mut X509, - ctx: *mut X509_STORE_CTX, - x: *mut X509, - ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_0_21_0_X509_STORE_CTX_get_chain"] + pub fn X509_STORE_CTX_get_chain(ctx: *mut X509_STORE_CTX) -> *mut stack_st_X509; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_X509_STORE_CTX_free"] - pub fn X509_STORE_CTX_free(ctx: *mut X509_STORE_CTX); + #[link_name = "\u{1}aws_lc_0_21_0_X509_STORE_CTX_trusted_stack"] + pub fn X509_STORE_CTX_trusted_stack(ctx: *mut X509_STORE_CTX, sk: *mut stack_st_X509); } +pub type X509_STORE_CTX_verify_cb = ::std::option::Option< + unsafe extern "C" fn( + arg1: ::std::os::raw::c_int, + arg2: *mut X509_STORE_CTX, + ) -> ::std::os::raw::c_int, +>; extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_X509_STORE_CTX_init"] - pub fn X509_STORE_CTX_init( + #[link_name = "\u{1}aws_lc_0_21_0_X509_STORE_CTX_set_verify_cb"] + pub fn X509_STORE_CTX_set_verify_cb( ctx: *mut X509_STORE_CTX, - store: *mut X509_STORE, - x509: *mut X509, - chain: *mut stack_st_X509, - ) -> ::std::os::raw::c_int; -} -extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_X509_STORE_CTX_set0_trusted_stack"] - pub fn X509_STORE_CTX_set0_trusted_stack(ctx: *mut X509_STORE_CTX, sk: *mut stack_st_X509); -} -extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_X509_STORE_CTX_get0_store"] - pub fn X509_STORE_CTX_get0_store(ctx: *mut X509_STORE_CTX) -> *mut X509_STORE; -} -extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_X509_STORE_CTX_get0_cert"] - pub fn X509_STORE_CTX_get0_cert(ctx: *mut X509_STORE_CTX) -> *mut X509; -} -extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_X509_STORE_add_lookup"] - pub fn X509_STORE_add_lookup( - v: *mut X509_STORE, - m: *const X509_LOOKUP_METHOD, - ) -> *mut X509_LOOKUP; + verify_cb: ::std::option::Option< + unsafe extern "C" fn( + ok: ::std::os::raw::c_int, + ctx: *mut X509_STORE_CTX, + ) -> ::std::os::raw::c_int, + >, + ); } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_X509_LOOKUP_hash_dir"] - pub fn X509_LOOKUP_hash_dir() -> *const X509_LOOKUP_METHOD; + #[link_name = "\u{1}aws_lc_0_21_0_X509_STORE_set_verify_cb"] + pub fn X509_STORE_set_verify_cb(store: *mut X509_STORE, verify_cb: X509_STORE_CTX_verify_cb); } +pub type X509_STORE_CTX_get_crl_fn = ::std::option::Option< + unsafe extern "C" fn( + ctx: *mut X509_STORE_CTX, + crl: *mut *mut X509_CRL, + x: *mut X509, + ) -> ::std::os::raw::c_int, +>; +pub type X509_STORE_CTX_check_crl_fn = ::std::option::Option< + unsafe extern "C" fn(ctx: *mut X509_STORE_CTX, crl: *mut X509_CRL) -> ::std::os::raw::c_int, +>; extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_X509_LOOKUP_file"] - pub fn X509_LOOKUP_file() -> *const X509_LOOKUP_METHOD; + #[link_name = "\u{1}aws_lc_0_21_0_X509_STORE_set_get_crl"] + pub fn X509_STORE_set_get_crl(store: *mut X509_STORE, get_crl: X509_STORE_CTX_get_crl_fn); } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_X509_STORE_add_cert"] - pub fn X509_STORE_add_cert(ctx: *mut X509_STORE, x: *mut X509) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_0_21_0_X509_STORE_set_check_crl"] + pub fn X509_STORE_set_check_crl(store: *mut X509_STORE, check_crl: X509_STORE_CTX_check_crl_fn); } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_X509_STORE_add_crl"] - pub fn X509_STORE_add_crl(ctx: *mut X509_STORE, x: *mut X509_CRL) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_0_21_0_X509_STORE_CTX_set_chain"] + pub fn X509_STORE_CTX_set_chain(ctx: *mut X509_STORE_CTX, sk: *mut stack_st_X509); } -extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_X509_LOOKUP_ctrl"] - pub fn X509_LOOKUP_ctrl( - ctx: *mut X509_LOOKUP, - cmd: ::std::os::raw::c_int, - argc: *const ::std::os::raw::c_char, - argl: ::std::os::raw::c_long, - ret: *mut *mut ::std::os::raw::c_char, - ) -> ::std::os::raw::c_int; +#[repr(C)] +#[derive(Debug, Copy, Clone, PartialEq, Eq)] +pub struct X509_algor_st { + pub algorithm: *mut ASN1_OBJECT, + pub parameter: *mut ASN1_TYPE, } -extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_X509_load_cert_file"] - pub fn X509_load_cert_file( - ctx: *mut X509_LOOKUP, - file: *const ::std::os::raw::c_char, - type_: ::std::os::raw::c_int, - ) -> ::std::os::raw::c_int; +#[test] +fn bindgen_test_layout_X509_algor_st() { + const UNINIT: ::std::mem::MaybeUninit = ::std::mem::MaybeUninit::uninit(); + let ptr = UNINIT.as_ptr(); + assert_eq!( + ::std::mem::size_of::(), + 8usize, + concat!("Size of: ", stringify!(X509_algor_st)) + ); + assert_eq!( + ::std::mem::align_of::(), + 4usize, + concat!("Alignment of ", stringify!(X509_algor_st)) + ); + assert_eq!( + unsafe { ::std::ptr::addr_of!((*ptr).algorithm) as usize - ptr as usize }, + 0usize, + concat!( + "Offset of field: ", + stringify!(X509_algor_st), + "::", + stringify!(algorithm) + ) + ); + assert_eq!( + unsafe { ::std::ptr::addr_of!((*ptr).parameter) as usize - ptr as usize }, + 4usize, + concat!( + "Offset of field: ", + stringify!(X509_algor_st), + "::", + stringify!(parameter) + ) + ); } -extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_X509_load_crl_file"] - pub fn X509_load_crl_file( - ctx: *mut X509_LOOKUP, - file: *const ::std::os::raw::c_char, - type_: ::std::os::raw::c_int, - ) -> ::std::os::raw::c_int; +impl Default for X509_algor_st { + fn default() -> Self { + let mut s = ::std::mem::MaybeUninit::::uninit(); + unsafe { + ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); + s.assume_init() + } + } } -extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_X509_load_cert_crl_file"] - pub fn X509_load_cert_crl_file( - ctx: *mut X509_LOOKUP, - file: *const ::std::os::raw::c_char, - type_: ::std::os::raw::c_int, - ) -> ::std::os::raw::c_int; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct stack_st_DIST_POINT { + _unused: [u8; 0], } -extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_X509_STORE_load_locations"] - pub fn X509_STORE_load_locations( - ctx: *mut X509_STORE, - file: *const ::std::os::raw::c_char, - dir: *const ::std::os::raw::c_char, - ) -> ::std::os::raw::c_int; +#[repr(C)] +#[derive(Debug, Copy, Clone, PartialEq, Eq)] +pub struct x509_trust_st { + pub trust: ::std::os::raw::c_int, + pub flags: ::std::os::raw::c_int, + pub check_trust: ::std::option::Option< + unsafe extern "C" fn( + arg1: *const X509_TRUST, + arg2: *mut X509, + arg3: ::std::os::raw::c_int, + ) -> ::std::os::raw::c_int, + >, + pub name: *mut ::std::os::raw::c_char, + pub arg1: ::std::os::raw::c_int, + pub arg2: *mut ::std::os::raw::c_void, } -extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_X509_STORE_set_default_paths"] - pub fn X509_STORE_set_default_paths(ctx: *mut X509_STORE) -> ::std::os::raw::c_int; +#[test] +fn bindgen_test_layout_x509_trust_st() { + const UNINIT: ::std::mem::MaybeUninit = ::std::mem::MaybeUninit::uninit(); + let ptr = UNINIT.as_ptr(); + assert_eq!( + ::std::mem::size_of::(), + 24usize, + concat!("Size of: ", stringify!(x509_trust_st)) + ); + assert_eq!( + ::std::mem::align_of::(), + 4usize, + concat!("Alignment of ", stringify!(x509_trust_st)) + ); + assert_eq!( + unsafe { ::std::ptr::addr_of!((*ptr).trust) as usize - ptr as usize }, + 0usize, + concat!( + "Offset of field: ", + stringify!(x509_trust_st), + "::", + stringify!(trust) + ) + ); + assert_eq!( + unsafe { ::std::ptr::addr_of!((*ptr).flags) as usize - ptr as usize }, + 4usize, + concat!( + "Offset of field: ", + stringify!(x509_trust_st), + "::", + stringify!(flags) + ) + ); + assert_eq!( + unsafe { ::std::ptr::addr_of!((*ptr).check_trust) as usize - ptr as usize }, + 8usize, + concat!( + "Offset of field: ", + stringify!(x509_trust_st), + "::", + stringify!(check_trust) + ) + ); + assert_eq!( + unsafe { ::std::ptr::addr_of!((*ptr).name) as usize - ptr as usize }, + 12usize, + concat!( + "Offset of field: ", + stringify!(x509_trust_st), + "::", + stringify!(name) + ) + ); + assert_eq!( + unsafe { ::std::ptr::addr_of!((*ptr).arg1) as usize - ptr as usize }, + 16usize, + concat!( + "Offset of field: ", + stringify!(x509_trust_st), + "::", + stringify!(arg1) + ) + ); + assert_eq!( + unsafe { ::std::ptr::addr_of!((*ptr).arg2) as usize - ptr as usize }, + 20usize, + concat!( + "Offset of field: ", + stringify!(x509_trust_st), + "::", + stringify!(arg2) + ) + ); } -extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_X509_STORE_CTX_get_error"] - pub fn X509_STORE_CTX_get_error(ctx: *mut X509_STORE_CTX) -> ::std::os::raw::c_int; +impl Default for x509_trust_st { + fn default() -> Self { + let mut s = ::std::mem::MaybeUninit::::uninit(); + unsafe { + ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); + s.assume_init() + } + } } -extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_X509_STORE_CTX_set_error"] - pub fn X509_STORE_CTX_set_error(ctx: *mut X509_STORE_CTX, s: ::std::os::raw::c_int); +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct stack_st_X509_TRUST { + _unused: [u8; 0], } +pub type sk_X509_TRUST_free_func = + ::std::option::Option; +pub type sk_X509_TRUST_copy_func = + ::std::option::Option *mut X509_TRUST>; +pub type sk_X509_TRUST_cmp_func = ::std::option::Option< + unsafe extern "C" fn( + arg1: *const *const X509_TRUST, + arg2: *const *const X509_TRUST, + ) -> ::std::os::raw::c_int, +>; +pub type sk_X509_TRUST_delete_if_func = ::std::option::Option< + unsafe extern "C" fn( + arg1: *mut X509_TRUST, + arg2: *mut ::std::os::raw::c_void, + ) -> ::std::os::raw::c_int, +>; extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_X509_STORE_CTX_get_error_depth"] - pub fn X509_STORE_CTX_get_error_depth(ctx: *mut X509_STORE_CTX) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_0_21_0_X509_get_default_cert_area"] + pub fn X509_get_default_cert_area() -> *const ::std::os::raw::c_char; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_X509_STORE_CTX_get_current_cert"] - pub fn X509_STORE_CTX_get_current_cert(ctx: *mut X509_STORE_CTX) -> *mut X509; + #[link_name = "\u{1}aws_lc_0_21_0_X509_get_default_cert_dir"] + pub fn X509_get_default_cert_dir() -> *const ::std::os::raw::c_char; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_X509_STORE_CTX_get0_current_issuer"] - pub fn X509_STORE_CTX_get0_current_issuer(ctx: *mut X509_STORE_CTX) -> *mut X509; + #[link_name = "\u{1}aws_lc_0_21_0_X509_get_default_cert_file"] + pub fn X509_get_default_cert_file() -> *const ::std::os::raw::c_char; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_X509_STORE_CTX_get0_current_crl"] - pub fn X509_STORE_CTX_get0_current_crl(ctx: *mut X509_STORE_CTX) -> *mut X509_CRL; + #[link_name = "\u{1}aws_lc_0_21_0_X509_get_default_cert_dir_env"] + pub fn X509_get_default_cert_dir_env() -> *const ::std::os::raw::c_char; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_X509_STORE_CTX_get0_chain"] - pub fn X509_STORE_CTX_get0_chain(ctx: *mut X509_STORE_CTX) -> *mut stack_st_X509; + #[link_name = "\u{1}aws_lc_0_21_0_X509_get_default_cert_file_env"] + pub fn X509_get_default_cert_file_env() -> *const ::std::os::raw::c_char; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_X509_STORE_CTX_get1_chain"] - pub fn X509_STORE_CTX_get1_chain(ctx: *mut X509_STORE_CTX) -> *mut stack_st_X509; + #[link_name = "\u{1}aws_lc_0_21_0_X509_get_default_private_dir"] + pub fn X509_get_default_private_dir() -> *const ::std::os::raw::c_char; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_X509_STORE_CTX_set_cert"] - pub fn X509_STORE_CTX_set_cert(c: *mut X509_STORE_CTX, x: *mut X509); + #[link_name = "\u{1}aws_lc_0_21_0_X509_TRUST_set"] + pub fn X509_TRUST_set( + t: *mut ::std::os::raw::c_int, + trust: ::std::os::raw::c_int, + ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_X509_STORE_CTX_get0_untrusted"] - pub fn X509_STORE_CTX_get0_untrusted(ctx: *mut X509_STORE_CTX) -> *mut stack_st_X509; + #[link_name = "\u{1}aws_lc_0_21_0_X509_cmp"] + pub fn X509_cmp(a: *const X509, b: *const X509) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_X509_STORE_CTX_set0_crls"] - pub fn X509_STORE_CTX_set0_crls(c: *mut X509_STORE_CTX, sk: *mut stack_st_X509_CRL); + #[link_name = "\u{1}aws_lc_0_21_0_X509_NAME_hash"] + pub fn X509_NAME_hash(name: *mut X509_NAME) -> u32; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_X509_STORE_CTX_set_purpose"] - pub fn X509_STORE_CTX_set_purpose( - ctx: *mut X509_STORE_CTX, - purpose: ::std::os::raw::c_int, - ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_0_21_0_X509_NAME_hash_old"] + pub fn X509_NAME_hash_old(name: *mut X509_NAME) -> u32; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_X509_STORE_CTX_set_trust"] - pub fn X509_STORE_CTX_set_trust( - ctx: *mut X509_STORE_CTX, - trust: ::std::os::raw::c_int, - ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_0_21_0_X509_CRL_match"] + pub fn X509_CRL_match(a: *const X509_CRL, b: *const X509_CRL) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_X509_STORE_CTX_purpose_inherit"] - pub fn X509_STORE_CTX_purpose_inherit( - ctx: *mut X509_STORE_CTX, - def_purpose: ::std::os::raw::c_int, - purpose: ::std::os::raw::c_int, - trust: ::std::os::raw::c_int, - ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_0_21_0_X509_TRUST_get_count"] + pub fn X509_TRUST_get_count() -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_X509_STORE_CTX_set_flags"] - pub fn X509_STORE_CTX_set_flags(ctx: *mut X509_STORE_CTX, flags: ::std::os::raw::c_ulong); + #[link_name = "\u{1}aws_lc_0_21_0_X509_TRUST_get0"] + pub fn X509_TRUST_get0(idx: ::std::os::raw::c_int) -> *const X509_TRUST; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_X509_STORE_CTX_set_time"] - pub fn X509_STORE_CTX_set_time( - ctx: *mut X509_STORE_CTX, - flags: ::std::os::raw::c_ulong, - t: time_t, - ); + #[link_name = "\u{1}aws_lc_0_21_0_X509_TRUST_get_by_id"] + pub fn X509_TRUST_get_by_id(id: ::std::os::raw::c_int) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_X509_STORE_CTX_set_time_posix"] - pub fn X509_STORE_CTX_set_time_posix( - ctx: *mut X509_STORE_CTX, - flags: ::std::os::raw::c_ulong, - t: i64, - ); + #[link_name = "\u{1}aws_lc_0_21_0_X509_TRUST_get_flags"] + pub fn X509_TRUST_get_flags(xp: *const X509_TRUST) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_X509_STORE_CTX_get0_param"] - pub fn X509_STORE_CTX_get0_param(ctx: *mut X509_STORE_CTX) -> *mut X509_VERIFY_PARAM; + #[link_name = "\u{1}aws_lc_0_21_0_X509_TRUST_get0_name"] + pub fn X509_TRUST_get0_name(xp: *const X509_TRUST) -> *mut ::std::os::raw::c_char; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_X509_STORE_CTX_set0_param"] - pub fn X509_STORE_CTX_set0_param(ctx: *mut X509_STORE_CTX, param: *mut X509_VERIFY_PARAM); + #[link_name = "\u{1}aws_lc_0_21_0_X509_TRUST_get_trust"] + pub fn X509_TRUST_get_trust(xp: *const X509_TRUST) -> ::std::os::raw::c_int; +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct stack_st_X509_OBJECT { + _unused: [u8; 0], } +pub type sk_X509_OBJECT_free_func = + ::std::option::Option; +pub type sk_X509_OBJECT_copy_func = + ::std::option::Option *mut X509_OBJECT>; +pub type sk_X509_OBJECT_cmp_func = ::std::option::Option< + unsafe extern "C" fn( + arg1: *const *const X509_OBJECT, + arg2: *const *const X509_OBJECT, + ) -> ::std::os::raw::c_int, +>; +pub type sk_X509_OBJECT_delete_if_func = ::std::option::Option< + unsafe extern "C" fn( + arg1: *mut X509_OBJECT, + arg2: *mut ::std::os::raw::c_void, + ) -> ::std::os::raw::c_int, +>; extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_X509_STORE_CTX_set_default"] - pub fn X509_STORE_CTX_set_default( - ctx: *mut X509_STORE_CTX, - name: *const ::std::os::raw::c_char, + #[link_name = "\u{1}aws_lc_0_21_0_X509_LOOKUP_load_file"] + pub fn X509_LOOKUP_load_file( + lookup: *mut X509_LOOKUP, + path: *const ::std::os::raw::c_char, + type_: ::std::os::raw::c_int, ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_X509_STORE_CTX_get_by_subject"] - pub fn X509_STORE_CTX_get_by_subject( - vs: *mut X509_STORE_CTX, + #[link_name = "\u{1}aws_lc_0_21_0_X509_LOOKUP_add_dir"] + pub fn X509_LOOKUP_add_dir( + lookup: *mut X509_LOOKUP, + path: *const ::std::os::raw::c_char, type_: ::std::os::raw::c_int, - name: *mut X509_NAME, - ret: *mut X509_OBJECT, ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_X509_VERIFY_PARAM_new"] - pub fn X509_VERIFY_PARAM_new() -> *mut X509_VERIFY_PARAM; + #[link_name = "\u{1}aws_lc_0_21_0_X509_OBJECT_new"] + pub fn X509_OBJECT_new() -> *mut X509_OBJECT; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_X509_VERIFY_PARAM_free"] - pub fn X509_VERIFY_PARAM_free(param: *mut X509_VERIFY_PARAM); + #[link_name = "\u{1}aws_lc_0_21_0_X509_OBJECT_free"] + pub fn X509_OBJECT_free(obj: *mut X509_OBJECT); } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_X509_VERIFY_PARAM_inherit"] - pub fn X509_VERIFY_PARAM_inherit( - to: *mut X509_VERIFY_PARAM, - from: *const X509_VERIFY_PARAM, - ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_0_21_0_X509_OBJECT_get_type"] + pub fn X509_OBJECT_get_type(obj: *const X509_OBJECT) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_X509_VERIFY_PARAM_set1"] - pub fn X509_VERIFY_PARAM_set1( - to: *mut X509_VERIFY_PARAM, - from: *const X509_VERIFY_PARAM, - ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_0_21_0_X509_OBJECT_get0_X509"] + pub fn X509_OBJECT_get0_X509(obj: *const X509_OBJECT) -> *mut X509; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_X509_VERIFY_PARAM_set_flags"] - pub fn X509_VERIFY_PARAM_set_flags( - param: *mut X509_VERIFY_PARAM, - flags: ::std::os::raw::c_ulong, - ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_0_21_0_X509_OBJECT_get0_X509_CRL"] + pub fn X509_OBJECT_get0_X509_CRL(a: *const X509_OBJECT) -> *mut X509_CRL; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_X509_VERIFY_PARAM_clear_flags"] - pub fn X509_VERIFY_PARAM_clear_flags( - param: *mut X509_VERIFY_PARAM, - flags: ::std::os::raw::c_ulong, + #[link_name = "\u{1}aws_lc_0_21_0_X509_OBJECT_set1_X509"] + pub fn X509_OBJECT_set1_X509(a: *mut X509_OBJECT, obj: *mut X509) -> ::std::os::raw::c_int; +} +extern "C" { + #[link_name = "\u{1}aws_lc_0_21_0_X509_OBJECT_set1_X509_CRL"] + pub fn X509_OBJECT_set1_X509_CRL( + a: *mut X509_OBJECT, + obj: *mut X509_CRL, ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_X509_VERIFY_PARAM_get_flags"] - pub fn X509_VERIFY_PARAM_get_flags(param: *const X509_VERIFY_PARAM) -> ::std::os::raw::c_ulong; + #[link_name = "\u{1}aws_lc_0_21_0_X509_STORE_lock"] + pub fn X509_STORE_lock(v: *mut X509_STORE) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_X509_VERIFY_PARAM_set_purpose"] - pub fn X509_VERIFY_PARAM_set_purpose( - param: *mut X509_VERIFY_PARAM, - purpose: ::std::os::raw::c_int, - ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_0_21_0_X509_STORE_unlock"] + pub fn X509_STORE_unlock(v: *mut X509_STORE) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_X509_VERIFY_PARAM_set_trust"] - pub fn X509_VERIFY_PARAM_set_trust( - param: *mut X509_VERIFY_PARAM, - trust: ::std::os::raw::c_int, - ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_0_21_0_X509_STORE_get0_objects"] + pub fn X509_STORE_get0_objects(st: *mut X509_STORE) -> *mut stack_st_X509_OBJECT; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_X509_VERIFY_PARAM_set_depth"] - pub fn X509_VERIFY_PARAM_set_depth(param: *mut X509_VERIFY_PARAM, depth: ::std::os::raw::c_int); + #[link_name = "\u{1}aws_lc_0_21_0_X509_STORE_CTX_get1_certs"] + pub fn X509_STORE_CTX_get1_certs( + st: *mut X509_STORE_CTX, + nm: *mut X509_NAME, + ) -> *mut stack_st_X509; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_X509_VERIFY_PARAM_set_time"] - pub fn X509_VERIFY_PARAM_set_time(param: *mut X509_VERIFY_PARAM, t: time_t); + #[link_name = "\u{1}aws_lc_0_21_0_X509_STORE_CTX_get1_crls"] + pub fn X509_STORE_CTX_get1_crls( + st: *mut X509_STORE_CTX, + nm: *mut X509_NAME, + ) -> *mut stack_st_X509_CRL; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_X509_VERIFY_PARAM_set_time_posix"] - pub fn X509_VERIFY_PARAM_set_time_posix(param: *mut X509_VERIFY_PARAM, t: i64); + #[link_name = "\u{1}aws_lc_0_21_0_X509_STORE_add_lookup"] + pub fn X509_STORE_add_lookup( + v: *mut X509_STORE, + m: *const X509_LOOKUP_METHOD, + ) -> *mut X509_LOOKUP; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_X509_VERIFY_PARAM_add0_policy"] - pub fn X509_VERIFY_PARAM_add0_policy( - param: *mut X509_VERIFY_PARAM, - policy: *mut ASN1_OBJECT, - ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_0_21_0_X509_LOOKUP_hash_dir"] + pub fn X509_LOOKUP_hash_dir() -> *const X509_LOOKUP_METHOD; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_X509_VERIFY_PARAM_set1_policies"] - pub fn X509_VERIFY_PARAM_set1_policies( - param: *mut X509_VERIFY_PARAM, - policies: *const stack_st_ASN1_OBJECT, - ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_0_21_0_X509_LOOKUP_file"] + pub fn X509_LOOKUP_file() -> *const X509_LOOKUP_METHOD; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_X509_VERIFY_PARAM_set1_host"] - pub fn X509_VERIFY_PARAM_set1_host( - param: *mut X509_VERIFY_PARAM, - name: *const ::std::os::raw::c_char, - namelen: usize, + #[link_name = "\u{1}aws_lc_0_21_0_X509_STORE_CTX_get_by_subject"] + pub fn X509_STORE_CTX_get_by_subject( + vs: *mut X509_STORE_CTX, + type_: ::std::os::raw::c_int, + name: *mut X509_NAME, + ret: *mut X509_OBJECT, ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_X509_VERIFY_PARAM_add1_host"] - pub fn X509_VERIFY_PARAM_add1_host( - param: *mut X509_VERIFY_PARAM, - name: *const ::std::os::raw::c_char, - name_len: usize, + #[link_name = "\u{1}aws_lc_0_21_0_X509_LOOKUP_ctrl"] + pub fn X509_LOOKUP_ctrl( + ctx: *mut X509_LOOKUP, + cmd: ::std::os::raw::c_int, + argc: *const ::std::os::raw::c_char, + argl: ::std::os::raw::c_long, + ret: *mut *mut ::std::os::raw::c_char, ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_X509_VERIFY_PARAM_set_hostflags"] - pub fn X509_VERIFY_PARAM_set_hostflags( - param: *mut X509_VERIFY_PARAM, - flags: ::std::os::raw::c_uint, - ); + #[link_name = "\u{1}aws_lc_0_21_0_X509_load_cert_file"] + pub fn X509_load_cert_file( + ctx: *mut X509_LOOKUP, + file: *const ::std::os::raw::c_char, + type_: ::std::os::raw::c_int, + ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_X509_VERIFY_PARAM_set1_email"] - pub fn X509_VERIFY_PARAM_set1_email( - param: *mut X509_VERIFY_PARAM, - email: *const ::std::os::raw::c_char, - emaillen: usize, + #[link_name = "\u{1}aws_lc_0_21_0_X509_load_crl_file"] + pub fn X509_load_crl_file( + ctx: *mut X509_LOOKUP, + file: *const ::std::os::raw::c_char, + type_: ::std::os::raw::c_int, ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_X509_VERIFY_PARAM_set1_ip"] - pub fn X509_VERIFY_PARAM_set1_ip( - param: *mut X509_VERIFY_PARAM, - ip: *const ::std::os::raw::c_uchar, - iplen: usize, + #[link_name = "\u{1}aws_lc_0_21_0_X509_load_cert_crl_file"] + pub fn X509_load_cert_crl_file( + ctx: *mut X509_LOOKUP, + file: *const ::std::os::raw::c_char, + type_: ::std::os::raw::c_int, ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_X509_VERIFY_PARAM_set1_ip_asc"] - pub fn X509_VERIFY_PARAM_set1_ip_asc( - param: *mut X509_VERIFY_PARAM, - ipasc: *const ::std::os::raw::c_char, + #[link_name = "\u{1}aws_lc_0_21_0_X509_STORE_load_locations"] + pub fn X509_STORE_load_locations( + ctx: *mut X509_STORE, + file: *const ::std::os::raw::c_char, + dir: *const ::std::os::raw::c_char, ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_X509_VERIFY_PARAM_get_depth"] - pub fn X509_VERIFY_PARAM_get_depth(param: *const X509_VERIFY_PARAM) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_0_21_0_X509_STORE_set_default_paths"] + pub fn X509_STORE_set_default_paths(ctx: *mut X509_STORE) -> ::std::os::raw::c_int; } pub type X509V3_EXT_NEW = ::std::option::Option *mut ::std::os::raw::c_void>; @@ -25716,14 +25705,6 @@ extern "C" { flags: ::std::os::raw::c_ulong, ) -> ::std::os::raw::c_int; } -extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_X509_check_purpose"] - pub fn X509_check_purpose( - x: *mut X509, - id: ::std::os::raw::c_int, - ca: ::std::os::raw::c_int, - ) -> ::std::os::raw::c_int; -} extern "C" { #[link_name = "\u{1}aws_lc_0_21_0_X509_PURPOSE_set"] pub fn X509_PURPOSE_set( From d7bf059b17a9b7aab43e36cb3a108c4ff6e204d7 Mon Sep 17 00:00:00 2001 From: aws-lc-sys-bindings-generator Date: Wed, 28 Aug 2024 14:43:07 +0000 Subject: [PATCH 25/36] Generated bindings for x86_64-pc-windows-msvc --- .../src/x86_64_pc_windows_msvc_crypto.rs | 3591 ++++++++--------- 1 file changed, 1786 insertions(+), 1805 deletions(-) diff --git a/aws-lc-sys/src/x86_64_pc_windows_msvc_crypto.rs b/aws-lc-sys/src/x86_64_pc_windows_msvc_crypto.rs index 04ed3e93a7e..e85c0b6fc10 100644 --- a/aws-lc-sys/src/x86_64_pc_windows_msvc_crypto.rs +++ b/aws-lc-sys/src/x86_64_pc_windows_msvc_crypto.rs @@ -111,7 +111,7 @@ pub const AWSLC_VERSION_NAME: &[u8; 7] = b"AWS-LC\0"; pub const OPENSSL_VERSION_NUMBER: i32 = 269488255; pub const SSLEAY_VERSION_NUMBER: i32 = 269488255; pub const AWSLC_API_VERSION: i32 = 29; -pub const AWSLC_VERSION_NUMBER_STRING: &[u8; 7] = b"1.33.0\0"; +pub const AWSLC_VERSION_NUMBER_STRING: &[u8; 7] = b"1.34.2\0"; pub const AES_ENCRYPT: i32 = 1; pub const AES_DECRYPT: i32 = 0; pub const AES_MAXNR: i32 = 14; @@ -132,7 +132,7 @@ pub const CRYPTO_LOCK: i32 = 1; pub const CRYPTO_UNLOCK: i32 = 2; pub const CRYPTO_READ: i32 = 4; pub const CRYPTO_WRITE: i32 = 8; -pub const OPENSSL_VERSION_TEXT: &[u8; 42] = b"OpenSSL 1.1.1 (compatible; AWS-LC 1.33.0)\0"; +pub const OPENSSL_VERSION_TEXT: &[u8; 42] = b"OpenSSL 1.1.1 (compatible; AWS-LC 1.34.2)\0"; pub const OPENSSL_VERSION: i32 = 0; pub const OPENSSL_CFLAGS: i32 = 1; pub const OPENSSL_BUILT_ON: i32 = 2; @@ -3283,6 +3283,14 @@ pub const EVP_PKEY_DH: i32 = 28; pub const HKDF_R_OUTPUT_TOO_LARGE: i32 = 100; pub const MD5_CBLOCK: i32 = 64; pub const MD5_DIGEST_LENGTH: i32 = 16; +pub const HMAC_MD5_PRECOMPUTED_KEY_SIZE: i32 = 32; +pub const HMAC_SHA1_PRECOMPUTED_KEY_SIZE: i32 = 40; +pub const HMAC_SHA224_PRECOMPUTED_KEY_SIZE: i32 = 64; +pub const HMAC_SHA256_PRECOMPUTED_KEY_SIZE: i32 = 64; +pub const HMAC_SHA384_PRECOMPUTED_KEY_SIZE: i32 = 128; +pub const HMAC_SHA512_PRECOMPUTED_KEY_SIZE: i32 = 128; +pub const HMAC_SHA512_224_PRECOMPUTED_KEY_SIZE: i32 = 128; +pub const HMAC_SHA512_256_PRECOMPUTED_KEY_SIZE: i32 = 128; pub const HMAC_MAX_PRECOMPUTED_KEY_SIZE: i32 = 128; pub const HMAC_R_MISSING_PARAMETERS: i32 = 100; pub const HMAC_R_BUFFER_TOO_SMALL: i32 = 102; @@ -3501,63 +3509,6 @@ pub const GEN_EDIPARTY: i32 = 5; pub const GEN_URI: i32 = 6; pub const GEN_IPADD: i32 = 7; pub const GEN_RID: i32 = 8; -pub const X509_FLAG_COMPAT: i32 = 0; -pub const X509_FLAG_NO_HEADER: i32 = 1; -pub const X509_FLAG_NO_VERSION: i32 = 2; -pub const X509_FLAG_NO_SERIAL: i32 = 4; -pub const X509_FLAG_NO_SIGNAME: i32 = 8; -pub const X509_FLAG_NO_ISSUER: i32 = 16; -pub const X509_FLAG_NO_VALIDITY: i32 = 32; -pub const X509_FLAG_NO_SUBJECT: i32 = 64; -pub const X509_FLAG_NO_PUBKEY: i32 = 128; -pub const X509_FLAG_NO_EXTENSIONS: i32 = 256; -pub const X509_FLAG_NO_SIGDUMP: i32 = 512; -pub const X509_FLAG_NO_AUX: i32 = 1024; -pub const X509_FLAG_NO_ATTRIBUTES: i32 = 2048; -pub const X509_FLAG_NO_IDS: i32 = 4096; -pub const X509V3_EXT_UNKNOWN_MASK: i32 = 983040; -pub const X509V3_EXT_DEFAULT: i32 = 0; -pub const X509V3_EXT_ERROR_UNKNOWN: i32 = 65536; -pub const X509V3_EXT_PARSE_UNKNOWN: i32 = 131072; -pub const X509V3_EXT_DUMP_UNKNOWN: i32 = 196608; -pub const XN_FLAG_COMPAT: i32 = 0; -pub const XN_FLAG_SEP_MASK: i32 = 983040; -pub const XN_FLAG_SEP_COMMA_PLUS: i32 = 65536; -pub const XN_FLAG_SEP_CPLUS_SPC: i32 = 131072; -pub const XN_FLAG_SEP_SPLUS_SPC: i32 = 196608; -pub const XN_FLAG_SEP_MULTILINE: i32 = 262144; -pub const XN_FLAG_DN_REV: i32 = 1048576; -pub const XN_FLAG_FN_MASK: i32 = 6291456; -pub const XN_FLAG_FN_SN: i32 = 0; -pub const XN_FLAG_FN_LN: i32 = 2097152; -pub const XN_FLAG_FN_OID: i32 = 4194304; -pub const XN_FLAG_FN_NONE: i32 = 6291456; -pub const XN_FLAG_SPC_EQ: i32 = 8388608; -pub const XN_FLAG_DUMP_UNKNOWN_FIELDS: i32 = 16777216; -pub const XN_FLAG_FN_ALIGN: i32 = 33554432; -pub const XN_FLAG_RFC2253: i32 = 17892119; -pub const XN_FLAG_ONELINE: i32 = 8520479; -pub const XN_FLAG_MULTILINE: i32 = 44302342; -pub const X509V3_CTX_TEST: i32 = 1; -pub const X509_TRUST_DEFAULT: i32 = -1; -pub const X509_TRUST_COMPAT: i32 = 1; -pub const X509_TRUST_SSL_CLIENT: i32 = 2; -pub const X509_TRUST_SSL_SERVER: i32 = 3; -pub const X509_TRUST_EMAIL: i32 = 4; -pub const X509_TRUST_OBJECT_SIGN: i32 = 5; -pub const X509_TRUST_TSA: i32 = 8; -pub const X509_TRUST_TRUSTED: i32 = 1; -pub const X509_TRUST_REJECTED: i32 = 2; -pub const X509_TRUST_UNTRUSTED: i32 = 3; -pub const X509_LU_NONE: i32 = 0; -pub const X509_LU_X509: i32 = 1; -pub const X509_LU_CRL: i32 = 2; -pub const X509_LU_PKEY: i32 = 3; -pub const X509_L_FILE_LOAD: i32 = 1; -pub const X509_L_ADD_DIR: i32 = 2; -pub const X509_FILETYPE_PEM: i32 = 1; -pub const X509_FILETYPE_ASN1: i32 = 2; -pub const X509_FILETYPE_DEFAULT: i32 = 3; pub const X509_V_OK: i32 = 0; pub const X509_V_ERR_UNSPECIFIED: i32 = 1; pub const X509_V_ERR_UNABLE_TO_GET_ISSUER_CERT: i32 = 2; @@ -3619,6 +3570,78 @@ pub const X509_V_ERR_IP_ADDRESS_MISMATCH: i32 = 64; pub const X509_V_ERR_INVALID_CALL: i32 = 65; pub const X509_V_ERR_STORE_LOOKUP: i32 = 66; pub const X509_V_ERR_NAME_CONSTRAINTS_WITHOUT_SANS: i32 = 67; +pub const X509_CHECK_FLAG_NO_WILDCARDS: i32 = 2; +pub const X509_CHECK_FLAG_NEVER_CHECK_SUBJECT: i32 = 32; +pub const X509_PURPOSE_SSL_CLIENT: i32 = 1; +pub const X509_PURPOSE_SSL_SERVER: i32 = 2; +pub const X509_PURPOSE_NS_SSL_SERVER: i32 = 3; +pub const X509_PURPOSE_SMIME_SIGN: i32 = 4; +pub const X509_PURPOSE_SMIME_ENCRYPT: i32 = 5; +pub const X509_PURPOSE_CRL_SIGN: i32 = 6; +pub const X509_PURPOSE_ANY: i32 = 7; +pub const X509_PURPOSE_OCSP_HELPER: i32 = 8; +pub const X509_PURPOSE_TIMESTAMP_SIGN: i32 = 9; +pub const X509_TRUST_COMPAT: i32 = 1; +pub const X509_TRUST_SSL_CLIENT: i32 = 2; +pub const X509_TRUST_SSL_SERVER: i32 = 3; +pub const X509_TRUST_EMAIL: i32 = 4; +pub const X509_TRUST_OBJECT_SIGN: i32 = 5; +pub const X509_TRUST_TSA: i32 = 8; +pub const X509_FLAG_COMPAT: i32 = 0; +pub const X509_FLAG_NO_HEADER: i32 = 1; +pub const X509_FLAG_NO_VERSION: i32 = 2; +pub const X509_FLAG_NO_SERIAL: i32 = 4; +pub const X509_FLAG_NO_SIGNAME: i32 = 8; +pub const X509_FLAG_NO_ISSUER: i32 = 16; +pub const X509_FLAG_NO_VALIDITY: i32 = 32; +pub const X509_FLAG_NO_SUBJECT: i32 = 64; +pub const X509_FLAG_NO_PUBKEY: i32 = 128; +pub const X509_FLAG_NO_EXTENSIONS: i32 = 256; +pub const X509_FLAG_NO_SIGDUMP: i32 = 512; +pub const X509_FLAG_NO_AUX: i32 = 1024; +pub const X509_FLAG_NO_ATTRIBUTES: i32 = 2048; +pub const X509_FLAG_NO_IDS: i32 = 4096; +pub const X509V3_EXT_UNKNOWN_MASK: i32 = 983040; +pub const X509V3_EXT_DEFAULT: i32 = 0; +pub const X509V3_EXT_ERROR_UNKNOWN: i32 = 65536; +pub const X509V3_EXT_PARSE_UNKNOWN: i32 = 131072; +pub const X509V3_EXT_DUMP_UNKNOWN: i32 = 196608; +pub const XN_FLAG_COMPAT: i32 = 0; +pub const XN_FLAG_SEP_MASK: i32 = 983040; +pub const XN_FLAG_SEP_COMMA_PLUS: i32 = 65536; +pub const XN_FLAG_SEP_CPLUS_SPC: i32 = 131072; +pub const XN_FLAG_SEP_SPLUS_SPC: i32 = 196608; +pub const XN_FLAG_SEP_MULTILINE: i32 = 262144; +pub const XN_FLAG_DN_REV: i32 = 1048576; +pub const XN_FLAG_FN_MASK: i32 = 6291456; +pub const XN_FLAG_FN_SN: i32 = 0; +pub const XN_FLAG_FN_LN: i32 = 2097152; +pub const XN_FLAG_FN_OID: i32 = 4194304; +pub const XN_FLAG_FN_NONE: i32 = 6291456; +pub const XN_FLAG_SPC_EQ: i32 = 8388608; +pub const XN_FLAG_DUMP_UNKNOWN_FIELDS: i32 = 16777216; +pub const XN_FLAG_FN_ALIGN: i32 = 33554432; +pub const XN_FLAG_RFC2253: i32 = 17892119; +pub const XN_FLAG_ONELINE: i32 = 8520479; +pub const XN_FLAG_MULTILINE: i32 = 44302342; +pub const X509_TRUST_TRUSTED: i32 = 1; +pub const X509_TRUST_REJECTED: i32 = 2; +pub const X509_TRUST_UNTRUSTED: i32 = 3; +pub const X509V3_CTX_TEST: i32 = 1; +pub const X509_CHECK_FLAG_ALWAYS_CHECK_SUBJECT: i32 = 0; +pub const X509_CHECK_FLAG_MULTI_LABEL_WILDCARDS: i32 = 0; +pub const X509_CHECK_FLAG_SINGLE_LABEL_SUBDOMAINS: i32 = 0; +pub const X509_CHECK_FLAG_NO_PARTIAL_WILDCARDS: i32 = 0; +pub const X509_TRUST_DEFAULT: i32 = -1; +pub const X509_LU_NONE: i32 = 0; +pub const X509_LU_X509: i32 = 1; +pub const X509_LU_CRL: i32 = 2; +pub const X509_LU_PKEY: i32 = 3; +pub const X509_L_FILE_LOAD: i32 = 1; +pub const X509_L_ADD_DIR: i32 = 2; +pub const X509_FILETYPE_PEM: i32 = 1; +pub const X509_FILETYPE_ASN1: i32 = 2; +pub const X509_FILETYPE_DEFAULT: i32 = 3; pub const X509_V_FLAG_CB_ISSUER_CHECK: i32 = 1; pub const X509_V_FLAG_USE_CHECK_TIME: i32 = 2; pub const X509_V_FLAG_CRL_CHECK: i32 = 4; @@ -3650,15 +3673,6 @@ pub const NS_SSL_CA: i32 = 4; pub const NS_SMIME_CA: i32 = 2; pub const NS_OBJSIGN_CA: i32 = 1; pub const NS_ANY_CA: i32 = 7; -pub const X509_PURPOSE_SSL_CLIENT: i32 = 1; -pub const X509_PURPOSE_SSL_SERVER: i32 = 2; -pub const X509_PURPOSE_NS_SSL_SERVER: i32 = 3; -pub const X509_PURPOSE_SMIME_SIGN: i32 = 4; -pub const X509_PURPOSE_SMIME_ENCRYPT: i32 = 5; -pub const X509_PURPOSE_CRL_SIGN: i32 = 6; -pub const X509_PURPOSE_ANY: i32 = 7; -pub const X509_PURPOSE_OCSP_HELPER: i32 = 8; -pub const X509_PURPOSE_TIMESTAMP_SIGN: i32 = 9; pub const X509V3_ADD_OP_MASK: i32 = 15; pub const X509V3_ADD_DEFAULT: i32 = 0; pub const X509V3_ADD_APPEND: i32 = 1; @@ -3667,12 +3681,6 @@ pub const X509V3_ADD_REPLACE_EXISTING: i32 = 3; pub const X509V3_ADD_KEEP_EXISTING: i32 = 4; pub const X509V3_ADD_DELETE: i32 = 5; pub const X509V3_ADD_SILENT: i32 = 16; -pub const X509_CHECK_FLAG_NO_WILDCARDS: i32 = 2; -pub const X509_CHECK_FLAG_NEVER_CHECK_SUBJECT: i32 = 32; -pub const X509_CHECK_FLAG_NO_PARTIAL_WILDCARDS: i32 = 0; -pub const X509_CHECK_FLAG_ALWAYS_CHECK_SUBJECT: i32 = 0; -pub const X509_CHECK_FLAG_MULTI_LABEL_WILDCARDS: i32 = 0; -pub const X509_CHECK_FLAG_SINGLE_LABEL_SUBDOMAINS: i32 = 0; pub const X509_R_AKID_MISMATCH: i32 = 100; pub const X509_R_BAD_PKCS7_VERSION: i32 = 101; pub const X509_R_BAD_X509_FILETYPE: i32 = 102; @@ -13026,24 +13034,6 @@ extern "C" { enc: ::std::os::raw::c_int, ); } -extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_DES_decrypt3"] - pub fn DES_decrypt3( - data: *mut u32, - ks1: *const DES_key_schedule, - ks2: *const DES_key_schedule, - ks3: *const DES_key_schedule, - ); -} -extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_DES_encrypt3"] - pub fn DES_encrypt3( - data: *mut u32, - ks1: *const DES_key_schedule, - ks2: *const DES_key_schedule, - ks3: *const DES_key_schedule, - ); -} extern "C" { #[link_name = "\u{1}aws_lc_0_21_0_DH_new"] pub fn DH_new() -> *mut DH; @@ -21048,1751 +21038,1558 @@ extern "C" { idx: ::std::os::raw::c_int, ) -> *mut ASN1_TYPE; } -#[repr(C)] -#[derive(Debug, Copy, Clone, PartialEq, Eq)] -pub struct Netscape_spki_st { - pub spkac: *mut NETSCAPE_SPKAC, - pub sig_algor: *mut X509_ALGOR, - pub signature: *mut ASN1_BIT_STRING, -} -#[test] -fn bindgen_test_layout_Netscape_spki_st() { - const UNINIT: ::std::mem::MaybeUninit = ::std::mem::MaybeUninit::uninit(); - let ptr = UNINIT.as_ptr(); - assert_eq!( - ::std::mem::size_of::(), - 24usize, - concat!("Size of: ", stringify!(Netscape_spki_st)) - ); - assert_eq!( - ::std::mem::align_of::(), - 8usize, - concat!("Alignment of ", stringify!(Netscape_spki_st)) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).spkac) as usize - ptr as usize }, - 0usize, - concat!( - "Offset of field: ", - stringify!(Netscape_spki_st), - "::", - stringify!(spkac) - ) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).sig_algor) as usize - ptr as usize }, - 8usize, - concat!( - "Offset of field: ", - stringify!(Netscape_spki_st), - "::", - stringify!(sig_algor) - ) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).signature) as usize - ptr as usize }, - 16usize, - concat!( - "Offset of field: ", - stringify!(Netscape_spki_st), - "::", - stringify!(signature) - ) - ); +extern "C" { + #[link_name = "\u{1}aws_lc_0_21_0_X509_STORE_new"] + pub fn X509_STORE_new() -> *mut X509_STORE; } -impl Default for Netscape_spki_st { - fn default() -> Self { - let mut s = ::std::mem::MaybeUninit::::uninit(); - unsafe { - ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() - } - } +extern "C" { + #[link_name = "\u{1}aws_lc_0_21_0_X509_STORE_up_ref"] + pub fn X509_STORE_up_ref(store: *mut X509_STORE) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_NETSCAPE_SPKI_it"] - pub static NETSCAPE_SPKI_it: ASN1_ITEM; + #[link_name = "\u{1}aws_lc_0_21_0_X509_STORE_free"] + pub fn X509_STORE_free(store: *mut X509_STORE); } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_NETSCAPE_SPKI_new"] - pub fn NETSCAPE_SPKI_new() -> *mut NETSCAPE_SPKI; + #[link_name = "\u{1}aws_lc_0_21_0_X509_STORE_add_cert"] + pub fn X509_STORE_add_cert(store: *mut X509_STORE, x509: *mut X509) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_NETSCAPE_SPKI_free"] - pub fn NETSCAPE_SPKI_free(spki: *mut NETSCAPE_SPKI); + #[link_name = "\u{1}aws_lc_0_21_0_X509_STORE_add_crl"] + pub fn X509_STORE_add_crl(store: *mut X509_STORE, crl: *mut X509_CRL) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_d2i_NETSCAPE_SPKI"] - pub fn d2i_NETSCAPE_SPKI( - out: *mut *mut NETSCAPE_SPKI, - inp: *mut *const u8, - len: ::std::os::raw::c_long, - ) -> *mut NETSCAPE_SPKI; + #[link_name = "\u{1}aws_lc_0_21_0_X509_STORE_get0_param"] + pub fn X509_STORE_get0_param(store: *mut X509_STORE) -> *mut X509_VERIFY_PARAM; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_i2d_NETSCAPE_SPKI"] - pub fn i2d_NETSCAPE_SPKI( - spki: *const NETSCAPE_SPKI, - outp: *mut *mut u8, + #[link_name = "\u{1}aws_lc_0_21_0_X509_STORE_set1_param"] + pub fn X509_STORE_set1_param( + store: *mut X509_STORE, + param: *const X509_VERIFY_PARAM, ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_NETSCAPE_SPKI_verify"] - pub fn NETSCAPE_SPKI_verify( - spki: *mut NETSCAPE_SPKI, - pkey: *mut EVP_PKEY, + #[link_name = "\u{1}aws_lc_0_21_0_X509_STORE_set_flags"] + pub fn X509_STORE_set_flags( + store: *mut X509_STORE, + flags: ::std::os::raw::c_ulong, ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_NETSCAPE_SPKI_b64_decode"] - pub fn NETSCAPE_SPKI_b64_decode( - str_: *const ::std::os::raw::c_char, - len: ossl_ssize_t, - ) -> *mut NETSCAPE_SPKI; + #[link_name = "\u{1}aws_lc_0_21_0_X509_STORE_set_depth"] + pub fn X509_STORE_set_depth( + store: *mut X509_STORE, + depth: ::std::os::raw::c_int, + ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_NETSCAPE_SPKI_b64_encode"] - pub fn NETSCAPE_SPKI_b64_encode(spki: *mut NETSCAPE_SPKI) -> *mut ::std::os::raw::c_char; + #[link_name = "\u{1}aws_lc_0_21_0_X509_STORE_set_purpose"] + pub fn X509_STORE_set_purpose( + store: *mut X509_STORE, + purpose: ::std::os::raw::c_int, + ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_NETSCAPE_SPKI_get_pubkey"] - pub fn NETSCAPE_SPKI_get_pubkey(spki: *const NETSCAPE_SPKI) -> *mut EVP_PKEY; + #[link_name = "\u{1}aws_lc_0_21_0_X509_STORE_set_trust"] + pub fn X509_STORE_set_trust( + store: *mut X509_STORE, + trust: ::std::os::raw::c_int, + ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_NETSCAPE_SPKI_set_pubkey"] - pub fn NETSCAPE_SPKI_set_pubkey( - spki: *mut NETSCAPE_SPKI, - pkey: *mut EVP_PKEY, - ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_0_21_0_X509_STORE_CTX_new"] + pub fn X509_STORE_CTX_new() -> *mut X509_STORE_CTX; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_NETSCAPE_SPKI_sign"] - pub fn NETSCAPE_SPKI_sign( - spki: *mut NETSCAPE_SPKI, - pkey: *mut EVP_PKEY, - md: *const EVP_MD, + #[link_name = "\u{1}aws_lc_0_21_0_X509_STORE_CTX_free"] + pub fn X509_STORE_CTX_free(ctx: *mut X509_STORE_CTX); +} +extern "C" { + #[link_name = "\u{1}aws_lc_0_21_0_X509_STORE_CTX_init"] + pub fn X509_STORE_CTX_init( + ctx: *mut X509_STORE_CTX, + store: *mut X509_STORE, + x509: *mut X509, + chain: *mut stack_st_X509, ) -> ::std::os::raw::c_int; } -#[repr(C)] -#[derive(Debug, Copy, Clone, PartialEq, Eq)] -pub struct Netscape_spkac_st { - pub pubkey: *mut X509_PUBKEY, - pub challenge: *mut ASN1_IA5STRING, +extern "C" { + #[link_name = "\u{1}aws_lc_0_21_0_X509_verify_cert"] + pub fn X509_verify_cert(ctx: *mut X509_STORE_CTX) -> ::std::os::raw::c_int; } -#[test] -fn bindgen_test_layout_Netscape_spkac_st() { - const UNINIT: ::std::mem::MaybeUninit = ::std::mem::MaybeUninit::uninit(); - let ptr = UNINIT.as_ptr(); - assert_eq!( - ::std::mem::size_of::(), - 16usize, - concat!("Size of: ", stringify!(Netscape_spkac_st)) - ); - assert_eq!( - ::std::mem::align_of::(), - 8usize, - concat!("Alignment of ", stringify!(Netscape_spkac_st)) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).pubkey) as usize - ptr as usize }, - 0usize, - concat!( - "Offset of field: ", - stringify!(Netscape_spkac_st), - "::", - stringify!(pubkey) - ) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).challenge) as usize - ptr as usize }, - 8usize, - concat!( - "Offset of field: ", - stringify!(Netscape_spkac_st), - "::", - stringify!(challenge) - ) - ); +extern "C" { + #[link_name = "\u{1}aws_lc_0_21_0_X509_STORE_CTX_get0_chain"] + pub fn X509_STORE_CTX_get0_chain(ctx: *mut X509_STORE_CTX) -> *mut stack_st_X509; } -impl Default for Netscape_spkac_st { - fn default() -> Self { - let mut s = ::std::mem::MaybeUninit::::uninit(); - unsafe { - ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() - } - } +extern "C" { + #[link_name = "\u{1}aws_lc_0_21_0_X509_STORE_CTX_get1_chain"] + pub fn X509_STORE_CTX_get1_chain(ctx: *mut X509_STORE_CTX) -> *mut stack_st_X509; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_NETSCAPE_SPKAC_it"] - pub static NETSCAPE_SPKAC_it: ASN1_ITEM; + #[link_name = "\u{1}aws_lc_0_21_0_X509_STORE_CTX_set_cert"] + pub fn X509_STORE_CTX_set_cert(c: *mut X509_STORE_CTX, x: *mut X509); } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_NETSCAPE_SPKAC_new"] - pub fn NETSCAPE_SPKAC_new() -> *mut NETSCAPE_SPKAC; + #[link_name = "\u{1}aws_lc_0_21_0_X509_STORE_CTX_get_error"] + pub fn X509_STORE_CTX_get_error(ctx: *mut X509_STORE_CTX) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_NETSCAPE_SPKAC_free"] - pub fn NETSCAPE_SPKAC_free(spkac: *mut NETSCAPE_SPKAC); + #[link_name = "\u{1}aws_lc_0_21_0_X509_STORE_CTX_set_error"] + pub fn X509_STORE_CTX_set_error(ctx: *mut X509_STORE_CTX, err: ::std::os::raw::c_int); } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_d2i_NETSCAPE_SPKAC"] - pub fn d2i_NETSCAPE_SPKAC( - out: *mut *mut NETSCAPE_SPKAC, - inp: *mut *const u8, - len: ::std::os::raw::c_long, - ) -> *mut NETSCAPE_SPKAC; + #[link_name = "\u{1}aws_lc_0_21_0_X509_verify_cert_error_string"] + pub fn X509_verify_cert_error_string( + err: ::std::os::raw::c_long, + ) -> *const ::std::os::raw::c_char; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_i2d_NETSCAPE_SPKAC"] - pub fn i2d_NETSCAPE_SPKAC( - spkac: *const NETSCAPE_SPKAC, - outp: *mut *mut u8, - ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_0_21_0_X509_STORE_CTX_get_error_depth"] + pub fn X509_STORE_CTX_get_error_depth(ctx: *mut X509_STORE_CTX) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_NETSCAPE_SPKI_print"] - pub fn NETSCAPE_SPKI_print(out: *mut BIO, spki: *mut NETSCAPE_SPKI) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_0_21_0_X509_STORE_CTX_get_current_cert"] + pub fn X509_STORE_CTX_get_current_cert(ctx: *mut X509_STORE_CTX) -> *mut X509; } -#[repr(C)] -#[derive(Debug, Copy, Clone, PartialEq, Eq)] -pub struct rsa_pss_params_st { - pub hashAlgorithm: *mut X509_ALGOR, - pub maskGenAlgorithm: *mut X509_ALGOR, - pub saltLength: *mut ASN1_INTEGER, - pub trailerField: *mut ASN1_INTEGER, - pub maskHash: *mut X509_ALGOR, +extern "C" { + #[link_name = "\u{1}aws_lc_0_21_0_X509_STORE_CTX_get0_current_issuer"] + pub fn X509_STORE_CTX_get0_current_issuer(ctx: *mut X509_STORE_CTX) -> *mut X509; } -#[test] -fn bindgen_test_layout_rsa_pss_params_st() { - const UNINIT: ::std::mem::MaybeUninit = ::std::mem::MaybeUninit::uninit(); - let ptr = UNINIT.as_ptr(); - assert_eq!( - ::std::mem::size_of::(), - 40usize, - concat!("Size of: ", stringify!(rsa_pss_params_st)) - ); - assert_eq!( - ::std::mem::align_of::(), - 8usize, - concat!("Alignment of ", stringify!(rsa_pss_params_st)) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).hashAlgorithm) as usize - ptr as usize }, - 0usize, - concat!( - "Offset of field: ", - stringify!(rsa_pss_params_st), - "::", - stringify!(hashAlgorithm) - ) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).maskGenAlgorithm) as usize - ptr as usize }, - 8usize, - concat!( - "Offset of field: ", - stringify!(rsa_pss_params_st), - "::", - stringify!(maskGenAlgorithm) - ) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).saltLength) as usize - ptr as usize }, - 16usize, - concat!( - "Offset of field: ", - stringify!(rsa_pss_params_st), - "::", - stringify!(saltLength) - ) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).trailerField) as usize - ptr as usize }, - 24usize, - concat!( - "Offset of field: ", - stringify!(rsa_pss_params_st), - "::", - stringify!(trailerField) - ) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).maskHash) as usize - ptr as usize }, - 32usize, - concat!( - "Offset of field: ", - stringify!(rsa_pss_params_st), - "::", - stringify!(maskHash) - ) - ); +extern "C" { + #[link_name = "\u{1}aws_lc_0_21_0_X509_STORE_CTX_get0_current_crl"] + pub fn X509_STORE_CTX_get0_current_crl(ctx: *mut X509_STORE_CTX) -> *mut X509_CRL; } -impl Default for rsa_pss_params_st { - fn default() -> Self { - let mut s = ::std::mem::MaybeUninit::::uninit(); - unsafe { - ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() - } - } +extern "C" { + #[link_name = "\u{1}aws_lc_0_21_0_X509_STORE_CTX_get0_store"] + pub fn X509_STORE_CTX_get0_store(ctx: *mut X509_STORE_CTX) -> *mut X509_STORE; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_RSA_PSS_PARAMS_it"] - pub static RSA_PSS_PARAMS_it: ASN1_ITEM; + #[link_name = "\u{1}aws_lc_0_21_0_X509_STORE_CTX_get0_cert"] + pub fn X509_STORE_CTX_get0_cert(ctx: *mut X509_STORE_CTX) -> *mut X509; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_RSA_PSS_PARAMS_new"] - pub fn RSA_PSS_PARAMS_new() -> *mut RSA_PSS_PARAMS; + #[link_name = "\u{1}aws_lc_0_21_0_X509_STORE_CTX_get0_untrusted"] + pub fn X509_STORE_CTX_get0_untrusted(ctx: *mut X509_STORE_CTX) -> *mut stack_st_X509; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_RSA_PSS_PARAMS_free"] - pub fn RSA_PSS_PARAMS_free(params: *mut RSA_PSS_PARAMS); + #[link_name = "\u{1}aws_lc_0_21_0_X509_STORE_CTX_set0_trusted_stack"] + pub fn X509_STORE_CTX_set0_trusted_stack(ctx: *mut X509_STORE_CTX, sk: *mut stack_st_X509); } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_d2i_RSA_PSS_PARAMS"] - pub fn d2i_RSA_PSS_PARAMS( - out: *mut *mut RSA_PSS_PARAMS, - inp: *mut *const u8, - len: ::std::os::raw::c_long, - ) -> *mut RSA_PSS_PARAMS; + #[link_name = "\u{1}aws_lc_0_21_0_X509_STORE_CTX_set0_crls"] + pub fn X509_STORE_CTX_set0_crls(ctx: *mut X509_STORE_CTX, sk: *mut stack_st_X509_CRL); } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_i2d_RSA_PSS_PARAMS"] - pub fn i2d_RSA_PSS_PARAMS( - in_: *const RSA_PSS_PARAMS, - outp: *mut *mut u8, + #[link_name = "\u{1}aws_lc_0_21_0_X509_STORE_CTX_set_default"] + pub fn X509_STORE_CTX_set_default( + ctx: *mut X509_STORE_CTX, + name: *const ::std::os::raw::c_char, ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_PKCS8_PRIV_KEY_INFO_it"] - pub static PKCS8_PRIV_KEY_INFO_it: ASN1_ITEM; + #[link_name = "\u{1}aws_lc_0_21_0_X509_STORE_CTX_get0_param"] + pub fn X509_STORE_CTX_get0_param(ctx: *mut X509_STORE_CTX) -> *mut X509_VERIFY_PARAM; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_PKCS8_PRIV_KEY_INFO_new"] - pub fn PKCS8_PRIV_KEY_INFO_new() -> *mut PKCS8_PRIV_KEY_INFO; -} -extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_PKCS8_PRIV_KEY_INFO_free"] - pub fn PKCS8_PRIV_KEY_INFO_free(key: *mut PKCS8_PRIV_KEY_INFO); -} -extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_d2i_PKCS8_PRIV_KEY_INFO"] - pub fn d2i_PKCS8_PRIV_KEY_INFO( - out: *mut *mut PKCS8_PRIV_KEY_INFO, - inp: *mut *const u8, - len: ::std::os::raw::c_long, - ) -> *mut PKCS8_PRIV_KEY_INFO; -} -extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_i2d_PKCS8_PRIV_KEY_INFO"] - pub fn i2d_PKCS8_PRIV_KEY_INFO( - key: *const PKCS8_PRIV_KEY_INFO, - outp: *mut *mut u8, - ) -> ::std::os::raw::c_int; -} -extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_EVP_PKCS82PKEY"] - pub fn EVP_PKCS82PKEY(p8: *const PKCS8_PRIV_KEY_INFO) -> *mut EVP_PKEY; + #[link_name = "\u{1}aws_lc_0_21_0_X509_STORE_CTX_set0_param"] + pub fn X509_STORE_CTX_set0_param(ctx: *mut X509_STORE_CTX, param: *mut X509_VERIFY_PARAM); } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_EVP_PKEY2PKCS8"] - pub fn EVP_PKEY2PKCS8(pkey: *const EVP_PKEY) -> *mut PKCS8_PRIV_KEY_INFO; + #[link_name = "\u{1}aws_lc_0_21_0_X509_STORE_CTX_set_flags"] + pub fn X509_STORE_CTX_set_flags(ctx: *mut X509_STORE_CTX, flags: ::std::os::raw::c_ulong); } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_X509_SIG_it"] - pub static X509_SIG_it: ASN1_ITEM; + #[link_name = "\u{1}aws_lc_0_21_0_X509_STORE_CTX_set_time"] + pub fn X509_STORE_CTX_set_time( + ctx: *mut X509_STORE_CTX, + flags: ::std::os::raw::c_ulong, + t: time_t, + ); } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_X509_SIG_new"] - pub fn X509_SIG_new() -> *mut X509_SIG; + #[link_name = "\u{1}aws_lc_0_21_0_X509_STORE_CTX_set_time_posix"] + pub fn X509_STORE_CTX_set_time_posix( + ctx: *mut X509_STORE_CTX, + flags: ::std::os::raw::c_ulong, + t: i64, + ); } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_X509_SIG_free"] - pub fn X509_SIG_free(key: *mut X509_SIG); + #[link_name = "\u{1}aws_lc_0_21_0_X509_STORE_CTX_set_depth"] + pub fn X509_STORE_CTX_set_depth(ctx: *mut X509_STORE_CTX, depth: ::std::os::raw::c_int); } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_d2i_X509_SIG"] - pub fn d2i_X509_SIG( - out: *mut *mut X509_SIG, - inp: *mut *const u8, - len: ::std::os::raw::c_long, - ) -> *mut X509_SIG; + #[link_name = "\u{1}aws_lc_0_21_0_X509_STORE_CTX_set_purpose"] + pub fn X509_STORE_CTX_set_purpose( + ctx: *mut X509_STORE_CTX, + purpose: ::std::os::raw::c_int, + ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_i2d_X509_SIG"] - pub fn i2d_X509_SIG(sig: *const X509_SIG, outp: *mut *mut u8) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_0_21_0_X509_STORE_CTX_set_trust"] + pub fn X509_STORE_CTX_set_trust( + ctx: *mut X509_STORE_CTX, + trust: ::std::os::raw::c_int, + ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_X509_SIG_get0"] - pub fn X509_SIG_get0( - sig: *const X509_SIG, - out_alg: *mut *const X509_ALGOR, - out_digest: *mut *const ASN1_OCTET_STRING, - ); + #[link_name = "\u{1}aws_lc_0_21_0_X509_VERIFY_PARAM_new"] + pub fn X509_VERIFY_PARAM_new() -> *mut X509_VERIFY_PARAM; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_X509_SIG_getm"] - pub fn X509_SIG_getm( - sig: *mut X509_SIG, - out_alg: *mut *mut X509_ALGOR, - out_digest: *mut *mut ASN1_OCTET_STRING, - ); + #[link_name = "\u{1}aws_lc_0_21_0_X509_VERIFY_PARAM_free"] + pub fn X509_VERIFY_PARAM_free(param: *mut X509_VERIFY_PARAM); } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_X509_print_ex"] - pub fn X509_print_ex( - bp: *mut BIO, - x: *mut X509, - nmflag: ::std::os::raw::c_ulong, - cflag: ::std::os::raw::c_ulong, + #[link_name = "\u{1}aws_lc_0_21_0_X509_VERIFY_PARAM_inherit"] + pub fn X509_VERIFY_PARAM_inherit( + to: *mut X509_VERIFY_PARAM, + from: *const X509_VERIFY_PARAM, ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_X509_print_ex_fp"] - pub fn X509_print_ex_fp( - fp: *mut FILE, - x: *mut X509, - nmflag: ::std::os::raw::c_ulong, - cflag: ::std::os::raw::c_ulong, + #[link_name = "\u{1}aws_lc_0_21_0_X509_VERIFY_PARAM_set1"] + pub fn X509_VERIFY_PARAM_set1( + to: *mut X509_VERIFY_PARAM, + from: *const X509_VERIFY_PARAM, ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_X509_print"] - pub fn X509_print(bp: *mut BIO, x: *mut X509) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_0_21_0_X509_VERIFY_PARAM_set_flags"] + pub fn X509_VERIFY_PARAM_set_flags( + param: *mut X509_VERIFY_PARAM, + flags: ::std::os::raw::c_ulong, + ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_X509_print_fp"] - pub fn X509_print_fp(fp: *mut FILE, x: *mut X509) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_0_21_0_X509_VERIFY_PARAM_clear_flags"] + pub fn X509_VERIFY_PARAM_clear_flags( + param: *mut X509_VERIFY_PARAM, + flags: ::std::os::raw::c_ulong, + ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_X509_CRL_print"] - pub fn X509_CRL_print(bp: *mut BIO, x: *mut X509_CRL) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_0_21_0_X509_VERIFY_PARAM_get_flags"] + pub fn X509_VERIFY_PARAM_get_flags(param: *const X509_VERIFY_PARAM) -> ::std::os::raw::c_ulong; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_X509_CRL_print_fp"] - pub fn X509_CRL_print_fp(fp: *mut FILE, x: *mut X509_CRL) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_0_21_0_X509_VERIFY_PARAM_set_depth"] + pub fn X509_VERIFY_PARAM_set_depth(param: *mut X509_VERIFY_PARAM, depth: ::std::os::raw::c_int); } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_X509_REQ_print_ex"] - pub fn X509_REQ_print_ex( - bp: *mut BIO, - x: *mut X509_REQ, - nmflag: ::std::os::raw::c_ulong, - cflag: ::std::os::raw::c_ulong, - ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_0_21_0_X509_VERIFY_PARAM_get_depth"] + pub fn X509_VERIFY_PARAM_get_depth(param: *const X509_VERIFY_PARAM) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_X509_REQ_print"] - pub fn X509_REQ_print(bp: *mut BIO, req: *mut X509_REQ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_0_21_0_X509_VERIFY_PARAM_set_time"] + pub fn X509_VERIFY_PARAM_set_time(param: *mut X509_VERIFY_PARAM, t: time_t); } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_X509_REQ_print_fp"] - pub fn X509_REQ_print_fp(fp: *mut FILE, req: *mut X509_REQ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_0_21_0_X509_VERIFY_PARAM_set_time_posix"] + pub fn X509_VERIFY_PARAM_set_time_posix(param: *mut X509_VERIFY_PARAM, t: i64); } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_X509_NAME_print_ex"] - pub fn X509_NAME_print_ex( - out: *mut BIO, - nm: *const X509_NAME, - indent: ::std::os::raw::c_int, - flags: ::std::os::raw::c_ulong, + #[link_name = "\u{1}aws_lc_0_21_0_X509_VERIFY_PARAM_add0_policy"] + pub fn X509_VERIFY_PARAM_add0_policy( + param: *mut X509_VERIFY_PARAM, + policy: *mut ASN1_OBJECT, ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_X509_NAME_print"] - pub fn X509_NAME_print( - bp: *mut BIO, - name: *const X509_NAME, - obase: ::std::os::raw::c_int, + #[link_name = "\u{1}aws_lc_0_21_0_X509_VERIFY_PARAM_set1_policies"] + pub fn X509_VERIFY_PARAM_set1_policies( + param: *mut X509_VERIFY_PARAM, + policies: *const stack_st_ASN1_OBJECT, ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_X509_NAME_oneline"] - pub fn X509_NAME_oneline( - name: *const X509_NAME, - buf: *mut ::std::os::raw::c_char, - size: ::std::os::raw::c_int, - ) -> *mut ::std::os::raw::c_char; -} -extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_X509_NAME_print_ex_fp"] - pub fn X509_NAME_print_ex_fp( - fp: *mut FILE, - nm: *const X509_NAME, - indent: ::std::os::raw::c_int, - flags: ::std::os::raw::c_ulong, + #[link_name = "\u{1}aws_lc_0_21_0_X509_VERIFY_PARAM_set1_host"] + pub fn X509_VERIFY_PARAM_set1_host( + param: *mut X509_VERIFY_PARAM, + name: *const ::std::os::raw::c_char, + name_len: usize, ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_X509_signature_dump"] - pub fn X509_signature_dump( - bio: *mut BIO, - sig: *const ASN1_STRING, - indent: ::std::os::raw::c_int, + #[link_name = "\u{1}aws_lc_0_21_0_X509_VERIFY_PARAM_add1_host"] + pub fn X509_VERIFY_PARAM_add1_host( + param: *mut X509_VERIFY_PARAM, + name: *const ::std::os::raw::c_char, + name_len: usize, ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_X509_signature_print"] - pub fn X509_signature_print( - bio: *mut BIO, - alg: *const X509_ALGOR, - sig: *const ASN1_STRING, - ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_0_21_0_X509_VERIFY_PARAM_set_hostflags"] + pub fn X509_VERIFY_PARAM_set_hostflags( + param: *mut X509_VERIFY_PARAM, + flags: ::std::os::raw::c_uint, + ); } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_X509V3_EXT_print"] - pub fn X509V3_EXT_print( - out: *mut BIO, - ext: *const X509_EXTENSION, - flag: ::std::os::raw::c_ulong, - indent: ::std::os::raw::c_int, + #[link_name = "\u{1}aws_lc_0_21_0_X509_VERIFY_PARAM_set1_email"] + pub fn X509_VERIFY_PARAM_set1_email( + param: *mut X509_VERIFY_PARAM, + email: *const ::std::os::raw::c_char, + email_len: usize, ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_X509V3_EXT_print_fp"] - pub fn X509V3_EXT_print_fp( - out: *mut FILE, - ext: *const X509_EXTENSION, - flag: ::std::os::raw::c_int, - indent: ::std::os::raw::c_int, + #[link_name = "\u{1}aws_lc_0_21_0_X509_VERIFY_PARAM_set1_ip"] + pub fn X509_VERIFY_PARAM_set1_ip( + param: *mut X509_VERIFY_PARAM, + ip: *const u8, + ip_len: usize, ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_X509V3_extensions_print"] - pub fn X509V3_extensions_print( - out: *mut BIO, - title: *const ::std::os::raw::c_char, - exts: *const stack_st_X509_EXTENSION, - flag: ::std::os::raw::c_ulong, - indent: ::std::os::raw::c_int, + #[link_name = "\u{1}aws_lc_0_21_0_X509_VERIFY_PARAM_set1_ip_asc"] + pub fn X509_VERIFY_PARAM_set1_ip_asc( + param: *mut X509_VERIFY_PARAM, + ipasc: *const ::std::os::raw::c_char, ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_GENERAL_NAME_print"] - pub fn GENERAL_NAME_print(out: *mut BIO, gen: *const GENERAL_NAME) -> ::std::os::raw::c_int; -} -extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_X509_pubkey_digest"] - pub fn X509_pubkey_digest( - x509: *const X509, - md: *const EVP_MD, - out: *mut u8, - out_len: *mut ::std::os::raw::c_uint, + #[link_name = "\u{1}aws_lc_0_21_0_X509_VERIFY_PARAM_set_purpose"] + pub fn X509_VERIFY_PARAM_set_purpose( + param: *mut X509_VERIFY_PARAM, + purpose: ::std::os::raw::c_int, ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_X509_digest"] - pub fn X509_digest( - x509: *const X509, - md: *const EVP_MD, - out: *mut u8, - out_len: *mut ::std::os::raw::c_uint, + #[link_name = "\u{1}aws_lc_0_21_0_X509_VERIFY_PARAM_set_trust"] + pub fn X509_VERIFY_PARAM_set_trust( + param: *mut X509_VERIFY_PARAM, + trust: ::std::os::raw::c_int, ) -> ::std::os::raw::c_int; } -extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_X509_CRL_digest"] - pub fn X509_CRL_digest( - crl: *const X509_CRL, - md: *const EVP_MD, - out: *mut u8, - out_len: *mut ::std::os::raw::c_uint, - ) -> ::std::os::raw::c_int; -} -extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_X509_REQ_digest"] - pub fn X509_REQ_digest( - req: *const X509_REQ, - md: *const EVP_MD, - out: *mut u8, - out_len: *mut ::std::os::raw::c_uint, - ) -> ::std::os::raw::c_int; -} -extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_X509_NAME_digest"] - pub fn X509_NAME_digest( - name: *const X509_NAME, - md: *const EVP_MD, - out: *mut u8, - out_len: *mut ::std::os::raw::c_uint, - ) -> ::std::os::raw::c_int; +#[repr(C)] +#[derive(Debug, Copy, Clone, PartialEq, Eq)] +pub struct Netscape_spki_st { + pub spkac: *mut NETSCAPE_SPKAC, + pub sig_algor: *mut X509_ALGOR, + pub signature: *mut ASN1_BIT_STRING, } -extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_d2i_X509_bio"] - pub fn d2i_X509_bio(bp: *mut BIO, x509: *mut *mut X509) -> *mut X509; +#[test] +fn bindgen_test_layout_Netscape_spki_st() { + const UNINIT: ::std::mem::MaybeUninit = ::std::mem::MaybeUninit::uninit(); + let ptr = UNINIT.as_ptr(); + assert_eq!( + ::std::mem::size_of::(), + 24usize, + concat!("Size of: ", stringify!(Netscape_spki_st)) + ); + assert_eq!( + ::std::mem::align_of::(), + 8usize, + concat!("Alignment of ", stringify!(Netscape_spki_st)) + ); + assert_eq!( + unsafe { ::std::ptr::addr_of!((*ptr).spkac) as usize - ptr as usize }, + 0usize, + concat!( + "Offset of field: ", + stringify!(Netscape_spki_st), + "::", + stringify!(spkac) + ) + ); + assert_eq!( + unsafe { ::std::ptr::addr_of!((*ptr).sig_algor) as usize - ptr as usize }, + 8usize, + concat!( + "Offset of field: ", + stringify!(Netscape_spki_st), + "::", + stringify!(sig_algor) + ) + ); + assert_eq!( + unsafe { ::std::ptr::addr_of!((*ptr).signature) as usize - ptr as usize }, + 16usize, + concat!( + "Offset of field: ", + stringify!(Netscape_spki_st), + "::", + stringify!(signature) + ) + ); } -extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_d2i_X509_CRL_bio"] - pub fn d2i_X509_CRL_bio(bp: *mut BIO, crl: *mut *mut X509_CRL) -> *mut X509_CRL; +impl Default for Netscape_spki_st { + fn default() -> Self { + let mut s = ::std::mem::MaybeUninit::::uninit(); + unsafe { + ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); + s.assume_init() + } + } } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_d2i_X509_REQ_bio"] - pub fn d2i_X509_REQ_bio(bp: *mut BIO, req: *mut *mut X509_REQ) -> *mut X509_REQ; + #[link_name = "\u{1}aws_lc_0_21_0_NETSCAPE_SPKI_it"] + pub static NETSCAPE_SPKI_it: ASN1_ITEM; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_d2i_RSAPrivateKey_bio"] - pub fn d2i_RSAPrivateKey_bio(bp: *mut BIO, rsa: *mut *mut RSA) -> *mut RSA; + #[link_name = "\u{1}aws_lc_0_21_0_NETSCAPE_SPKI_new"] + pub fn NETSCAPE_SPKI_new() -> *mut NETSCAPE_SPKI; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_d2i_RSAPublicKey_bio"] - pub fn d2i_RSAPublicKey_bio(bp: *mut BIO, rsa: *mut *mut RSA) -> *mut RSA; + #[link_name = "\u{1}aws_lc_0_21_0_NETSCAPE_SPKI_free"] + pub fn NETSCAPE_SPKI_free(spki: *mut NETSCAPE_SPKI); } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_d2i_RSA_PUBKEY_bio"] - pub fn d2i_RSA_PUBKEY_bio(bp: *mut BIO, rsa: *mut *mut RSA) -> *mut RSA; + #[link_name = "\u{1}aws_lc_0_21_0_d2i_NETSCAPE_SPKI"] + pub fn d2i_NETSCAPE_SPKI( + out: *mut *mut NETSCAPE_SPKI, + inp: *mut *const u8, + len: ::std::os::raw::c_long, + ) -> *mut NETSCAPE_SPKI; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_d2i_DSA_PUBKEY_bio"] - pub fn d2i_DSA_PUBKEY_bio(bp: *mut BIO, dsa: *mut *mut DSA) -> *mut DSA; + #[link_name = "\u{1}aws_lc_0_21_0_i2d_NETSCAPE_SPKI"] + pub fn i2d_NETSCAPE_SPKI( + spki: *const NETSCAPE_SPKI, + outp: *mut *mut u8, + ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_d2i_DSAPrivateKey_bio"] - pub fn d2i_DSAPrivateKey_bio(bp: *mut BIO, dsa: *mut *mut DSA) -> *mut DSA; + #[link_name = "\u{1}aws_lc_0_21_0_NETSCAPE_SPKI_verify"] + pub fn NETSCAPE_SPKI_verify( + spki: *mut NETSCAPE_SPKI, + pkey: *mut EVP_PKEY, + ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_d2i_EC_PUBKEY_bio"] - pub fn d2i_EC_PUBKEY_bio(bp: *mut BIO, eckey: *mut *mut EC_KEY) -> *mut EC_KEY; + #[link_name = "\u{1}aws_lc_0_21_0_NETSCAPE_SPKI_b64_decode"] + pub fn NETSCAPE_SPKI_b64_decode( + str_: *const ::std::os::raw::c_char, + len: ossl_ssize_t, + ) -> *mut NETSCAPE_SPKI; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_d2i_ECPrivateKey_bio"] - pub fn d2i_ECPrivateKey_bio(bp: *mut BIO, eckey: *mut *mut EC_KEY) -> *mut EC_KEY; + #[link_name = "\u{1}aws_lc_0_21_0_NETSCAPE_SPKI_b64_encode"] + pub fn NETSCAPE_SPKI_b64_encode(spki: *mut NETSCAPE_SPKI) -> *mut ::std::os::raw::c_char; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_d2i_PKCS8_bio"] - pub fn d2i_PKCS8_bio(bp: *mut BIO, p8: *mut *mut X509_SIG) -> *mut X509_SIG; + #[link_name = "\u{1}aws_lc_0_21_0_NETSCAPE_SPKI_get_pubkey"] + pub fn NETSCAPE_SPKI_get_pubkey(spki: *const NETSCAPE_SPKI) -> *mut EVP_PKEY; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_d2i_PKCS8_PRIV_KEY_INFO_bio"] - pub fn d2i_PKCS8_PRIV_KEY_INFO_bio( - bp: *mut BIO, - p8inf: *mut *mut PKCS8_PRIV_KEY_INFO, - ) -> *mut PKCS8_PRIV_KEY_INFO; + #[link_name = "\u{1}aws_lc_0_21_0_NETSCAPE_SPKI_set_pubkey"] + pub fn NETSCAPE_SPKI_set_pubkey( + spki: *mut NETSCAPE_SPKI, + pkey: *mut EVP_PKEY, + ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_d2i_PUBKEY_bio"] - pub fn d2i_PUBKEY_bio(bp: *mut BIO, a: *mut *mut EVP_PKEY) -> *mut EVP_PKEY; + #[link_name = "\u{1}aws_lc_0_21_0_NETSCAPE_SPKI_sign"] + pub fn NETSCAPE_SPKI_sign( + spki: *mut NETSCAPE_SPKI, + pkey: *mut EVP_PKEY, + md: *const EVP_MD, + ) -> ::std::os::raw::c_int; } -extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_d2i_DHparams_bio"] - pub fn d2i_DHparams_bio(bp: *mut BIO, dh: *mut *mut DH) -> *mut DH; +#[repr(C)] +#[derive(Debug, Copy, Clone, PartialEq, Eq)] +pub struct Netscape_spkac_st { + pub pubkey: *mut X509_PUBKEY, + pub challenge: *mut ASN1_IA5STRING, } -extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_d2i_PrivateKey_bio"] - pub fn d2i_PrivateKey_bio(bp: *mut BIO, a: *mut *mut EVP_PKEY) -> *mut EVP_PKEY; +#[test] +fn bindgen_test_layout_Netscape_spkac_st() { + const UNINIT: ::std::mem::MaybeUninit = ::std::mem::MaybeUninit::uninit(); + let ptr = UNINIT.as_ptr(); + assert_eq!( + ::std::mem::size_of::(), + 16usize, + concat!("Size of: ", stringify!(Netscape_spkac_st)) + ); + assert_eq!( + ::std::mem::align_of::(), + 8usize, + concat!("Alignment of ", stringify!(Netscape_spkac_st)) + ); + assert_eq!( + unsafe { ::std::ptr::addr_of!((*ptr).pubkey) as usize - ptr as usize }, + 0usize, + concat!( + "Offset of field: ", + stringify!(Netscape_spkac_st), + "::", + stringify!(pubkey) + ) + ); + assert_eq!( + unsafe { ::std::ptr::addr_of!((*ptr).challenge) as usize - ptr as usize }, + 8usize, + concat!( + "Offset of field: ", + stringify!(Netscape_spkac_st), + "::", + stringify!(challenge) + ) + ); } -extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_i2d_X509_bio"] - pub fn i2d_X509_bio(bp: *mut BIO, x509: *mut X509) -> ::std::os::raw::c_int; +impl Default for Netscape_spkac_st { + fn default() -> Self { + let mut s = ::std::mem::MaybeUninit::::uninit(); + unsafe { + ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); + s.assume_init() + } + } } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_i2d_X509_CRL_bio"] - pub fn i2d_X509_CRL_bio(bp: *mut BIO, crl: *mut X509_CRL) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_0_21_0_NETSCAPE_SPKAC_it"] + pub static NETSCAPE_SPKAC_it: ASN1_ITEM; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_i2d_X509_REQ_bio"] - pub fn i2d_X509_REQ_bio(bp: *mut BIO, req: *mut X509_REQ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_0_21_0_NETSCAPE_SPKAC_new"] + pub fn NETSCAPE_SPKAC_new() -> *mut NETSCAPE_SPKAC; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_i2d_RSAPrivateKey_bio"] - pub fn i2d_RSAPrivateKey_bio(bp: *mut BIO, rsa: *mut RSA) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_0_21_0_NETSCAPE_SPKAC_free"] + pub fn NETSCAPE_SPKAC_free(spkac: *mut NETSCAPE_SPKAC); } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_i2d_RSAPublicKey_bio"] - pub fn i2d_RSAPublicKey_bio(bp: *mut BIO, rsa: *mut RSA) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_0_21_0_d2i_NETSCAPE_SPKAC"] + pub fn d2i_NETSCAPE_SPKAC( + out: *mut *mut NETSCAPE_SPKAC, + inp: *mut *const u8, + len: ::std::os::raw::c_long, + ) -> *mut NETSCAPE_SPKAC; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_i2d_RSA_PUBKEY_bio"] - pub fn i2d_RSA_PUBKEY_bio(bp: *mut BIO, rsa: *mut RSA) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_0_21_0_i2d_NETSCAPE_SPKAC"] + pub fn i2d_NETSCAPE_SPKAC( + spkac: *const NETSCAPE_SPKAC, + outp: *mut *mut u8, + ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_i2d_DSA_PUBKEY_bio"] - pub fn i2d_DSA_PUBKEY_bio(bp: *mut BIO, dsa: *mut DSA) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_0_21_0_NETSCAPE_SPKI_print"] + pub fn NETSCAPE_SPKI_print(out: *mut BIO, spki: *mut NETSCAPE_SPKI) -> ::std::os::raw::c_int; } -extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_i2d_DSAPrivateKey_bio"] - pub fn i2d_DSAPrivateKey_bio(bp: *mut BIO, dsa: *mut DSA) -> ::std::os::raw::c_int; +#[repr(C)] +#[derive(Debug, Copy, Clone, PartialEq, Eq)] +pub struct rsa_pss_params_st { + pub hashAlgorithm: *mut X509_ALGOR, + pub maskGenAlgorithm: *mut X509_ALGOR, + pub saltLength: *mut ASN1_INTEGER, + pub trailerField: *mut ASN1_INTEGER, + pub maskHash: *mut X509_ALGOR, } -extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_i2d_EC_PUBKEY_bio"] - pub fn i2d_EC_PUBKEY_bio(bp: *mut BIO, eckey: *mut EC_KEY) -> ::std::os::raw::c_int; -} -extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_i2d_ECPrivateKey_bio"] - pub fn i2d_ECPrivateKey_bio(bp: *mut BIO, eckey: *mut EC_KEY) -> ::std::os::raw::c_int; +#[test] +fn bindgen_test_layout_rsa_pss_params_st() { + const UNINIT: ::std::mem::MaybeUninit = ::std::mem::MaybeUninit::uninit(); + let ptr = UNINIT.as_ptr(); + assert_eq!( + ::std::mem::size_of::(), + 40usize, + concat!("Size of: ", stringify!(rsa_pss_params_st)) + ); + assert_eq!( + ::std::mem::align_of::(), + 8usize, + concat!("Alignment of ", stringify!(rsa_pss_params_st)) + ); + assert_eq!( + unsafe { ::std::ptr::addr_of!((*ptr).hashAlgorithm) as usize - ptr as usize }, + 0usize, + concat!( + "Offset of field: ", + stringify!(rsa_pss_params_st), + "::", + stringify!(hashAlgorithm) + ) + ); + assert_eq!( + unsafe { ::std::ptr::addr_of!((*ptr).maskGenAlgorithm) as usize - ptr as usize }, + 8usize, + concat!( + "Offset of field: ", + stringify!(rsa_pss_params_st), + "::", + stringify!(maskGenAlgorithm) + ) + ); + assert_eq!( + unsafe { ::std::ptr::addr_of!((*ptr).saltLength) as usize - ptr as usize }, + 16usize, + concat!( + "Offset of field: ", + stringify!(rsa_pss_params_st), + "::", + stringify!(saltLength) + ) + ); + assert_eq!( + unsafe { ::std::ptr::addr_of!((*ptr).trailerField) as usize - ptr as usize }, + 24usize, + concat!( + "Offset of field: ", + stringify!(rsa_pss_params_st), + "::", + stringify!(trailerField) + ) + ); + assert_eq!( + unsafe { ::std::ptr::addr_of!((*ptr).maskHash) as usize - ptr as usize }, + 32usize, + concat!( + "Offset of field: ", + stringify!(rsa_pss_params_st), + "::", + stringify!(maskHash) + ) + ); } -extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_i2d_PKCS8_bio"] - pub fn i2d_PKCS8_bio(bp: *mut BIO, p8: *mut X509_SIG) -> ::std::os::raw::c_int; +impl Default for rsa_pss_params_st { + fn default() -> Self { + let mut s = ::std::mem::MaybeUninit::::uninit(); + unsafe { + ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); + s.assume_init() + } + } } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_i2d_PKCS8_PRIV_KEY_INFO_bio"] - pub fn i2d_PKCS8_PRIV_KEY_INFO_bio( - bp: *mut BIO, - p8inf: *mut PKCS8_PRIV_KEY_INFO, - ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_0_21_0_RSA_PSS_PARAMS_it"] + pub static RSA_PSS_PARAMS_it: ASN1_ITEM; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_i2d_PrivateKey_bio"] - pub fn i2d_PrivateKey_bio(bp: *mut BIO, pkey: *mut EVP_PKEY) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_0_21_0_RSA_PSS_PARAMS_new"] + pub fn RSA_PSS_PARAMS_new() -> *mut RSA_PSS_PARAMS; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_i2d_PUBKEY_bio"] - pub fn i2d_PUBKEY_bio(bp: *mut BIO, pkey: *mut EVP_PKEY) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_0_21_0_RSA_PSS_PARAMS_free"] + pub fn RSA_PSS_PARAMS_free(params: *mut RSA_PSS_PARAMS); } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_i2d_DHparams_bio"] - pub fn i2d_DHparams_bio(bp: *mut BIO, dh: *const DH) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_0_21_0_d2i_RSA_PSS_PARAMS"] + pub fn d2i_RSA_PSS_PARAMS( + out: *mut *mut RSA_PSS_PARAMS, + inp: *mut *const u8, + len: ::std::os::raw::c_long, + ) -> *mut RSA_PSS_PARAMS; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_i2d_PKCS8PrivateKeyInfo_bio"] - pub fn i2d_PKCS8PrivateKeyInfo_bio(bp: *mut BIO, key: *mut EVP_PKEY) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_0_21_0_i2d_RSA_PSS_PARAMS"] + pub fn i2d_RSA_PSS_PARAMS( + in_: *const RSA_PSS_PARAMS, + outp: *mut *mut u8, + ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_d2i_X509_fp"] - pub fn d2i_X509_fp(fp: *mut FILE, x509: *mut *mut X509) -> *mut X509; + #[link_name = "\u{1}aws_lc_0_21_0_PKCS8_PRIV_KEY_INFO_it"] + pub static PKCS8_PRIV_KEY_INFO_it: ASN1_ITEM; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_d2i_X509_CRL_fp"] - pub fn d2i_X509_CRL_fp(fp: *mut FILE, crl: *mut *mut X509_CRL) -> *mut X509_CRL; + #[link_name = "\u{1}aws_lc_0_21_0_PKCS8_PRIV_KEY_INFO_new"] + pub fn PKCS8_PRIV_KEY_INFO_new() -> *mut PKCS8_PRIV_KEY_INFO; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_d2i_X509_REQ_fp"] - pub fn d2i_X509_REQ_fp(fp: *mut FILE, req: *mut *mut X509_REQ) -> *mut X509_REQ; + #[link_name = "\u{1}aws_lc_0_21_0_PKCS8_PRIV_KEY_INFO_free"] + pub fn PKCS8_PRIV_KEY_INFO_free(key: *mut PKCS8_PRIV_KEY_INFO); } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_d2i_RSAPrivateKey_fp"] - pub fn d2i_RSAPrivateKey_fp(fp: *mut FILE, rsa: *mut *mut RSA) -> *mut RSA; + #[link_name = "\u{1}aws_lc_0_21_0_d2i_PKCS8_PRIV_KEY_INFO"] + pub fn d2i_PKCS8_PRIV_KEY_INFO( + out: *mut *mut PKCS8_PRIV_KEY_INFO, + inp: *mut *const u8, + len: ::std::os::raw::c_long, + ) -> *mut PKCS8_PRIV_KEY_INFO; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_d2i_RSAPublicKey_fp"] - pub fn d2i_RSAPublicKey_fp(fp: *mut FILE, rsa: *mut *mut RSA) -> *mut RSA; + #[link_name = "\u{1}aws_lc_0_21_0_i2d_PKCS8_PRIV_KEY_INFO"] + pub fn i2d_PKCS8_PRIV_KEY_INFO( + key: *const PKCS8_PRIV_KEY_INFO, + outp: *mut *mut u8, + ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_d2i_RSA_PUBKEY_fp"] - pub fn d2i_RSA_PUBKEY_fp(fp: *mut FILE, rsa: *mut *mut RSA) -> *mut RSA; + #[link_name = "\u{1}aws_lc_0_21_0_EVP_PKCS82PKEY"] + pub fn EVP_PKCS82PKEY(p8: *const PKCS8_PRIV_KEY_INFO) -> *mut EVP_PKEY; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_d2i_DSA_PUBKEY_fp"] - pub fn d2i_DSA_PUBKEY_fp(fp: *mut FILE, dsa: *mut *mut DSA) -> *mut DSA; + #[link_name = "\u{1}aws_lc_0_21_0_EVP_PKEY2PKCS8"] + pub fn EVP_PKEY2PKCS8(pkey: *const EVP_PKEY) -> *mut PKCS8_PRIV_KEY_INFO; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_d2i_DSAPrivateKey_fp"] - pub fn d2i_DSAPrivateKey_fp(fp: *mut FILE, dsa: *mut *mut DSA) -> *mut DSA; + #[link_name = "\u{1}aws_lc_0_21_0_X509_SIG_it"] + pub static X509_SIG_it: ASN1_ITEM; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_d2i_EC_PUBKEY_fp"] - pub fn d2i_EC_PUBKEY_fp(fp: *mut FILE, eckey: *mut *mut EC_KEY) -> *mut EC_KEY; + #[link_name = "\u{1}aws_lc_0_21_0_X509_SIG_new"] + pub fn X509_SIG_new() -> *mut X509_SIG; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_d2i_ECPrivateKey_fp"] - pub fn d2i_ECPrivateKey_fp(fp: *mut FILE, eckey: *mut *mut EC_KEY) -> *mut EC_KEY; + #[link_name = "\u{1}aws_lc_0_21_0_X509_SIG_free"] + pub fn X509_SIG_free(key: *mut X509_SIG); } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_d2i_PKCS8_fp"] - pub fn d2i_PKCS8_fp(fp: *mut FILE, p8: *mut *mut X509_SIG) -> *mut X509_SIG; + #[link_name = "\u{1}aws_lc_0_21_0_d2i_X509_SIG"] + pub fn d2i_X509_SIG( + out: *mut *mut X509_SIG, + inp: *mut *const u8, + len: ::std::os::raw::c_long, + ) -> *mut X509_SIG; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_d2i_PKCS8_PRIV_KEY_INFO_fp"] - pub fn d2i_PKCS8_PRIV_KEY_INFO_fp( - fp: *mut FILE, - p8inf: *mut *mut PKCS8_PRIV_KEY_INFO, - ) -> *mut PKCS8_PRIV_KEY_INFO; + #[link_name = "\u{1}aws_lc_0_21_0_i2d_X509_SIG"] + pub fn i2d_X509_SIG(sig: *const X509_SIG, outp: *mut *mut u8) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_d2i_PrivateKey_fp"] - pub fn d2i_PrivateKey_fp(fp: *mut FILE, a: *mut *mut EVP_PKEY) -> *mut EVP_PKEY; + #[link_name = "\u{1}aws_lc_0_21_0_X509_SIG_get0"] + pub fn X509_SIG_get0( + sig: *const X509_SIG, + out_alg: *mut *const X509_ALGOR, + out_digest: *mut *const ASN1_OCTET_STRING, + ); } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_d2i_PUBKEY_fp"] - pub fn d2i_PUBKEY_fp(fp: *mut FILE, a: *mut *mut EVP_PKEY) -> *mut EVP_PKEY; + #[link_name = "\u{1}aws_lc_0_21_0_X509_SIG_getm"] + pub fn X509_SIG_getm( + sig: *mut X509_SIG, + out_alg: *mut *mut X509_ALGOR, + out_digest: *mut *mut ASN1_OCTET_STRING, + ); } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_i2d_X509_fp"] - pub fn i2d_X509_fp(fp: *mut FILE, x509: *mut X509) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_0_21_0_X509_print_ex"] + pub fn X509_print_ex( + bp: *mut BIO, + x: *mut X509, + nmflag: ::std::os::raw::c_ulong, + cflag: ::std::os::raw::c_ulong, + ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_i2d_X509_CRL_fp"] - pub fn i2d_X509_CRL_fp(fp: *mut FILE, crl: *mut X509_CRL) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_0_21_0_X509_print_ex_fp"] + pub fn X509_print_ex_fp( + fp: *mut FILE, + x: *mut X509, + nmflag: ::std::os::raw::c_ulong, + cflag: ::std::os::raw::c_ulong, + ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_i2d_X509_REQ_fp"] - pub fn i2d_X509_REQ_fp(fp: *mut FILE, req: *mut X509_REQ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_0_21_0_X509_print"] + pub fn X509_print(bp: *mut BIO, x: *mut X509) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_i2d_RSAPrivateKey_fp"] - pub fn i2d_RSAPrivateKey_fp(fp: *mut FILE, rsa: *mut RSA) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_0_21_0_X509_print_fp"] + pub fn X509_print_fp(fp: *mut FILE, x: *mut X509) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_i2d_RSAPublicKey_fp"] - pub fn i2d_RSAPublicKey_fp(fp: *mut FILE, rsa: *mut RSA) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_0_21_0_X509_CRL_print"] + pub fn X509_CRL_print(bp: *mut BIO, x: *mut X509_CRL) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_i2d_RSA_PUBKEY_fp"] - pub fn i2d_RSA_PUBKEY_fp(fp: *mut FILE, rsa: *mut RSA) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_0_21_0_X509_CRL_print_fp"] + pub fn X509_CRL_print_fp(fp: *mut FILE, x: *mut X509_CRL) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_i2d_DSA_PUBKEY_fp"] - pub fn i2d_DSA_PUBKEY_fp(fp: *mut FILE, dsa: *mut DSA) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_0_21_0_X509_REQ_print_ex"] + pub fn X509_REQ_print_ex( + bp: *mut BIO, + x: *mut X509_REQ, + nmflag: ::std::os::raw::c_ulong, + cflag: ::std::os::raw::c_ulong, + ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_i2d_DSAPrivateKey_fp"] - pub fn i2d_DSAPrivateKey_fp(fp: *mut FILE, dsa: *mut DSA) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_0_21_0_X509_REQ_print"] + pub fn X509_REQ_print(bp: *mut BIO, req: *mut X509_REQ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_i2d_EC_PUBKEY_fp"] - pub fn i2d_EC_PUBKEY_fp(fp: *mut FILE, eckey: *mut EC_KEY) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_0_21_0_X509_REQ_print_fp"] + pub fn X509_REQ_print_fp(fp: *mut FILE, req: *mut X509_REQ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_i2d_ECPrivateKey_fp"] - pub fn i2d_ECPrivateKey_fp(fp: *mut FILE, eckey: *mut EC_KEY) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_0_21_0_X509_NAME_print_ex"] + pub fn X509_NAME_print_ex( + out: *mut BIO, + nm: *const X509_NAME, + indent: ::std::os::raw::c_int, + flags: ::std::os::raw::c_ulong, + ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_i2d_PKCS8_fp"] - pub fn i2d_PKCS8_fp(fp: *mut FILE, p8: *mut X509_SIG) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_0_21_0_X509_NAME_print"] + pub fn X509_NAME_print( + bp: *mut BIO, + name: *const X509_NAME, + obase: ::std::os::raw::c_int, + ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_i2d_PKCS8_PRIV_KEY_INFO_fp"] - pub fn i2d_PKCS8_PRIV_KEY_INFO_fp( + #[link_name = "\u{1}aws_lc_0_21_0_X509_NAME_oneline"] + pub fn X509_NAME_oneline( + name: *const X509_NAME, + buf: *mut ::std::os::raw::c_char, + size: ::std::os::raw::c_int, + ) -> *mut ::std::os::raw::c_char; +} +extern "C" { + #[link_name = "\u{1}aws_lc_0_21_0_X509_NAME_print_ex_fp"] + pub fn X509_NAME_print_ex_fp( fp: *mut FILE, - p8inf: *mut PKCS8_PRIV_KEY_INFO, + nm: *const X509_NAME, + indent: ::std::os::raw::c_int, + flags: ::std::os::raw::c_ulong, ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_i2d_PKCS8PrivateKeyInfo_fp"] - pub fn i2d_PKCS8PrivateKeyInfo_fp(fp: *mut FILE, key: *mut EVP_PKEY) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_0_21_0_X509_signature_dump"] + pub fn X509_signature_dump( + bio: *mut BIO, + sig: *const ASN1_STRING, + indent: ::std::os::raw::c_int, + ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_i2d_PrivateKey_fp"] - pub fn i2d_PrivateKey_fp(fp: *mut FILE, pkey: *mut EVP_PKEY) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_0_21_0_X509_signature_print"] + pub fn X509_signature_print( + bio: *mut BIO, + alg: *const X509_ALGOR, + sig: *const ASN1_STRING, + ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_i2d_PUBKEY_fp"] - pub fn i2d_PUBKEY_fp(fp: *mut FILE, pkey: *mut EVP_PKEY) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_0_21_0_X509V3_EXT_print"] + pub fn X509V3_EXT_print( + out: *mut BIO, + ext: *const X509_EXTENSION, + flag: ::std::os::raw::c_ulong, + indent: ::std::os::raw::c_int, + ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_X509_find_by_issuer_and_serial"] - pub fn X509_find_by_issuer_and_serial( - sk: *const stack_st_X509, - name: *mut X509_NAME, - serial: *const ASN1_INTEGER, - ) -> *mut X509; + #[link_name = "\u{1}aws_lc_0_21_0_X509V3_EXT_print_fp"] + pub fn X509V3_EXT_print_fp( + out: *mut FILE, + ext: *const X509_EXTENSION, + flag: ::std::os::raw::c_int, + indent: ::std::os::raw::c_int, + ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_X509_find_by_subject"] - pub fn X509_find_by_subject(sk: *const stack_st_X509, name: *mut X509_NAME) -> *mut X509; + #[link_name = "\u{1}aws_lc_0_21_0_X509V3_extensions_print"] + pub fn X509V3_extensions_print( + out: *mut BIO, + title: *const ::std::os::raw::c_char, + exts: *const stack_st_X509_EXTENSION, + flag: ::std::os::raw::c_ulong, + indent: ::std::os::raw::c_int, + ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_X509_cmp_time"] - pub fn X509_cmp_time(s: *const ASN1_TIME, t: *const time_t) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_0_21_0_GENERAL_NAME_print"] + pub fn GENERAL_NAME_print(out: *mut BIO, gen: *const GENERAL_NAME) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_X509_cmp_time_posix"] - pub fn X509_cmp_time_posix(s: *const ASN1_TIME, t: i64) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_0_21_0_X509_pubkey_digest"] + pub fn X509_pubkey_digest( + x509: *const X509, + md: *const EVP_MD, + out: *mut u8, + out_len: *mut ::std::os::raw::c_uint, + ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_X509_cmp_current_time"] - pub fn X509_cmp_current_time(s: *const ASN1_TIME) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_0_21_0_X509_digest"] + pub fn X509_digest( + x509: *const X509, + md: *const EVP_MD, + out: *mut u8, + out_len: *mut ::std::os::raw::c_uint, + ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_X509_time_adj"] - pub fn X509_time_adj( - s: *mut ASN1_TIME, - offset_sec: ::std::os::raw::c_long, - t: *const time_t, - ) -> *mut ASN1_TIME; + #[link_name = "\u{1}aws_lc_0_21_0_X509_CRL_digest"] + pub fn X509_CRL_digest( + crl: *const X509_CRL, + md: *const EVP_MD, + out: *mut u8, + out_len: *mut ::std::os::raw::c_uint, + ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_X509_time_adj_ex"] - pub fn X509_time_adj_ex( - s: *mut ASN1_TIME, - offset_day: ::std::os::raw::c_int, - offset_sec: ::std::os::raw::c_long, - t: *const time_t, - ) -> *mut ASN1_TIME; + #[link_name = "\u{1}aws_lc_0_21_0_X509_REQ_digest"] + pub fn X509_REQ_digest( + req: *const X509_REQ, + md: *const EVP_MD, + out: *mut u8, + out_len: *mut ::std::os::raw::c_uint, + ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_X509_gmtime_adj"] - pub fn X509_gmtime_adj(s: *mut ASN1_TIME, offset_sec: ::std::os::raw::c_long) - -> *mut ASN1_TIME; + #[link_name = "\u{1}aws_lc_0_21_0_X509_NAME_digest"] + pub fn X509_NAME_digest( + name: *const X509_NAME, + md: *const EVP_MD, + out: *mut u8, + out_len: *mut ::std::os::raw::c_uint, + ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_X509_issuer_name_cmp"] - pub fn X509_issuer_name_cmp(a: *const X509, b: *const X509) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_0_21_0_d2i_X509_bio"] + pub fn d2i_X509_bio(bp: *mut BIO, x509: *mut *mut X509) -> *mut X509; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_X509_subject_name_cmp"] - pub fn X509_subject_name_cmp(a: *const X509, b: *const X509) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_0_21_0_d2i_X509_CRL_bio"] + pub fn d2i_X509_CRL_bio(bp: *mut BIO, crl: *mut *mut X509_CRL) -> *mut X509_CRL; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_X509_CRL_cmp"] - pub fn X509_CRL_cmp(a: *const X509_CRL, b: *const X509_CRL) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_0_21_0_d2i_X509_REQ_bio"] + pub fn d2i_X509_REQ_bio(bp: *mut BIO, req: *mut *mut X509_REQ) -> *mut X509_REQ; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_X509_issuer_name_hash"] - pub fn X509_issuer_name_hash(x509: *mut X509) -> u32; + #[link_name = "\u{1}aws_lc_0_21_0_d2i_RSAPrivateKey_bio"] + pub fn d2i_RSAPrivateKey_bio(bp: *mut BIO, rsa: *mut *mut RSA) -> *mut RSA; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_X509_subject_name_hash"] - pub fn X509_subject_name_hash(x509: *mut X509) -> u32; + #[link_name = "\u{1}aws_lc_0_21_0_d2i_RSAPublicKey_bio"] + pub fn d2i_RSAPublicKey_bio(bp: *mut BIO, rsa: *mut *mut RSA) -> *mut RSA; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_X509_issuer_name_hash_old"] - pub fn X509_issuer_name_hash_old(x509: *mut X509) -> u32; + #[link_name = "\u{1}aws_lc_0_21_0_d2i_RSA_PUBKEY_bio"] + pub fn d2i_RSA_PUBKEY_bio(bp: *mut BIO, rsa: *mut *mut RSA) -> *mut RSA; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_X509_subject_name_hash_old"] - pub fn X509_subject_name_hash_old(x509: *mut X509) -> u32; + #[link_name = "\u{1}aws_lc_0_21_0_d2i_DSA_PUBKEY_bio"] + pub fn d2i_DSA_PUBKEY_bio(bp: *mut BIO, dsa: *mut *mut DSA) -> *mut DSA; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_X509_get_ex_new_index"] - pub fn X509_get_ex_new_index( - argl: ::std::os::raw::c_long, - argp: *mut ::std::os::raw::c_void, - unused: *mut CRYPTO_EX_unused, - dup_unused: CRYPTO_EX_dup, - free_func: CRYPTO_EX_free, - ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_0_21_0_d2i_DSAPrivateKey_bio"] + pub fn d2i_DSAPrivateKey_bio(bp: *mut BIO, dsa: *mut *mut DSA) -> *mut DSA; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_X509_set_ex_data"] - pub fn X509_set_ex_data( - r: *mut X509, - idx: ::std::os::raw::c_int, - arg: *mut ::std::os::raw::c_void, - ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_0_21_0_d2i_EC_PUBKEY_bio"] + pub fn d2i_EC_PUBKEY_bio(bp: *mut BIO, eckey: *mut *mut EC_KEY) -> *mut EC_KEY; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_X509_get_ex_data"] - pub fn X509_get_ex_data( - r: *mut X509, - idx: ::std::os::raw::c_int, - ) -> *mut ::std::os::raw::c_void; + #[link_name = "\u{1}aws_lc_0_21_0_d2i_ECPrivateKey_bio"] + pub fn d2i_ECPrivateKey_bio(bp: *mut BIO, eckey: *mut *mut EC_KEY) -> *mut EC_KEY; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_X509_STORE_CTX_get_ex_new_index"] - pub fn X509_STORE_CTX_get_ex_new_index( - argl: ::std::os::raw::c_long, - argp: *mut ::std::os::raw::c_void, - unused: *mut CRYPTO_EX_unused, - dup_unused: CRYPTO_EX_dup, - free_func: CRYPTO_EX_free, - ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_0_21_0_d2i_PKCS8_bio"] + pub fn d2i_PKCS8_bio(bp: *mut BIO, p8: *mut *mut X509_SIG) -> *mut X509_SIG; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_X509_STORE_CTX_set_ex_data"] - pub fn X509_STORE_CTX_set_ex_data( - ctx: *mut X509_STORE_CTX, - idx: ::std::os::raw::c_int, - data: *mut ::std::os::raw::c_void, - ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_0_21_0_d2i_PKCS8_PRIV_KEY_INFO_bio"] + pub fn d2i_PKCS8_PRIV_KEY_INFO_bio( + bp: *mut BIO, + p8inf: *mut *mut PKCS8_PRIV_KEY_INFO, + ) -> *mut PKCS8_PRIV_KEY_INFO; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_X509_STORE_CTX_get_ex_data"] - pub fn X509_STORE_CTX_get_ex_data( - ctx: *mut X509_STORE_CTX, - idx: ::std::os::raw::c_int, - ) -> *mut ::std::os::raw::c_void; + #[link_name = "\u{1}aws_lc_0_21_0_d2i_PUBKEY_bio"] + pub fn d2i_PUBKEY_bio(bp: *mut BIO, a: *mut *mut EVP_PKEY) -> *mut EVP_PKEY; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_X509_STORE_get_ex_new_index"] - pub fn X509_STORE_get_ex_new_index( - argl: ::std::os::raw::c_long, - argp: *mut ::std::os::raw::c_void, - unused: *mut CRYPTO_EX_unused, - dup_unused: CRYPTO_EX_dup, - free_func: CRYPTO_EX_free, - ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_0_21_0_d2i_DHparams_bio"] + pub fn d2i_DHparams_bio(bp: *mut BIO, dh: *mut *mut DH) -> *mut DH; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_X509_STORE_set_ex_data"] - pub fn X509_STORE_set_ex_data( - ctx: *mut X509_STORE, - idx: ::std::os::raw::c_int, - data: *mut ::std::os::raw::c_void, - ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_0_21_0_d2i_PrivateKey_bio"] + pub fn d2i_PrivateKey_bio(bp: *mut BIO, a: *mut *mut EVP_PKEY) -> *mut EVP_PKEY; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_X509_STORE_get_ex_data"] - pub fn X509_STORE_get_ex_data( - ctx: *mut X509_STORE, - idx: ::std::os::raw::c_int, - ) -> *mut ::std::os::raw::c_void; + #[link_name = "\u{1}aws_lc_0_21_0_i2d_X509_bio"] + pub fn i2d_X509_bio(bp: *mut BIO, x509: *mut X509) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_ASN1_digest"] - pub fn ASN1_digest( - i2d: i2d_of_void, - type_: *const EVP_MD, - data: *mut ::std::os::raw::c_char, - md: *mut ::std::os::raw::c_uchar, - len: *mut ::std::os::raw::c_uint, - ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_0_21_0_i2d_X509_CRL_bio"] + pub fn i2d_X509_CRL_bio(bp: *mut BIO, crl: *mut X509_CRL) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_ASN1_item_digest"] - pub fn ASN1_item_digest( - it: *const ASN1_ITEM, - type_: *const EVP_MD, - data: *mut ::std::os::raw::c_void, - md: *mut ::std::os::raw::c_uchar, - len: *mut ::std::os::raw::c_uint, - ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_0_21_0_i2d_X509_REQ_bio"] + pub fn i2d_X509_REQ_bio(bp: *mut BIO, req: *mut X509_REQ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_ASN1_item_verify"] - pub fn ASN1_item_verify( - it: *const ASN1_ITEM, - algor1: *const X509_ALGOR, - signature: *const ASN1_BIT_STRING, - data: *mut ::std::os::raw::c_void, - pkey: *mut EVP_PKEY, - ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_0_21_0_i2d_RSAPrivateKey_bio"] + pub fn i2d_RSAPrivateKey_bio(bp: *mut BIO, rsa: *mut RSA) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_ASN1_item_sign"] - pub fn ASN1_item_sign( - it: *const ASN1_ITEM, - algor1: *mut X509_ALGOR, - algor2: *mut X509_ALGOR, - signature: *mut ASN1_BIT_STRING, - data: *mut ::std::os::raw::c_void, - pkey: *mut EVP_PKEY, - type_: *const EVP_MD, - ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_0_21_0_i2d_RSAPublicKey_bio"] + pub fn i2d_RSAPublicKey_bio(bp: *mut BIO, rsa: *mut RSA) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_ASN1_item_sign_ctx"] - pub fn ASN1_item_sign_ctx( - it: *const ASN1_ITEM, - algor1: *mut X509_ALGOR, - algor2: *mut X509_ALGOR, - signature: *mut ASN1_BIT_STRING, - asn: *mut ::std::os::raw::c_void, - ctx: *mut EVP_MD_CTX, - ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_0_21_0_i2d_RSA_PUBKEY_bio"] + pub fn i2d_RSA_PUBKEY_bio(bp: *mut BIO, rsa: *mut RSA) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_X509_supported_extension"] - pub fn X509_supported_extension(ex: *const X509_EXTENSION) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_0_21_0_i2d_DSA_PUBKEY_bio"] + pub fn i2d_DSA_PUBKEY_bio(bp: *mut BIO, dsa: *mut DSA) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_X509_check_ca"] - pub fn X509_check_ca(x509: *mut X509) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_0_21_0_i2d_DSAPrivateKey_bio"] + pub fn i2d_DSAPrivateKey_bio(bp: *mut BIO, dsa: *mut DSA) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_X509_check_issued"] - pub fn X509_check_issued(issuer: *mut X509, subject: *mut X509) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_0_21_0_i2d_EC_PUBKEY_bio"] + pub fn i2d_EC_PUBKEY_bio(bp: *mut BIO, eckey: *mut EC_KEY) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_NAME_CONSTRAINTS_check"] - pub fn NAME_CONSTRAINTS_check( - x509: *mut X509, - nc: *mut NAME_CONSTRAINTS, - ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_0_21_0_i2d_ECPrivateKey_bio"] + pub fn i2d_ECPrivateKey_bio(bp: *mut BIO, eckey: *mut EC_KEY) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_X509_check_host"] - pub fn X509_check_host( - x509: *const X509, - chk: *const ::std::os::raw::c_char, - chklen: usize, - flags: ::std::os::raw::c_uint, - out_peername: *mut *mut ::std::os::raw::c_char, - ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_0_21_0_i2d_PKCS8_bio"] + pub fn i2d_PKCS8_bio(bp: *mut BIO, p8: *mut X509_SIG) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_X509_check_email"] - pub fn X509_check_email( - x509: *const X509, - chk: *const ::std::os::raw::c_char, - chklen: usize, - flags: ::std::os::raw::c_uint, + #[link_name = "\u{1}aws_lc_0_21_0_i2d_PKCS8_PRIV_KEY_INFO_bio"] + pub fn i2d_PKCS8_PRIV_KEY_INFO_bio( + bp: *mut BIO, + p8inf: *mut PKCS8_PRIV_KEY_INFO, ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_X509_check_ip"] - pub fn X509_check_ip( - x509: *const X509, - chk: *const u8, - chklen: usize, - flags: ::std::os::raw::c_uint, - ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_0_21_0_i2d_PrivateKey_bio"] + pub fn i2d_PrivateKey_bio(bp: *mut BIO, pkey: *mut EVP_PKEY) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_X509_check_ip_asc"] - pub fn X509_check_ip_asc( - x509: *const X509, - ipasc: *const ::std::os::raw::c_char, - flags: ::std::os::raw::c_uint, - ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_0_21_0_i2d_PUBKEY_bio"] + pub fn i2d_PUBKEY_bio(bp: *mut BIO, pkey: *mut EVP_PKEY) -> ::std::os::raw::c_int; } -#[repr(C)] -#[derive(Debug, Copy, Clone, PartialEq, Eq)] -pub struct private_key_st { - pub dec_pkey: *mut EVP_PKEY, +extern "C" { + #[link_name = "\u{1}aws_lc_0_21_0_i2d_DHparams_bio"] + pub fn i2d_DHparams_bio(bp: *mut BIO, dh: *const DH) -> ::std::os::raw::c_int; } -#[test] -fn bindgen_test_layout_private_key_st() { - const UNINIT: ::std::mem::MaybeUninit = ::std::mem::MaybeUninit::uninit(); - let ptr = UNINIT.as_ptr(); - assert_eq!( - ::std::mem::size_of::(), - 8usize, - concat!("Size of: ", stringify!(private_key_st)) - ); - assert_eq!( - ::std::mem::align_of::(), - 8usize, - concat!("Alignment of ", stringify!(private_key_st)) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).dec_pkey) as usize - ptr as usize }, - 0usize, - concat!( - "Offset of field: ", - stringify!(private_key_st), - "::", - stringify!(dec_pkey) - ) - ); +extern "C" { + #[link_name = "\u{1}aws_lc_0_21_0_i2d_PKCS8PrivateKeyInfo_bio"] + pub fn i2d_PKCS8PrivateKeyInfo_bio(bp: *mut BIO, key: *mut EVP_PKEY) -> ::std::os::raw::c_int; } -impl Default for private_key_st { - fn default() -> Self { - let mut s = ::std::mem::MaybeUninit::::uninit(); - unsafe { - ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() - } - } +extern "C" { + #[link_name = "\u{1}aws_lc_0_21_0_d2i_X509_fp"] + pub fn d2i_X509_fp(fp: *mut FILE, x509: *mut *mut X509) -> *mut X509; } -#[repr(C)] -#[derive(Debug, Copy, Clone, PartialEq, Eq)] -pub struct X509_info_st { - pub x509: *mut X509, - pub crl: *mut X509_CRL, - pub x_pkey: *mut X509_PKEY, - pub enc_cipher: EVP_CIPHER_INFO, - pub enc_len: ::std::os::raw::c_int, - pub enc_data: *mut ::std::os::raw::c_char, +extern "C" { + #[link_name = "\u{1}aws_lc_0_21_0_d2i_X509_CRL_fp"] + pub fn d2i_X509_CRL_fp(fp: *mut FILE, crl: *mut *mut X509_CRL) -> *mut X509_CRL; } -#[test] -fn bindgen_test_layout_X509_info_st() { - const UNINIT: ::std::mem::MaybeUninit = ::std::mem::MaybeUninit::uninit(); - let ptr = UNINIT.as_ptr(); - assert_eq!( - ::std::mem::size_of::(), - 64usize, - concat!("Size of: ", stringify!(X509_info_st)) - ); - assert_eq!( - ::std::mem::align_of::(), - 8usize, - concat!("Alignment of ", stringify!(X509_info_st)) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).x509) as usize - ptr as usize }, - 0usize, - concat!( - "Offset of field: ", - stringify!(X509_info_st), - "::", - stringify!(x509) - ) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).crl) as usize - ptr as usize }, - 8usize, - concat!( - "Offset of field: ", - stringify!(X509_info_st), - "::", - stringify!(crl) - ) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).x_pkey) as usize - ptr as usize }, - 16usize, - concat!( - "Offset of field: ", - stringify!(X509_info_st), - "::", - stringify!(x_pkey) - ) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).enc_cipher) as usize - ptr as usize }, - 24usize, - concat!( - "Offset of field: ", - stringify!(X509_info_st), - "::", - stringify!(enc_cipher) - ) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).enc_len) as usize - ptr as usize }, - 48usize, - concat!( - "Offset of field: ", - stringify!(X509_info_st), - "::", - stringify!(enc_len) - ) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).enc_data) as usize - ptr as usize }, - 56usize, - concat!( - "Offset of field: ", - stringify!(X509_info_st), - "::", - stringify!(enc_data) - ) - ); +extern "C" { + #[link_name = "\u{1}aws_lc_0_21_0_d2i_X509_REQ_fp"] + pub fn d2i_X509_REQ_fp(fp: *mut FILE, req: *mut *mut X509_REQ) -> *mut X509_REQ; } -impl Default for X509_info_st { - fn default() -> Self { - let mut s = ::std::mem::MaybeUninit::::uninit(); - unsafe { - ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() - } - } +extern "C" { + #[link_name = "\u{1}aws_lc_0_21_0_d2i_RSAPrivateKey_fp"] + pub fn d2i_RSAPrivateKey_fp(fp: *mut FILE, rsa: *mut *mut RSA) -> *mut RSA; } -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct stack_st_X509_INFO { - _unused: [u8; 0], +extern "C" { + #[link_name = "\u{1}aws_lc_0_21_0_d2i_RSAPublicKey_fp"] + pub fn d2i_RSAPublicKey_fp(fp: *mut FILE, rsa: *mut *mut RSA) -> *mut RSA; } -pub type sk_X509_INFO_free_func = ::std::option::Option; -pub type sk_X509_INFO_copy_func = - ::std::option::Option *mut X509_INFO>; -pub type sk_X509_INFO_cmp_func = ::std::option::Option< - unsafe extern "C" fn( - arg1: *const *const X509_INFO, - arg2: *const *const X509_INFO, - ) -> ::std::os::raw::c_int, ->; -pub type sk_X509_INFO_delete_if_func = ::std::option::Option< - unsafe extern "C" fn( - arg1: *mut X509_INFO, - arg2: *mut ::std::os::raw::c_void, - ) -> ::std::os::raw::c_int, ->; extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_X509_INFO_free"] - pub fn X509_INFO_free(info: *mut X509_INFO); -} -#[repr(C)] -#[derive(Debug, Copy, Clone, PartialEq, Eq)] -pub struct v3_ext_ctx { - pub flags: ::std::os::raw::c_int, - pub issuer_cert: *const X509, - pub subject_cert: *const X509, - pub subject_req: *const X509_REQ, - pub crl: *const X509_CRL, - pub db: *const CONF, -} -#[test] -fn bindgen_test_layout_v3_ext_ctx() { - const UNINIT: ::std::mem::MaybeUninit = ::std::mem::MaybeUninit::uninit(); - let ptr = UNINIT.as_ptr(); - assert_eq!( - ::std::mem::size_of::(), - 48usize, - concat!("Size of: ", stringify!(v3_ext_ctx)) - ); - assert_eq!( - ::std::mem::align_of::(), - 8usize, - concat!("Alignment of ", stringify!(v3_ext_ctx)) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).flags) as usize - ptr as usize }, - 0usize, - concat!( - "Offset of field: ", - stringify!(v3_ext_ctx), - "::", - stringify!(flags) - ) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).issuer_cert) as usize - ptr as usize }, - 8usize, - concat!( - "Offset of field: ", - stringify!(v3_ext_ctx), - "::", - stringify!(issuer_cert) - ) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).subject_cert) as usize - ptr as usize }, - 16usize, - concat!( - "Offset of field: ", - stringify!(v3_ext_ctx), - "::", - stringify!(subject_cert) - ) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).subject_req) as usize - ptr as usize }, - 24usize, - concat!( - "Offset of field: ", - stringify!(v3_ext_ctx), - "::", - stringify!(subject_req) - ) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).crl) as usize - ptr as usize }, - 32usize, - concat!( - "Offset of field: ", - stringify!(v3_ext_ctx), - "::", - stringify!(crl) - ) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).db) as usize - ptr as usize }, - 40usize, - concat!( - "Offset of field: ", - stringify!(v3_ext_ctx), - "::", - stringify!(db) - ) - ); -} -impl Default for v3_ext_ctx { - fn default() -> Self { - let mut s = ::std::mem::MaybeUninit::::uninit(); - unsafe { - ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() - } - } + #[link_name = "\u{1}aws_lc_0_21_0_d2i_RSA_PUBKEY_fp"] + pub fn d2i_RSA_PUBKEY_fp(fp: *mut FILE, rsa: *mut *mut RSA) -> *mut RSA; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_X509V3_set_ctx"] - pub fn X509V3_set_ctx( - ctx: *mut X509V3_CTX, - issuer: *const X509, - subject: *const X509, - req: *const X509_REQ, - crl: *const X509_CRL, - flags: ::std::os::raw::c_int, - ); + #[link_name = "\u{1}aws_lc_0_21_0_d2i_DSA_PUBKEY_fp"] + pub fn d2i_DSA_PUBKEY_fp(fp: *mut FILE, dsa: *mut *mut DSA) -> *mut DSA; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_X509V3_set_nconf"] - pub fn X509V3_set_nconf(ctx: *mut X509V3_CTX, conf: *const CONF); + #[link_name = "\u{1}aws_lc_0_21_0_d2i_DSAPrivateKey_fp"] + pub fn d2i_DSAPrivateKey_fp(fp: *mut FILE, dsa: *mut *mut DSA) -> *mut DSA; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_X509V3_EXT_nconf"] - pub fn X509V3_EXT_nconf( - conf: *const CONF, - ctx: *const X509V3_CTX, - name: *const ::std::os::raw::c_char, - value: *const ::std::os::raw::c_char, - ) -> *mut X509_EXTENSION; + #[link_name = "\u{1}aws_lc_0_21_0_d2i_EC_PUBKEY_fp"] + pub fn d2i_EC_PUBKEY_fp(fp: *mut FILE, eckey: *mut *mut EC_KEY) -> *mut EC_KEY; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_X509V3_EXT_nconf_nid"] - pub fn X509V3_EXT_nconf_nid( - conf: *const CONF, - ctx: *const X509V3_CTX, - ext_nid: ::std::os::raw::c_int, - value: *const ::std::os::raw::c_char, - ) -> *mut X509_EXTENSION; + #[link_name = "\u{1}aws_lc_0_21_0_d2i_ECPrivateKey_fp"] + pub fn d2i_ECPrivateKey_fp(fp: *mut FILE, eckey: *mut *mut EC_KEY) -> *mut EC_KEY; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_X509V3_EXT_conf_nid"] - pub fn X509V3_EXT_conf_nid( - conf: *mut lhash_st_CONF_VALUE, - ctx: *const X509V3_CTX, - ext_nid: ::std::os::raw::c_int, - value: *const ::std::os::raw::c_char, - ) -> *mut X509_EXTENSION; + #[link_name = "\u{1}aws_lc_0_21_0_d2i_PKCS8_fp"] + pub fn d2i_PKCS8_fp(fp: *mut FILE, p8: *mut *mut X509_SIG) -> *mut X509_SIG; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_X509V3_EXT_add_nconf_sk"] - pub fn X509V3_EXT_add_nconf_sk( - conf: *const CONF, - ctx: *const X509V3_CTX, - section: *const ::std::os::raw::c_char, - sk: *mut *mut stack_st_X509_EXTENSION, - ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_0_21_0_d2i_PKCS8_PRIV_KEY_INFO_fp"] + pub fn d2i_PKCS8_PRIV_KEY_INFO_fp( + fp: *mut FILE, + p8inf: *mut *mut PKCS8_PRIV_KEY_INFO, + ) -> *mut PKCS8_PRIV_KEY_INFO; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_X509V3_EXT_add_nconf"] - pub fn X509V3_EXT_add_nconf( - conf: *const CONF, - ctx: *const X509V3_CTX, - section: *const ::std::os::raw::c_char, - cert: *mut X509, - ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_0_21_0_d2i_PrivateKey_fp"] + pub fn d2i_PrivateKey_fp(fp: *mut FILE, a: *mut *mut EVP_PKEY) -> *mut EVP_PKEY; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_X509V3_EXT_REQ_add_nconf"] - pub fn X509V3_EXT_REQ_add_nconf( - conf: *const CONF, - ctx: *const X509V3_CTX, - section: *const ::std::os::raw::c_char, - req: *mut X509_REQ, - ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_0_21_0_d2i_PUBKEY_fp"] + pub fn d2i_PUBKEY_fp(fp: *mut FILE, a: *mut *mut EVP_PKEY) -> *mut EVP_PKEY; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_X509V3_EXT_CRL_add_nconf"] - pub fn X509V3_EXT_CRL_add_nconf( - conf: *const CONF, - ctx: *const X509V3_CTX, - section: *const ::std::os::raw::c_char, - crl: *mut X509_CRL, - ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_0_21_0_i2d_X509_fp"] + pub fn i2d_X509_fp(fp: *mut FILE, x509: *mut X509) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_X509V3_EXT_conf"] - pub fn X509V3_EXT_conf( - conf: *mut lhash_st_CONF_VALUE, - ctx: *mut X509V3_CTX, - name: *const ::std::os::raw::c_char, - value: *const ::std::os::raw::c_char, - ) -> *mut X509_EXTENSION; + #[link_name = "\u{1}aws_lc_0_21_0_i2d_X509_CRL_fp"] + pub fn i2d_X509_CRL_fp(fp: *mut FILE, crl: *mut X509_CRL) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_i2s_ASN1_OCTET_STRING"] - pub fn i2s_ASN1_OCTET_STRING( - method: *const X509V3_EXT_METHOD, - oct: *const ASN1_OCTET_STRING, - ) -> *mut ::std::os::raw::c_char; + #[link_name = "\u{1}aws_lc_0_21_0_i2d_X509_REQ_fp"] + pub fn i2d_X509_REQ_fp(fp: *mut FILE, req: *mut X509_REQ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_s2i_ASN1_OCTET_STRING"] - pub fn s2i_ASN1_OCTET_STRING( - method: *const X509V3_EXT_METHOD, - ctx: *const X509V3_CTX, - str_: *const ::std::os::raw::c_char, - ) -> *mut ASN1_OCTET_STRING; + #[link_name = "\u{1}aws_lc_0_21_0_i2d_RSAPrivateKey_fp"] + pub fn i2d_RSAPrivateKey_fp(fp: *mut FILE, rsa: *mut RSA) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_i2s_ASN1_INTEGER"] - pub fn i2s_ASN1_INTEGER( - method: *const X509V3_EXT_METHOD, - aint: *const ASN1_INTEGER, - ) -> *mut ::std::os::raw::c_char; + #[link_name = "\u{1}aws_lc_0_21_0_i2d_RSAPublicKey_fp"] + pub fn i2d_RSAPublicKey_fp(fp: *mut FILE, rsa: *mut RSA) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_s2i_ASN1_INTEGER"] - pub fn s2i_ASN1_INTEGER( - method: *const X509V3_EXT_METHOD, - value: *const ::std::os::raw::c_char, - ) -> *mut ASN1_INTEGER; + #[link_name = "\u{1}aws_lc_0_21_0_i2d_RSA_PUBKEY_fp"] + pub fn i2d_RSA_PUBKEY_fp(fp: *mut FILE, rsa: *mut RSA) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_i2s_ASN1_ENUMERATED"] - pub fn i2s_ASN1_ENUMERATED( - method: *const X509V3_EXT_METHOD, - aint: *const ASN1_ENUMERATED, - ) -> *mut ::std::os::raw::c_char; + #[link_name = "\u{1}aws_lc_0_21_0_i2d_DSA_PUBKEY_fp"] + pub fn i2d_DSA_PUBKEY_fp(fp: *mut FILE, dsa: *mut DSA) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_X509V3_conf_free"] - pub fn X509V3_conf_free(val: *mut CONF_VALUE); + #[link_name = "\u{1}aws_lc_0_21_0_i2d_DSAPrivateKey_fp"] + pub fn i2d_DSAPrivateKey_fp(fp: *mut FILE, dsa: *mut DSA) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_i2v_GENERAL_NAME"] - pub fn i2v_GENERAL_NAME( - method: *const X509V3_EXT_METHOD, - gen: *const GENERAL_NAME, - ret: *mut stack_st_CONF_VALUE, - ) -> *mut stack_st_CONF_VALUE; + #[link_name = "\u{1}aws_lc_0_21_0_i2d_EC_PUBKEY_fp"] + pub fn i2d_EC_PUBKEY_fp(fp: *mut FILE, eckey: *mut EC_KEY) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_i2v_GENERAL_NAMES"] - pub fn i2v_GENERAL_NAMES( - method: *const X509V3_EXT_METHOD, - gen: *const GENERAL_NAMES, - extlist: *mut stack_st_CONF_VALUE, - ) -> *mut stack_st_CONF_VALUE; + #[link_name = "\u{1}aws_lc_0_21_0_i2d_ECPrivateKey_fp"] + pub fn i2d_ECPrivateKey_fp(fp: *mut FILE, eckey: *mut EC_KEY) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_a2i_IPADDRESS"] - pub fn a2i_IPADDRESS(ipasc: *const ::std::os::raw::c_char) -> *mut ASN1_OCTET_STRING; + #[link_name = "\u{1}aws_lc_0_21_0_i2d_PKCS8_fp"] + pub fn i2d_PKCS8_fp(fp: *mut FILE, p8: *mut X509_SIG) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_a2i_IPADDRESS_NC"] - pub fn a2i_IPADDRESS_NC(ipasc: *const ::std::os::raw::c_char) -> *mut ASN1_OCTET_STRING; + #[link_name = "\u{1}aws_lc_0_21_0_i2d_PKCS8_PRIV_KEY_INFO_fp"] + pub fn i2d_PKCS8_PRIV_KEY_INFO_fp( + fp: *mut FILE, + p8inf: *mut PKCS8_PRIV_KEY_INFO, + ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_X509_get_notBefore"] - pub fn X509_get_notBefore(x509: *const X509) -> *mut ASN1_TIME; + #[link_name = "\u{1}aws_lc_0_21_0_i2d_PKCS8PrivateKeyInfo_fp"] + pub fn i2d_PKCS8PrivateKeyInfo_fp(fp: *mut FILE, key: *mut EVP_PKEY) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_X509_get_notAfter"] - pub fn X509_get_notAfter(x509: *const X509) -> *mut ASN1_TIME; + #[link_name = "\u{1}aws_lc_0_21_0_i2d_PrivateKey_fp"] + pub fn i2d_PrivateKey_fp(fp: *mut FILE, pkey: *mut EVP_PKEY) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_X509_set_notBefore"] - pub fn X509_set_notBefore(x509: *mut X509, tm: *const ASN1_TIME) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_0_21_0_i2d_PUBKEY_fp"] + pub fn i2d_PUBKEY_fp(fp: *mut FILE, pkey: *mut EVP_PKEY) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_X509_set_notAfter"] - pub fn X509_set_notAfter(x509: *mut X509, tm: *const ASN1_TIME) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_0_21_0_X509_find_by_issuer_and_serial"] + pub fn X509_find_by_issuer_and_serial( + sk: *const stack_st_X509, + name: *mut X509_NAME, + serial: *const ASN1_INTEGER, + ) -> *mut X509; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_X509_CRL_get_lastUpdate"] - pub fn X509_CRL_get_lastUpdate(crl: *mut X509_CRL) -> *mut ASN1_TIME; + #[link_name = "\u{1}aws_lc_0_21_0_X509_find_by_subject"] + pub fn X509_find_by_subject(sk: *const stack_st_X509, name: *mut X509_NAME) -> *mut X509; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_X509_CRL_get_nextUpdate"] - pub fn X509_CRL_get_nextUpdate(crl: *mut X509_CRL) -> *mut ASN1_TIME; + #[link_name = "\u{1}aws_lc_0_21_0_X509_cmp_time"] + pub fn X509_cmp_time(s: *const ASN1_TIME, t: *const time_t) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_X509_get_serialNumber"] - pub fn X509_get_serialNumber(x509: *mut X509) -> *mut ASN1_INTEGER; + #[link_name = "\u{1}aws_lc_0_21_0_X509_cmp_time_posix"] + pub fn X509_cmp_time_posix(s: *const ASN1_TIME, t: i64) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_X509_NAME_get_text_by_OBJ"] - pub fn X509_NAME_get_text_by_OBJ( - name: *const X509_NAME, - obj: *const ASN1_OBJECT, - buf: *mut ::std::os::raw::c_char, - len: ::std::os::raw::c_int, - ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_0_21_0_X509_cmp_current_time"] + pub fn X509_cmp_current_time(s: *const ASN1_TIME) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_X509_NAME_get_text_by_NID"] - pub fn X509_NAME_get_text_by_NID( - name: *const X509_NAME, - nid: ::std::os::raw::c_int, - buf: *mut ::std::os::raw::c_char, - len: ::std::os::raw::c_int, - ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_0_21_0_X509_time_adj"] + pub fn X509_time_adj( + s: *mut ASN1_TIME, + offset_sec: ::std::os::raw::c_long, + t: *const time_t, + ) -> *mut ASN1_TIME; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_X509_STORE_CTX_get0_parent_ctx"] - pub fn X509_STORE_CTX_get0_parent_ctx(ctx: *mut X509_STORE_CTX) -> *mut X509_STORE_CTX; + #[link_name = "\u{1}aws_lc_0_21_0_X509_time_adj_ex"] + pub fn X509_time_adj_ex( + s: *mut ASN1_TIME, + offset_day: ::std::os::raw::c_int, + offset_sec: ::std::os::raw::c_long, + t: *const time_t, + ) -> *mut ASN1_TIME; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_X509_LOOKUP_free"] - pub fn X509_LOOKUP_free(ctx: *mut X509_LOOKUP); + #[link_name = "\u{1}aws_lc_0_21_0_X509_gmtime_adj"] + pub fn X509_gmtime_adj(s: *mut ASN1_TIME, offset_sec: ::std::os::raw::c_long) + -> *mut ASN1_TIME; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_X509_STORE_CTX_cleanup"] - pub fn X509_STORE_CTX_cleanup(ctx: *mut X509_STORE_CTX); + #[link_name = "\u{1}aws_lc_0_21_0_X509_issuer_name_cmp"] + pub fn X509_issuer_name_cmp(a: *const X509, b: *const X509) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_X509V3_add_standard_extensions"] - pub fn X509V3_add_standard_extensions() -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_0_21_0_X509_subject_name_cmp"] + pub fn X509_subject_name_cmp(a: *const X509, b: *const X509) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_X509V3_parse_list"] - pub fn X509V3_parse_list(line: *const ::std::os::raw::c_char) -> *mut stack_st_CONF_VALUE; + #[link_name = "\u{1}aws_lc_0_21_0_X509_CRL_cmp"] + pub fn X509_CRL_cmp(a: *const X509_CRL, b: *const X509_CRL) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_X509_STORE_CTX_get_chain"] - pub fn X509_STORE_CTX_get_chain(ctx: *mut X509_STORE_CTX) -> *mut stack_st_X509; + #[link_name = "\u{1}aws_lc_0_21_0_X509_issuer_name_hash"] + pub fn X509_issuer_name_hash(x509: *mut X509) -> u32; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_X509_STORE_CTX_trusted_stack"] - pub fn X509_STORE_CTX_trusted_stack(ctx: *mut X509_STORE_CTX, sk: *mut stack_st_X509); + #[link_name = "\u{1}aws_lc_0_21_0_X509_subject_name_hash"] + pub fn X509_subject_name_hash(x509: *mut X509) -> u32; } -pub type X509_STORE_CTX_verify_cb = ::std::option::Option< - unsafe extern "C" fn( - arg1: ::std::os::raw::c_int, - arg2: *mut X509_STORE_CTX, - ) -> ::std::os::raw::c_int, ->; extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_X509_STORE_CTX_set_verify_cb"] - pub fn X509_STORE_CTX_set_verify_cb( - ctx: *mut X509_STORE_CTX, - verify_cb: ::std::option::Option< - unsafe extern "C" fn( - ok: ::std::os::raw::c_int, - ctx: *mut X509_STORE_CTX, - ) -> ::std::os::raw::c_int, - >, - ); + #[link_name = "\u{1}aws_lc_0_21_0_X509_issuer_name_hash_old"] + pub fn X509_issuer_name_hash_old(x509: *mut X509) -> u32; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_X509_STORE_set_verify_cb"] - pub fn X509_STORE_set_verify_cb(store: *mut X509_STORE, verify_cb: X509_STORE_CTX_verify_cb); + #[link_name = "\u{1}aws_lc_0_21_0_X509_subject_name_hash_old"] + pub fn X509_subject_name_hash_old(x509: *mut X509) -> u32; } -pub type X509_STORE_CTX_get_crl_fn = ::std::option::Option< - unsafe extern "C" fn( - ctx: *mut X509_STORE_CTX, - crl: *mut *mut X509_CRL, - x: *mut X509, - ) -> ::std::os::raw::c_int, ->; -pub type X509_STORE_CTX_check_crl_fn = ::std::option::Option< - unsafe extern "C" fn(ctx: *mut X509_STORE_CTX, crl: *mut X509_CRL) -> ::std::os::raw::c_int, ->; extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_X509_STORE_set_get_crl"] - pub fn X509_STORE_set_get_crl(store: *mut X509_STORE, get_crl: X509_STORE_CTX_get_crl_fn); + #[link_name = "\u{1}aws_lc_0_21_0_X509_get_ex_new_index"] + pub fn X509_get_ex_new_index( + argl: ::std::os::raw::c_long, + argp: *mut ::std::os::raw::c_void, + unused: *mut CRYPTO_EX_unused, + dup_unused: CRYPTO_EX_dup, + free_func: CRYPTO_EX_free, + ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_X509_STORE_set_check_crl"] - pub fn X509_STORE_set_check_crl(store: *mut X509_STORE, check_crl: X509_STORE_CTX_check_crl_fn); + #[link_name = "\u{1}aws_lc_0_21_0_X509_set_ex_data"] + pub fn X509_set_ex_data( + r: *mut X509, + idx: ::std::os::raw::c_int, + arg: *mut ::std::os::raw::c_void, + ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_X509_STORE_CTX_set_chain"] - pub fn X509_STORE_CTX_set_chain(ctx: *mut X509_STORE_CTX, sk: *mut stack_st_X509); + #[link_name = "\u{1}aws_lc_0_21_0_X509_get_ex_data"] + pub fn X509_get_ex_data( + r: *mut X509, + idx: ::std::os::raw::c_int, + ) -> *mut ::std::os::raw::c_void; } -#[repr(C)] -#[derive(Debug, Copy, Clone, PartialEq, Eq)] -pub struct X509_algor_st { - pub algorithm: *mut ASN1_OBJECT, - pub parameter: *mut ASN1_TYPE, +extern "C" { + #[link_name = "\u{1}aws_lc_0_21_0_X509_STORE_CTX_get_ex_new_index"] + pub fn X509_STORE_CTX_get_ex_new_index( + argl: ::std::os::raw::c_long, + argp: *mut ::std::os::raw::c_void, + unused: *mut CRYPTO_EX_unused, + dup_unused: CRYPTO_EX_dup, + free_func: CRYPTO_EX_free, + ) -> ::std::os::raw::c_int; } -#[test] -fn bindgen_test_layout_X509_algor_st() { - const UNINIT: ::std::mem::MaybeUninit = ::std::mem::MaybeUninit::uninit(); - let ptr = UNINIT.as_ptr(); - assert_eq!( - ::std::mem::size_of::(), - 16usize, - concat!("Size of: ", stringify!(X509_algor_st)) - ); - assert_eq!( - ::std::mem::align_of::(), - 8usize, - concat!("Alignment of ", stringify!(X509_algor_st)) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).algorithm) as usize - ptr as usize }, - 0usize, - concat!( - "Offset of field: ", - stringify!(X509_algor_st), - "::", - stringify!(algorithm) - ) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).parameter) as usize - ptr as usize }, - 8usize, - concat!( - "Offset of field: ", - stringify!(X509_algor_st), - "::", - stringify!(parameter) - ) - ); +extern "C" { + #[link_name = "\u{1}aws_lc_0_21_0_X509_STORE_CTX_set_ex_data"] + pub fn X509_STORE_CTX_set_ex_data( + ctx: *mut X509_STORE_CTX, + idx: ::std::os::raw::c_int, + data: *mut ::std::os::raw::c_void, + ) -> ::std::os::raw::c_int; } -impl Default for X509_algor_st { - fn default() -> Self { - let mut s = ::std::mem::MaybeUninit::::uninit(); - unsafe { - ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() - } - } +extern "C" { + #[link_name = "\u{1}aws_lc_0_21_0_X509_STORE_CTX_get_ex_data"] + pub fn X509_STORE_CTX_get_ex_data( + ctx: *mut X509_STORE_CTX, + idx: ::std::os::raw::c_int, + ) -> *mut ::std::os::raw::c_void; } -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct stack_st_DIST_POINT { - _unused: [u8; 0], +extern "C" { + #[link_name = "\u{1}aws_lc_0_21_0_X509_STORE_get_ex_new_index"] + pub fn X509_STORE_get_ex_new_index( + argl: ::std::os::raw::c_long, + argp: *mut ::std::os::raw::c_void, + unused: *mut CRYPTO_EX_unused, + dup_unused: CRYPTO_EX_dup, + free_func: CRYPTO_EX_free, + ) -> ::std::os::raw::c_int; } -#[repr(C)] -#[derive(Debug, Copy, Clone, PartialEq, Eq)] -pub struct x509_trust_st { - pub trust: ::std::os::raw::c_int, - pub flags: ::std::os::raw::c_int, - pub check_trust: ::std::option::Option< - unsafe extern "C" fn( - arg1: *const X509_TRUST, - arg2: *mut X509, - arg3: ::std::os::raw::c_int, - ) -> ::std::os::raw::c_int, - >, - pub name: *mut ::std::os::raw::c_char, - pub arg1: ::std::os::raw::c_int, - pub arg2: *mut ::std::os::raw::c_void, +extern "C" { + #[link_name = "\u{1}aws_lc_0_21_0_X509_STORE_set_ex_data"] + pub fn X509_STORE_set_ex_data( + ctx: *mut X509_STORE, + idx: ::std::os::raw::c_int, + data: *mut ::std::os::raw::c_void, + ) -> ::std::os::raw::c_int; } -#[test] -fn bindgen_test_layout_x509_trust_st() { - const UNINIT: ::std::mem::MaybeUninit = ::std::mem::MaybeUninit::uninit(); - let ptr = UNINIT.as_ptr(); - assert_eq!( - ::std::mem::size_of::(), - 40usize, - concat!("Size of: ", stringify!(x509_trust_st)) - ); - assert_eq!( - ::std::mem::align_of::(), - 8usize, - concat!("Alignment of ", stringify!(x509_trust_st)) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).trust) as usize - ptr as usize }, +extern "C" { + #[link_name = "\u{1}aws_lc_0_21_0_X509_STORE_get_ex_data"] + pub fn X509_STORE_get_ex_data( + ctx: *mut X509_STORE, + idx: ::std::os::raw::c_int, + ) -> *mut ::std::os::raw::c_void; +} +extern "C" { + #[link_name = "\u{1}aws_lc_0_21_0_ASN1_digest"] + pub fn ASN1_digest( + i2d: i2d_of_void, + type_: *const EVP_MD, + data: *mut ::std::os::raw::c_char, + md: *mut ::std::os::raw::c_uchar, + len: *mut ::std::os::raw::c_uint, + ) -> ::std::os::raw::c_int; +} +extern "C" { + #[link_name = "\u{1}aws_lc_0_21_0_ASN1_item_digest"] + pub fn ASN1_item_digest( + it: *const ASN1_ITEM, + type_: *const EVP_MD, + data: *mut ::std::os::raw::c_void, + md: *mut ::std::os::raw::c_uchar, + len: *mut ::std::os::raw::c_uint, + ) -> ::std::os::raw::c_int; +} +extern "C" { + #[link_name = "\u{1}aws_lc_0_21_0_ASN1_item_verify"] + pub fn ASN1_item_verify( + it: *const ASN1_ITEM, + algor1: *const X509_ALGOR, + signature: *const ASN1_BIT_STRING, + data: *mut ::std::os::raw::c_void, + pkey: *mut EVP_PKEY, + ) -> ::std::os::raw::c_int; +} +extern "C" { + #[link_name = "\u{1}aws_lc_0_21_0_ASN1_item_sign"] + pub fn ASN1_item_sign( + it: *const ASN1_ITEM, + algor1: *mut X509_ALGOR, + algor2: *mut X509_ALGOR, + signature: *mut ASN1_BIT_STRING, + data: *mut ::std::os::raw::c_void, + pkey: *mut EVP_PKEY, + type_: *const EVP_MD, + ) -> ::std::os::raw::c_int; +} +extern "C" { + #[link_name = "\u{1}aws_lc_0_21_0_ASN1_item_sign_ctx"] + pub fn ASN1_item_sign_ctx( + it: *const ASN1_ITEM, + algor1: *mut X509_ALGOR, + algor2: *mut X509_ALGOR, + signature: *mut ASN1_BIT_STRING, + asn: *mut ::std::os::raw::c_void, + ctx: *mut EVP_MD_CTX, + ) -> ::std::os::raw::c_int; +} +extern "C" { + #[link_name = "\u{1}aws_lc_0_21_0_X509_supported_extension"] + pub fn X509_supported_extension(ex: *const X509_EXTENSION) -> ::std::os::raw::c_int; +} +extern "C" { + #[link_name = "\u{1}aws_lc_0_21_0_X509_check_ca"] + pub fn X509_check_ca(x509: *mut X509) -> ::std::os::raw::c_int; +} +extern "C" { + #[link_name = "\u{1}aws_lc_0_21_0_X509_check_issued"] + pub fn X509_check_issued(issuer: *mut X509, subject: *mut X509) -> ::std::os::raw::c_int; +} +extern "C" { + #[link_name = "\u{1}aws_lc_0_21_0_NAME_CONSTRAINTS_check"] + pub fn NAME_CONSTRAINTS_check( + x509: *mut X509, + nc: *mut NAME_CONSTRAINTS, + ) -> ::std::os::raw::c_int; +} +extern "C" { + #[link_name = "\u{1}aws_lc_0_21_0_X509_check_host"] + pub fn X509_check_host( + x509: *const X509, + chk: *const ::std::os::raw::c_char, + chklen: usize, + flags: ::std::os::raw::c_uint, + out_peername: *mut *mut ::std::os::raw::c_char, + ) -> ::std::os::raw::c_int; +} +extern "C" { + #[link_name = "\u{1}aws_lc_0_21_0_X509_check_email"] + pub fn X509_check_email( + x509: *const X509, + chk: *const ::std::os::raw::c_char, + chklen: usize, + flags: ::std::os::raw::c_uint, + ) -> ::std::os::raw::c_int; +} +extern "C" { + #[link_name = "\u{1}aws_lc_0_21_0_X509_check_ip"] + pub fn X509_check_ip( + x509: *const X509, + chk: *const u8, + chklen: usize, + flags: ::std::os::raw::c_uint, + ) -> ::std::os::raw::c_int; +} +extern "C" { + #[link_name = "\u{1}aws_lc_0_21_0_X509_check_ip_asc"] + pub fn X509_check_ip_asc( + x509: *const X509, + ipasc: *const ::std::os::raw::c_char, + flags: ::std::os::raw::c_uint, + ) -> ::std::os::raw::c_int; +} +extern "C" { + #[link_name = "\u{1}aws_lc_0_21_0_X509_STORE_CTX_get1_issuer"] + pub fn X509_STORE_CTX_get1_issuer( + out_issuer: *mut *mut X509, + ctx: *mut X509_STORE_CTX, + x509: *mut X509, + ) -> ::std::os::raw::c_int; +} +extern "C" { + #[link_name = "\u{1}aws_lc_0_21_0_X509_check_purpose"] + pub fn X509_check_purpose( + x509: *mut X509, + purpose: ::std::os::raw::c_int, + ca: ::std::os::raw::c_int, + ) -> ::std::os::raw::c_int; +} +extern "C" { + #[link_name = "\u{1}aws_lc_0_21_0_X509_check_trust"] + pub fn X509_check_trust( + x509: *mut X509, + id: ::std::os::raw::c_int, + flags: ::std::os::raw::c_int, + ) -> ::std::os::raw::c_int; +} +#[repr(C)] +#[derive(Debug, Copy, Clone, PartialEq, Eq)] +pub struct private_key_st { + pub dec_pkey: *mut EVP_PKEY, +} +#[test] +fn bindgen_test_layout_private_key_st() { + const UNINIT: ::std::mem::MaybeUninit = ::std::mem::MaybeUninit::uninit(); + let ptr = UNINIT.as_ptr(); + assert_eq!( + ::std::mem::size_of::(), + 8usize, + concat!("Size of: ", stringify!(private_key_st)) + ); + assert_eq!( + ::std::mem::align_of::(), + 8usize, + concat!("Alignment of ", stringify!(private_key_st)) + ); + assert_eq!( + unsafe { ::std::ptr::addr_of!((*ptr).dec_pkey) as usize - ptr as usize }, 0usize, concat!( "Offset of field: ", - stringify!(x509_trust_st), + stringify!(private_key_st), "::", - stringify!(trust) + stringify!(dec_pkey) ) ); +} +impl Default for private_key_st { + fn default() -> Self { + let mut s = ::std::mem::MaybeUninit::::uninit(); + unsafe { + ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); + s.assume_init() + } + } +} +#[repr(C)] +#[derive(Debug, Copy, Clone, PartialEq, Eq)] +pub struct X509_info_st { + pub x509: *mut X509, + pub crl: *mut X509_CRL, + pub x_pkey: *mut X509_PKEY, + pub enc_cipher: EVP_CIPHER_INFO, + pub enc_len: ::std::os::raw::c_int, + pub enc_data: *mut ::std::os::raw::c_char, +} +#[test] +fn bindgen_test_layout_X509_info_st() { + const UNINIT: ::std::mem::MaybeUninit = ::std::mem::MaybeUninit::uninit(); + let ptr = UNINIT.as_ptr(); assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).flags) as usize - ptr as usize }, - 4usize, + ::std::mem::size_of::(), + 64usize, + concat!("Size of: ", stringify!(X509_info_st)) + ); + assert_eq!( + ::std::mem::align_of::(), + 8usize, + concat!("Alignment of ", stringify!(X509_info_st)) + ); + assert_eq!( + unsafe { ::std::ptr::addr_of!((*ptr).x509) as usize - ptr as usize }, + 0usize, concat!( "Offset of field: ", - stringify!(x509_trust_st), + stringify!(X509_info_st), "::", - stringify!(flags) + stringify!(x509) ) ); assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).check_trust) as usize - ptr as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).crl) as usize - ptr as usize }, 8usize, concat!( "Offset of field: ", - stringify!(x509_trust_st), + stringify!(X509_info_st), "::", - stringify!(check_trust) + stringify!(crl) ) ); assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).name) as usize - ptr as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).x_pkey) as usize - ptr as usize }, 16usize, concat!( "Offset of field: ", - stringify!(x509_trust_st), + stringify!(X509_info_st), "::", - stringify!(name) + stringify!(x_pkey) ) ); assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).arg1) as usize - ptr as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).enc_cipher) as usize - ptr as usize }, 24usize, concat!( "Offset of field: ", - stringify!(x509_trust_st), + stringify!(X509_info_st), "::", - stringify!(arg1) + stringify!(enc_cipher) ) ); assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).arg2) as usize - ptr as usize }, - 32usize, + unsafe { ::std::ptr::addr_of!((*ptr).enc_len) as usize - ptr as usize }, + 48usize, concat!( "Offset of field: ", - stringify!(x509_trust_st), + stringify!(X509_info_st), "::", - stringify!(arg2) + stringify!(enc_len) + ) + ); + assert_eq!( + unsafe { ::std::ptr::addr_of!((*ptr).enc_data) as usize - ptr as usize }, + 56usize, + concat!( + "Offset of field: ", + stringify!(X509_info_st), + "::", + stringify!(enc_data) ) ); } -impl Default for x509_trust_st { +impl Default for X509_info_st { fn default() -> Self { let mut s = ::std::mem::MaybeUninit::::uninit(); unsafe { @@ -22803,609 +22600,801 @@ impl Default for x509_trust_st { } #[repr(C)] #[derive(Debug, Copy, Clone)] -pub struct stack_st_X509_TRUST { +pub struct stack_st_X509_INFO { _unused: [u8; 0], } -pub type sk_X509_TRUST_free_func = - ::std::option::Option; -pub type sk_X509_TRUST_copy_func = - ::std::option::Option *mut X509_TRUST>; -pub type sk_X509_TRUST_cmp_func = ::std::option::Option< +pub type sk_X509_INFO_free_func = ::std::option::Option; +pub type sk_X509_INFO_copy_func = + ::std::option::Option *mut X509_INFO>; +pub type sk_X509_INFO_cmp_func = ::std::option::Option< unsafe extern "C" fn( - arg1: *const *const X509_TRUST, - arg2: *const *const X509_TRUST, + arg1: *const *const X509_INFO, + arg2: *const *const X509_INFO, ) -> ::std::os::raw::c_int, >; -pub type sk_X509_TRUST_delete_if_func = ::std::option::Option< +pub type sk_X509_INFO_delete_if_func = ::std::option::Option< unsafe extern "C" fn( - arg1: *mut X509_TRUST, + arg1: *mut X509_INFO, arg2: *mut ::std::os::raw::c_void, ) -> ::std::os::raw::c_int, >; extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_X509_verify_cert_error_string"] - pub fn X509_verify_cert_error_string( - err: ::std::os::raw::c_long, - ) -> *const ::std::os::raw::c_char; + #[link_name = "\u{1}aws_lc_0_21_0_X509_INFO_free"] + pub fn X509_INFO_free(info: *mut X509_INFO); } -extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_X509_get_default_cert_area"] - pub fn X509_get_default_cert_area() -> *const ::std::os::raw::c_char; +#[repr(C)] +#[derive(Debug, Copy, Clone, PartialEq, Eq)] +pub struct v3_ext_ctx { + pub flags: ::std::os::raw::c_int, + pub issuer_cert: *const X509, + pub subject_cert: *const X509, + pub subject_req: *const X509_REQ, + pub crl: *const X509_CRL, + pub db: *const CONF, +} +#[test] +fn bindgen_test_layout_v3_ext_ctx() { + const UNINIT: ::std::mem::MaybeUninit = ::std::mem::MaybeUninit::uninit(); + let ptr = UNINIT.as_ptr(); + assert_eq!( + ::std::mem::size_of::(), + 48usize, + concat!("Size of: ", stringify!(v3_ext_ctx)) + ); + assert_eq!( + ::std::mem::align_of::(), + 8usize, + concat!("Alignment of ", stringify!(v3_ext_ctx)) + ); + assert_eq!( + unsafe { ::std::ptr::addr_of!((*ptr).flags) as usize - ptr as usize }, + 0usize, + concat!( + "Offset of field: ", + stringify!(v3_ext_ctx), + "::", + stringify!(flags) + ) + ); + assert_eq!( + unsafe { ::std::ptr::addr_of!((*ptr).issuer_cert) as usize - ptr as usize }, + 8usize, + concat!( + "Offset of field: ", + stringify!(v3_ext_ctx), + "::", + stringify!(issuer_cert) + ) + ); + assert_eq!( + unsafe { ::std::ptr::addr_of!((*ptr).subject_cert) as usize - ptr as usize }, + 16usize, + concat!( + "Offset of field: ", + stringify!(v3_ext_ctx), + "::", + stringify!(subject_cert) + ) + ); + assert_eq!( + unsafe { ::std::ptr::addr_of!((*ptr).subject_req) as usize - ptr as usize }, + 24usize, + concat!( + "Offset of field: ", + stringify!(v3_ext_ctx), + "::", + stringify!(subject_req) + ) + ); + assert_eq!( + unsafe { ::std::ptr::addr_of!((*ptr).crl) as usize - ptr as usize }, + 32usize, + concat!( + "Offset of field: ", + stringify!(v3_ext_ctx), + "::", + stringify!(crl) + ) + ); + assert_eq!( + unsafe { ::std::ptr::addr_of!((*ptr).db) as usize - ptr as usize }, + 40usize, + concat!( + "Offset of field: ", + stringify!(v3_ext_ctx), + "::", + stringify!(db) + ) + ); +} +impl Default for v3_ext_ctx { + fn default() -> Self { + let mut s = ::std::mem::MaybeUninit::::uninit(); + unsafe { + ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); + s.assume_init() + } + } } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_X509_get_default_cert_dir"] - pub fn X509_get_default_cert_dir() -> *const ::std::os::raw::c_char; + #[link_name = "\u{1}aws_lc_0_21_0_X509V3_set_ctx"] + pub fn X509V3_set_ctx( + ctx: *mut X509V3_CTX, + issuer: *const X509, + subject: *const X509, + req: *const X509_REQ, + crl: *const X509_CRL, + flags: ::std::os::raw::c_int, + ); } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_X509_get_default_cert_file"] - pub fn X509_get_default_cert_file() -> *const ::std::os::raw::c_char; + #[link_name = "\u{1}aws_lc_0_21_0_X509V3_set_nconf"] + pub fn X509V3_set_nconf(ctx: *mut X509V3_CTX, conf: *const CONF); } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_X509_get_default_cert_dir_env"] - pub fn X509_get_default_cert_dir_env() -> *const ::std::os::raw::c_char; + #[link_name = "\u{1}aws_lc_0_21_0_X509V3_EXT_nconf"] + pub fn X509V3_EXT_nconf( + conf: *const CONF, + ctx: *const X509V3_CTX, + name: *const ::std::os::raw::c_char, + value: *const ::std::os::raw::c_char, + ) -> *mut X509_EXTENSION; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_X509_get_default_cert_file_env"] - pub fn X509_get_default_cert_file_env() -> *const ::std::os::raw::c_char; + #[link_name = "\u{1}aws_lc_0_21_0_X509V3_EXT_nconf_nid"] + pub fn X509V3_EXT_nconf_nid( + conf: *const CONF, + ctx: *const X509V3_CTX, + ext_nid: ::std::os::raw::c_int, + value: *const ::std::os::raw::c_char, + ) -> *mut X509_EXTENSION; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_X509_get_default_private_dir"] - pub fn X509_get_default_private_dir() -> *const ::std::os::raw::c_char; + #[link_name = "\u{1}aws_lc_0_21_0_X509V3_EXT_conf_nid"] + pub fn X509V3_EXT_conf_nid( + conf: *mut lhash_st_CONF_VALUE, + ctx: *const X509V3_CTX, + ext_nid: ::std::os::raw::c_int, + value: *const ::std::os::raw::c_char, + ) -> *mut X509_EXTENSION; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_X509_TRUST_set"] - pub fn X509_TRUST_set( - t: *mut ::std::os::raw::c_int, - trust: ::std::os::raw::c_int, + #[link_name = "\u{1}aws_lc_0_21_0_X509V3_EXT_add_nconf_sk"] + pub fn X509V3_EXT_add_nconf_sk( + conf: *const CONF, + ctx: *const X509V3_CTX, + section: *const ::std::os::raw::c_char, + sk: *mut *mut stack_st_X509_EXTENSION, ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_X509_cmp"] - pub fn X509_cmp(a: *const X509, b: *const X509) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_0_21_0_X509V3_EXT_add_nconf"] + pub fn X509V3_EXT_add_nconf( + conf: *const CONF, + ctx: *const X509V3_CTX, + section: *const ::std::os::raw::c_char, + cert: *mut X509, + ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_X509_NAME_hash"] - pub fn X509_NAME_hash(name: *mut X509_NAME) -> u32; + #[link_name = "\u{1}aws_lc_0_21_0_X509V3_EXT_REQ_add_nconf"] + pub fn X509V3_EXT_REQ_add_nconf( + conf: *const CONF, + ctx: *const X509V3_CTX, + section: *const ::std::os::raw::c_char, + req: *mut X509_REQ, + ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_X509_NAME_hash_old"] - pub fn X509_NAME_hash_old(name: *mut X509_NAME) -> u32; + #[link_name = "\u{1}aws_lc_0_21_0_X509V3_EXT_CRL_add_nconf"] + pub fn X509V3_EXT_CRL_add_nconf( + conf: *const CONF, + ctx: *const X509V3_CTX, + section: *const ::std::os::raw::c_char, + crl: *mut X509_CRL, + ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_X509_CRL_match"] - pub fn X509_CRL_match(a: *const X509_CRL, b: *const X509_CRL) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_0_21_0_X509V3_EXT_conf"] + pub fn X509V3_EXT_conf( + conf: *mut lhash_st_CONF_VALUE, + ctx: *mut X509V3_CTX, + name: *const ::std::os::raw::c_char, + value: *const ::std::os::raw::c_char, + ) -> *mut X509_EXTENSION; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_X509_verify_cert"] - pub fn X509_verify_cert(ctx: *mut X509_STORE_CTX) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_0_21_0_i2s_ASN1_OCTET_STRING"] + pub fn i2s_ASN1_OCTET_STRING( + method: *const X509V3_EXT_METHOD, + oct: *const ASN1_OCTET_STRING, + ) -> *mut ::std::os::raw::c_char; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_X509_check_trust"] - pub fn X509_check_trust( - x: *mut X509, - id: ::std::os::raw::c_int, - flags: ::std::os::raw::c_int, - ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_0_21_0_s2i_ASN1_OCTET_STRING"] + pub fn s2i_ASN1_OCTET_STRING( + method: *const X509V3_EXT_METHOD, + ctx: *const X509V3_CTX, + str_: *const ::std::os::raw::c_char, + ) -> *mut ASN1_OCTET_STRING; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_X509_TRUST_get_count"] - pub fn X509_TRUST_get_count() -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_0_21_0_i2s_ASN1_INTEGER"] + pub fn i2s_ASN1_INTEGER( + method: *const X509V3_EXT_METHOD, + aint: *const ASN1_INTEGER, + ) -> *mut ::std::os::raw::c_char; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_X509_TRUST_get0"] - pub fn X509_TRUST_get0(idx: ::std::os::raw::c_int) -> *const X509_TRUST; + #[link_name = "\u{1}aws_lc_0_21_0_s2i_ASN1_INTEGER"] + pub fn s2i_ASN1_INTEGER( + method: *const X509V3_EXT_METHOD, + value: *const ::std::os::raw::c_char, + ) -> *mut ASN1_INTEGER; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_X509_TRUST_get_by_id"] - pub fn X509_TRUST_get_by_id(id: ::std::os::raw::c_int) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_0_21_0_i2s_ASN1_ENUMERATED"] + pub fn i2s_ASN1_ENUMERATED( + method: *const X509V3_EXT_METHOD, + aint: *const ASN1_ENUMERATED, + ) -> *mut ::std::os::raw::c_char; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_X509_TRUST_get_flags"] - pub fn X509_TRUST_get_flags(xp: *const X509_TRUST) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_0_21_0_X509V3_conf_free"] + pub fn X509V3_conf_free(val: *mut CONF_VALUE); } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_X509_TRUST_get0_name"] - pub fn X509_TRUST_get0_name(xp: *const X509_TRUST) -> *mut ::std::os::raw::c_char; + #[link_name = "\u{1}aws_lc_0_21_0_i2v_GENERAL_NAME"] + pub fn i2v_GENERAL_NAME( + method: *const X509V3_EXT_METHOD, + gen: *const GENERAL_NAME, + ret: *mut stack_st_CONF_VALUE, + ) -> *mut stack_st_CONF_VALUE; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_X509_TRUST_get_trust"] - pub fn X509_TRUST_get_trust(xp: *const X509_TRUST) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_0_21_0_i2v_GENERAL_NAMES"] + pub fn i2v_GENERAL_NAMES( + method: *const X509V3_EXT_METHOD, + gen: *const GENERAL_NAMES, + extlist: *mut stack_st_CONF_VALUE, + ) -> *mut stack_st_CONF_VALUE; } -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct stack_st_X509_OBJECT { - _unused: [u8; 0], -} -pub type sk_X509_OBJECT_free_func = - ::std::option::Option; -pub type sk_X509_OBJECT_copy_func = - ::std::option::Option *mut X509_OBJECT>; -pub type sk_X509_OBJECT_cmp_func = ::std::option::Option< - unsafe extern "C" fn( - arg1: *const *const X509_OBJECT, - arg2: *const *const X509_OBJECT, - ) -> ::std::os::raw::c_int, ->; -pub type sk_X509_OBJECT_delete_if_func = ::std::option::Option< - unsafe extern "C" fn( - arg1: *mut X509_OBJECT, - arg2: *mut ::std::os::raw::c_void, - ) -> ::std::os::raw::c_int, ->; extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_X509_STORE_set_depth"] - pub fn X509_STORE_set_depth( - store: *mut X509_STORE, - depth: ::std::os::raw::c_int, - ) -> ::std::os::raw::c_int; -} -extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_X509_STORE_CTX_set_depth"] - pub fn X509_STORE_CTX_set_depth(ctx: *mut X509_STORE_CTX, depth: ::std::os::raw::c_int); + #[link_name = "\u{1}aws_lc_0_21_0_a2i_IPADDRESS"] + pub fn a2i_IPADDRESS(ipasc: *const ::std::os::raw::c_char) -> *mut ASN1_OCTET_STRING; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_X509_LOOKUP_load_file"] - pub fn X509_LOOKUP_load_file( - lookup: *mut X509_LOOKUP, - path: *const ::std::os::raw::c_char, - type_: ::std::os::raw::c_int, - ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_0_21_0_a2i_IPADDRESS_NC"] + pub fn a2i_IPADDRESS_NC(ipasc: *const ::std::os::raw::c_char) -> *mut ASN1_OCTET_STRING; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_X509_LOOKUP_add_dir"] - pub fn X509_LOOKUP_add_dir( - lookup: *mut X509_LOOKUP, - path: *const ::std::os::raw::c_char, - type_: ::std::os::raw::c_int, - ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_0_21_0_X509_get_notBefore"] + pub fn X509_get_notBefore(x509: *const X509) -> *mut ASN1_TIME; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_X509_OBJECT_new"] - pub fn X509_OBJECT_new() -> *mut X509_OBJECT; + #[link_name = "\u{1}aws_lc_0_21_0_X509_get_notAfter"] + pub fn X509_get_notAfter(x509: *const X509) -> *mut ASN1_TIME; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_X509_OBJECT_free"] - pub fn X509_OBJECT_free(obj: *mut X509_OBJECT); + #[link_name = "\u{1}aws_lc_0_21_0_X509_set_notBefore"] + pub fn X509_set_notBefore(x509: *mut X509, tm: *const ASN1_TIME) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_X509_OBJECT_get_type"] - pub fn X509_OBJECT_get_type(obj: *const X509_OBJECT) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_0_21_0_X509_set_notAfter"] + pub fn X509_set_notAfter(x509: *mut X509, tm: *const ASN1_TIME) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_X509_OBJECT_get0_X509"] - pub fn X509_OBJECT_get0_X509(obj: *const X509_OBJECT) -> *mut X509; + #[link_name = "\u{1}aws_lc_0_21_0_X509_CRL_get_lastUpdate"] + pub fn X509_CRL_get_lastUpdate(crl: *mut X509_CRL) -> *mut ASN1_TIME; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_X509_OBJECT_get0_X509_CRL"] - pub fn X509_OBJECT_get0_X509_CRL(a: *const X509_OBJECT) -> *mut X509_CRL; + #[link_name = "\u{1}aws_lc_0_21_0_X509_CRL_get_nextUpdate"] + pub fn X509_CRL_get_nextUpdate(crl: *mut X509_CRL) -> *mut ASN1_TIME; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_X509_OBJECT_set1_X509"] - pub fn X509_OBJECT_set1_X509(a: *mut X509_OBJECT, obj: *mut X509) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_0_21_0_X509_get_serialNumber"] + pub fn X509_get_serialNumber(x509: *mut X509) -> *mut ASN1_INTEGER; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_X509_OBJECT_set1_X509_CRL"] - pub fn X509_OBJECT_set1_X509_CRL( - a: *mut X509_OBJECT, - obj: *mut X509_CRL, + #[link_name = "\u{1}aws_lc_0_21_0_X509_NAME_get_text_by_OBJ"] + pub fn X509_NAME_get_text_by_OBJ( + name: *const X509_NAME, + obj: *const ASN1_OBJECT, + buf: *mut ::std::os::raw::c_char, + len: ::std::os::raw::c_int, ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_X509_STORE_lock"] - pub fn X509_STORE_lock(v: *mut X509_STORE) -> ::std::os::raw::c_int; -} -extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_X509_STORE_unlock"] - pub fn X509_STORE_unlock(v: *mut X509_STORE) -> ::std::os::raw::c_int; -} -extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_X509_STORE_new"] - pub fn X509_STORE_new() -> *mut X509_STORE; -} -extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_X509_STORE_up_ref"] - pub fn X509_STORE_up_ref(store: *mut X509_STORE) -> ::std::os::raw::c_int; -} -extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_X509_STORE_free"] - pub fn X509_STORE_free(store: *mut X509_STORE); -} -extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_X509_STORE_get0_objects"] - pub fn X509_STORE_get0_objects(st: *mut X509_STORE) -> *mut stack_st_X509_OBJECT; -} -extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_X509_STORE_CTX_get1_certs"] - pub fn X509_STORE_CTX_get1_certs( - st: *mut X509_STORE_CTX, - nm: *mut X509_NAME, - ) -> *mut stack_st_X509; -} -extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_X509_STORE_CTX_get1_crls"] - pub fn X509_STORE_CTX_get1_crls( - st: *mut X509_STORE_CTX, - nm: *mut X509_NAME, - ) -> *mut stack_st_X509_CRL; -} -extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_X509_STORE_set_flags"] - pub fn X509_STORE_set_flags( - store: *mut X509_STORE, - flags: ::std::os::raw::c_ulong, + #[link_name = "\u{1}aws_lc_0_21_0_X509_NAME_get_text_by_NID"] + pub fn X509_NAME_get_text_by_NID( + name: *const X509_NAME, + nid: ::std::os::raw::c_int, + buf: *mut ::std::os::raw::c_char, + len: ::std::os::raw::c_int, ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_X509_STORE_set_purpose"] - pub fn X509_STORE_set_purpose( - store: *mut X509_STORE, - purpose: ::std::os::raw::c_int, - ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_0_21_0_X509_STORE_CTX_get0_parent_ctx"] + pub fn X509_STORE_CTX_get0_parent_ctx(ctx: *mut X509_STORE_CTX) -> *mut X509_STORE_CTX; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_X509_STORE_set_trust"] - pub fn X509_STORE_set_trust( - store: *mut X509_STORE, - trust: ::std::os::raw::c_int, - ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_0_21_0_X509_LOOKUP_free"] + pub fn X509_LOOKUP_free(ctx: *mut X509_LOOKUP); } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_X509_STORE_set1_param"] - pub fn X509_STORE_set1_param( - store: *mut X509_STORE, - param: *const X509_VERIFY_PARAM, - ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_0_21_0_X509_STORE_CTX_cleanup"] + pub fn X509_STORE_CTX_cleanup(ctx: *mut X509_STORE_CTX); } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_X509_STORE_get0_param"] - pub fn X509_STORE_get0_param(store: *mut X509_STORE) -> *mut X509_VERIFY_PARAM; + #[link_name = "\u{1}aws_lc_0_21_0_X509V3_add_standard_extensions"] + pub fn X509V3_add_standard_extensions() -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_X509_STORE_CTX_new"] - pub fn X509_STORE_CTX_new() -> *mut X509_STORE_CTX; + #[link_name = "\u{1}aws_lc_0_21_0_X509V3_parse_list"] + pub fn X509V3_parse_list(line: *const ::std::os::raw::c_char) -> *mut stack_st_CONF_VALUE; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_X509_STORE_CTX_get1_issuer"] - pub fn X509_STORE_CTX_get1_issuer( - issuer: *mut *mut X509, - ctx: *mut X509_STORE_CTX, - x: *mut X509, - ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_0_21_0_X509_STORE_CTX_get_chain"] + pub fn X509_STORE_CTX_get_chain(ctx: *mut X509_STORE_CTX) -> *mut stack_st_X509; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_X509_STORE_CTX_free"] - pub fn X509_STORE_CTX_free(ctx: *mut X509_STORE_CTX); + #[link_name = "\u{1}aws_lc_0_21_0_X509_STORE_CTX_trusted_stack"] + pub fn X509_STORE_CTX_trusted_stack(ctx: *mut X509_STORE_CTX, sk: *mut stack_st_X509); } +pub type X509_STORE_CTX_verify_cb = ::std::option::Option< + unsafe extern "C" fn( + arg1: ::std::os::raw::c_int, + arg2: *mut X509_STORE_CTX, + ) -> ::std::os::raw::c_int, +>; extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_X509_STORE_CTX_init"] - pub fn X509_STORE_CTX_init( + #[link_name = "\u{1}aws_lc_0_21_0_X509_STORE_CTX_set_verify_cb"] + pub fn X509_STORE_CTX_set_verify_cb( ctx: *mut X509_STORE_CTX, - store: *mut X509_STORE, - x509: *mut X509, - chain: *mut stack_st_X509, - ) -> ::std::os::raw::c_int; -} -extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_X509_STORE_CTX_set0_trusted_stack"] - pub fn X509_STORE_CTX_set0_trusted_stack(ctx: *mut X509_STORE_CTX, sk: *mut stack_st_X509); -} -extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_X509_STORE_CTX_get0_store"] - pub fn X509_STORE_CTX_get0_store(ctx: *mut X509_STORE_CTX) -> *mut X509_STORE; -} -extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_X509_STORE_CTX_get0_cert"] - pub fn X509_STORE_CTX_get0_cert(ctx: *mut X509_STORE_CTX) -> *mut X509; -} -extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_X509_STORE_add_lookup"] - pub fn X509_STORE_add_lookup( - v: *mut X509_STORE, - m: *const X509_LOOKUP_METHOD, - ) -> *mut X509_LOOKUP; + verify_cb: ::std::option::Option< + unsafe extern "C" fn( + ok: ::std::os::raw::c_int, + ctx: *mut X509_STORE_CTX, + ) -> ::std::os::raw::c_int, + >, + ); } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_X509_LOOKUP_hash_dir"] - pub fn X509_LOOKUP_hash_dir() -> *const X509_LOOKUP_METHOD; + #[link_name = "\u{1}aws_lc_0_21_0_X509_STORE_set_verify_cb"] + pub fn X509_STORE_set_verify_cb(store: *mut X509_STORE, verify_cb: X509_STORE_CTX_verify_cb); } +pub type X509_STORE_CTX_get_crl_fn = ::std::option::Option< + unsafe extern "C" fn( + ctx: *mut X509_STORE_CTX, + crl: *mut *mut X509_CRL, + x: *mut X509, + ) -> ::std::os::raw::c_int, +>; +pub type X509_STORE_CTX_check_crl_fn = ::std::option::Option< + unsafe extern "C" fn(ctx: *mut X509_STORE_CTX, crl: *mut X509_CRL) -> ::std::os::raw::c_int, +>; extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_X509_LOOKUP_file"] - pub fn X509_LOOKUP_file() -> *const X509_LOOKUP_METHOD; + #[link_name = "\u{1}aws_lc_0_21_0_X509_STORE_set_get_crl"] + pub fn X509_STORE_set_get_crl(store: *mut X509_STORE, get_crl: X509_STORE_CTX_get_crl_fn); } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_X509_STORE_add_cert"] - pub fn X509_STORE_add_cert(ctx: *mut X509_STORE, x: *mut X509) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_0_21_0_X509_STORE_set_check_crl"] + pub fn X509_STORE_set_check_crl(store: *mut X509_STORE, check_crl: X509_STORE_CTX_check_crl_fn); } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_X509_STORE_add_crl"] - pub fn X509_STORE_add_crl(ctx: *mut X509_STORE, x: *mut X509_CRL) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_0_21_0_X509_STORE_CTX_set_chain"] + pub fn X509_STORE_CTX_set_chain(ctx: *mut X509_STORE_CTX, sk: *mut stack_st_X509); } -extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_X509_LOOKUP_ctrl"] - pub fn X509_LOOKUP_ctrl( - ctx: *mut X509_LOOKUP, - cmd: ::std::os::raw::c_int, - argc: *const ::std::os::raw::c_char, - argl: ::std::os::raw::c_long, - ret: *mut *mut ::std::os::raw::c_char, - ) -> ::std::os::raw::c_int; +#[repr(C)] +#[derive(Debug, Copy, Clone, PartialEq, Eq)] +pub struct X509_algor_st { + pub algorithm: *mut ASN1_OBJECT, + pub parameter: *mut ASN1_TYPE, } -extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_X509_load_cert_file"] - pub fn X509_load_cert_file( - ctx: *mut X509_LOOKUP, - file: *const ::std::os::raw::c_char, - type_: ::std::os::raw::c_int, - ) -> ::std::os::raw::c_int; +#[test] +fn bindgen_test_layout_X509_algor_st() { + const UNINIT: ::std::mem::MaybeUninit = ::std::mem::MaybeUninit::uninit(); + let ptr = UNINIT.as_ptr(); + assert_eq!( + ::std::mem::size_of::(), + 16usize, + concat!("Size of: ", stringify!(X509_algor_st)) + ); + assert_eq!( + ::std::mem::align_of::(), + 8usize, + concat!("Alignment of ", stringify!(X509_algor_st)) + ); + assert_eq!( + unsafe { ::std::ptr::addr_of!((*ptr).algorithm) as usize - ptr as usize }, + 0usize, + concat!( + "Offset of field: ", + stringify!(X509_algor_st), + "::", + stringify!(algorithm) + ) + ); + assert_eq!( + unsafe { ::std::ptr::addr_of!((*ptr).parameter) as usize - ptr as usize }, + 8usize, + concat!( + "Offset of field: ", + stringify!(X509_algor_st), + "::", + stringify!(parameter) + ) + ); } -extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_X509_load_crl_file"] - pub fn X509_load_crl_file( - ctx: *mut X509_LOOKUP, - file: *const ::std::os::raw::c_char, - type_: ::std::os::raw::c_int, - ) -> ::std::os::raw::c_int; +impl Default for X509_algor_st { + fn default() -> Self { + let mut s = ::std::mem::MaybeUninit::::uninit(); + unsafe { + ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); + s.assume_init() + } + } } -extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_X509_load_cert_crl_file"] - pub fn X509_load_cert_crl_file( - ctx: *mut X509_LOOKUP, - file: *const ::std::os::raw::c_char, - type_: ::std::os::raw::c_int, - ) -> ::std::os::raw::c_int; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct stack_st_DIST_POINT { + _unused: [u8; 0], } -extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_X509_STORE_load_locations"] - pub fn X509_STORE_load_locations( - ctx: *mut X509_STORE, - file: *const ::std::os::raw::c_char, - dir: *const ::std::os::raw::c_char, - ) -> ::std::os::raw::c_int; +#[repr(C)] +#[derive(Debug, Copy, Clone, PartialEq, Eq)] +pub struct x509_trust_st { + pub trust: ::std::os::raw::c_int, + pub flags: ::std::os::raw::c_int, + pub check_trust: ::std::option::Option< + unsafe extern "C" fn( + arg1: *const X509_TRUST, + arg2: *mut X509, + arg3: ::std::os::raw::c_int, + ) -> ::std::os::raw::c_int, + >, + pub name: *mut ::std::os::raw::c_char, + pub arg1: ::std::os::raw::c_int, + pub arg2: *mut ::std::os::raw::c_void, } -extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_X509_STORE_set_default_paths"] - pub fn X509_STORE_set_default_paths(ctx: *mut X509_STORE) -> ::std::os::raw::c_int; +#[test] +fn bindgen_test_layout_x509_trust_st() { + const UNINIT: ::std::mem::MaybeUninit = ::std::mem::MaybeUninit::uninit(); + let ptr = UNINIT.as_ptr(); + assert_eq!( + ::std::mem::size_of::(), + 40usize, + concat!("Size of: ", stringify!(x509_trust_st)) + ); + assert_eq!( + ::std::mem::align_of::(), + 8usize, + concat!("Alignment of ", stringify!(x509_trust_st)) + ); + assert_eq!( + unsafe { ::std::ptr::addr_of!((*ptr).trust) as usize - ptr as usize }, + 0usize, + concat!( + "Offset of field: ", + stringify!(x509_trust_st), + "::", + stringify!(trust) + ) + ); + assert_eq!( + unsafe { ::std::ptr::addr_of!((*ptr).flags) as usize - ptr as usize }, + 4usize, + concat!( + "Offset of field: ", + stringify!(x509_trust_st), + "::", + stringify!(flags) + ) + ); + assert_eq!( + unsafe { ::std::ptr::addr_of!((*ptr).check_trust) as usize - ptr as usize }, + 8usize, + concat!( + "Offset of field: ", + stringify!(x509_trust_st), + "::", + stringify!(check_trust) + ) + ); + assert_eq!( + unsafe { ::std::ptr::addr_of!((*ptr).name) as usize - ptr as usize }, + 16usize, + concat!( + "Offset of field: ", + stringify!(x509_trust_st), + "::", + stringify!(name) + ) + ); + assert_eq!( + unsafe { ::std::ptr::addr_of!((*ptr).arg1) as usize - ptr as usize }, + 24usize, + concat!( + "Offset of field: ", + stringify!(x509_trust_st), + "::", + stringify!(arg1) + ) + ); + assert_eq!( + unsafe { ::std::ptr::addr_of!((*ptr).arg2) as usize - ptr as usize }, + 32usize, + concat!( + "Offset of field: ", + stringify!(x509_trust_st), + "::", + stringify!(arg2) + ) + ); } -extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_X509_STORE_CTX_get_error"] - pub fn X509_STORE_CTX_get_error(ctx: *mut X509_STORE_CTX) -> ::std::os::raw::c_int; +impl Default for x509_trust_st { + fn default() -> Self { + let mut s = ::std::mem::MaybeUninit::::uninit(); + unsafe { + ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); + s.assume_init() + } + } } -extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_X509_STORE_CTX_set_error"] - pub fn X509_STORE_CTX_set_error(ctx: *mut X509_STORE_CTX, s: ::std::os::raw::c_int); +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct stack_st_X509_TRUST { + _unused: [u8; 0], } +pub type sk_X509_TRUST_free_func = + ::std::option::Option; +pub type sk_X509_TRUST_copy_func = + ::std::option::Option *mut X509_TRUST>; +pub type sk_X509_TRUST_cmp_func = ::std::option::Option< + unsafe extern "C" fn( + arg1: *const *const X509_TRUST, + arg2: *const *const X509_TRUST, + ) -> ::std::os::raw::c_int, +>; +pub type sk_X509_TRUST_delete_if_func = ::std::option::Option< + unsafe extern "C" fn( + arg1: *mut X509_TRUST, + arg2: *mut ::std::os::raw::c_void, + ) -> ::std::os::raw::c_int, +>; extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_X509_STORE_CTX_get_error_depth"] - pub fn X509_STORE_CTX_get_error_depth(ctx: *mut X509_STORE_CTX) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_0_21_0_X509_get_default_cert_area"] + pub fn X509_get_default_cert_area() -> *const ::std::os::raw::c_char; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_X509_STORE_CTX_get_current_cert"] - pub fn X509_STORE_CTX_get_current_cert(ctx: *mut X509_STORE_CTX) -> *mut X509; + #[link_name = "\u{1}aws_lc_0_21_0_X509_get_default_cert_dir"] + pub fn X509_get_default_cert_dir() -> *const ::std::os::raw::c_char; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_X509_STORE_CTX_get0_current_issuer"] - pub fn X509_STORE_CTX_get0_current_issuer(ctx: *mut X509_STORE_CTX) -> *mut X509; + #[link_name = "\u{1}aws_lc_0_21_0_X509_get_default_cert_file"] + pub fn X509_get_default_cert_file() -> *const ::std::os::raw::c_char; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_X509_STORE_CTX_get0_current_crl"] - pub fn X509_STORE_CTX_get0_current_crl(ctx: *mut X509_STORE_CTX) -> *mut X509_CRL; + #[link_name = "\u{1}aws_lc_0_21_0_X509_get_default_cert_dir_env"] + pub fn X509_get_default_cert_dir_env() -> *const ::std::os::raw::c_char; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_X509_STORE_CTX_get0_chain"] - pub fn X509_STORE_CTX_get0_chain(ctx: *mut X509_STORE_CTX) -> *mut stack_st_X509; + #[link_name = "\u{1}aws_lc_0_21_0_X509_get_default_cert_file_env"] + pub fn X509_get_default_cert_file_env() -> *const ::std::os::raw::c_char; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_X509_STORE_CTX_get1_chain"] - pub fn X509_STORE_CTX_get1_chain(ctx: *mut X509_STORE_CTX) -> *mut stack_st_X509; + #[link_name = "\u{1}aws_lc_0_21_0_X509_get_default_private_dir"] + pub fn X509_get_default_private_dir() -> *const ::std::os::raw::c_char; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_X509_STORE_CTX_set_cert"] - pub fn X509_STORE_CTX_set_cert(c: *mut X509_STORE_CTX, x: *mut X509); + #[link_name = "\u{1}aws_lc_0_21_0_X509_TRUST_set"] + pub fn X509_TRUST_set( + t: *mut ::std::os::raw::c_int, + trust: ::std::os::raw::c_int, + ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_X509_STORE_CTX_get0_untrusted"] - pub fn X509_STORE_CTX_get0_untrusted(ctx: *mut X509_STORE_CTX) -> *mut stack_st_X509; + #[link_name = "\u{1}aws_lc_0_21_0_X509_cmp"] + pub fn X509_cmp(a: *const X509, b: *const X509) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_X509_STORE_CTX_set0_crls"] - pub fn X509_STORE_CTX_set0_crls(c: *mut X509_STORE_CTX, sk: *mut stack_st_X509_CRL); + #[link_name = "\u{1}aws_lc_0_21_0_X509_NAME_hash"] + pub fn X509_NAME_hash(name: *mut X509_NAME) -> u32; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_X509_STORE_CTX_set_purpose"] - pub fn X509_STORE_CTX_set_purpose( - ctx: *mut X509_STORE_CTX, - purpose: ::std::os::raw::c_int, - ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_0_21_0_X509_NAME_hash_old"] + pub fn X509_NAME_hash_old(name: *mut X509_NAME) -> u32; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_X509_STORE_CTX_set_trust"] - pub fn X509_STORE_CTX_set_trust( - ctx: *mut X509_STORE_CTX, - trust: ::std::os::raw::c_int, - ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_0_21_0_X509_CRL_match"] + pub fn X509_CRL_match(a: *const X509_CRL, b: *const X509_CRL) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_X509_STORE_CTX_purpose_inherit"] - pub fn X509_STORE_CTX_purpose_inherit( - ctx: *mut X509_STORE_CTX, - def_purpose: ::std::os::raw::c_int, - purpose: ::std::os::raw::c_int, - trust: ::std::os::raw::c_int, - ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_0_21_0_X509_TRUST_get_count"] + pub fn X509_TRUST_get_count() -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_X509_STORE_CTX_set_flags"] - pub fn X509_STORE_CTX_set_flags(ctx: *mut X509_STORE_CTX, flags: ::std::os::raw::c_ulong); + #[link_name = "\u{1}aws_lc_0_21_0_X509_TRUST_get0"] + pub fn X509_TRUST_get0(idx: ::std::os::raw::c_int) -> *const X509_TRUST; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_X509_STORE_CTX_set_time"] - pub fn X509_STORE_CTX_set_time( - ctx: *mut X509_STORE_CTX, - flags: ::std::os::raw::c_ulong, - t: time_t, - ); + #[link_name = "\u{1}aws_lc_0_21_0_X509_TRUST_get_by_id"] + pub fn X509_TRUST_get_by_id(id: ::std::os::raw::c_int) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_X509_STORE_CTX_set_time_posix"] - pub fn X509_STORE_CTX_set_time_posix( - ctx: *mut X509_STORE_CTX, - flags: ::std::os::raw::c_ulong, - t: i64, - ); + #[link_name = "\u{1}aws_lc_0_21_0_X509_TRUST_get_flags"] + pub fn X509_TRUST_get_flags(xp: *const X509_TRUST) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_X509_STORE_CTX_get0_param"] - pub fn X509_STORE_CTX_get0_param(ctx: *mut X509_STORE_CTX) -> *mut X509_VERIFY_PARAM; + #[link_name = "\u{1}aws_lc_0_21_0_X509_TRUST_get0_name"] + pub fn X509_TRUST_get0_name(xp: *const X509_TRUST) -> *mut ::std::os::raw::c_char; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_X509_STORE_CTX_set0_param"] - pub fn X509_STORE_CTX_set0_param(ctx: *mut X509_STORE_CTX, param: *mut X509_VERIFY_PARAM); + #[link_name = "\u{1}aws_lc_0_21_0_X509_TRUST_get_trust"] + pub fn X509_TRUST_get_trust(xp: *const X509_TRUST) -> ::std::os::raw::c_int; +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct stack_st_X509_OBJECT { + _unused: [u8; 0], } +pub type sk_X509_OBJECT_free_func = + ::std::option::Option; +pub type sk_X509_OBJECT_copy_func = + ::std::option::Option *mut X509_OBJECT>; +pub type sk_X509_OBJECT_cmp_func = ::std::option::Option< + unsafe extern "C" fn( + arg1: *const *const X509_OBJECT, + arg2: *const *const X509_OBJECT, + ) -> ::std::os::raw::c_int, +>; +pub type sk_X509_OBJECT_delete_if_func = ::std::option::Option< + unsafe extern "C" fn( + arg1: *mut X509_OBJECT, + arg2: *mut ::std::os::raw::c_void, + ) -> ::std::os::raw::c_int, +>; extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_X509_STORE_CTX_set_default"] - pub fn X509_STORE_CTX_set_default( - ctx: *mut X509_STORE_CTX, - name: *const ::std::os::raw::c_char, + #[link_name = "\u{1}aws_lc_0_21_0_X509_LOOKUP_load_file"] + pub fn X509_LOOKUP_load_file( + lookup: *mut X509_LOOKUP, + path: *const ::std::os::raw::c_char, + type_: ::std::os::raw::c_int, ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_X509_STORE_CTX_get_by_subject"] - pub fn X509_STORE_CTX_get_by_subject( - vs: *mut X509_STORE_CTX, + #[link_name = "\u{1}aws_lc_0_21_0_X509_LOOKUP_add_dir"] + pub fn X509_LOOKUP_add_dir( + lookup: *mut X509_LOOKUP, + path: *const ::std::os::raw::c_char, type_: ::std::os::raw::c_int, - name: *mut X509_NAME, - ret: *mut X509_OBJECT, ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_X509_VERIFY_PARAM_new"] - pub fn X509_VERIFY_PARAM_new() -> *mut X509_VERIFY_PARAM; + #[link_name = "\u{1}aws_lc_0_21_0_X509_OBJECT_new"] + pub fn X509_OBJECT_new() -> *mut X509_OBJECT; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_X509_VERIFY_PARAM_free"] - pub fn X509_VERIFY_PARAM_free(param: *mut X509_VERIFY_PARAM); + #[link_name = "\u{1}aws_lc_0_21_0_X509_OBJECT_free"] + pub fn X509_OBJECT_free(obj: *mut X509_OBJECT); } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_X509_VERIFY_PARAM_inherit"] - pub fn X509_VERIFY_PARAM_inherit( - to: *mut X509_VERIFY_PARAM, - from: *const X509_VERIFY_PARAM, - ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_0_21_0_X509_OBJECT_get_type"] + pub fn X509_OBJECT_get_type(obj: *const X509_OBJECT) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_X509_VERIFY_PARAM_set1"] - pub fn X509_VERIFY_PARAM_set1( - to: *mut X509_VERIFY_PARAM, - from: *const X509_VERIFY_PARAM, - ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_0_21_0_X509_OBJECT_get0_X509"] + pub fn X509_OBJECT_get0_X509(obj: *const X509_OBJECT) -> *mut X509; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_X509_VERIFY_PARAM_set_flags"] - pub fn X509_VERIFY_PARAM_set_flags( - param: *mut X509_VERIFY_PARAM, - flags: ::std::os::raw::c_ulong, - ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_0_21_0_X509_OBJECT_get0_X509_CRL"] + pub fn X509_OBJECT_get0_X509_CRL(a: *const X509_OBJECT) -> *mut X509_CRL; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_X509_VERIFY_PARAM_clear_flags"] - pub fn X509_VERIFY_PARAM_clear_flags( - param: *mut X509_VERIFY_PARAM, - flags: ::std::os::raw::c_ulong, + #[link_name = "\u{1}aws_lc_0_21_0_X509_OBJECT_set1_X509"] + pub fn X509_OBJECT_set1_X509(a: *mut X509_OBJECT, obj: *mut X509) -> ::std::os::raw::c_int; +} +extern "C" { + #[link_name = "\u{1}aws_lc_0_21_0_X509_OBJECT_set1_X509_CRL"] + pub fn X509_OBJECT_set1_X509_CRL( + a: *mut X509_OBJECT, + obj: *mut X509_CRL, ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_X509_VERIFY_PARAM_get_flags"] - pub fn X509_VERIFY_PARAM_get_flags(param: *const X509_VERIFY_PARAM) -> ::std::os::raw::c_ulong; + #[link_name = "\u{1}aws_lc_0_21_0_X509_STORE_lock"] + pub fn X509_STORE_lock(v: *mut X509_STORE) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_X509_VERIFY_PARAM_set_purpose"] - pub fn X509_VERIFY_PARAM_set_purpose( - param: *mut X509_VERIFY_PARAM, - purpose: ::std::os::raw::c_int, - ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_0_21_0_X509_STORE_unlock"] + pub fn X509_STORE_unlock(v: *mut X509_STORE) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_X509_VERIFY_PARAM_set_trust"] - pub fn X509_VERIFY_PARAM_set_trust( - param: *mut X509_VERIFY_PARAM, - trust: ::std::os::raw::c_int, - ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_0_21_0_X509_STORE_get0_objects"] + pub fn X509_STORE_get0_objects(st: *mut X509_STORE) -> *mut stack_st_X509_OBJECT; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_X509_VERIFY_PARAM_set_depth"] - pub fn X509_VERIFY_PARAM_set_depth(param: *mut X509_VERIFY_PARAM, depth: ::std::os::raw::c_int); + #[link_name = "\u{1}aws_lc_0_21_0_X509_STORE_CTX_get1_certs"] + pub fn X509_STORE_CTX_get1_certs( + st: *mut X509_STORE_CTX, + nm: *mut X509_NAME, + ) -> *mut stack_st_X509; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_X509_VERIFY_PARAM_set_time"] - pub fn X509_VERIFY_PARAM_set_time(param: *mut X509_VERIFY_PARAM, t: time_t); + #[link_name = "\u{1}aws_lc_0_21_0_X509_STORE_CTX_get1_crls"] + pub fn X509_STORE_CTX_get1_crls( + st: *mut X509_STORE_CTX, + nm: *mut X509_NAME, + ) -> *mut stack_st_X509_CRL; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_X509_VERIFY_PARAM_set_time_posix"] - pub fn X509_VERIFY_PARAM_set_time_posix(param: *mut X509_VERIFY_PARAM, t: i64); + #[link_name = "\u{1}aws_lc_0_21_0_X509_STORE_add_lookup"] + pub fn X509_STORE_add_lookup( + v: *mut X509_STORE, + m: *const X509_LOOKUP_METHOD, + ) -> *mut X509_LOOKUP; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_X509_VERIFY_PARAM_add0_policy"] - pub fn X509_VERIFY_PARAM_add0_policy( - param: *mut X509_VERIFY_PARAM, - policy: *mut ASN1_OBJECT, - ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_0_21_0_X509_LOOKUP_hash_dir"] + pub fn X509_LOOKUP_hash_dir() -> *const X509_LOOKUP_METHOD; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_X509_VERIFY_PARAM_set1_policies"] - pub fn X509_VERIFY_PARAM_set1_policies( - param: *mut X509_VERIFY_PARAM, - policies: *const stack_st_ASN1_OBJECT, - ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_0_21_0_X509_LOOKUP_file"] + pub fn X509_LOOKUP_file() -> *const X509_LOOKUP_METHOD; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_X509_VERIFY_PARAM_set1_host"] - pub fn X509_VERIFY_PARAM_set1_host( - param: *mut X509_VERIFY_PARAM, - name: *const ::std::os::raw::c_char, - namelen: usize, + #[link_name = "\u{1}aws_lc_0_21_0_X509_STORE_CTX_get_by_subject"] + pub fn X509_STORE_CTX_get_by_subject( + vs: *mut X509_STORE_CTX, + type_: ::std::os::raw::c_int, + name: *mut X509_NAME, + ret: *mut X509_OBJECT, ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_X509_VERIFY_PARAM_add1_host"] - pub fn X509_VERIFY_PARAM_add1_host( - param: *mut X509_VERIFY_PARAM, - name: *const ::std::os::raw::c_char, - name_len: usize, + #[link_name = "\u{1}aws_lc_0_21_0_X509_LOOKUP_ctrl"] + pub fn X509_LOOKUP_ctrl( + ctx: *mut X509_LOOKUP, + cmd: ::std::os::raw::c_int, + argc: *const ::std::os::raw::c_char, + argl: ::std::os::raw::c_long, + ret: *mut *mut ::std::os::raw::c_char, ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_X509_VERIFY_PARAM_set_hostflags"] - pub fn X509_VERIFY_PARAM_set_hostflags( - param: *mut X509_VERIFY_PARAM, - flags: ::std::os::raw::c_uint, - ); + #[link_name = "\u{1}aws_lc_0_21_0_X509_load_cert_file"] + pub fn X509_load_cert_file( + ctx: *mut X509_LOOKUP, + file: *const ::std::os::raw::c_char, + type_: ::std::os::raw::c_int, + ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_X509_VERIFY_PARAM_set1_email"] - pub fn X509_VERIFY_PARAM_set1_email( - param: *mut X509_VERIFY_PARAM, - email: *const ::std::os::raw::c_char, - emaillen: usize, + #[link_name = "\u{1}aws_lc_0_21_0_X509_load_crl_file"] + pub fn X509_load_crl_file( + ctx: *mut X509_LOOKUP, + file: *const ::std::os::raw::c_char, + type_: ::std::os::raw::c_int, ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_X509_VERIFY_PARAM_set1_ip"] - pub fn X509_VERIFY_PARAM_set1_ip( - param: *mut X509_VERIFY_PARAM, - ip: *const ::std::os::raw::c_uchar, - iplen: usize, + #[link_name = "\u{1}aws_lc_0_21_0_X509_load_cert_crl_file"] + pub fn X509_load_cert_crl_file( + ctx: *mut X509_LOOKUP, + file: *const ::std::os::raw::c_char, + type_: ::std::os::raw::c_int, ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_X509_VERIFY_PARAM_set1_ip_asc"] - pub fn X509_VERIFY_PARAM_set1_ip_asc( - param: *mut X509_VERIFY_PARAM, - ipasc: *const ::std::os::raw::c_char, + #[link_name = "\u{1}aws_lc_0_21_0_X509_STORE_load_locations"] + pub fn X509_STORE_load_locations( + ctx: *mut X509_STORE, + file: *const ::std::os::raw::c_char, + dir: *const ::std::os::raw::c_char, ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_X509_VERIFY_PARAM_get_depth"] - pub fn X509_VERIFY_PARAM_get_depth(param: *const X509_VERIFY_PARAM) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_0_21_0_X509_STORE_set_default_paths"] + pub fn X509_STORE_set_default_paths(ctx: *mut X509_STORE) -> ::std::os::raw::c_int; } pub type X509V3_EXT_NEW = ::std::option::Option *mut ::std::os::raw::c_void>; @@ -25347,14 +25336,6 @@ extern "C" { flags: ::std::os::raw::c_ulong, ) -> ::std::os::raw::c_int; } -extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_X509_check_purpose"] - pub fn X509_check_purpose( - x: *mut X509, - id: ::std::os::raw::c_int, - ca: ::std::os::raw::c_int, - ) -> ::std::os::raw::c_int; -} extern "C" { #[link_name = "\u{1}aws_lc_0_21_0_X509_PURPOSE_set"] pub fn X509_PURPOSE_set( From a27d9990bbdece4ff2ce1d4b9cb39d5727d05524 Mon Sep 17 00:00:00 2001 From: aws-lc-sys-bindings-generator Date: Wed, 28 Aug 2024 14:43:16 +0000 Subject: [PATCH 26/36] Generated bindings for aarch64-pc-windows-msvc --- .../src/aarch64_pc_windows_msvc_crypto.rs | 3591 ++++++++--------- 1 file changed, 1786 insertions(+), 1805 deletions(-) diff --git a/aws-lc-sys/src/aarch64_pc_windows_msvc_crypto.rs b/aws-lc-sys/src/aarch64_pc_windows_msvc_crypto.rs index 04ed3e93a7e..e85c0b6fc10 100644 --- a/aws-lc-sys/src/aarch64_pc_windows_msvc_crypto.rs +++ b/aws-lc-sys/src/aarch64_pc_windows_msvc_crypto.rs @@ -111,7 +111,7 @@ pub const AWSLC_VERSION_NAME: &[u8; 7] = b"AWS-LC\0"; pub const OPENSSL_VERSION_NUMBER: i32 = 269488255; pub const SSLEAY_VERSION_NUMBER: i32 = 269488255; pub const AWSLC_API_VERSION: i32 = 29; -pub const AWSLC_VERSION_NUMBER_STRING: &[u8; 7] = b"1.33.0\0"; +pub const AWSLC_VERSION_NUMBER_STRING: &[u8; 7] = b"1.34.2\0"; pub const AES_ENCRYPT: i32 = 1; pub const AES_DECRYPT: i32 = 0; pub const AES_MAXNR: i32 = 14; @@ -132,7 +132,7 @@ pub const CRYPTO_LOCK: i32 = 1; pub const CRYPTO_UNLOCK: i32 = 2; pub const CRYPTO_READ: i32 = 4; pub const CRYPTO_WRITE: i32 = 8; -pub const OPENSSL_VERSION_TEXT: &[u8; 42] = b"OpenSSL 1.1.1 (compatible; AWS-LC 1.33.0)\0"; +pub const OPENSSL_VERSION_TEXT: &[u8; 42] = b"OpenSSL 1.1.1 (compatible; AWS-LC 1.34.2)\0"; pub const OPENSSL_VERSION: i32 = 0; pub const OPENSSL_CFLAGS: i32 = 1; pub const OPENSSL_BUILT_ON: i32 = 2; @@ -3283,6 +3283,14 @@ pub const EVP_PKEY_DH: i32 = 28; pub const HKDF_R_OUTPUT_TOO_LARGE: i32 = 100; pub const MD5_CBLOCK: i32 = 64; pub const MD5_DIGEST_LENGTH: i32 = 16; +pub const HMAC_MD5_PRECOMPUTED_KEY_SIZE: i32 = 32; +pub const HMAC_SHA1_PRECOMPUTED_KEY_SIZE: i32 = 40; +pub const HMAC_SHA224_PRECOMPUTED_KEY_SIZE: i32 = 64; +pub const HMAC_SHA256_PRECOMPUTED_KEY_SIZE: i32 = 64; +pub const HMAC_SHA384_PRECOMPUTED_KEY_SIZE: i32 = 128; +pub const HMAC_SHA512_PRECOMPUTED_KEY_SIZE: i32 = 128; +pub const HMAC_SHA512_224_PRECOMPUTED_KEY_SIZE: i32 = 128; +pub const HMAC_SHA512_256_PRECOMPUTED_KEY_SIZE: i32 = 128; pub const HMAC_MAX_PRECOMPUTED_KEY_SIZE: i32 = 128; pub const HMAC_R_MISSING_PARAMETERS: i32 = 100; pub const HMAC_R_BUFFER_TOO_SMALL: i32 = 102; @@ -3501,63 +3509,6 @@ pub const GEN_EDIPARTY: i32 = 5; pub const GEN_URI: i32 = 6; pub const GEN_IPADD: i32 = 7; pub const GEN_RID: i32 = 8; -pub const X509_FLAG_COMPAT: i32 = 0; -pub const X509_FLAG_NO_HEADER: i32 = 1; -pub const X509_FLAG_NO_VERSION: i32 = 2; -pub const X509_FLAG_NO_SERIAL: i32 = 4; -pub const X509_FLAG_NO_SIGNAME: i32 = 8; -pub const X509_FLAG_NO_ISSUER: i32 = 16; -pub const X509_FLAG_NO_VALIDITY: i32 = 32; -pub const X509_FLAG_NO_SUBJECT: i32 = 64; -pub const X509_FLAG_NO_PUBKEY: i32 = 128; -pub const X509_FLAG_NO_EXTENSIONS: i32 = 256; -pub const X509_FLAG_NO_SIGDUMP: i32 = 512; -pub const X509_FLAG_NO_AUX: i32 = 1024; -pub const X509_FLAG_NO_ATTRIBUTES: i32 = 2048; -pub const X509_FLAG_NO_IDS: i32 = 4096; -pub const X509V3_EXT_UNKNOWN_MASK: i32 = 983040; -pub const X509V3_EXT_DEFAULT: i32 = 0; -pub const X509V3_EXT_ERROR_UNKNOWN: i32 = 65536; -pub const X509V3_EXT_PARSE_UNKNOWN: i32 = 131072; -pub const X509V3_EXT_DUMP_UNKNOWN: i32 = 196608; -pub const XN_FLAG_COMPAT: i32 = 0; -pub const XN_FLAG_SEP_MASK: i32 = 983040; -pub const XN_FLAG_SEP_COMMA_PLUS: i32 = 65536; -pub const XN_FLAG_SEP_CPLUS_SPC: i32 = 131072; -pub const XN_FLAG_SEP_SPLUS_SPC: i32 = 196608; -pub const XN_FLAG_SEP_MULTILINE: i32 = 262144; -pub const XN_FLAG_DN_REV: i32 = 1048576; -pub const XN_FLAG_FN_MASK: i32 = 6291456; -pub const XN_FLAG_FN_SN: i32 = 0; -pub const XN_FLAG_FN_LN: i32 = 2097152; -pub const XN_FLAG_FN_OID: i32 = 4194304; -pub const XN_FLAG_FN_NONE: i32 = 6291456; -pub const XN_FLAG_SPC_EQ: i32 = 8388608; -pub const XN_FLAG_DUMP_UNKNOWN_FIELDS: i32 = 16777216; -pub const XN_FLAG_FN_ALIGN: i32 = 33554432; -pub const XN_FLAG_RFC2253: i32 = 17892119; -pub const XN_FLAG_ONELINE: i32 = 8520479; -pub const XN_FLAG_MULTILINE: i32 = 44302342; -pub const X509V3_CTX_TEST: i32 = 1; -pub const X509_TRUST_DEFAULT: i32 = -1; -pub const X509_TRUST_COMPAT: i32 = 1; -pub const X509_TRUST_SSL_CLIENT: i32 = 2; -pub const X509_TRUST_SSL_SERVER: i32 = 3; -pub const X509_TRUST_EMAIL: i32 = 4; -pub const X509_TRUST_OBJECT_SIGN: i32 = 5; -pub const X509_TRUST_TSA: i32 = 8; -pub const X509_TRUST_TRUSTED: i32 = 1; -pub const X509_TRUST_REJECTED: i32 = 2; -pub const X509_TRUST_UNTRUSTED: i32 = 3; -pub const X509_LU_NONE: i32 = 0; -pub const X509_LU_X509: i32 = 1; -pub const X509_LU_CRL: i32 = 2; -pub const X509_LU_PKEY: i32 = 3; -pub const X509_L_FILE_LOAD: i32 = 1; -pub const X509_L_ADD_DIR: i32 = 2; -pub const X509_FILETYPE_PEM: i32 = 1; -pub const X509_FILETYPE_ASN1: i32 = 2; -pub const X509_FILETYPE_DEFAULT: i32 = 3; pub const X509_V_OK: i32 = 0; pub const X509_V_ERR_UNSPECIFIED: i32 = 1; pub const X509_V_ERR_UNABLE_TO_GET_ISSUER_CERT: i32 = 2; @@ -3619,6 +3570,78 @@ pub const X509_V_ERR_IP_ADDRESS_MISMATCH: i32 = 64; pub const X509_V_ERR_INVALID_CALL: i32 = 65; pub const X509_V_ERR_STORE_LOOKUP: i32 = 66; pub const X509_V_ERR_NAME_CONSTRAINTS_WITHOUT_SANS: i32 = 67; +pub const X509_CHECK_FLAG_NO_WILDCARDS: i32 = 2; +pub const X509_CHECK_FLAG_NEVER_CHECK_SUBJECT: i32 = 32; +pub const X509_PURPOSE_SSL_CLIENT: i32 = 1; +pub const X509_PURPOSE_SSL_SERVER: i32 = 2; +pub const X509_PURPOSE_NS_SSL_SERVER: i32 = 3; +pub const X509_PURPOSE_SMIME_SIGN: i32 = 4; +pub const X509_PURPOSE_SMIME_ENCRYPT: i32 = 5; +pub const X509_PURPOSE_CRL_SIGN: i32 = 6; +pub const X509_PURPOSE_ANY: i32 = 7; +pub const X509_PURPOSE_OCSP_HELPER: i32 = 8; +pub const X509_PURPOSE_TIMESTAMP_SIGN: i32 = 9; +pub const X509_TRUST_COMPAT: i32 = 1; +pub const X509_TRUST_SSL_CLIENT: i32 = 2; +pub const X509_TRUST_SSL_SERVER: i32 = 3; +pub const X509_TRUST_EMAIL: i32 = 4; +pub const X509_TRUST_OBJECT_SIGN: i32 = 5; +pub const X509_TRUST_TSA: i32 = 8; +pub const X509_FLAG_COMPAT: i32 = 0; +pub const X509_FLAG_NO_HEADER: i32 = 1; +pub const X509_FLAG_NO_VERSION: i32 = 2; +pub const X509_FLAG_NO_SERIAL: i32 = 4; +pub const X509_FLAG_NO_SIGNAME: i32 = 8; +pub const X509_FLAG_NO_ISSUER: i32 = 16; +pub const X509_FLAG_NO_VALIDITY: i32 = 32; +pub const X509_FLAG_NO_SUBJECT: i32 = 64; +pub const X509_FLAG_NO_PUBKEY: i32 = 128; +pub const X509_FLAG_NO_EXTENSIONS: i32 = 256; +pub const X509_FLAG_NO_SIGDUMP: i32 = 512; +pub const X509_FLAG_NO_AUX: i32 = 1024; +pub const X509_FLAG_NO_ATTRIBUTES: i32 = 2048; +pub const X509_FLAG_NO_IDS: i32 = 4096; +pub const X509V3_EXT_UNKNOWN_MASK: i32 = 983040; +pub const X509V3_EXT_DEFAULT: i32 = 0; +pub const X509V3_EXT_ERROR_UNKNOWN: i32 = 65536; +pub const X509V3_EXT_PARSE_UNKNOWN: i32 = 131072; +pub const X509V3_EXT_DUMP_UNKNOWN: i32 = 196608; +pub const XN_FLAG_COMPAT: i32 = 0; +pub const XN_FLAG_SEP_MASK: i32 = 983040; +pub const XN_FLAG_SEP_COMMA_PLUS: i32 = 65536; +pub const XN_FLAG_SEP_CPLUS_SPC: i32 = 131072; +pub const XN_FLAG_SEP_SPLUS_SPC: i32 = 196608; +pub const XN_FLAG_SEP_MULTILINE: i32 = 262144; +pub const XN_FLAG_DN_REV: i32 = 1048576; +pub const XN_FLAG_FN_MASK: i32 = 6291456; +pub const XN_FLAG_FN_SN: i32 = 0; +pub const XN_FLAG_FN_LN: i32 = 2097152; +pub const XN_FLAG_FN_OID: i32 = 4194304; +pub const XN_FLAG_FN_NONE: i32 = 6291456; +pub const XN_FLAG_SPC_EQ: i32 = 8388608; +pub const XN_FLAG_DUMP_UNKNOWN_FIELDS: i32 = 16777216; +pub const XN_FLAG_FN_ALIGN: i32 = 33554432; +pub const XN_FLAG_RFC2253: i32 = 17892119; +pub const XN_FLAG_ONELINE: i32 = 8520479; +pub const XN_FLAG_MULTILINE: i32 = 44302342; +pub const X509_TRUST_TRUSTED: i32 = 1; +pub const X509_TRUST_REJECTED: i32 = 2; +pub const X509_TRUST_UNTRUSTED: i32 = 3; +pub const X509V3_CTX_TEST: i32 = 1; +pub const X509_CHECK_FLAG_ALWAYS_CHECK_SUBJECT: i32 = 0; +pub const X509_CHECK_FLAG_MULTI_LABEL_WILDCARDS: i32 = 0; +pub const X509_CHECK_FLAG_SINGLE_LABEL_SUBDOMAINS: i32 = 0; +pub const X509_CHECK_FLAG_NO_PARTIAL_WILDCARDS: i32 = 0; +pub const X509_TRUST_DEFAULT: i32 = -1; +pub const X509_LU_NONE: i32 = 0; +pub const X509_LU_X509: i32 = 1; +pub const X509_LU_CRL: i32 = 2; +pub const X509_LU_PKEY: i32 = 3; +pub const X509_L_FILE_LOAD: i32 = 1; +pub const X509_L_ADD_DIR: i32 = 2; +pub const X509_FILETYPE_PEM: i32 = 1; +pub const X509_FILETYPE_ASN1: i32 = 2; +pub const X509_FILETYPE_DEFAULT: i32 = 3; pub const X509_V_FLAG_CB_ISSUER_CHECK: i32 = 1; pub const X509_V_FLAG_USE_CHECK_TIME: i32 = 2; pub const X509_V_FLAG_CRL_CHECK: i32 = 4; @@ -3650,15 +3673,6 @@ pub const NS_SSL_CA: i32 = 4; pub const NS_SMIME_CA: i32 = 2; pub const NS_OBJSIGN_CA: i32 = 1; pub const NS_ANY_CA: i32 = 7; -pub const X509_PURPOSE_SSL_CLIENT: i32 = 1; -pub const X509_PURPOSE_SSL_SERVER: i32 = 2; -pub const X509_PURPOSE_NS_SSL_SERVER: i32 = 3; -pub const X509_PURPOSE_SMIME_SIGN: i32 = 4; -pub const X509_PURPOSE_SMIME_ENCRYPT: i32 = 5; -pub const X509_PURPOSE_CRL_SIGN: i32 = 6; -pub const X509_PURPOSE_ANY: i32 = 7; -pub const X509_PURPOSE_OCSP_HELPER: i32 = 8; -pub const X509_PURPOSE_TIMESTAMP_SIGN: i32 = 9; pub const X509V3_ADD_OP_MASK: i32 = 15; pub const X509V3_ADD_DEFAULT: i32 = 0; pub const X509V3_ADD_APPEND: i32 = 1; @@ -3667,12 +3681,6 @@ pub const X509V3_ADD_REPLACE_EXISTING: i32 = 3; pub const X509V3_ADD_KEEP_EXISTING: i32 = 4; pub const X509V3_ADD_DELETE: i32 = 5; pub const X509V3_ADD_SILENT: i32 = 16; -pub const X509_CHECK_FLAG_NO_WILDCARDS: i32 = 2; -pub const X509_CHECK_FLAG_NEVER_CHECK_SUBJECT: i32 = 32; -pub const X509_CHECK_FLAG_NO_PARTIAL_WILDCARDS: i32 = 0; -pub const X509_CHECK_FLAG_ALWAYS_CHECK_SUBJECT: i32 = 0; -pub const X509_CHECK_FLAG_MULTI_LABEL_WILDCARDS: i32 = 0; -pub const X509_CHECK_FLAG_SINGLE_LABEL_SUBDOMAINS: i32 = 0; pub const X509_R_AKID_MISMATCH: i32 = 100; pub const X509_R_BAD_PKCS7_VERSION: i32 = 101; pub const X509_R_BAD_X509_FILETYPE: i32 = 102; @@ -13026,24 +13034,6 @@ extern "C" { enc: ::std::os::raw::c_int, ); } -extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_DES_decrypt3"] - pub fn DES_decrypt3( - data: *mut u32, - ks1: *const DES_key_schedule, - ks2: *const DES_key_schedule, - ks3: *const DES_key_schedule, - ); -} -extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_DES_encrypt3"] - pub fn DES_encrypt3( - data: *mut u32, - ks1: *const DES_key_schedule, - ks2: *const DES_key_schedule, - ks3: *const DES_key_schedule, - ); -} extern "C" { #[link_name = "\u{1}aws_lc_0_21_0_DH_new"] pub fn DH_new() -> *mut DH; @@ -21048,1751 +21038,1558 @@ extern "C" { idx: ::std::os::raw::c_int, ) -> *mut ASN1_TYPE; } -#[repr(C)] -#[derive(Debug, Copy, Clone, PartialEq, Eq)] -pub struct Netscape_spki_st { - pub spkac: *mut NETSCAPE_SPKAC, - pub sig_algor: *mut X509_ALGOR, - pub signature: *mut ASN1_BIT_STRING, -} -#[test] -fn bindgen_test_layout_Netscape_spki_st() { - const UNINIT: ::std::mem::MaybeUninit = ::std::mem::MaybeUninit::uninit(); - let ptr = UNINIT.as_ptr(); - assert_eq!( - ::std::mem::size_of::(), - 24usize, - concat!("Size of: ", stringify!(Netscape_spki_st)) - ); - assert_eq!( - ::std::mem::align_of::(), - 8usize, - concat!("Alignment of ", stringify!(Netscape_spki_st)) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).spkac) as usize - ptr as usize }, - 0usize, - concat!( - "Offset of field: ", - stringify!(Netscape_spki_st), - "::", - stringify!(spkac) - ) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).sig_algor) as usize - ptr as usize }, - 8usize, - concat!( - "Offset of field: ", - stringify!(Netscape_spki_st), - "::", - stringify!(sig_algor) - ) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).signature) as usize - ptr as usize }, - 16usize, - concat!( - "Offset of field: ", - stringify!(Netscape_spki_st), - "::", - stringify!(signature) - ) - ); +extern "C" { + #[link_name = "\u{1}aws_lc_0_21_0_X509_STORE_new"] + pub fn X509_STORE_new() -> *mut X509_STORE; } -impl Default for Netscape_spki_st { - fn default() -> Self { - let mut s = ::std::mem::MaybeUninit::::uninit(); - unsafe { - ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() - } - } +extern "C" { + #[link_name = "\u{1}aws_lc_0_21_0_X509_STORE_up_ref"] + pub fn X509_STORE_up_ref(store: *mut X509_STORE) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_NETSCAPE_SPKI_it"] - pub static NETSCAPE_SPKI_it: ASN1_ITEM; + #[link_name = "\u{1}aws_lc_0_21_0_X509_STORE_free"] + pub fn X509_STORE_free(store: *mut X509_STORE); } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_NETSCAPE_SPKI_new"] - pub fn NETSCAPE_SPKI_new() -> *mut NETSCAPE_SPKI; + #[link_name = "\u{1}aws_lc_0_21_0_X509_STORE_add_cert"] + pub fn X509_STORE_add_cert(store: *mut X509_STORE, x509: *mut X509) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_NETSCAPE_SPKI_free"] - pub fn NETSCAPE_SPKI_free(spki: *mut NETSCAPE_SPKI); + #[link_name = "\u{1}aws_lc_0_21_0_X509_STORE_add_crl"] + pub fn X509_STORE_add_crl(store: *mut X509_STORE, crl: *mut X509_CRL) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_d2i_NETSCAPE_SPKI"] - pub fn d2i_NETSCAPE_SPKI( - out: *mut *mut NETSCAPE_SPKI, - inp: *mut *const u8, - len: ::std::os::raw::c_long, - ) -> *mut NETSCAPE_SPKI; + #[link_name = "\u{1}aws_lc_0_21_0_X509_STORE_get0_param"] + pub fn X509_STORE_get0_param(store: *mut X509_STORE) -> *mut X509_VERIFY_PARAM; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_i2d_NETSCAPE_SPKI"] - pub fn i2d_NETSCAPE_SPKI( - spki: *const NETSCAPE_SPKI, - outp: *mut *mut u8, + #[link_name = "\u{1}aws_lc_0_21_0_X509_STORE_set1_param"] + pub fn X509_STORE_set1_param( + store: *mut X509_STORE, + param: *const X509_VERIFY_PARAM, ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_NETSCAPE_SPKI_verify"] - pub fn NETSCAPE_SPKI_verify( - spki: *mut NETSCAPE_SPKI, - pkey: *mut EVP_PKEY, + #[link_name = "\u{1}aws_lc_0_21_0_X509_STORE_set_flags"] + pub fn X509_STORE_set_flags( + store: *mut X509_STORE, + flags: ::std::os::raw::c_ulong, ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_NETSCAPE_SPKI_b64_decode"] - pub fn NETSCAPE_SPKI_b64_decode( - str_: *const ::std::os::raw::c_char, - len: ossl_ssize_t, - ) -> *mut NETSCAPE_SPKI; + #[link_name = "\u{1}aws_lc_0_21_0_X509_STORE_set_depth"] + pub fn X509_STORE_set_depth( + store: *mut X509_STORE, + depth: ::std::os::raw::c_int, + ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_NETSCAPE_SPKI_b64_encode"] - pub fn NETSCAPE_SPKI_b64_encode(spki: *mut NETSCAPE_SPKI) -> *mut ::std::os::raw::c_char; + #[link_name = "\u{1}aws_lc_0_21_0_X509_STORE_set_purpose"] + pub fn X509_STORE_set_purpose( + store: *mut X509_STORE, + purpose: ::std::os::raw::c_int, + ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_NETSCAPE_SPKI_get_pubkey"] - pub fn NETSCAPE_SPKI_get_pubkey(spki: *const NETSCAPE_SPKI) -> *mut EVP_PKEY; + #[link_name = "\u{1}aws_lc_0_21_0_X509_STORE_set_trust"] + pub fn X509_STORE_set_trust( + store: *mut X509_STORE, + trust: ::std::os::raw::c_int, + ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_NETSCAPE_SPKI_set_pubkey"] - pub fn NETSCAPE_SPKI_set_pubkey( - spki: *mut NETSCAPE_SPKI, - pkey: *mut EVP_PKEY, - ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_0_21_0_X509_STORE_CTX_new"] + pub fn X509_STORE_CTX_new() -> *mut X509_STORE_CTX; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_NETSCAPE_SPKI_sign"] - pub fn NETSCAPE_SPKI_sign( - spki: *mut NETSCAPE_SPKI, - pkey: *mut EVP_PKEY, - md: *const EVP_MD, + #[link_name = "\u{1}aws_lc_0_21_0_X509_STORE_CTX_free"] + pub fn X509_STORE_CTX_free(ctx: *mut X509_STORE_CTX); +} +extern "C" { + #[link_name = "\u{1}aws_lc_0_21_0_X509_STORE_CTX_init"] + pub fn X509_STORE_CTX_init( + ctx: *mut X509_STORE_CTX, + store: *mut X509_STORE, + x509: *mut X509, + chain: *mut stack_st_X509, ) -> ::std::os::raw::c_int; } -#[repr(C)] -#[derive(Debug, Copy, Clone, PartialEq, Eq)] -pub struct Netscape_spkac_st { - pub pubkey: *mut X509_PUBKEY, - pub challenge: *mut ASN1_IA5STRING, +extern "C" { + #[link_name = "\u{1}aws_lc_0_21_0_X509_verify_cert"] + pub fn X509_verify_cert(ctx: *mut X509_STORE_CTX) -> ::std::os::raw::c_int; } -#[test] -fn bindgen_test_layout_Netscape_spkac_st() { - const UNINIT: ::std::mem::MaybeUninit = ::std::mem::MaybeUninit::uninit(); - let ptr = UNINIT.as_ptr(); - assert_eq!( - ::std::mem::size_of::(), - 16usize, - concat!("Size of: ", stringify!(Netscape_spkac_st)) - ); - assert_eq!( - ::std::mem::align_of::(), - 8usize, - concat!("Alignment of ", stringify!(Netscape_spkac_st)) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).pubkey) as usize - ptr as usize }, - 0usize, - concat!( - "Offset of field: ", - stringify!(Netscape_spkac_st), - "::", - stringify!(pubkey) - ) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).challenge) as usize - ptr as usize }, - 8usize, - concat!( - "Offset of field: ", - stringify!(Netscape_spkac_st), - "::", - stringify!(challenge) - ) - ); +extern "C" { + #[link_name = "\u{1}aws_lc_0_21_0_X509_STORE_CTX_get0_chain"] + pub fn X509_STORE_CTX_get0_chain(ctx: *mut X509_STORE_CTX) -> *mut stack_st_X509; } -impl Default for Netscape_spkac_st { - fn default() -> Self { - let mut s = ::std::mem::MaybeUninit::::uninit(); - unsafe { - ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() - } - } +extern "C" { + #[link_name = "\u{1}aws_lc_0_21_0_X509_STORE_CTX_get1_chain"] + pub fn X509_STORE_CTX_get1_chain(ctx: *mut X509_STORE_CTX) -> *mut stack_st_X509; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_NETSCAPE_SPKAC_it"] - pub static NETSCAPE_SPKAC_it: ASN1_ITEM; + #[link_name = "\u{1}aws_lc_0_21_0_X509_STORE_CTX_set_cert"] + pub fn X509_STORE_CTX_set_cert(c: *mut X509_STORE_CTX, x: *mut X509); } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_NETSCAPE_SPKAC_new"] - pub fn NETSCAPE_SPKAC_new() -> *mut NETSCAPE_SPKAC; + #[link_name = "\u{1}aws_lc_0_21_0_X509_STORE_CTX_get_error"] + pub fn X509_STORE_CTX_get_error(ctx: *mut X509_STORE_CTX) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_NETSCAPE_SPKAC_free"] - pub fn NETSCAPE_SPKAC_free(spkac: *mut NETSCAPE_SPKAC); + #[link_name = "\u{1}aws_lc_0_21_0_X509_STORE_CTX_set_error"] + pub fn X509_STORE_CTX_set_error(ctx: *mut X509_STORE_CTX, err: ::std::os::raw::c_int); } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_d2i_NETSCAPE_SPKAC"] - pub fn d2i_NETSCAPE_SPKAC( - out: *mut *mut NETSCAPE_SPKAC, - inp: *mut *const u8, - len: ::std::os::raw::c_long, - ) -> *mut NETSCAPE_SPKAC; + #[link_name = "\u{1}aws_lc_0_21_0_X509_verify_cert_error_string"] + pub fn X509_verify_cert_error_string( + err: ::std::os::raw::c_long, + ) -> *const ::std::os::raw::c_char; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_i2d_NETSCAPE_SPKAC"] - pub fn i2d_NETSCAPE_SPKAC( - spkac: *const NETSCAPE_SPKAC, - outp: *mut *mut u8, - ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_0_21_0_X509_STORE_CTX_get_error_depth"] + pub fn X509_STORE_CTX_get_error_depth(ctx: *mut X509_STORE_CTX) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_NETSCAPE_SPKI_print"] - pub fn NETSCAPE_SPKI_print(out: *mut BIO, spki: *mut NETSCAPE_SPKI) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_0_21_0_X509_STORE_CTX_get_current_cert"] + pub fn X509_STORE_CTX_get_current_cert(ctx: *mut X509_STORE_CTX) -> *mut X509; } -#[repr(C)] -#[derive(Debug, Copy, Clone, PartialEq, Eq)] -pub struct rsa_pss_params_st { - pub hashAlgorithm: *mut X509_ALGOR, - pub maskGenAlgorithm: *mut X509_ALGOR, - pub saltLength: *mut ASN1_INTEGER, - pub trailerField: *mut ASN1_INTEGER, - pub maskHash: *mut X509_ALGOR, +extern "C" { + #[link_name = "\u{1}aws_lc_0_21_0_X509_STORE_CTX_get0_current_issuer"] + pub fn X509_STORE_CTX_get0_current_issuer(ctx: *mut X509_STORE_CTX) -> *mut X509; } -#[test] -fn bindgen_test_layout_rsa_pss_params_st() { - const UNINIT: ::std::mem::MaybeUninit = ::std::mem::MaybeUninit::uninit(); - let ptr = UNINIT.as_ptr(); - assert_eq!( - ::std::mem::size_of::(), - 40usize, - concat!("Size of: ", stringify!(rsa_pss_params_st)) - ); - assert_eq!( - ::std::mem::align_of::(), - 8usize, - concat!("Alignment of ", stringify!(rsa_pss_params_st)) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).hashAlgorithm) as usize - ptr as usize }, - 0usize, - concat!( - "Offset of field: ", - stringify!(rsa_pss_params_st), - "::", - stringify!(hashAlgorithm) - ) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).maskGenAlgorithm) as usize - ptr as usize }, - 8usize, - concat!( - "Offset of field: ", - stringify!(rsa_pss_params_st), - "::", - stringify!(maskGenAlgorithm) - ) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).saltLength) as usize - ptr as usize }, - 16usize, - concat!( - "Offset of field: ", - stringify!(rsa_pss_params_st), - "::", - stringify!(saltLength) - ) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).trailerField) as usize - ptr as usize }, - 24usize, - concat!( - "Offset of field: ", - stringify!(rsa_pss_params_st), - "::", - stringify!(trailerField) - ) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).maskHash) as usize - ptr as usize }, - 32usize, - concat!( - "Offset of field: ", - stringify!(rsa_pss_params_st), - "::", - stringify!(maskHash) - ) - ); +extern "C" { + #[link_name = "\u{1}aws_lc_0_21_0_X509_STORE_CTX_get0_current_crl"] + pub fn X509_STORE_CTX_get0_current_crl(ctx: *mut X509_STORE_CTX) -> *mut X509_CRL; } -impl Default for rsa_pss_params_st { - fn default() -> Self { - let mut s = ::std::mem::MaybeUninit::::uninit(); - unsafe { - ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() - } - } +extern "C" { + #[link_name = "\u{1}aws_lc_0_21_0_X509_STORE_CTX_get0_store"] + pub fn X509_STORE_CTX_get0_store(ctx: *mut X509_STORE_CTX) -> *mut X509_STORE; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_RSA_PSS_PARAMS_it"] - pub static RSA_PSS_PARAMS_it: ASN1_ITEM; + #[link_name = "\u{1}aws_lc_0_21_0_X509_STORE_CTX_get0_cert"] + pub fn X509_STORE_CTX_get0_cert(ctx: *mut X509_STORE_CTX) -> *mut X509; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_RSA_PSS_PARAMS_new"] - pub fn RSA_PSS_PARAMS_new() -> *mut RSA_PSS_PARAMS; + #[link_name = "\u{1}aws_lc_0_21_0_X509_STORE_CTX_get0_untrusted"] + pub fn X509_STORE_CTX_get0_untrusted(ctx: *mut X509_STORE_CTX) -> *mut stack_st_X509; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_RSA_PSS_PARAMS_free"] - pub fn RSA_PSS_PARAMS_free(params: *mut RSA_PSS_PARAMS); + #[link_name = "\u{1}aws_lc_0_21_0_X509_STORE_CTX_set0_trusted_stack"] + pub fn X509_STORE_CTX_set0_trusted_stack(ctx: *mut X509_STORE_CTX, sk: *mut stack_st_X509); } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_d2i_RSA_PSS_PARAMS"] - pub fn d2i_RSA_PSS_PARAMS( - out: *mut *mut RSA_PSS_PARAMS, - inp: *mut *const u8, - len: ::std::os::raw::c_long, - ) -> *mut RSA_PSS_PARAMS; + #[link_name = "\u{1}aws_lc_0_21_0_X509_STORE_CTX_set0_crls"] + pub fn X509_STORE_CTX_set0_crls(ctx: *mut X509_STORE_CTX, sk: *mut stack_st_X509_CRL); } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_i2d_RSA_PSS_PARAMS"] - pub fn i2d_RSA_PSS_PARAMS( - in_: *const RSA_PSS_PARAMS, - outp: *mut *mut u8, + #[link_name = "\u{1}aws_lc_0_21_0_X509_STORE_CTX_set_default"] + pub fn X509_STORE_CTX_set_default( + ctx: *mut X509_STORE_CTX, + name: *const ::std::os::raw::c_char, ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_PKCS8_PRIV_KEY_INFO_it"] - pub static PKCS8_PRIV_KEY_INFO_it: ASN1_ITEM; + #[link_name = "\u{1}aws_lc_0_21_0_X509_STORE_CTX_get0_param"] + pub fn X509_STORE_CTX_get0_param(ctx: *mut X509_STORE_CTX) -> *mut X509_VERIFY_PARAM; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_PKCS8_PRIV_KEY_INFO_new"] - pub fn PKCS8_PRIV_KEY_INFO_new() -> *mut PKCS8_PRIV_KEY_INFO; -} -extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_PKCS8_PRIV_KEY_INFO_free"] - pub fn PKCS8_PRIV_KEY_INFO_free(key: *mut PKCS8_PRIV_KEY_INFO); -} -extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_d2i_PKCS8_PRIV_KEY_INFO"] - pub fn d2i_PKCS8_PRIV_KEY_INFO( - out: *mut *mut PKCS8_PRIV_KEY_INFO, - inp: *mut *const u8, - len: ::std::os::raw::c_long, - ) -> *mut PKCS8_PRIV_KEY_INFO; -} -extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_i2d_PKCS8_PRIV_KEY_INFO"] - pub fn i2d_PKCS8_PRIV_KEY_INFO( - key: *const PKCS8_PRIV_KEY_INFO, - outp: *mut *mut u8, - ) -> ::std::os::raw::c_int; -} -extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_EVP_PKCS82PKEY"] - pub fn EVP_PKCS82PKEY(p8: *const PKCS8_PRIV_KEY_INFO) -> *mut EVP_PKEY; + #[link_name = "\u{1}aws_lc_0_21_0_X509_STORE_CTX_set0_param"] + pub fn X509_STORE_CTX_set0_param(ctx: *mut X509_STORE_CTX, param: *mut X509_VERIFY_PARAM); } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_EVP_PKEY2PKCS8"] - pub fn EVP_PKEY2PKCS8(pkey: *const EVP_PKEY) -> *mut PKCS8_PRIV_KEY_INFO; + #[link_name = "\u{1}aws_lc_0_21_0_X509_STORE_CTX_set_flags"] + pub fn X509_STORE_CTX_set_flags(ctx: *mut X509_STORE_CTX, flags: ::std::os::raw::c_ulong); } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_X509_SIG_it"] - pub static X509_SIG_it: ASN1_ITEM; + #[link_name = "\u{1}aws_lc_0_21_0_X509_STORE_CTX_set_time"] + pub fn X509_STORE_CTX_set_time( + ctx: *mut X509_STORE_CTX, + flags: ::std::os::raw::c_ulong, + t: time_t, + ); } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_X509_SIG_new"] - pub fn X509_SIG_new() -> *mut X509_SIG; + #[link_name = "\u{1}aws_lc_0_21_0_X509_STORE_CTX_set_time_posix"] + pub fn X509_STORE_CTX_set_time_posix( + ctx: *mut X509_STORE_CTX, + flags: ::std::os::raw::c_ulong, + t: i64, + ); } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_X509_SIG_free"] - pub fn X509_SIG_free(key: *mut X509_SIG); + #[link_name = "\u{1}aws_lc_0_21_0_X509_STORE_CTX_set_depth"] + pub fn X509_STORE_CTX_set_depth(ctx: *mut X509_STORE_CTX, depth: ::std::os::raw::c_int); } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_d2i_X509_SIG"] - pub fn d2i_X509_SIG( - out: *mut *mut X509_SIG, - inp: *mut *const u8, - len: ::std::os::raw::c_long, - ) -> *mut X509_SIG; + #[link_name = "\u{1}aws_lc_0_21_0_X509_STORE_CTX_set_purpose"] + pub fn X509_STORE_CTX_set_purpose( + ctx: *mut X509_STORE_CTX, + purpose: ::std::os::raw::c_int, + ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_i2d_X509_SIG"] - pub fn i2d_X509_SIG(sig: *const X509_SIG, outp: *mut *mut u8) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_0_21_0_X509_STORE_CTX_set_trust"] + pub fn X509_STORE_CTX_set_trust( + ctx: *mut X509_STORE_CTX, + trust: ::std::os::raw::c_int, + ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_X509_SIG_get0"] - pub fn X509_SIG_get0( - sig: *const X509_SIG, - out_alg: *mut *const X509_ALGOR, - out_digest: *mut *const ASN1_OCTET_STRING, - ); + #[link_name = "\u{1}aws_lc_0_21_0_X509_VERIFY_PARAM_new"] + pub fn X509_VERIFY_PARAM_new() -> *mut X509_VERIFY_PARAM; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_X509_SIG_getm"] - pub fn X509_SIG_getm( - sig: *mut X509_SIG, - out_alg: *mut *mut X509_ALGOR, - out_digest: *mut *mut ASN1_OCTET_STRING, - ); + #[link_name = "\u{1}aws_lc_0_21_0_X509_VERIFY_PARAM_free"] + pub fn X509_VERIFY_PARAM_free(param: *mut X509_VERIFY_PARAM); } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_X509_print_ex"] - pub fn X509_print_ex( - bp: *mut BIO, - x: *mut X509, - nmflag: ::std::os::raw::c_ulong, - cflag: ::std::os::raw::c_ulong, + #[link_name = "\u{1}aws_lc_0_21_0_X509_VERIFY_PARAM_inherit"] + pub fn X509_VERIFY_PARAM_inherit( + to: *mut X509_VERIFY_PARAM, + from: *const X509_VERIFY_PARAM, ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_X509_print_ex_fp"] - pub fn X509_print_ex_fp( - fp: *mut FILE, - x: *mut X509, - nmflag: ::std::os::raw::c_ulong, - cflag: ::std::os::raw::c_ulong, + #[link_name = "\u{1}aws_lc_0_21_0_X509_VERIFY_PARAM_set1"] + pub fn X509_VERIFY_PARAM_set1( + to: *mut X509_VERIFY_PARAM, + from: *const X509_VERIFY_PARAM, ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_X509_print"] - pub fn X509_print(bp: *mut BIO, x: *mut X509) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_0_21_0_X509_VERIFY_PARAM_set_flags"] + pub fn X509_VERIFY_PARAM_set_flags( + param: *mut X509_VERIFY_PARAM, + flags: ::std::os::raw::c_ulong, + ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_X509_print_fp"] - pub fn X509_print_fp(fp: *mut FILE, x: *mut X509) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_0_21_0_X509_VERIFY_PARAM_clear_flags"] + pub fn X509_VERIFY_PARAM_clear_flags( + param: *mut X509_VERIFY_PARAM, + flags: ::std::os::raw::c_ulong, + ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_X509_CRL_print"] - pub fn X509_CRL_print(bp: *mut BIO, x: *mut X509_CRL) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_0_21_0_X509_VERIFY_PARAM_get_flags"] + pub fn X509_VERIFY_PARAM_get_flags(param: *const X509_VERIFY_PARAM) -> ::std::os::raw::c_ulong; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_X509_CRL_print_fp"] - pub fn X509_CRL_print_fp(fp: *mut FILE, x: *mut X509_CRL) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_0_21_0_X509_VERIFY_PARAM_set_depth"] + pub fn X509_VERIFY_PARAM_set_depth(param: *mut X509_VERIFY_PARAM, depth: ::std::os::raw::c_int); } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_X509_REQ_print_ex"] - pub fn X509_REQ_print_ex( - bp: *mut BIO, - x: *mut X509_REQ, - nmflag: ::std::os::raw::c_ulong, - cflag: ::std::os::raw::c_ulong, - ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_0_21_0_X509_VERIFY_PARAM_get_depth"] + pub fn X509_VERIFY_PARAM_get_depth(param: *const X509_VERIFY_PARAM) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_X509_REQ_print"] - pub fn X509_REQ_print(bp: *mut BIO, req: *mut X509_REQ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_0_21_0_X509_VERIFY_PARAM_set_time"] + pub fn X509_VERIFY_PARAM_set_time(param: *mut X509_VERIFY_PARAM, t: time_t); } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_X509_REQ_print_fp"] - pub fn X509_REQ_print_fp(fp: *mut FILE, req: *mut X509_REQ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_0_21_0_X509_VERIFY_PARAM_set_time_posix"] + pub fn X509_VERIFY_PARAM_set_time_posix(param: *mut X509_VERIFY_PARAM, t: i64); } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_X509_NAME_print_ex"] - pub fn X509_NAME_print_ex( - out: *mut BIO, - nm: *const X509_NAME, - indent: ::std::os::raw::c_int, - flags: ::std::os::raw::c_ulong, + #[link_name = "\u{1}aws_lc_0_21_0_X509_VERIFY_PARAM_add0_policy"] + pub fn X509_VERIFY_PARAM_add0_policy( + param: *mut X509_VERIFY_PARAM, + policy: *mut ASN1_OBJECT, ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_X509_NAME_print"] - pub fn X509_NAME_print( - bp: *mut BIO, - name: *const X509_NAME, - obase: ::std::os::raw::c_int, + #[link_name = "\u{1}aws_lc_0_21_0_X509_VERIFY_PARAM_set1_policies"] + pub fn X509_VERIFY_PARAM_set1_policies( + param: *mut X509_VERIFY_PARAM, + policies: *const stack_st_ASN1_OBJECT, ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_X509_NAME_oneline"] - pub fn X509_NAME_oneline( - name: *const X509_NAME, - buf: *mut ::std::os::raw::c_char, - size: ::std::os::raw::c_int, - ) -> *mut ::std::os::raw::c_char; -} -extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_X509_NAME_print_ex_fp"] - pub fn X509_NAME_print_ex_fp( - fp: *mut FILE, - nm: *const X509_NAME, - indent: ::std::os::raw::c_int, - flags: ::std::os::raw::c_ulong, + #[link_name = "\u{1}aws_lc_0_21_0_X509_VERIFY_PARAM_set1_host"] + pub fn X509_VERIFY_PARAM_set1_host( + param: *mut X509_VERIFY_PARAM, + name: *const ::std::os::raw::c_char, + name_len: usize, ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_X509_signature_dump"] - pub fn X509_signature_dump( - bio: *mut BIO, - sig: *const ASN1_STRING, - indent: ::std::os::raw::c_int, + #[link_name = "\u{1}aws_lc_0_21_0_X509_VERIFY_PARAM_add1_host"] + pub fn X509_VERIFY_PARAM_add1_host( + param: *mut X509_VERIFY_PARAM, + name: *const ::std::os::raw::c_char, + name_len: usize, ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_X509_signature_print"] - pub fn X509_signature_print( - bio: *mut BIO, - alg: *const X509_ALGOR, - sig: *const ASN1_STRING, - ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_0_21_0_X509_VERIFY_PARAM_set_hostflags"] + pub fn X509_VERIFY_PARAM_set_hostflags( + param: *mut X509_VERIFY_PARAM, + flags: ::std::os::raw::c_uint, + ); } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_X509V3_EXT_print"] - pub fn X509V3_EXT_print( - out: *mut BIO, - ext: *const X509_EXTENSION, - flag: ::std::os::raw::c_ulong, - indent: ::std::os::raw::c_int, + #[link_name = "\u{1}aws_lc_0_21_0_X509_VERIFY_PARAM_set1_email"] + pub fn X509_VERIFY_PARAM_set1_email( + param: *mut X509_VERIFY_PARAM, + email: *const ::std::os::raw::c_char, + email_len: usize, ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_X509V3_EXT_print_fp"] - pub fn X509V3_EXT_print_fp( - out: *mut FILE, - ext: *const X509_EXTENSION, - flag: ::std::os::raw::c_int, - indent: ::std::os::raw::c_int, + #[link_name = "\u{1}aws_lc_0_21_0_X509_VERIFY_PARAM_set1_ip"] + pub fn X509_VERIFY_PARAM_set1_ip( + param: *mut X509_VERIFY_PARAM, + ip: *const u8, + ip_len: usize, ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_X509V3_extensions_print"] - pub fn X509V3_extensions_print( - out: *mut BIO, - title: *const ::std::os::raw::c_char, - exts: *const stack_st_X509_EXTENSION, - flag: ::std::os::raw::c_ulong, - indent: ::std::os::raw::c_int, + #[link_name = "\u{1}aws_lc_0_21_0_X509_VERIFY_PARAM_set1_ip_asc"] + pub fn X509_VERIFY_PARAM_set1_ip_asc( + param: *mut X509_VERIFY_PARAM, + ipasc: *const ::std::os::raw::c_char, ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_GENERAL_NAME_print"] - pub fn GENERAL_NAME_print(out: *mut BIO, gen: *const GENERAL_NAME) -> ::std::os::raw::c_int; -} -extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_X509_pubkey_digest"] - pub fn X509_pubkey_digest( - x509: *const X509, - md: *const EVP_MD, - out: *mut u8, - out_len: *mut ::std::os::raw::c_uint, + #[link_name = "\u{1}aws_lc_0_21_0_X509_VERIFY_PARAM_set_purpose"] + pub fn X509_VERIFY_PARAM_set_purpose( + param: *mut X509_VERIFY_PARAM, + purpose: ::std::os::raw::c_int, ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_X509_digest"] - pub fn X509_digest( - x509: *const X509, - md: *const EVP_MD, - out: *mut u8, - out_len: *mut ::std::os::raw::c_uint, + #[link_name = "\u{1}aws_lc_0_21_0_X509_VERIFY_PARAM_set_trust"] + pub fn X509_VERIFY_PARAM_set_trust( + param: *mut X509_VERIFY_PARAM, + trust: ::std::os::raw::c_int, ) -> ::std::os::raw::c_int; } -extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_X509_CRL_digest"] - pub fn X509_CRL_digest( - crl: *const X509_CRL, - md: *const EVP_MD, - out: *mut u8, - out_len: *mut ::std::os::raw::c_uint, - ) -> ::std::os::raw::c_int; -} -extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_X509_REQ_digest"] - pub fn X509_REQ_digest( - req: *const X509_REQ, - md: *const EVP_MD, - out: *mut u8, - out_len: *mut ::std::os::raw::c_uint, - ) -> ::std::os::raw::c_int; -} -extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_X509_NAME_digest"] - pub fn X509_NAME_digest( - name: *const X509_NAME, - md: *const EVP_MD, - out: *mut u8, - out_len: *mut ::std::os::raw::c_uint, - ) -> ::std::os::raw::c_int; +#[repr(C)] +#[derive(Debug, Copy, Clone, PartialEq, Eq)] +pub struct Netscape_spki_st { + pub spkac: *mut NETSCAPE_SPKAC, + pub sig_algor: *mut X509_ALGOR, + pub signature: *mut ASN1_BIT_STRING, } -extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_d2i_X509_bio"] - pub fn d2i_X509_bio(bp: *mut BIO, x509: *mut *mut X509) -> *mut X509; +#[test] +fn bindgen_test_layout_Netscape_spki_st() { + const UNINIT: ::std::mem::MaybeUninit = ::std::mem::MaybeUninit::uninit(); + let ptr = UNINIT.as_ptr(); + assert_eq!( + ::std::mem::size_of::(), + 24usize, + concat!("Size of: ", stringify!(Netscape_spki_st)) + ); + assert_eq!( + ::std::mem::align_of::(), + 8usize, + concat!("Alignment of ", stringify!(Netscape_spki_st)) + ); + assert_eq!( + unsafe { ::std::ptr::addr_of!((*ptr).spkac) as usize - ptr as usize }, + 0usize, + concat!( + "Offset of field: ", + stringify!(Netscape_spki_st), + "::", + stringify!(spkac) + ) + ); + assert_eq!( + unsafe { ::std::ptr::addr_of!((*ptr).sig_algor) as usize - ptr as usize }, + 8usize, + concat!( + "Offset of field: ", + stringify!(Netscape_spki_st), + "::", + stringify!(sig_algor) + ) + ); + assert_eq!( + unsafe { ::std::ptr::addr_of!((*ptr).signature) as usize - ptr as usize }, + 16usize, + concat!( + "Offset of field: ", + stringify!(Netscape_spki_st), + "::", + stringify!(signature) + ) + ); } -extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_d2i_X509_CRL_bio"] - pub fn d2i_X509_CRL_bio(bp: *mut BIO, crl: *mut *mut X509_CRL) -> *mut X509_CRL; +impl Default for Netscape_spki_st { + fn default() -> Self { + let mut s = ::std::mem::MaybeUninit::::uninit(); + unsafe { + ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); + s.assume_init() + } + } } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_d2i_X509_REQ_bio"] - pub fn d2i_X509_REQ_bio(bp: *mut BIO, req: *mut *mut X509_REQ) -> *mut X509_REQ; + #[link_name = "\u{1}aws_lc_0_21_0_NETSCAPE_SPKI_it"] + pub static NETSCAPE_SPKI_it: ASN1_ITEM; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_d2i_RSAPrivateKey_bio"] - pub fn d2i_RSAPrivateKey_bio(bp: *mut BIO, rsa: *mut *mut RSA) -> *mut RSA; + #[link_name = "\u{1}aws_lc_0_21_0_NETSCAPE_SPKI_new"] + pub fn NETSCAPE_SPKI_new() -> *mut NETSCAPE_SPKI; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_d2i_RSAPublicKey_bio"] - pub fn d2i_RSAPublicKey_bio(bp: *mut BIO, rsa: *mut *mut RSA) -> *mut RSA; + #[link_name = "\u{1}aws_lc_0_21_0_NETSCAPE_SPKI_free"] + pub fn NETSCAPE_SPKI_free(spki: *mut NETSCAPE_SPKI); } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_d2i_RSA_PUBKEY_bio"] - pub fn d2i_RSA_PUBKEY_bio(bp: *mut BIO, rsa: *mut *mut RSA) -> *mut RSA; + #[link_name = "\u{1}aws_lc_0_21_0_d2i_NETSCAPE_SPKI"] + pub fn d2i_NETSCAPE_SPKI( + out: *mut *mut NETSCAPE_SPKI, + inp: *mut *const u8, + len: ::std::os::raw::c_long, + ) -> *mut NETSCAPE_SPKI; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_d2i_DSA_PUBKEY_bio"] - pub fn d2i_DSA_PUBKEY_bio(bp: *mut BIO, dsa: *mut *mut DSA) -> *mut DSA; + #[link_name = "\u{1}aws_lc_0_21_0_i2d_NETSCAPE_SPKI"] + pub fn i2d_NETSCAPE_SPKI( + spki: *const NETSCAPE_SPKI, + outp: *mut *mut u8, + ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_d2i_DSAPrivateKey_bio"] - pub fn d2i_DSAPrivateKey_bio(bp: *mut BIO, dsa: *mut *mut DSA) -> *mut DSA; + #[link_name = "\u{1}aws_lc_0_21_0_NETSCAPE_SPKI_verify"] + pub fn NETSCAPE_SPKI_verify( + spki: *mut NETSCAPE_SPKI, + pkey: *mut EVP_PKEY, + ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_d2i_EC_PUBKEY_bio"] - pub fn d2i_EC_PUBKEY_bio(bp: *mut BIO, eckey: *mut *mut EC_KEY) -> *mut EC_KEY; + #[link_name = "\u{1}aws_lc_0_21_0_NETSCAPE_SPKI_b64_decode"] + pub fn NETSCAPE_SPKI_b64_decode( + str_: *const ::std::os::raw::c_char, + len: ossl_ssize_t, + ) -> *mut NETSCAPE_SPKI; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_d2i_ECPrivateKey_bio"] - pub fn d2i_ECPrivateKey_bio(bp: *mut BIO, eckey: *mut *mut EC_KEY) -> *mut EC_KEY; + #[link_name = "\u{1}aws_lc_0_21_0_NETSCAPE_SPKI_b64_encode"] + pub fn NETSCAPE_SPKI_b64_encode(spki: *mut NETSCAPE_SPKI) -> *mut ::std::os::raw::c_char; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_d2i_PKCS8_bio"] - pub fn d2i_PKCS8_bio(bp: *mut BIO, p8: *mut *mut X509_SIG) -> *mut X509_SIG; + #[link_name = "\u{1}aws_lc_0_21_0_NETSCAPE_SPKI_get_pubkey"] + pub fn NETSCAPE_SPKI_get_pubkey(spki: *const NETSCAPE_SPKI) -> *mut EVP_PKEY; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_d2i_PKCS8_PRIV_KEY_INFO_bio"] - pub fn d2i_PKCS8_PRIV_KEY_INFO_bio( - bp: *mut BIO, - p8inf: *mut *mut PKCS8_PRIV_KEY_INFO, - ) -> *mut PKCS8_PRIV_KEY_INFO; + #[link_name = "\u{1}aws_lc_0_21_0_NETSCAPE_SPKI_set_pubkey"] + pub fn NETSCAPE_SPKI_set_pubkey( + spki: *mut NETSCAPE_SPKI, + pkey: *mut EVP_PKEY, + ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_d2i_PUBKEY_bio"] - pub fn d2i_PUBKEY_bio(bp: *mut BIO, a: *mut *mut EVP_PKEY) -> *mut EVP_PKEY; + #[link_name = "\u{1}aws_lc_0_21_0_NETSCAPE_SPKI_sign"] + pub fn NETSCAPE_SPKI_sign( + spki: *mut NETSCAPE_SPKI, + pkey: *mut EVP_PKEY, + md: *const EVP_MD, + ) -> ::std::os::raw::c_int; } -extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_d2i_DHparams_bio"] - pub fn d2i_DHparams_bio(bp: *mut BIO, dh: *mut *mut DH) -> *mut DH; +#[repr(C)] +#[derive(Debug, Copy, Clone, PartialEq, Eq)] +pub struct Netscape_spkac_st { + pub pubkey: *mut X509_PUBKEY, + pub challenge: *mut ASN1_IA5STRING, } -extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_d2i_PrivateKey_bio"] - pub fn d2i_PrivateKey_bio(bp: *mut BIO, a: *mut *mut EVP_PKEY) -> *mut EVP_PKEY; +#[test] +fn bindgen_test_layout_Netscape_spkac_st() { + const UNINIT: ::std::mem::MaybeUninit = ::std::mem::MaybeUninit::uninit(); + let ptr = UNINIT.as_ptr(); + assert_eq!( + ::std::mem::size_of::(), + 16usize, + concat!("Size of: ", stringify!(Netscape_spkac_st)) + ); + assert_eq!( + ::std::mem::align_of::(), + 8usize, + concat!("Alignment of ", stringify!(Netscape_spkac_st)) + ); + assert_eq!( + unsafe { ::std::ptr::addr_of!((*ptr).pubkey) as usize - ptr as usize }, + 0usize, + concat!( + "Offset of field: ", + stringify!(Netscape_spkac_st), + "::", + stringify!(pubkey) + ) + ); + assert_eq!( + unsafe { ::std::ptr::addr_of!((*ptr).challenge) as usize - ptr as usize }, + 8usize, + concat!( + "Offset of field: ", + stringify!(Netscape_spkac_st), + "::", + stringify!(challenge) + ) + ); } -extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_i2d_X509_bio"] - pub fn i2d_X509_bio(bp: *mut BIO, x509: *mut X509) -> ::std::os::raw::c_int; +impl Default for Netscape_spkac_st { + fn default() -> Self { + let mut s = ::std::mem::MaybeUninit::::uninit(); + unsafe { + ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); + s.assume_init() + } + } } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_i2d_X509_CRL_bio"] - pub fn i2d_X509_CRL_bio(bp: *mut BIO, crl: *mut X509_CRL) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_0_21_0_NETSCAPE_SPKAC_it"] + pub static NETSCAPE_SPKAC_it: ASN1_ITEM; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_i2d_X509_REQ_bio"] - pub fn i2d_X509_REQ_bio(bp: *mut BIO, req: *mut X509_REQ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_0_21_0_NETSCAPE_SPKAC_new"] + pub fn NETSCAPE_SPKAC_new() -> *mut NETSCAPE_SPKAC; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_i2d_RSAPrivateKey_bio"] - pub fn i2d_RSAPrivateKey_bio(bp: *mut BIO, rsa: *mut RSA) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_0_21_0_NETSCAPE_SPKAC_free"] + pub fn NETSCAPE_SPKAC_free(spkac: *mut NETSCAPE_SPKAC); } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_i2d_RSAPublicKey_bio"] - pub fn i2d_RSAPublicKey_bio(bp: *mut BIO, rsa: *mut RSA) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_0_21_0_d2i_NETSCAPE_SPKAC"] + pub fn d2i_NETSCAPE_SPKAC( + out: *mut *mut NETSCAPE_SPKAC, + inp: *mut *const u8, + len: ::std::os::raw::c_long, + ) -> *mut NETSCAPE_SPKAC; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_i2d_RSA_PUBKEY_bio"] - pub fn i2d_RSA_PUBKEY_bio(bp: *mut BIO, rsa: *mut RSA) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_0_21_0_i2d_NETSCAPE_SPKAC"] + pub fn i2d_NETSCAPE_SPKAC( + spkac: *const NETSCAPE_SPKAC, + outp: *mut *mut u8, + ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_i2d_DSA_PUBKEY_bio"] - pub fn i2d_DSA_PUBKEY_bio(bp: *mut BIO, dsa: *mut DSA) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_0_21_0_NETSCAPE_SPKI_print"] + pub fn NETSCAPE_SPKI_print(out: *mut BIO, spki: *mut NETSCAPE_SPKI) -> ::std::os::raw::c_int; } -extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_i2d_DSAPrivateKey_bio"] - pub fn i2d_DSAPrivateKey_bio(bp: *mut BIO, dsa: *mut DSA) -> ::std::os::raw::c_int; +#[repr(C)] +#[derive(Debug, Copy, Clone, PartialEq, Eq)] +pub struct rsa_pss_params_st { + pub hashAlgorithm: *mut X509_ALGOR, + pub maskGenAlgorithm: *mut X509_ALGOR, + pub saltLength: *mut ASN1_INTEGER, + pub trailerField: *mut ASN1_INTEGER, + pub maskHash: *mut X509_ALGOR, } -extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_i2d_EC_PUBKEY_bio"] - pub fn i2d_EC_PUBKEY_bio(bp: *mut BIO, eckey: *mut EC_KEY) -> ::std::os::raw::c_int; -} -extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_i2d_ECPrivateKey_bio"] - pub fn i2d_ECPrivateKey_bio(bp: *mut BIO, eckey: *mut EC_KEY) -> ::std::os::raw::c_int; +#[test] +fn bindgen_test_layout_rsa_pss_params_st() { + const UNINIT: ::std::mem::MaybeUninit = ::std::mem::MaybeUninit::uninit(); + let ptr = UNINIT.as_ptr(); + assert_eq!( + ::std::mem::size_of::(), + 40usize, + concat!("Size of: ", stringify!(rsa_pss_params_st)) + ); + assert_eq!( + ::std::mem::align_of::(), + 8usize, + concat!("Alignment of ", stringify!(rsa_pss_params_st)) + ); + assert_eq!( + unsafe { ::std::ptr::addr_of!((*ptr).hashAlgorithm) as usize - ptr as usize }, + 0usize, + concat!( + "Offset of field: ", + stringify!(rsa_pss_params_st), + "::", + stringify!(hashAlgorithm) + ) + ); + assert_eq!( + unsafe { ::std::ptr::addr_of!((*ptr).maskGenAlgorithm) as usize - ptr as usize }, + 8usize, + concat!( + "Offset of field: ", + stringify!(rsa_pss_params_st), + "::", + stringify!(maskGenAlgorithm) + ) + ); + assert_eq!( + unsafe { ::std::ptr::addr_of!((*ptr).saltLength) as usize - ptr as usize }, + 16usize, + concat!( + "Offset of field: ", + stringify!(rsa_pss_params_st), + "::", + stringify!(saltLength) + ) + ); + assert_eq!( + unsafe { ::std::ptr::addr_of!((*ptr).trailerField) as usize - ptr as usize }, + 24usize, + concat!( + "Offset of field: ", + stringify!(rsa_pss_params_st), + "::", + stringify!(trailerField) + ) + ); + assert_eq!( + unsafe { ::std::ptr::addr_of!((*ptr).maskHash) as usize - ptr as usize }, + 32usize, + concat!( + "Offset of field: ", + stringify!(rsa_pss_params_st), + "::", + stringify!(maskHash) + ) + ); } -extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_i2d_PKCS8_bio"] - pub fn i2d_PKCS8_bio(bp: *mut BIO, p8: *mut X509_SIG) -> ::std::os::raw::c_int; +impl Default for rsa_pss_params_st { + fn default() -> Self { + let mut s = ::std::mem::MaybeUninit::::uninit(); + unsafe { + ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); + s.assume_init() + } + } } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_i2d_PKCS8_PRIV_KEY_INFO_bio"] - pub fn i2d_PKCS8_PRIV_KEY_INFO_bio( - bp: *mut BIO, - p8inf: *mut PKCS8_PRIV_KEY_INFO, - ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_0_21_0_RSA_PSS_PARAMS_it"] + pub static RSA_PSS_PARAMS_it: ASN1_ITEM; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_i2d_PrivateKey_bio"] - pub fn i2d_PrivateKey_bio(bp: *mut BIO, pkey: *mut EVP_PKEY) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_0_21_0_RSA_PSS_PARAMS_new"] + pub fn RSA_PSS_PARAMS_new() -> *mut RSA_PSS_PARAMS; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_i2d_PUBKEY_bio"] - pub fn i2d_PUBKEY_bio(bp: *mut BIO, pkey: *mut EVP_PKEY) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_0_21_0_RSA_PSS_PARAMS_free"] + pub fn RSA_PSS_PARAMS_free(params: *mut RSA_PSS_PARAMS); } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_i2d_DHparams_bio"] - pub fn i2d_DHparams_bio(bp: *mut BIO, dh: *const DH) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_0_21_0_d2i_RSA_PSS_PARAMS"] + pub fn d2i_RSA_PSS_PARAMS( + out: *mut *mut RSA_PSS_PARAMS, + inp: *mut *const u8, + len: ::std::os::raw::c_long, + ) -> *mut RSA_PSS_PARAMS; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_i2d_PKCS8PrivateKeyInfo_bio"] - pub fn i2d_PKCS8PrivateKeyInfo_bio(bp: *mut BIO, key: *mut EVP_PKEY) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_0_21_0_i2d_RSA_PSS_PARAMS"] + pub fn i2d_RSA_PSS_PARAMS( + in_: *const RSA_PSS_PARAMS, + outp: *mut *mut u8, + ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_d2i_X509_fp"] - pub fn d2i_X509_fp(fp: *mut FILE, x509: *mut *mut X509) -> *mut X509; + #[link_name = "\u{1}aws_lc_0_21_0_PKCS8_PRIV_KEY_INFO_it"] + pub static PKCS8_PRIV_KEY_INFO_it: ASN1_ITEM; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_d2i_X509_CRL_fp"] - pub fn d2i_X509_CRL_fp(fp: *mut FILE, crl: *mut *mut X509_CRL) -> *mut X509_CRL; + #[link_name = "\u{1}aws_lc_0_21_0_PKCS8_PRIV_KEY_INFO_new"] + pub fn PKCS8_PRIV_KEY_INFO_new() -> *mut PKCS8_PRIV_KEY_INFO; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_d2i_X509_REQ_fp"] - pub fn d2i_X509_REQ_fp(fp: *mut FILE, req: *mut *mut X509_REQ) -> *mut X509_REQ; + #[link_name = "\u{1}aws_lc_0_21_0_PKCS8_PRIV_KEY_INFO_free"] + pub fn PKCS8_PRIV_KEY_INFO_free(key: *mut PKCS8_PRIV_KEY_INFO); } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_d2i_RSAPrivateKey_fp"] - pub fn d2i_RSAPrivateKey_fp(fp: *mut FILE, rsa: *mut *mut RSA) -> *mut RSA; + #[link_name = "\u{1}aws_lc_0_21_0_d2i_PKCS8_PRIV_KEY_INFO"] + pub fn d2i_PKCS8_PRIV_KEY_INFO( + out: *mut *mut PKCS8_PRIV_KEY_INFO, + inp: *mut *const u8, + len: ::std::os::raw::c_long, + ) -> *mut PKCS8_PRIV_KEY_INFO; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_d2i_RSAPublicKey_fp"] - pub fn d2i_RSAPublicKey_fp(fp: *mut FILE, rsa: *mut *mut RSA) -> *mut RSA; + #[link_name = "\u{1}aws_lc_0_21_0_i2d_PKCS8_PRIV_KEY_INFO"] + pub fn i2d_PKCS8_PRIV_KEY_INFO( + key: *const PKCS8_PRIV_KEY_INFO, + outp: *mut *mut u8, + ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_d2i_RSA_PUBKEY_fp"] - pub fn d2i_RSA_PUBKEY_fp(fp: *mut FILE, rsa: *mut *mut RSA) -> *mut RSA; + #[link_name = "\u{1}aws_lc_0_21_0_EVP_PKCS82PKEY"] + pub fn EVP_PKCS82PKEY(p8: *const PKCS8_PRIV_KEY_INFO) -> *mut EVP_PKEY; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_d2i_DSA_PUBKEY_fp"] - pub fn d2i_DSA_PUBKEY_fp(fp: *mut FILE, dsa: *mut *mut DSA) -> *mut DSA; + #[link_name = "\u{1}aws_lc_0_21_0_EVP_PKEY2PKCS8"] + pub fn EVP_PKEY2PKCS8(pkey: *const EVP_PKEY) -> *mut PKCS8_PRIV_KEY_INFO; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_d2i_DSAPrivateKey_fp"] - pub fn d2i_DSAPrivateKey_fp(fp: *mut FILE, dsa: *mut *mut DSA) -> *mut DSA; + #[link_name = "\u{1}aws_lc_0_21_0_X509_SIG_it"] + pub static X509_SIG_it: ASN1_ITEM; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_d2i_EC_PUBKEY_fp"] - pub fn d2i_EC_PUBKEY_fp(fp: *mut FILE, eckey: *mut *mut EC_KEY) -> *mut EC_KEY; + #[link_name = "\u{1}aws_lc_0_21_0_X509_SIG_new"] + pub fn X509_SIG_new() -> *mut X509_SIG; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_d2i_ECPrivateKey_fp"] - pub fn d2i_ECPrivateKey_fp(fp: *mut FILE, eckey: *mut *mut EC_KEY) -> *mut EC_KEY; + #[link_name = "\u{1}aws_lc_0_21_0_X509_SIG_free"] + pub fn X509_SIG_free(key: *mut X509_SIG); } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_d2i_PKCS8_fp"] - pub fn d2i_PKCS8_fp(fp: *mut FILE, p8: *mut *mut X509_SIG) -> *mut X509_SIG; + #[link_name = "\u{1}aws_lc_0_21_0_d2i_X509_SIG"] + pub fn d2i_X509_SIG( + out: *mut *mut X509_SIG, + inp: *mut *const u8, + len: ::std::os::raw::c_long, + ) -> *mut X509_SIG; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_d2i_PKCS8_PRIV_KEY_INFO_fp"] - pub fn d2i_PKCS8_PRIV_KEY_INFO_fp( - fp: *mut FILE, - p8inf: *mut *mut PKCS8_PRIV_KEY_INFO, - ) -> *mut PKCS8_PRIV_KEY_INFO; + #[link_name = "\u{1}aws_lc_0_21_0_i2d_X509_SIG"] + pub fn i2d_X509_SIG(sig: *const X509_SIG, outp: *mut *mut u8) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_d2i_PrivateKey_fp"] - pub fn d2i_PrivateKey_fp(fp: *mut FILE, a: *mut *mut EVP_PKEY) -> *mut EVP_PKEY; + #[link_name = "\u{1}aws_lc_0_21_0_X509_SIG_get0"] + pub fn X509_SIG_get0( + sig: *const X509_SIG, + out_alg: *mut *const X509_ALGOR, + out_digest: *mut *const ASN1_OCTET_STRING, + ); } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_d2i_PUBKEY_fp"] - pub fn d2i_PUBKEY_fp(fp: *mut FILE, a: *mut *mut EVP_PKEY) -> *mut EVP_PKEY; + #[link_name = "\u{1}aws_lc_0_21_0_X509_SIG_getm"] + pub fn X509_SIG_getm( + sig: *mut X509_SIG, + out_alg: *mut *mut X509_ALGOR, + out_digest: *mut *mut ASN1_OCTET_STRING, + ); } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_i2d_X509_fp"] - pub fn i2d_X509_fp(fp: *mut FILE, x509: *mut X509) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_0_21_0_X509_print_ex"] + pub fn X509_print_ex( + bp: *mut BIO, + x: *mut X509, + nmflag: ::std::os::raw::c_ulong, + cflag: ::std::os::raw::c_ulong, + ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_i2d_X509_CRL_fp"] - pub fn i2d_X509_CRL_fp(fp: *mut FILE, crl: *mut X509_CRL) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_0_21_0_X509_print_ex_fp"] + pub fn X509_print_ex_fp( + fp: *mut FILE, + x: *mut X509, + nmflag: ::std::os::raw::c_ulong, + cflag: ::std::os::raw::c_ulong, + ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_i2d_X509_REQ_fp"] - pub fn i2d_X509_REQ_fp(fp: *mut FILE, req: *mut X509_REQ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_0_21_0_X509_print"] + pub fn X509_print(bp: *mut BIO, x: *mut X509) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_i2d_RSAPrivateKey_fp"] - pub fn i2d_RSAPrivateKey_fp(fp: *mut FILE, rsa: *mut RSA) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_0_21_0_X509_print_fp"] + pub fn X509_print_fp(fp: *mut FILE, x: *mut X509) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_i2d_RSAPublicKey_fp"] - pub fn i2d_RSAPublicKey_fp(fp: *mut FILE, rsa: *mut RSA) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_0_21_0_X509_CRL_print"] + pub fn X509_CRL_print(bp: *mut BIO, x: *mut X509_CRL) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_i2d_RSA_PUBKEY_fp"] - pub fn i2d_RSA_PUBKEY_fp(fp: *mut FILE, rsa: *mut RSA) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_0_21_0_X509_CRL_print_fp"] + pub fn X509_CRL_print_fp(fp: *mut FILE, x: *mut X509_CRL) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_i2d_DSA_PUBKEY_fp"] - pub fn i2d_DSA_PUBKEY_fp(fp: *mut FILE, dsa: *mut DSA) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_0_21_0_X509_REQ_print_ex"] + pub fn X509_REQ_print_ex( + bp: *mut BIO, + x: *mut X509_REQ, + nmflag: ::std::os::raw::c_ulong, + cflag: ::std::os::raw::c_ulong, + ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_i2d_DSAPrivateKey_fp"] - pub fn i2d_DSAPrivateKey_fp(fp: *mut FILE, dsa: *mut DSA) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_0_21_0_X509_REQ_print"] + pub fn X509_REQ_print(bp: *mut BIO, req: *mut X509_REQ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_i2d_EC_PUBKEY_fp"] - pub fn i2d_EC_PUBKEY_fp(fp: *mut FILE, eckey: *mut EC_KEY) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_0_21_0_X509_REQ_print_fp"] + pub fn X509_REQ_print_fp(fp: *mut FILE, req: *mut X509_REQ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_i2d_ECPrivateKey_fp"] - pub fn i2d_ECPrivateKey_fp(fp: *mut FILE, eckey: *mut EC_KEY) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_0_21_0_X509_NAME_print_ex"] + pub fn X509_NAME_print_ex( + out: *mut BIO, + nm: *const X509_NAME, + indent: ::std::os::raw::c_int, + flags: ::std::os::raw::c_ulong, + ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_i2d_PKCS8_fp"] - pub fn i2d_PKCS8_fp(fp: *mut FILE, p8: *mut X509_SIG) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_0_21_0_X509_NAME_print"] + pub fn X509_NAME_print( + bp: *mut BIO, + name: *const X509_NAME, + obase: ::std::os::raw::c_int, + ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_i2d_PKCS8_PRIV_KEY_INFO_fp"] - pub fn i2d_PKCS8_PRIV_KEY_INFO_fp( + #[link_name = "\u{1}aws_lc_0_21_0_X509_NAME_oneline"] + pub fn X509_NAME_oneline( + name: *const X509_NAME, + buf: *mut ::std::os::raw::c_char, + size: ::std::os::raw::c_int, + ) -> *mut ::std::os::raw::c_char; +} +extern "C" { + #[link_name = "\u{1}aws_lc_0_21_0_X509_NAME_print_ex_fp"] + pub fn X509_NAME_print_ex_fp( fp: *mut FILE, - p8inf: *mut PKCS8_PRIV_KEY_INFO, + nm: *const X509_NAME, + indent: ::std::os::raw::c_int, + flags: ::std::os::raw::c_ulong, ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_i2d_PKCS8PrivateKeyInfo_fp"] - pub fn i2d_PKCS8PrivateKeyInfo_fp(fp: *mut FILE, key: *mut EVP_PKEY) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_0_21_0_X509_signature_dump"] + pub fn X509_signature_dump( + bio: *mut BIO, + sig: *const ASN1_STRING, + indent: ::std::os::raw::c_int, + ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_i2d_PrivateKey_fp"] - pub fn i2d_PrivateKey_fp(fp: *mut FILE, pkey: *mut EVP_PKEY) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_0_21_0_X509_signature_print"] + pub fn X509_signature_print( + bio: *mut BIO, + alg: *const X509_ALGOR, + sig: *const ASN1_STRING, + ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_i2d_PUBKEY_fp"] - pub fn i2d_PUBKEY_fp(fp: *mut FILE, pkey: *mut EVP_PKEY) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_0_21_0_X509V3_EXT_print"] + pub fn X509V3_EXT_print( + out: *mut BIO, + ext: *const X509_EXTENSION, + flag: ::std::os::raw::c_ulong, + indent: ::std::os::raw::c_int, + ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_X509_find_by_issuer_and_serial"] - pub fn X509_find_by_issuer_and_serial( - sk: *const stack_st_X509, - name: *mut X509_NAME, - serial: *const ASN1_INTEGER, - ) -> *mut X509; + #[link_name = "\u{1}aws_lc_0_21_0_X509V3_EXT_print_fp"] + pub fn X509V3_EXT_print_fp( + out: *mut FILE, + ext: *const X509_EXTENSION, + flag: ::std::os::raw::c_int, + indent: ::std::os::raw::c_int, + ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_X509_find_by_subject"] - pub fn X509_find_by_subject(sk: *const stack_st_X509, name: *mut X509_NAME) -> *mut X509; + #[link_name = "\u{1}aws_lc_0_21_0_X509V3_extensions_print"] + pub fn X509V3_extensions_print( + out: *mut BIO, + title: *const ::std::os::raw::c_char, + exts: *const stack_st_X509_EXTENSION, + flag: ::std::os::raw::c_ulong, + indent: ::std::os::raw::c_int, + ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_X509_cmp_time"] - pub fn X509_cmp_time(s: *const ASN1_TIME, t: *const time_t) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_0_21_0_GENERAL_NAME_print"] + pub fn GENERAL_NAME_print(out: *mut BIO, gen: *const GENERAL_NAME) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_X509_cmp_time_posix"] - pub fn X509_cmp_time_posix(s: *const ASN1_TIME, t: i64) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_0_21_0_X509_pubkey_digest"] + pub fn X509_pubkey_digest( + x509: *const X509, + md: *const EVP_MD, + out: *mut u8, + out_len: *mut ::std::os::raw::c_uint, + ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_X509_cmp_current_time"] - pub fn X509_cmp_current_time(s: *const ASN1_TIME) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_0_21_0_X509_digest"] + pub fn X509_digest( + x509: *const X509, + md: *const EVP_MD, + out: *mut u8, + out_len: *mut ::std::os::raw::c_uint, + ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_X509_time_adj"] - pub fn X509_time_adj( - s: *mut ASN1_TIME, - offset_sec: ::std::os::raw::c_long, - t: *const time_t, - ) -> *mut ASN1_TIME; + #[link_name = "\u{1}aws_lc_0_21_0_X509_CRL_digest"] + pub fn X509_CRL_digest( + crl: *const X509_CRL, + md: *const EVP_MD, + out: *mut u8, + out_len: *mut ::std::os::raw::c_uint, + ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_X509_time_adj_ex"] - pub fn X509_time_adj_ex( - s: *mut ASN1_TIME, - offset_day: ::std::os::raw::c_int, - offset_sec: ::std::os::raw::c_long, - t: *const time_t, - ) -> *mut ASN1_TIME; + #[link_name = "\u{1}aws_lc_0_21_0_X509_REQ_digest"] + pub fn X509_REQ_digest( + req: *const X509_REQ, + md: *const EVP_MD, + out: *mut u8, + out_len: *mut ::std::os::raw::c_uint, + ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_X509_gmtime_adj"] - pub fn X509_gmtime_adj(s: *mut ASN1_TIME, offset_sec: ::std::os::raw::c_long) - -> *mut ASN1_TIME; + #[link_name = "\u{1}aws_lc_0_21_0_X509_NAME_digest"] + pub fn X509_NAME_digest( + name: *const X509_NAME, + md: *const EVP_MD, + out: *mut u8, + out_len: *mut ::std::os::raw::c_uint, + ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_X509_issuer_name_cmp"] - pub fn X509_issuer_name_cmp(a: *const X509, b: *const X509) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_0_21_0_d2i_X509_bio"] + pub fn d2i_X509_bio(bp: *mut BIO, x509: *mut *mut X509) -> *mut X509; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_X509_subject_name_cmp"] - pub fn X509_subject_name_cmp(a: *const X509, b: *const X509) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_0_21_0_d2i_X509_CRL_bio"] + pub fn d2i_X509_CRL_bio(bp: *mut BIO, crl: *mut *mut X509_CRL) -> *mut X509_CRL; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_X509_CRL_cmp"] - pub fn X509_CRL_cmp(a: *const X509_CRL, b: *const X509_CRL) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_0_21_0_d2i_X509_REQ_bio"] + pub fn d2i_X509_REQ_bio(bp: *mut BIO, req: *mut *mut X509_REQ) -> *mut X509_REQ; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_X509_issuer_name_hash"] - pub fn X509_issuer_name_hash(x509: *mut X509) -> u32; + #[link_name = "\u{1}aws_lc_0_21_0_d2i_RSAPrivateKey_bio"] + pub fn d2i_RSAPrivateKey_bio(bp: *mut BIO, rsa: *mut *mut RSA) -> *mut RSA; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_X509_subject_name_hash"] - pub fn X509_subject_name_hash(x509: *mut X509) -> u32; + #[link_name = "\u{1}aws_lc_0_21_0_d2i_RSAPublicKey_bio"] + pub fn d2i_RSAPublicKey_bio(bp: *mut BIO, rsa: *mut *mut RSA) -> *mut RSA; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_X509_issuer_name_hash_old"] - pub fn X509_issuer_name_hash_old(x509: *mut X509) -> u32; + #[link_name = "\u{1}aws_lc_0_21_0_d2i_RSA_PUBKEY_bio"] + pub fn d2i_RSA_PUBKEY_bio(bp: *mut BIO, rsa: *mut *mut RSA) -> *mut RSA; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_X509_subject_name_hash_old"] - pub fn X509_subject_name_hash_old(x509: *mut X509) -> u32; + #[link_name = "\u{1}aws_lc_0_21_0_d2i_DSA_PUBKEY_bio"] + pub fn d2i_DSA_PUBKEY_bio(bp: *mut BIO, dsa: *mut *mut DSA) -> *mut DSA; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_X509_get_ex_new_index"] - pub fn X509_get_ex_new_index( - argl: ::std::os::raw::c_long, - argp: *mut ::std::os::raw::c_void, - unused: *mut CRYPTO_EX_unused, - dup_unused: CRYPTO_EX_dup, - free_func: CRYPTO_EX_free, - ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_0_21_0_d2i_DSAPrivateKey_bio"] + pub fn d2i_DSAPrivateKey_bio(bp: *mut BIO, dsa: *mut *mut DSA) -> *mut DSA; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_X509_set_ex_data"] - pub fn X509_set_ex_data( - r: *mut X509, - idx: ::std::os::raw::c_int, - arg: *mut ::std::os::raw::c_void, - ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_0_21_0_d2i_EC_PUBKEY_bio"] + pub fn d2i_EC_PUBKEY_bio(bp: *mut BIO, eckey: *mut *mut EC_KEY) -> *mut EC_KEY; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_X509_get_ex_data"] - pub fn X509_get_ex_data( - r: *mut X509, - idx: ::std::os::raw::c_int, - ) -> *mut ::std::os::raw::c_void; + #[link_name = "\u{1}aws_lc_0_21_0_d2i_ECPrivateKey_bio"] + pub fn d2i_ECPrivateKey_bio(bp: *mut BIO, eckey: *mut *mut EC_KEY) -> *mut EC_KEY; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_X509_STORE_CTX_get_ex_new_index"] - pub fn X509_STORE_CTX_get_ex_new_index( - argl: ::std::os::raw::c_long, - argp: *mut ::std::os::raw::c_void, - unused: *mut CRYPTO_EX_unused, - dup_unused: CRYPTO_EX_dup, - free_func: CRYPTO_EX_free, - ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_0_21_0_d2i_PKCS8_bio"] + pub fn d2i_PKCS8_bio(bp: *mut BIO, p8: *mut *mut X509_SIG) -> *mut X509_SIG; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_X509_STORE_CTX_set_ex_data"] - pub fn X509_STORE_CTX_set_ex_data( - ctx: *mut X509_STORE_CTX, - idx: ::std::os::raw::c_int, - data: *mut ::std::os::raw::c_void, - ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_0_21_0_d2i_PKCS8_PRIV_KEY_INFO_bio"] + pub fn d2i_PKCS8_PRIV_KEY_INFO_bio( + bp: *mut BIO, + p8inf: *mut *mut PKCS8_PRIV_KEY_INFO, + ) -> *mut PKCS8_PRIV_KEY_INFO; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_X509_STORE_CTX_get_ex_data"] - pub fn X509_STORE_CTX_get_ex_data( - ctx: *mut X509_STORE_CTX, - idx: ::std::os::raw::c_int, - ) -> *mut ::std::os::raw::c_void; + #[link_name = "\u{1}aws_lc_0_21_0_d2i_PUBKEY_bio"] + pub fn d2i_PUBKEY_bio(bp: *mut BIO, a: *mut *mut EVP_PKEY) -> *mut EVP_PKEY; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_X509_STORE_get_ex_new_index"] - pub fn X509_STORE_get_ex_new_index( - argl: ::std::os::raw::c_long, - argp: *mut ::std::os::raw::c_void, - unused: *mut CRYPTO_EX_unused, - dup_unused: CRYPTO_EX_dup, - free_func: CRYPTO_EX_free, - ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_0_21_0_d2i_DHparams_bio"] + pub fn d2i_DHparams_bio(bp: *mut BIO, dh: *mut *mut DH) -> *mut DH; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_X509_STORE_set_ex_data"] - pub fn X509_STORE_set_ex_data( - ctx: *mut X509_STORE, - idx: ::std::os::raw::c_int, - data: *mut ::std::os::raw::c_void, - ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_0_21_0_d2i_PrivateKey_bio"] + pub fn d2i_PrivateKey_bio(bp: *mut BIO, a: *mut *mut EVP_PKEY) -> *mut EVP_PKEY; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_X509_STORE_get_ex_data"] - pub fn X509_STORE_get_ex_data( - ctx: *mut X509_STORE, - idx: ::std::os::raw::c_int, - ) -> *mut ::std::os::raw::c_void; + #[link_name = "\u{1}aws_lc_0_21_0_i2d_X509_bio"] + pub fn i2d_X509_bio(bp: *mut BIO, x509: *mut X509) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_ASN1_digest"] - pub fn ASN1_digest( - i2d: i2d_of_void, - type_: *const EVP_MD, - data: *mut ::std::os::raw::c_char, - md: *mut ::std::os::raw::c_uchar, - len: *mut ::std::os::raw::c_uint, - ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_0_21_0_i2d_X509_CRL_bio"] + pub fn i2d_X509_CRL_bio(bp: *mut BIO, crl: *mut X509_CRL) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_ASN1_item_digest"] - pub fn ASN1_item_digest( - it: *const ASN1_ITEM, - type_: *const EVP_MD, - data: *mut ::std::os::raw::c_void, - md: *mut ::std::os::raw::c_uchar, - len: *mut ::std::os::raw::c_uint, - ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_0_21_0_i2d_X509_REQ_bio"] + pub fn i2d_X509_REQ_bio(bp: *mut BIO, req: *mut X509_REQ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_ASN1_item_verify"] - pub fn ASN1_item_verify( - it: *const ASN1_ITEM, - algor1: *const X509_ALGOR, - signature: *const ASN1_BIT_STRING, - data: *mut ::std::os::raw::c_void, - pkey: *mut EVP_PKEY, - ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_0_21_0_i2d_RSAPrivateKey_bio"] + pub fn i2d_RSAPrivateKey_bio(bp: *mut BIO, rsa: *mut RSA) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_ASN1_item_sign"] - pub fn ASN1_item_sign( - it: *const ASN1_ITEM, - algor1: *mut X509_ALGOR, - algor2: *mut X509_ALGOR, - signature: *mut ASN1_BIT_STRING, - data: *mut ::std::os::raw::c_void, - pkey: *mut EVP_PKEY, - type_: *const EVP_MD, - ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_0_21_0_i2d_RSAPublicKey_bio"] + pub fn i2d_RSAPublicKey_bio(bp: *mut BIO, rsa: *mut RSA) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_ASN1_item_sign_ctx"] - pub fn ASN1_item_sign_ctx( - it: *const ASN1_ITEM, - algor1: *mut X509_ALGOR, - algor2: *mut X509_ALGOR, - signature: *mut ASN1_BIT_STRING, - asn: *mut ::std::os::raw::c_void, - ctx: *mut EVP_MD_CTX, - ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_0_21_0_i2d_RSA_PUBKEY_bio"] + pub fn i2d_RSA_PUBKEY_bio(bp: *mut BIO, rsa: *mut RSA) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_X509_supported_extension"] - pub fn X509_supported_extension(ex: *const X509_EXTENSION) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_0_21_0_i2d_DSA_PUBKEY_bio"] + pub fn i2d_DSA_PUBKEY_bio(bp: *mut BIO, dsa: *mut DSA) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_X509_check_ca"] - pub fn X509_check_ca(x509: *mut X509) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_0_21_0_i2d_DSAPrivateKey_bio"] + pub fn i2d_DSAPrivateKey_bio(bp: *mut BIO, dsa: *mut DSA) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_X509_check_issued"] - pub fn X509_check_issued(issuer: *mut X509, subject: *mut X509) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_0_21_0_i2d_EC_PUBKEY_bio"] + pub fn i2d_EC_PUBKEY_bio(bp: *mut BIO, eckey: *mut EC_KEY) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_NAME_CONSTRAINTS_check"] - pub fn NAME_CONSTRAINTS_check( - x509: *mut X509, - nc: *mut NAME_CONSTRAINTS, - ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_0_21_0_i2d_ECPrivateKey_bio"] + pub fn i2d_ECPrivateKey_bio(bp: *mut BIO, eckey: *mut EC_KEY) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_X509_check_host"] - pub fn X509_check_host( - x509: *const X509, - chk: *const ::std::os::raw::c_char, - chklen: usize, - flags: ::std::os::raw::c_uint, - out_peername: *mut *mut ::std::os::raw::c_char, - ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_0_21_0_i2d_PKCS8_bio"] + pub fn i2d_PKCS8_bio(bp: *mut BIO, p8: *mut X509_SIG) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_X509_check_email"] - pub fn X509_check_email( - x509: *const X509, - chk: *const ::std::os::raw::c_char, - chklen: usize, - flags: ::std::os::raw::c_uint, + #[link_name = "\u{1}aws_lc_0_21_0_i2d_PKCS8_PRIV_KEY_INFO_bio"] + pub fn i2d_PKCS8_PRIV_KEY_INFO_bio( + bp: *mut BIO, + p8inf: *mut PKCS8_PRIV_KEY_INFO, ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_X509_check_ip"] - pub fn X509_check_ip( - x509: *const X509, - chk: *const u8, - chklen: usize, - flags: ::std::os::raw::c_uint, - ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_0_21_0_i2d_PrivateKey_bio"] + pub fn i2d_PrivateKey_bio(bp: *mut BIO, pkey: *mut EVP_PKEY) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_X509_check_ip_asc"] - pub fn X509_check_ip_asc( - x509: *const X509, - ipasc: *const ::std::os::raw::c_char, - flags: ::std::os::raw::c_uint, - ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_0_21_0_i2d_PUBKEY_bio"] + pub fn i2d_PUBKEY_bio(bp: *mut BIO, pkey: *mut EVP_PKEY) -> ::std::os::raw::c_int; } -#[repr(C)] -#[derive(Debug, Copy, Clone, PartialEq, Eq)] -pub struct private_key_st { - pub dec_pkey: *mut EVP_PKEY, +extern "C" { + #[link_name = "\u{1}aws_lc_0_21_0_i2d_DHparams_bio"] + pub fn i2d_DHparams_bio(bp: *mut BIO, dh: *const DH) -> ::std::os::raw::c_int; } -#[test] -fn bindgen_test_layout_private_key_st() { - const UNINIT: ::std::mem::MaybeUninit = ::std::mem::MaybeUninit::uninit(); - let ptr = UNINIT.as_ptr(); - assert_eq!( - ::std::mem::size_of::(), - 8usize, - concat!("Size of: ", stringify!(private_key_st)) - ); - assert_eq!( - ::std::mem::align_of::(), - 8usize, - concat!("Alignment of ", stringify!(private_key_st)) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).dec_pkey) as usize - ptr as usize }, - 0usize, - concat!( - "Offset of field: ", - stringify!(private_key_st), - "::", - stringify!(dec_pkey) - ) - ); +extern "C" { + #[link_name = "\u{1}aws_lc_0_21_0_i2d_PKCS8PrivateKeyInfo_bio"] + pub fn i2d_PKCS8PrivateKeyInfo_bio(bp: *mut BIO, key: *mut EVP_PKEY) -> ::std::os::raw::c_int; } -impl Default for private_key_st { - fn default() -> Self { - let mut s = ::std::mem::MaybeUninit::::uninit(); - unsafe { - ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() - } - } +extern "C" { + #[link_name = "\u{1}aws_lc_0_21_0_d2i_X509_fp"] + pub fn d2i_X509_fp(fp: *mut FILE, x509: *mut *mut X509) -> *mut X509; } -#[repr(C)] -#[derive(Debug, Copy, Clone, PartialEq, Eq)] -pub struct X509_info_st { - pub x509: *mut X509, - pub crl: *mut X509_CRL, - pub x_pkey: *mut X509_PKEY, - pub enc_cipher: EVP_CIPHER_INFO, - pub enc_len: ::std::os::raw::c_int, - pub enc_data: *mut ::std::os::raw::c_char, +extern "C" { + #[link_name = "\u{1}aws_lc_0_21_0_d2i_X509_CRL_fp"] + pub fn d2i_X509_CRL_fp(fp: *mut FILE, crl: *mut *mut X509_CRL) -> *mut X509_CRL; } -#[test] -fn bindgen_test_layout_X509_info_st() { - const UNINIT: ::std::mem::MaybeUninit = ::std::mem::MaybeUninit::uninit(); - let ptr = UNINIT.as_ptr(); - assert_eq!( - ::std::mem::size_of::(), - 64usize, - concat!("Size of: ", stringify!(X509_info_st)) - ); - assert_eq!( - ::std::mem::align_of::(), - 8usize, - concat!("Alignment of ", stringify!(X509_info_st)) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).x509) as usize - ptr as usize }, - 0usize, - concat!( - "Offset of field: ", - stringify!(X509_info_st), - "::", - stringify!(x509) - ) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).crl) as usize - ptr as usize }, - 8usize, - concat!( - "Offset of field: ", - stringify!(X509_info_st), - "::", - stringify!(crl) - ) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).x_pkey) as usize - ptr as usize }, - 16usize, - concat!( - "Offset of field: ", - stringify!(X509_info_st), - "::", - stringify!(x_pkey) - ) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).enc_cipher) as usize - ptr as usize }, - 24usize, - concat!( - "Offset of field: ", - stringify!(X509_info_st), - "::", - stringify!(enc_cipher) - ) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).enc_len) as usize - ptr as usize }, - 48usize, - concat!( - "Offset of field: ", - stringify!(X509_info_st), - "::", - stringify!(enc_len) - ) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).enc_data) as usize - ptr as usize }, - 56usize, - concat!( - "Offset of field: ", - stringify!(X509_info_st), - "::", - stringify!(enc_data) - ) - ); +extern "C" { + #[link_name = "\u{1}aws_lc_0_21_0_d2i_X509_REQ_fp"] + pub fn d2i_X509_REQ_fp(fp: *mut FILE, req: *mut *mut X509_REQ) -> *mut X509_REQ; } -impl Default for X509_info_st { - fn default() -> Self { - let mut s = ::std::mem::MaybeUninit::::uninit(); - unsafe { - ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() - } - } +extern "C" { + #[link_name = "\u{1}aws_lc_0_21_0_d2i_RSAPrivateKey_fp"] + pub fn d2i_RSAPrivateKey_fp(fp: *mut FILE, rsa: *mut *mut RSA) -> *mut RSA; } -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct stack_st_X509_INFO { - _unused: [u8; 0], +extern "C" { + #[link_name = "\u{1}aws_lc_0_21_0_d2i_RSAPublicKey_fp"] + pub fn d2i_RSAPublicKey_fp(fp: *mut FILE, rsa: *mut *mut RSA) -> *mut RSA; } -pub type sk_X509_INFO_free_func = ::std::option::Option; -pub type sk_X509_INFO_copy_func = - ::std::option::Option *mut X509_INFO>; -pub type sk_X509_INFO_cmp_func = ::std::option::Option< - unsafe extern "C" fn( - arg1: *const *const X509_INFO, - arg2: *const *const X509_INFO, - ) -> ::std::os::raw::c_int, ->; -pub type sk_X509_INFO_delete_if_func = ::std::option::Option< - unsafe extern "C" fn( - arg1: *mut X509_INFO, - arg2: *mut ::std::os::raw::c_void, - ) -> ::std::os::raw::c_int, ->; extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_X509_INFO_free"] - pub fn X509_INFO_free(info: *mut X509_INFO); -} -#[repr(C)] -#[derive(Debug, Copy, Clone, PartialEq, Eq)] -pub struct v3_ext_ctx { - pub flags: ::std::os::raw::c_int, - pub issuer_cert: *const X509, - pub subject_cert: *const X509, - pub subject_req: *const X509_REQ, - pub crl: *const X509_CRL, - pub db: *const CONF, -} -#[test] -fn bindgen_test_layout_v3_ext_ctx() { - const UNINIT: ::std::mem::MaybeUninit = ::std::mem::MaybeUninit::uninit(); - let ptr = UNINIT.as_ptr(); - assert_eq!( - ::std::mem::size_of::(), - 48usize, - concat!("Size of: ", stringify!(v3_ext_ctx)) - ); - assert_eq!( - ::std::mem::align_of::(), - 8usize, - concat!("Alignment of ", stringify!(v3_ext_ctx)) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).flags) as usize - ptr as usize }, - 0usize, - concat!( - "Offset of field: ", - stringify!(v3_ext_ctx), - "::", - stringify!(flags) - ) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).issuer_cert) as usize - ptr as usize }, - 8usize, - concat!( - "Offset of field: ", - stringify!(v3_ext_ctx), - "::", - stringify!(issuer_cert) - ) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).subject_cert) as usize - ptr as usize }, - 16usize, - concat!( - "Offset of field: ", - stringify!(v3_ext_ctx), - "::", - stringify!(subject_cert) - ) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).subject_req) as usize - ptr as usize }, - 24usize, - concat!( - "Offset of field: ", - stringify!(v3_ext_ctx), - "::", - stringify!(subject_req) - ) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).crl) as usize - ptr as usize }, - 32usize, - concat!( - "Offset of field: ", - stringify!(v3_ext_ctx), - "::", - stringify!(crl) - ) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).db) as usize - ptr as usize }, - 40usize, - concat!( - "Offset of field: ", - stringify!(v3_ext_ctx), - "::", - stringify!(db) - ) - ); -} -impl Default for v3_ext_ctx { - fn default() -> Self { - let mut s = ::std::mem::MaybeUninit::::uninit(); - unsafe { - ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() - } - } + #[link_name = "\u{1}aws_lc_0_21_0_d2i_RSA_PUBKEY_fp"] + pub fn d2i_RSA_PUBKEY_fp(fp: *mut FILE, rsa: *mut *mut RSA) -> *mut RSA; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_X509V3_set_ctx"] - pub fn X509V3_set_ctx( - ctx: *mut X509V3_CTX, - issuer: *const X509, - subject: *const X509, - req: *const X509_REQ, - crl: *const X509_CRL, - flags: ::std::os::raw::c_int, - ); + #[link_name = "\u{1}aws_lc_0_21_0_d2i_DSA_PUBKEY_fp"] + pub fn d2i_DSA_PUBKEY_fp(fp: *mut FILE, dsa: *mut *mut DSA) -> *mut DSA; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_X509V3_set_nconf"] - pub fn X509V3_set_nconf(ctx: *mut X509V3_CTX, conf: *const CONF); + #[link_name = "\u{1}aws_lc_0_21_0_d2i_DSAPrivateKey_fp"] + pub fn d2i_DSAPrivateKey_fp(fp: *mut FILE, dsa: *mut *mut DSA) -> *mut DSA; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_X509V3_EXT_nconf"] - pub fn X509V3_EXT_nconf( - conf: *const CONF, - ctx: *const X509V3_CTX, - name: *const ::std::os::raw::c_char, - value: *const ::std::os::raw::c_char, - ) -> *mut X509_EXTENSION; + #[link_name = "\u{1}aws_lc_0_21_0_d2i_EC_PUBKEY_fp"] + pub fn d2i_EC_PUBKEY_fp(fp: *mut FILE, eckey: *mut *mut EC_KEY) -> *mut EC_KEY; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_X509V3_EXT_nconf_nid"] - pub fn X509V3_EXT_nconf_nid( - conf: *const CONF, - ctx: *const X509V3_CTX, - ext_nid: ::std::os::raw::c_int, - value: *const ::std::os::raw::c_char, - ) -> *mut X509_EXTENSION; + #[link_name = "\u{1}aws_lc_0_21_0_d2i_ECPrivateKey_fp"] + pub fn d2i_ECPrivateKey_fp(fp: *mut FILE, eckey: *mut *mut EC_KEY) -> *mut EC_KEY; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_X509V3_EXT_conf_nid"] - pub fn X509V3_EXT_conf_nid( - conf: *mut lhash_st_CONF_VALUE, - ctx: *const X509V3_CTX, - ext_nid: ::std::os::raw::c_int, - value: *const ::std::os::raw::c_char, - ) -> *mut X509_EXTENSION; + #[link_name = "\u{1}aws_lc_0_21_0_d2i_PKCS8_fp"] + pub fn d2i_PKCS8_fp(fp: *mut FILE, p8: *mut *mut X509_SIG) -> *mut X509_SIG; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_X509V3_EXT_add_nconf_sk"] - pub fn X509V3_EXT_add_nconf_sk( - conf: *const CONF, - ctx: *const X509V3_CTX, - section: *const ::std::os::raw::c_char, - sk: *mut *mut stack_st_X509_EXTENSION, - ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_0_21_0_d2i_PKCS8_PRIV_KEY_INFO_fp"] + pub fn d2i_PKCS8_PRIV_KEY_INFO_fp( + fp: *mut FILE, + p8inf: *mut *mut PKCS8_PRIV_KEY_INFO, + ) -> *mut PKCS8_PRIV_KEY_INFO; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_X509V3_EXT_add_nconf"] - pub fn X509V3_EXT_add_nconf( - conf: *const CONF, - ctx: *const X509V3_CTX, - section: *const ::std::os::raw::c_char, - cert: *mut X509, - ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_0_21_0_d2i_PrivateKey_fp"] + pub fn d2i_PrivateKey_fp(fp: *mut FILE, a: *mut *mut EVP_PKEY) -> *mut EVP_PKEY; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_X509V3_EXT_REQ_add_nconf"] - pub fn X509V3_EXT_REQ_add_nconf( - conf: *const CONF, - ctx: *const X509V3_CTX, - section: *const ::std::os::raw::c_char, - req: *mut X509_REQ, - ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_0_21_0_d2i_PUBKEY_fp"] + pub fn d2i_PUBKEY_fp(fp: *mut FILE, a: *mut *mut EVP_PKEY) -> *mut EVP_PKEY; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_X509V3_EXT_CRL_add_nconf"] - pub fn X509V3_EXT_CRL_add_nconf( - conf: *const CONF, - ctx: *const X509V3_CTX, - section: *const ::std::os::raw::c_char, - crl: *mut X509_CRL, - ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_0_21_0_i2d_X509_fp"] + pub fn i2d_X509_fp(fp: *mut FILE, x509: *mut X509) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_X509V3_EXT_conf"] - pub fn X509V3_EXT_conf( - conf: *mut lhash_st_CONF_VALUE, - ctx: *mut X509V3_CTX, - name: *const ::std::os::raw::c_char, - value: *const ::std::os::raw::c_char, - ) -> *mut X509_EXTENSION; + #[link_name = "\u{1}aws_lc_0_21_0_i2d_X509_CRL_fp"] + pub fn i2d_X509_CRL_fp(fp: *mut FILE, crl: *mut X509_CRL) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_i2s_ASN1_OCTET_STRING"] - pub fn i2s_ASN1_OCTET_STRING( - method: *const X509V3_EXT_METHOD, - oct: *const ASN1_OCTET_STRING, - ) -> *mut ::std::os::raw::c_char; + #[link_name = "\u{1}aws_lc_0_21_0_i2d_X509_REQ_fp"] + pub fn i2d_X509_REQ_fp(fp: *mut FILE, req: *mut X509_REQ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_s2i_ASN1_OCTET_STRING"] - pub fn s2i_ASN1_OCTET_STRING( - method: *const X509V3_EXT_METHOD, - ctx: *const X509V3_CTX, - str_: *const ::std::os::raw::c_char, - ) -> *mut ASN1_OCTET_STRING; + #[link_name = "\u{1}aws_lc_0_21_0_i2d_RSAPrivateKey_fp"] + pub fn i2d_RSAPrivateKey_fp(fp: *mut FILE, rsa: *mut RSA) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_i2s_ASN1_INTEGER"] - pub fn i2s_ASN1_INTEGER( - method: *const X509V3_EXT_METHOD, - aint: *const ASN1_INTEGER, - ) -> *mut ::std::os::raw::c_char; + #[link_name = "\u{1}aws_lc_0_21_0_i2d_RSAPublicKey_fp"] + pub fn i2d_RSAPublicKey_fp(fp: *mut FILE, rsa: *mut RSA) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_s2i_ASN1_INTEGER"] - pub fn s2i_ASN1_INTEGER( - method: *const X509V3_EXT_METHOD, - value: *const ::std::os::raw::c_char, - ) -> *mut ASN1_INTEGER; + #[link_name = "\u{1}aws_lc_0_21_0_i2d_RSA_PUBKEY_fp"] + pub fn i2d_RSA_PUBKEY_fp(fp: *mut FILE, rsa: *mut RSA) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_i2s_ASN1_ENUMERATED"] - pub fn i2s_ASN1_ENUMERATED( - method: *const X509V3_EXT_METHOD, - aint: *const ASN1_ENUMERATED, - ) -> *mut ::std::os::raw::c_char; + #[link_name = "\u{1}aws_lc_0_21_0_i2d_DSA_PUBKEY_fp"] + pub fn i2d_DSA_PUBKEY_fp(fp: *mut FILE, dsa: *mut DSA) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_X509V3_conf_free"] - pub fn X509V3_conf_free(val: *mut CONF_VALUE); + #[link_name = "\u{1}aws_lc_0_21_0_i2d_DSAPrivateKey_fp"] + pub fn i2d_DSAPrivateKey_fp(fp: *mut FILE, dsa: *mut DSA) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_i2v_GENERAL_NAME"] - pub fn i2v_GENERAL_NAME( - method: *const X509V3_EXT_METHOD, - gen: *const GENERAL_NAME, - ret: *mut stack_st_CONF_VALUE, - ) -> *mut stack_st_CONF_VALUE; + #[link_name = "\u{1}aws_lc_0_21_0_i2d_EC_PUBKEY_fp"] + pub fn i2d_EC_PUBKEY_fp(fp: *mut FILE, eckey: *mut EC_KEY) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_i2v_GENERAL_NAMES"] - pub fn i2v_GENERAL_NAMES( - method: *const X509V3_EXT_METHOD, - gen: *const GENERAL_NAMES, - extlist: *mut stack_st_CONF_VALUE, - ) -> *mut stack_st_CONF_VALUE; + #[link_name = "\u{1}aws_lc_0_21_0_i2d_ECPrivateKey_fp"] + pub fn i2d_ECPrivateKey_fp(fp: *mut FILE, eckey: *mut EC_KEY) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_a2i_IPADDRESS"] - pub fn a2i_IPADDRESS(ipasc: *const ::std::os::raw::c_char) -> *mut ASN1_OCTET_STRING; + #[link_name = "\u{1}aws_lc_0_21_0_i2d_PKCS8_fp"] + pub fn i2d_PKCS8_fp(fp: *mut FILE, p8: *mut X509_SIG) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_a2i_IPADDRESS_NC"] - pub fn a2i_IPADDRESS_NC(ipasc: *const ::std::os::raw::c_char) -> *mut ASN1_OCTET_STRING; + #[link_name = "\u{1}aws_lc_0_21_0_i2d_PKCS8_PRIV_KEY_INFO_fp"] + pub fn i2d_PKCS8_PRIV_KEY_INFO_fp( + fp: *mut FILE, + p8inf: *mut PKCS8_PRIV_KEY_INFO, + ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_X509_get_notBefore"] - pub fn X509_get_notBefore(x509: *const X509) -> *mut ASN1_TIME; + #[link_name = "\u{1}aws_lc_0_21_0_i2d_PKCS8PrivateKeyInfo_fp"] + pub fn i2d_PKCS8PrivateKeyInfo_fp(fp: *mut FILE, key: *mut EVP_PKEY) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_X509_get_notAfter"] - pub fn X509_get_notAfter(x509: *const X509) -> *mut ASN1_TIME; + #[link_name = "\u{1}aws_lc_0_21_0_i2d_PrivateKey_fp"] + pub fn i2d_PrivateKey_fp(fp: *mut FILE, pkey: *mut EVP_PKEY) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_X509_set_notBefore"] - pub fn X509_set_notBefore(x509: *mut X509, tm: *const ASN1_TIME) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_0_21_0_i2d_PUBKEY_fp"] + pub fn i2d_PUBKEY_fp(fp: *mut FILE, pkey: *mut EVP_PKEY) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_X509_set_notAfter"] - pub fn X509_set_notAfter(x509: *mut X509, tm: *const ASN1_TIME) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_0_21_0_X509_find_by_issuer_and_serial"] + pub fn X509_find_by_issuer_and_serial( + sk: *const stack_st_X509, + name: *mut X509_NAME, + serial: *const ASN1_INTEGER, + ) -> *mut X509; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_X509_CRL_get_lastUpdate"] - pub fn X509_CRL_get_lastUpdate(crl: *mut X509_CRL) -> *mut ASN1_TIME; + #[link_name = "\u{1}aws_lc_0_21_0_X509_find_by_subject"] + pub fn X509_find_by_subject(sk: *const stack_st_X509, name: *mut X509_NAME) -> *mut X509; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_X509_CRL_get_nextUpdate"] - pub fn X509_CRL_get_nextUpdate(crl: *mut X509_CRL) -> *mut ASN1_TIME; + #[link_name = "\u{1}aws_lc_0_21_0_X509_cmp_time"] + pub fn X509_cmp_time(s: *const ASN1_TIME, t: *const time_t) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_X509_get_serialNumber"] - pub fn X509_get_serialNumber(x509: *mut X509) -> *mut ASN1_INTEGER; + #[link_name = "\u{1}aws_lc_0_21_0_X509_cmp_time_posix"] + pub fn X509_cmp_time_posix(s: *const ASN1_TIME, t: i64) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_X509_NAME_get_text_by_OBJ"] - pub fn X509_NAME_get_text_by_OBJ( - name: *const X509_NAME, - obj: *const ASN1_OBJECT, - buf: *mut ::std::os::raw::c_char, - len: ::std::os::raw::c_int, - ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_0_21_0_X509_cmp_current_time"] + pub fn X509_cmp_current_time(s: *const ASN1_TIME) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_X509_NAME_get_text_by_NID"] - pub fn X509_NAME_get_text_by_NID( - name: *const X509_NAME, - nid: ::std::os::raw::c_int, - buf: *mut ::std::os::raw::c_char, - len: ::std::os::raw::c_int, - ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_0_21_0_X509_time_adj"] + pub fn X509_time_adj( + s: *mut ASN1_TIME, + offset_sec: ::std::os::raw::c_long, + t: *const time_t, + ) -> *mut ASN1_TIME; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_X509_STORE_CTX_get0_parent_ctx"] - pub fn X509_STORE_CTX_get0_parent_ctx(ctx: *mut X509_STORE_CTX) -> *mut X509_STORE_CTX; + #[link_name = "\u{1}aws_lc_0_21_0_X509_time_adj_ex"] + pub fn X509_time_adj_ex( + s: *mut ASN1_TIME, + offset_day: ::std::os::raw::c_int, + offset_sec: ::std::os::raw::c_long, + t: *const time_t, + ) -> *mut ASN1_TIME; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_X509_LOOKUP_free"] - pub fn X509_LOOKUP_free(ctx: *mut X509_LOOKUP); + #[link_name = "\u{1}aws_lc_0_21_0_X509_gmtime_adj"] + pub fn X509_gmtime_adj(s: *mut ASN1_TIME, offset_sec: ::std::os::raw::c_long) + -> *mut ASN1_TIME; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_X509_STORE_CTX_cleanup"] - pub fn X509_STORE_CTX_cleanup(ctx: *mut X509_STORE_CTX); + #[link_name = "\u{1}aws_lc_0_21_0_X509_issuer_name_cmp"] + pub fn X509_issuer_name_cmp(a: *const X509, b: *const X509) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_X509V3_add_standard_extensions"] - pub fn X509V3_add_standard_extensions() -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_0_21_0_X509_subject_name_cmp"] + pub fn X509_subject_name_cmp(a: *const X509, b: *const X509) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_X509V3_parse_list"] - pub fn X509V3_parse_list(line: *const ::std::os::raw::c_char) -> *mut stack_st_CONF_VALUE; + #[link_name = "\u{1}aws_lc_0_21_0_X509_CRL_cmp"] + pub fn X509_CRL_cmp(a: *const X509_CRL, b: *const X509_CRL) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_X509_STORE_CTX_get_chain"] - pub fn X509_STORE_CTX_get_chain(ctx: *mut X509_STORE_CTX) -> *mut stack_st_X509; + #[link_name = "\u{1}aws_lc_0_21_0_X509_issuer_name_hash"] + pub fn X509_issuer_name_hash(x509: *mut X509) -> u32; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_X509_STORE_CTX_trusted_stack"] - pub fn X509_STORE_CTX_trusted_stack(ctx: *mut X509_STORE_CTX, sk: *mut stack_st_X509); + #[link_name = "\u{1}aws_lc_0_21_0_X509_subject_name_hash"] + pub fn X509_subject_name_hash(x509: *mut X509) -> u32; } -pub type X509_STORE_CTX_verify_cb = ::std::option::Option< - unsafe extern "C" fn( - arg1: ::std::os::raw::c_int, - arg2: *mut X509_STORE_CTX, - ) -> ::std::os::raw::c_int, ->; extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_X509_STORE_CTX_set_verify_cb"] - pub fn X509_STORE_CTX_set_verify_cb( - ctx: *mut X509_STORE_CTX, - verify_cb: ::std::option::Option< - unsafe extern "C" fn( - ok: ::std::os::raw::c_int, - ctx: *mut X509_STORE_CTX, - ) -> ::std::os::raw::c_int, - >, - ); + #[link_name = "\u{1}aws_lc_0_21_0_X509_issuer_name_hash_old"] + pub fn X509_issuer_name_hash_old(x509: *mut X509) -> u32; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_X509_STORE_set_verify_cb"] - pub fn X509_STORE_set_verify_cb(store: *mut X509_STORE, verify_cb: X509_STORE_CTX_verify_cb); + #[link_name = "\u{1}aws_lc_0_21_0_X509_subject_name_hash_old"] + pub fn X509_subject_name_hash_old(x509: *mut X509) -> u32; } -pub type X509_STORE_CTX_get_crl_fn = ::std::option::Option< - unsafe extern "C" fn( - ctx: *mut X509_STORE_CTX, - crl: *mut *mut X509_CRL, - x: *mut X509, - ) -> ::std::os::raw::c_int, ->; -pub type X509_STORE_CTX_check_crl_fn = ::std::option::Option< - unsafe extern "C" fn(ctx: *mut X509_STORE_CTX, crl: *mut X509_CRL) -> ::std::os::raw::c_int, ->; extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_X509_STORE_set_get_crl"] - pub fn X509_STORE_set_get_crl(store: *mut X509_STORE, get_crl: X509_STORE_CTX_get_crl_fn); + #[link_name = "\u{1}aws_lc_0_21_0_X509_get_ex_new_index"] + pub fn X509_get_ex_new_index( + argl: ::std::os::raw::c_long, + argp: *mut ::std::os::raw::c_void, + unused: *mut CRYPTO_EX_unused, + dup_unused: CRYPTO_EX_dup, + free_func: CRYPTO_EX_free, + ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_X509_STORE_set_check_crl"] - pub fn X509_STORE_set_check_crl(store: *mut X509_STORE, check_crl: X509_STORE_CTX_check_crl_fn); + #[link_name = "\u{1}aws_lc_0_21_0_X509_set_ex_data"] + pub fn X509_set_ex_data( + r: *mut X509, + idx: ::std::os::raw::c_int, + arg: *mut ::std::os::raw::c_void, + ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_X509_STORE_CTX_set_chain"] - pub fn X509_STORE_CTX_set_chain(ctx: *mut X509_STORE_CTX, sk: *mut stack_st_X509); + #[link_name = "\u{1}aws_lc_0_21_0_X509_get_ex_data"] + pub fn X509_get_ex_data( + r: *mut X509, + idx: ::std::os::raw::c_int, + ) -> *mut ::std::os::raw::c_void; } -#[repr(C)] -#[derive(Debug, Copy, Clone, PartialEq, Eq)] -pub struct X509_algor_st { - pub algorithm: *mut ASN1_OBJECT, - pub parameter: *mut ASN1_TYPE, +extern "C" { + #[link_name = "\u{1}aws_lc_0_21_0_X509_STORE_CTX_get_ex_new_index"] + pub fn X509_STORE_CTX_get_ex_new_index( + argl: ::std::os::raw::c_long, + argp: *mut ::std::os::raw::c_void, + unused: *mut CRYPTO_EX_unused, + dup_unused: CRYPTO_EX_dup, + free_func: CRYPTO_EX_free, + ) -> ::std::os::raw::c_int; } -#[test] -fn bindgen_test_layout_X509_algor_st() { - const UNINIT: ::std::mem::MaybeUninit = ::std::mem::MaybeUninit::uninit(); - let ptr = UNINIT.as_ptr(); - assert_eq!( - ::std::mem::size_of::(), - 16usize, - concat!("Size of: ", stringify!(X509_algor_st)) - ); - assert_eq!( - ::std::mem::align_of::(), - 8usize, - concat!("Alignment of ", stringify!(X509_algor_st)) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).algorithm) as usize - ptr as usize }, - 0usize, - concat!( - "Offset of field: ", - stringify!(X509_algor_st), - "::", - stringify!(algorithm) - ) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).parameter) as usize - ptr as usize }, - 8usize, - concat!( - "Offset of field: ", - stringify!(X509_algor_st), - "::", - stringify!(parameter) - ) - ); +extern "C" { + #[link_name = "\u{1}aws_lc_0_21_0_X509_STORE_CTX_set_ex_data"] + pub fn X509_STORE_CTX_set_ex_data( + ctx: *mut X509_STORE_CTX, + idx: ::std::os::raw::c_int, + data: *mut ::std::os::raw::c_void, + ) -> ::std::os::raw::c_int; } -impl Default for X509_algor_st { - fn default() -> Self { - let mut s = ::std::mem::MaybeUninit::::uninit(); - unsafe { - ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() - } - } +extern "C" { + #[link_name = "\u{1}aws_lc_0_21_0_X509_STORE_CTX_get_ex_data"] + pub fn X509_STORE_CTX_get_ex_data( + ctx: *mut X509_STORE_CTX, + idx: ::std::os::raw::c_int, + ) -> *mut ::std::os::raw::c_void; } -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct stack_st_DIST_POINT { - _unused: [u8; 0], +extern "C" { + #[link_name = "\u{1}aws_lc_0_21_0_X509_STORE_get_ex_new_index"] + pub fn X509_STORE_get_ex_new_index( + argl: ::std::os::raw::c_long, + argp: *mut ::std::os::raw::c_void, + unused: *mut CRYPTO_EX_unused, + dup_unused: CRYPTO_EX_dup, + free_func: CRYPTO_EX_free, + ) -> ::std::os::raw::c_int; } -#[repr(C)] -#[derive(Debug, Copy, Clone, PartialEq, Eq)] -pub struct x509_trust_st { - pub trust: ::std::os::raw::c_int, - pub flags: ::std::os::raw::c_int, - pub check_trust: ::std::option::Option< - unsafe extern "C" fn( - arg1: *const X509_TRUST, - arg2: *mut X509, - arg3: ::std::os::raw::c_int, - ) -> ::std::os::raw::c_int, - >, - pub name: *mut ::std::os::raw::c_char, - pub arg1: ::std::os::raw::c_int, - pub arg2: *mut ::std::os::raw::c_void, +extern "C" { + #[link_name = "\u{1}aws_lc_0_21_0_X509_STORE_set_ex_data"] + pub fn X509_STORE_set_ex_data( + ctx: *mut X509_STORE, + idx: ::std::os::raw::c_int, + data: *mut ::std::os::raw::c_void, + ) -> ::std::os::raw::c_int; } -#[test] -fn bindgen_test_layout_x509_trust_st() { - const UNINIT: ::std::mem::MaybeUninit = ::std::mem::MaybeUninit::uninit(); - let ptr = UNINIT.as_ptr(); - assert_eq!( - ::std::mem::size_of::(), - 40usize, - concat!("Size of: ", stringify!(x509_trust_st)) - ); - assert_eq!( - ::std::mem::align_of::(), - 8usize, - concat!("Alignment of ", stringify!(x509_trust_st)) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).trust) as usize - ptr as usize }, +extern "C" { + #[link_name = "\u{1}aws_lc_0_21_0_X509_STORE_get_ex_data"] + pub fn X509_STORE_get_ex_data( + ctx: *mut X509_STORE, + idx: ::std::os::raw::c_int, + ) -> *mut ::std::os::raw::c_void; +} +extern "C" { + #[link_name = "\u{1}aws_lc_0_21_0_ASN1_digest"] + pub fn ASN1_digest( + i2d: i2d_of_void, + type_: *const EVP_MD, + data: *mut ::std::os::raw::c_char, + md: *mut ::std::os::raw::c_uchar, + len: *mut ::std::os::raw::c_uint, + ) -> ::std::os::raw::c_int; +} +extern "C" { + #[link_name = "\u{1}aws_lc_0_21_0_ASN1_item_digest"] + pub fn ASN1_item_digest( + it: *const ASN1_ITEM, + type_: *const EVP_MD, + data: *mut ::std::os::raw::c_void, + md: *mut ::std::os::raw::c_uchar, + len: *mut ::std::os::raw::c_uint, + ) -> ::std::os::raw::c_int; +} +extern "C" { + #[link_name = "\u{1}aws_lc_0_21_0_ASN1_item_verify"] + pub fn ASN1_item_verify( + it: *const ASN1_ITEM, + algor1: *const X509_ALGOR, + signature: *const ASN1_BIT_STRING, + data: *mut ::std::os::raw::c_void, + pkey: *mut EVP_PKEY, + ) -> ::std::os::raw::c_int; +} +extern "C" { + #[link_name = "\u{1}aws_lc_0_21_0_ASN1_item_sign"] + pub fn ASN1_item_sign( + it: *const ASN1_ITEM, + algor1: *mut X509_ALGOR, + algor2: *mut X509_ALGOR, + signature: *mut ASN1_BIT_STRING, + data: *mut ::std::os::raw::c_void, + pkey: *mut EVP_PKEY, + type_: *const EVP_MD, + ) -> ::std::os::raw::c_int; +} +extern "C" { + #[link_name = "\u{1}aws_lc_0_21_0_ASN1_item_sign_ctx"] + pub fn ASN1_item_sign_ctx( + it: *const ASN1_ITEM, + algor1: *mut X509_ALGOR, + algor2: *mut X509_ALGOR, + signature: *mut ASN1_BIT_STRING, + asn: *mut ::std::os::raw::c_void, + ctx: *mut EVP_MD_CTX, + ) -> ::std::os::raw::c_int; +} +extern "C" { + #[link_name = "\u{1}aws_lc_0_21_0_X509_supported_extension"] + pub fn X509_supported_extension(ex: *const X509_EXTENSION) -> ::std::os::raw::c_int; +} +extern "C" { + #[link_name = "\u{1}aws_lc_0_21_0_X509_check_ca"] + pub fn X509_check_ca(x509: *mut X509) -> ::std::os::raw::c_int; +} +extern "C" { + #[link_name = "\u{1}aws_lc_0_21_0_X509_check_issued"] + pub fn X509_check_issued(issuer: *mut X509, subject: *mut X509) -> ::std::os::raw::c_int; +} +extern "C" { + #[link_name = "\u{1}aws_lc_0_21_0_NAME_CONSTRAINTS_check"] + pub fn NAME_CONSTRAINTS_check( + x509: *mut X509, + nc: *mut NAME_CONSTRAINTS, + ) -> ::std::os::raw::c_int; +} +extern "C" { + #[link_name = "\u{1}aws_lc_0_21_0_X509_check_host"] + pub fn X509_check_host( + x509: *const X509, + chk: *const ::std::os::raw::c_char, + chklen: usize, + flags: ::std::os::raw::c_uint, + out_peername: *mut *mut ::std::os::raw::c_char, + ) -> ::std::os::raw::c_int; +} +extern "C" { + #[link_name = "\u{1}aws_lc_0_21_0_X509_check_email"] + pub fn X509_check_email( + x509: *const X509, + chk: *const ::std::os::raw::c_char, + chklen: usize, + flags: ::std::os::raw::c_uint, + ) -> ::std::os::raw::c_int; +} +extern "C" { + #[link_name = "\u{1}aws_lc_0_21_0_X509_check_ip"] + pub fn X509_check_ip( + x509: *const X509, + chk: *const u8, + chklen: usize, + flags: ::std::os::raw::c_uint, + ) -> ::std::os::raw::c_int; +} +extern "C" { + #[link_name = "\u{1}aws_lc_0_21_0_X509_check_ip_asc"] + pub fn X509_check_ip_asc( + x509: *const X509, + ipasc: *const ::std::os::raw::c_char, + flags: ::std::os::raw::c_uint, + ) -> ::std::os::raw::c_int; +} +extern "C" { + #[link_name = "\u{1}aws_lc_0_21_0_X509_STORE_CTX_get1_issuer"] + pub fn X509_STORE_CTX_get1_issuer( + out_issuer: *mut *mut X509, + ctx: *mut X509_STORE_CTX, + x509: *mut X509, + ) -> ::std::os::raw::c_int; +} +extern "C" { + #[link_name = "\u{1}aws_lc_0_21_0_X509_check_purpose"] + pub fn X509_check_purpose( + x509: *mut X509, + purpose: ::std::os::raw::c_int, + ca: ::std::os::raw::c_int, + ) -> ::std::os::raw::c_int; +} +extern "C" { + #[link_name = "\u{1}aws_lc_0_21_0_X509_check_trust"] + pub fn X509_check_trust( + x509: *mut X509, + id: ::std::os::raw::c_int, + flags: ::std::os::raw::c_int, + ) -> ::std::os::raw::c_int; +} +#[repr(C)] +#[derive(Debug, Copy, Clone, PartialEq, Eq)] +pub struct private_key_st { + pub dec_pkey: *mut EVP_PKEY, +} +#[test] +fn bindgen_test_layout_private_key_st() { + const UNINIT: ::std::mem::MaybeUninit = ::std::mem::MaybeUninit::uninit(); + let ptr = UNINIT.as_ptr(); + assert_eq!( + ::std::mem::size_of::(), + 8usize, + concat!("Size of: ", stringify!(private_key_st)) + ); + assert_eq!( + ::std::mem::align_of::(), + 8usize, + concat!("Alignment of ", stringify!(private_key_st)) + ); + assert_eq!( + unsafe { ::std::ptr::addr_of!((*ptr).dec_pkey) as usize - ptr as usize }, 0usize, concat!( "Offset of field: ", - stringify!(x509_trust_st), + stringify!(private_key_st), "::", - stringify!(trust) + stringify!(dec_pkey) ) ); +} +impl Default for private_key_st { + fn default() -> Self { + let mut s = ::std::mem::MaybeUninit::::uninit(); + unsafe { + ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); + s.assume_init() + } + } +} +#[repr(C)] +#[derive(Debug, Copy, Clone, PartialEq, Eq)] +pub struct X509_info_st { + pub x509: *mut X509, + pub crl: *mut X509_CRL, + pub x_pkey: *mut X509_PKEY, + pub enc_cipher: EVP_CIPHER_INFO, + pub enc_len: ::std::os::raw::c_int, + pub enc_data: *mut ::std::os::raw::c_char, +} +#[test] +fn bindgen_test_layout_X509_info_st() { + const UNINIT: ::std::mem::MaybeUninit = ::std::mem::MaybeUninit::uninit(); + let ptr = UNINIT.as_ptr(); assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).flags) as usize - ptr as usize }, - 4usize, + ::std::mem::size_of::(), + 64usize, + concat!("Size of: ", stringify!(X509_info_st)) + ); + assert_eq!( + ::std::mem::align_of::(), + 8usize, + concat!("Alignment of ", stringify!(X509_info_st)) + ); + assert_eq!( + unsafe { ::std::ptr::addr_of!((*ptr).x509) as usize - ptr as usize }, + 0usize, concat!( "Offset of field: ", - stringify!(x509_trust_st), + stringify!(X509_info_st), "::", - stringify!(flags) + stringify!(x509) ) ); assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).check_trust) as usize - ptr as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).crl) as usize - ptr as usize }, 8usize, concat!( "Offset of field: ", - stringify!(x509_trust_st), + stringify!(X509_info_st), "::", - stringify!(check_trust) + stringify!(crl) ) ); assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).name) as usize - ptr as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).x_pkey) as usize - ptr as usize }, 16usize, concat!( "Offset of field: ", - stringify!(x509_trust_st), + stringify!(X509_info_st), "::", - stringify!(name) + stringify!(x_pkey) ) ); assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).arg1) as usize - ptr as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).enc_cipher) as usize - ptr as usize }, 24usize, concat!( "Offset of field: ", - stringify!(x509_trust_st), + stringify!(X509_info_st), "::", - stringify!(arg1) + stringify!(enc_cipher) ) ); assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).arg2) as usize - ptr as usize }, - 32usize, + unsafe { ::std::ptr::addr_of!((*ptr).enc_len) as usize - ptr as usize }, + 48usize, concat!( "Offset of field: ", - stringify!(x509_trust_st), + stringify!(X509_info_st), "::", - stringify!(arg2) + stringify!(enc_len) + ) + ); + assert_eq!( + unsafe { ::std::ptr::addr_of!((*ptr).enc_data) as usize - ptr as usize }, + 56usize, + concat!( + "Offset of field: ", + stringify!(X509_info_st), + "::", + stringify!(enc_data) ) ); } -impl Default for x509_trust_st { +impl Default for X509_info_st { fn default() -> Self { let mut s = ::std::mem::MaybeUninit::::uninit(); unsafe { @@ -22803,609 +22600,801 @@ impl Default for x509_trust_st { } #[repr(C)] #[derive(Debug, Copy, Clone)] -pub struct stack_st_X509_TRUST { +pub struct stack_st_X509_INFO { _unused: [u8; 0], } -pub type sk_X509_TRUST_free_func = - ::std::option::Option; -pub type sk_X509_TRUST_copy_func = - ::std::option::Option *mut X509_TRUST>; -pub type sk_X509_TRUST_cmp_func = ::std::option::Option< +pub type sk_X509_INFO_free_func = ::std::option::Option; +pub type sk_X509_INFO_copy_func = + ::std::option::Option *mut X509_INFO>; +pub type sk_X509_INFO_cmp_func = ::std::option::Option< unsafe extern "C" fn( - arg1: *const *const X509_TRUST, - arg2: *const *const X509_TRUST, + arg1: *const *const X509_INFO, + arg2: *const *const X509_INFO, ) -> ::std::os::raw::c_int, >; -pub type sk_X509_TRUST_delete_if_func = ::std::option::Option< +pub type sk_X509_INFO_delete_if_func = ::std::option::Option< unsafe extern "C" fn( - arg1: *mut X509_TRUST, + arg1: *mut X509_INFO, arg2: *mut ::std::os::raw::c_void, ) -> ::std::os::raw::c_int, >; extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_X509_verify_cert_error_string"] - pub fn X509_verify_cert_error_string( - err: ::std::os::raw::c_long, - ) -> *const ::std::os::raw::c_char; + #[link_name = "\u{1}aws_lc_0_21_0_X509_INFO_free"] + pub fn X509_INFO_free(info: *mut X509_INFO); } -extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_X509_get_default_cert_area"] - pub fn X509_get_default_cert_area() -> *const ::std::os::raw::c_char; +#[repr(C)] +#[derive(Debug, Copy, Clone, PartialEq, Eq)] +pub struct v3_ext_ctx { + pub flags: ::std::os::raw::c_int, + pub issuer_cert: *const X509, + pub subject_cert: *const X509, + pub subject_req: *const X509_REQ, + pub crl: *const X509_CRL, + pub db: *const CONF, +} +#[test] +fn bindgen_test_layout_v3_ext_ctx() { + const UNINIT: ::std::mem::MaybeUninit = ::std::mem::MaybeUninit::uninit(); + let ptr = UNINIT.as_ptr(); + assert_eq!( + ::std::mem::size_of::(), + 48usize, + concat!("Size of: ", stringify!(v3_ext_ctx)) + ); + assert_eq!( + ::std::mem::align_of::(), + 8usize, + concat!("Alignment of ", stringify!(v3_ext_ctx)) + ); + assert_eq!( + unsafe { ::std::ptr::addr_of!((*ptr).flags) as usize - ptr as usize }, + 0usize, + concat!( + "Offset of field: ", + stringify!(v3_ext_ctx), + "::", + stringify!(flags) + ) + ); + assert_eq!( + unsafe { ::std::ptr::addr_of!((*ptr).issuer_cert) as usize - ptr as usize }, + 8usize, + concat!( + "Offset of field: ", + stringify!(v3_ext_ctx), + "::", + stringify!(issuer_cert) + ) + ); + assert_eq!( + unsafe { ::std::ptr::addr_of!((*ptr).subject_cert) as usize - ptr as usize }, + 16usize, + concat!( + "Offset of field: ", + stringify!(v3_ext_ctx), + "::", + stringify!(subject_cert) + ) + ); + assert_eq!( + unsafe { ::std::ptr::addr_of!((*ptr).subject_req) as usize - ptr as usize }, + 24usize, + concat!( + "Offset of field: ", + stringify!(v3_ext_ctx), + "::", + stringify!(subject_req) + ) + ); + assert_eq!( + unsafe { ::std::ptr::addr_of!((*ptr).crl) as usize - ptr as usize }, + 32usize, + concat!( + "Offset of field: ", + stringify!(v3_ext_ctx), + "::", + stringify!(crl) + ) + ); + assert_eq!( + unsafe { ::std::ptr::addr_of!((*ptr).db) as usize - ptr as usize }, + 40usize, + concat!( + "Offset of field: ", + stringify!(v3_ext_ctx), + "::", + stringify!(db) + ) + ); +} +impl Default for v3_ext_ctx { + fn default() -> Self { + let mut s = ::std::mem::MaybeUninit::::uninit(); + unsafe { + ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); + s.assume_init() + } + } } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_X509_get_default_cert_dir"] - pub fn X509_get_default_cert_dir() -> *const ::std::os::raw::c_char; + #[link_name = "\u{1}aws_lc_0_21_0_X509V3_set_ctx"] + pub fn X509V3_set_ctx( + ctx: *mut X509V3_CTX, + issuer: *const X509, + subject: *const X509, + req: *const X509_REQ, + crl: *const X509_CRL, + flags: ::std::os::raw::c_int, + ); } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_X509_get_default_cert_file"] - pub fn X509_get_default_cert_file() -> *const ::std::os::raw::c_char; + #[link_name = "\u{1}aws_lc_0_21_0_X509V3_set_nconf"] + pub fn X509V3_set_nconf(ctx: *mut X509V3_CTX, conf: *const CONF); } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_X509_get_default_cert_dir_env"] - pub fn X509_get_default_cert_dir_env() -> *const ::std::os::raw::c_char; + #[link_name = "\u{1}aws_lc_0_21_0_X509V3_EXT_nconf"] + pub fn X509V3_EXT_nconf( + conf: *const CONF, + ctx: *const X509V3_CTX, + name: *const ::std::os::raw::c_char, + value: *const ::std::os::raw::c_char, + ) -> *mut X509_EXTENSION; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_X509_get_default_cert_file_env"] - pub fn X509_get_default_cert_file_env() -> *const ::std::os::raw::c_char; + #[link_name = "\u{1}aws_lc_0_21_0_X509V3_EXT_nconf_nid"] + pub fn X509V3_EXT_nconf_nid( + conf: *const CONF, + ctx: *const X509V3_CTX, + ext_nid: ::std::os::raw::c_int, + value: *const ::std::os::raw::c_char, + ) -> *mut X509_EXTENSION; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_X509_get_default_private_dir"] - pub fn X509_get_default_private_dir() -> *const ::std::os::raw::c_char; + #[link_name = "\u{1}aws_lc_0_21_0_X509V3_EXT_conf_nid"] + pub fn X509V3_EXT_conf_nid( + conf: *mut lhash_st_CONF_VALUE, + ctx: *const X509V3_CTX, + ext_nid: ::std::os::raw::c_int, + value: *const ::std::os::raw::c_char, + ) -> *mut X509_EXTENSION; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_X509_TRUST_set"] - pub fn X509_TRUST_set( - t: *mut ::std::os::raw::c_int, - trust: ::std::os::raw::c_int, + #[link_name = "\u{1}aws_lc_0_21_0_X509V3_EXT_add_nconf_sk"] + pub fn X509V3_EXT_add_nconf_sk( + conf: *const CONF, + ctx: *const X509V3_CTX, + section: *const ::std::os::raw::c_char, + sk: *mut *mut stack_st_X509_EXTENSION, ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_X509_cmp"] - pub fn X509_cmp(a: *const X509, b: *const X509) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_0_21_0_X509V3_EXT_add_nconf"] + pub fn X509V3_EXT_add_nconf( + conf: *const CONF, + ctx: *const X509V3_CTX, + section: *const ::std::os::raw::c_char, + cert: *mut X509, + ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_X509_NAME_hash"] - pub fn X509_NAME_hash(name: *mut X509_NAME) -> u32; + #[link_name = "\u{1}aws_lc_0_21_0_X509V3_EXT_REQ_add_nconf"] + pub fn X509V3_EXT_REQ_add_nconf( + conf: *const CONF, + ctx: *const X509V3_CTX, + section: *const ::std::os::raw::c_char, + req: *mut X509_REQ, + ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_X509_NAME_hash_old"] - pub fn X509_NAME_hash_old(name: *mut X509_NAME) -> u32; + #[link_name = "\u{1}aws_lc_0_21_0_X509V3_EXT_CRL_add_nconf"] + pub fn X509V3_EXT_CRL_add_nconf( + conf: *const CONF, + ctx: *const X509V3_CTX, + section: *const ::std::os::raw::c_char, + crl: *mut X509_CRL, + ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_X509_CRL_match"] - pub fn X509_CRL_match(a: *const X509_CRL, b: *const X509_CRL) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_0_21_0_X509V3_EXT_conf"] + pub fn X509V3_EXT_conf( + conf: *mut lhash_st_CONF_VALUE, + ctx: *mut X509V3_CTX, + name: *const ::std::os::raw::c_char, + value: *const ::std::os::raw::c_char, + ) -> *mut X509_EXTENSION; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_X509_verify_cert"] - pub fn X509_verify_cert(ctx: *mut X509_STORE_CTX) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_0_21_0_i2s_ASN1_OCTET_STRING"] + pub fn i2s_ASN1_OCTET_STRING( + method: *const X509V3_EXT_METHOD, + oct: *const ASN1_OCTET_STRING, + ) -> *mut ::std::os::raw::c_char; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_X509_check_trust"] - pub fn X509_check_trust( - x: *mut X509, - id: ::std::os::raw::c_int, - flags: ::std::os::raw::c_int, - ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_0_21_0_s2i_ASN1_OCTET_STRING"] + pub fn s2i_ASN1_OCTET_STRING( + method: *const X509V3_EXT_METHOD, + ctx: *const X509V3_CTX, + str_: *const ::std::os::raw::c_char, + ) -> *mut ASN1_OCTET_STRING; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_X509_TRUST_get_count"] - pub fn X509_TRUST_get_count() -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_0_21_0_i2s_ASN1_INTEGER"] + pub fn i2s_ASN1_INTEGER( + method: *const X509V3_EXT_METHOD, + aint: *const ASN1_INTEGER, + ) -> *mut ::std::os::raw::c_char; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_X509_TRUST_get0"] - pub fn X509_TRUST_get0(idx: ::std::os::raw::c_int) -> *const X509_TRUST; + #[link_name = "\u{1}aws_lc_0_21_0_s2i_ASN1_INTEGER"] + pub fn s2i_ASN1_INTEGER( + method: *const X509V3_EXT_METHOD, + value: *const ::std::os::raw::c_char, + ) -> *mut ASN1_INTEGER; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_X509_TRUST_get_by_id"] - pub fn X509_TRUST_get_by_id(id: ::std::os::raw::c_int) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_0_21_0_i2s_ASN1_ENUMERATED"] + pub fn i2s_ASN1_ENUMERATED( + method: *const X509V3_EXT_METHOD, + aint: *const ASN1_ENUMERATED, + ) -> *mut ::std::os::raw::c_char; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_X509_TRUST_get_flags"] - pub fn X509_TRUST_get_flags(xp: *const X509_TRUST) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_0_21_0_X509V3_conf_free"] + pub fn X509V3_conf_free(val: *mut CONF_VALUE); } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_X509_TRUST_get0_name"] - pub fn X509_TRUST_get0_name(xp: *const X509_TRUST) -> *mut ::std::os::raw::c_char; + #[link_name = "\u{1}aws_lc_0_21_0_i2v_GENERAL_NAME"] + pub fn i2v_GENERAL_NAME( + method: *const X509V3_EXT_METHOD, + gen: *const GENERAL_NAME, + ret: *mut stack_st_CONF_VALUE, + ) -> *mut stack_st_CONF_VALUE; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_X509_TRUST_get_trust"] - pub fn X509_TRUST_get_trust(xp: *const X509_TRUST) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_0_21_0_i2v_GENERAL_NAMES"] + pub fn i2v_GENERAL_NAMES( + method: *const X509V3_EXT_METHOD, + gen: *const GENERAL_NAMES, + extlist: *mut stack_st_CONF_VALUE, + ) -> *mut stack_st_CONF_VALUE; } -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct stack_st_X509_OBJECT { - _unused: [u8; 0], -} -pub type sk_X509_OBJECT_free_func = - ::std::option::Option; -pub type sk_X509_OBJECT_copy_func = - ::std::option::Option *mut X509_OBJECT>; -pub type sk_X509_OBJECT_cmp_func = ::std::option::Option< - unsafe extern "C" fn( - arg1: *const *const X509_OBJECT, - arg2: *const *const X509_OBJECT, - ) -> ::std::os::raw::c_int, ->; -pub type sk_X509_OBJECT_delete_if_func = ::std::option::Option< - unsafe extern "C" fn( - arg1: *mut X509_OBJECT, - arg2: *mut ::std::os::raw::c_void, - ) -> ::std::os::raw::c_int, ->; extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_X509_STORE_set_depth"] - pub fn X509_STORE_set_depth( - store: *mut X509_STORE, - depth: ::std::os::raw::c_int, - ) -> ::std::os::raw::c_int; -} -extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_X509_STORE_CTX_set_depth"] - pub fn X509_STORE_CTX_set_depth(ctx: *mut X509_STORE_CTX, depth: ::std::os::raw::c_int); + #[link_name = "\u{1}aws_lc_0_21_0_a2i_IPADDRESS"] + pub fn a2i_IPADDRESS(ipasc: *const ::std::os::raw::c_char) -> *mut ASN1_OCTET_STRING; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_X509_LOOKUP_load_file"] - pub fn X509_LOOKUP_load_file( - lookup: *mut X509_LOOKUP, - path: *const ::std::os::raw::c_char, - type_: ::std::os::raw::c_int, - ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_0_21_0_a2i_IPADDRESS_NC"] + pub fn a2i_IPADDRESS_NC(ipasc: *const ::std::os::raw::c_char) -> *mut ASN1_OCTET_STRING; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_X509_LOOKUP_add_dir"] - pub fn X509_LOOKUP_add_dir( - lookup: *mut X509_LOOKUP, - path: *const ::std::os::raw::c_char, - type_: ::std::os::raw::c_int, - ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_0_21_0_X509_get_notBefore"] + pub fn X509_get_notBefore(x509: *const X509) -> *mut ASN1_TIME; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_X509_OBJECT_new"] - pub fn X509_OBJECT_new() -> *mut X509_OBJECT; + #[link_name = "\u{1}aws_lc_0_21_0_X509_get_notAfter"] + pub fn X509_get_notAfter(x509: *const X509) -> *mut ASN1_TIME; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_X509_OBJECT_free"] - pub fn X509_OBJECT_free(obj: *mut X509_OBJECT); + #[link_name = "\u{1}aws_lc_0_21_0_X509_set_notBefore"] + pub fn X509_set_notBefore(x509: *mut X509, tm: *const ASN1_TIME) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_X509_OBJECT_get_type"] - pub fn X509_OBJECT_get_type(obj: *const X509_OBJECT) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_0_21_0_X509_set_notAfter"] + pub fn X509_set_notAfter(x509: *mut X509, tm: *const ASN1_TIME) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_X509_OBJECT_get0_X509"] - pub fn X509_OBJECT_get0_X509(obj: *const X509_OBJECT) -> *mut X509; + #[link_name = "\u{1}aws_lc_0_21_0_X509_CRL_get_lastUpdate"] + pub fn X509_CRL_get_lastUpdate(crl: *mut X509_CRL) -> *mut ASN1_TIME; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_X509_OBJECT_get0_X509_CRL"] - pub fn X509_OBJECT_get0_X509_CRL(a: *const X509_OBJECT) -> *mut X509_CRL; + #[link_name = "\u{1}aws_lc_0_21_0_X509_CRL_get_nextUpdate"] + pub fn X509_CRL_get_nextUpdate(crl: *mut X509_CRL) -> *mut ASN1_TIME; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_X509_OBJECT_set1_X509"] - pub fn X509_OBJECT_set1_X509(a: *mut X509_OBJECT, obj: *mut X509) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_0_21_0_X509_get_serialNumber"] + pub fn X509_get_serialNumber(x509: *mut X509) -> *mut ASN1_INTEGER; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_X509_OBJECT_set1_X509_CRL"] - pub fn X509_OBJECT_set1_X509_CRL( - a: *mut X509_OBJECT, - obj: *mut X509_CRL, + #[link_name = "\u{1}aws_lc_0_21_0_X509_NAME_get_text_by_OBJ"] + pub fn X509_NAME_get_text_by_OBJ( + name: *const X509_NAME, + obj: *const ASN1_OBJECT, + buf: *mut ::std::os::raw::c_char, + len: ::std::os::raw::c_int, ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_X509_STORE_lock"] - pub fn X509_STORE_lock(v: *mut X509_STORE) -> ::std::os::raw::c_int; -} -extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_X509_STORE_unlock"] - pub fn X509_STORE_unlock(v: *mut X509_STORE) -> ::std::os::raw::c_int; -} -extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_X509_STORE_new"] - pub fn X509_STORE_new() -> *mut X509_STORE; -} -extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_X509_STORE_up_ref"] - pub fn X509_STORE_up_ref(store: *mut X509_STORE) -> ::std::os::raw::c_int; -} -extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_X509_STORE_free"] - pub fn X509_STORE_free(store: *mut X509_STORE); -} -extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_X509_STORE_get0_objects"] - pub fn X509_STORE_get0_objects(st: *mut X509_STORE) -> *mut stack_st_X509_OBJECT; -} -extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_X509_STORE_CTX_get1_certs"] - pub fn X509_STORE_CTX_get1_certs( - st: *mut X509_STORE_CTX, - nm: *mut X509_NAME, - ) -> *mut stack_st_X509; -} -extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_X509_STORE_CTX_get1_crls"] - pub fn X509_STORE_CTX_get1_crls( - st: *mut X509_STORE_CTX, - nm: *mut X509_NAME, - ) -> *mut stack_st_X509_CRL; -} -extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_X509_STORE_set_flags"] - pub fn X509_STORE_set_flags( - store: *mut X509_STORE, - flags: ::std::os::raw::c_ulong, + #[link_name = "\u{1}aws_lc_0_21_0_X509_NAME_get_text_by_NID"] + pub fn X509_NAME_get_text_by_NID( + name: *const X509_NAME, + nid: ::std::os::raw::c_int, + buf: *mut ::std::os::raw::c_char, + len: ::std::os::raw::c_int, ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_X509_STORE_set_purpose"] - pub fn X509_STORE_set_purpose( - store: *mut X509_STORE, - purpose: ::std::os::raw::c_int, - ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_0_21_0_X509_STORE_CTX_get0_parent_ctx"] + pub fn X509_STORE_CTX_get0_parent_ctx(ctx: *mut X509_STORE_CTX) -> *mut X509_STORE_CTX; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_X509_STORE_set_trust"] - pub fn X509_STORE_set_trust( - store: *mut X509_STORE, - trust: ::std::os::raw::c_int, - ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_0_21_0_X509_LOOKUP_free"] + pub fn X509_LOOKUP_free(ctx: *mut X509_LOOKUP); } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_X509_STORE_set1_param"] - pub fn X509_STORE_set1_param( - store: *mut X509_STORE, - param: *const X509_VERIFY_PARAM, - ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_0_21_0_X509_STORE_CTX_cleanup"] + pub fn X509_STORE_CTX_cleanup(ctx: *mut X509_STORE_CTX); } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_X509_STORE_get0_param"] - pub fn X509_STORE_get0_param(store: *mut X509_STORE) -> *mut X509_VERIFY_PARAM; + #[link_name = "\u{1}aws_lc_0_21_0_X509V3_add_standard_extensions"] + pub fn X509V3_add_standard_extensions() -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_X509_STORE_CTX_new"] - pub fn X509_STORE_CTX_new() -> *mut X509_STORE_CTX; + #[link_name = "\u{1}aws_lc_0_21_0_X509V3_parse_list"] + pub fn X509V3_parse_list(line: *const ::std::os::raw::c_char) -> *mut stack_st_CONF_VALUE; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_X509_STORE_CTX_get1_issuer"] - pub fn X509_STORE_CTX_get1_issuer( - issuer: *mut *mut X509, - ctx: *mut X509_STORE_CTX, - x: *mut X509, - ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_0_21_0_X509_STORE_CTX_get_chain"] + pub fn X509_STORE_CTX_get_chain(ctx: *mut X509_STORE_CTX) -> *mut stack_st_X509; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_X509_STORE_CTX_free"] - pub fn X509_STORE_CTX_free(ctx: *mut X509_STORE_CTX); + #[link_name = "\u{1}aws_lc_0_21_0_X509_STORE_CTX_trusted_stack"] + pub fn X509_STORE_CTX_trusted_stack(ctx: *mut X509_STORE_CTX, sk: *mut stack_st_X509); } +pub type X509_STORE_CTX_verify_cb = ::std::option::Option< + unsafe extern "C" fn( + arg1: ::std::os::raw::c_int, + arg2: *mut X509_STORE_CTX, + ) -> ::std::os::raw::c_int, +>; extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_X509_STORE_CTX_init"] - pub fn X509_STORE_CTX_init( + #[link_name = "\u{1}aws_lc_0_21_0_X509_STORE_CTX_set_verify_cb"] + pub fn X509_STORE_CTX_set_verify_cb( ctx: *mut X509_STORE_CTX, - store: *mut X509_STORE, - x509: *mut X509, - chain: *mut stack_st_X509, - ) -> ::std::os::raw::c_int; -} -extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_X509_STORE_CTX_set0_trusted_stack"] - pub fn X509_STORE_CTX_set0_trusted_stack(ctx: *mut X509_STORE_CTX, sk: *mut stack_st_X509); -} -extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_X509_STORE_CTX_get0_store"] - pub fn X509_STORE_CTX_get0_store(ctx: *mut X509_STORE_CTX) -> *mut X509_STORE; -} -extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_X509_STORE_CTX_get0_cert"] - pub fn X509_STORE_CTX_get0_cert(ctx: *mut X509_STORE_CTX) -> *mut X509; -} -extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_X509_STORE_add_lookup"] - pub fn X509_STORE_add_lookup( - v: *mut X509_STORE, - m: *const X509_LOOKUP_METHOD, - ) -> *mut X509_LOOKUP; + verify_cb: ::std::option::Option< + unsafe extern "C" fn( + ok: ::std::os::raw::c_int, + ctx: *mut X509_STORE_CTX, + ) -> ::std::os::raw::c_int, + >, + ); } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_X509_LOOKUP_hash_dir"] - pub fn X509_LOOKUP_hash_dir() -> *const X509_LOOKUP_METHOD; + #[link_name = "\u{1}aws_lc_0_21_0_X509_STORE_set_verify_cb"] + pub fn X509_STORE_set_verify_cb(store: *mut X509_STORE, verify_cb: X509_STORE_CTX_verify_cb); } +pub type X509_STORE_CTX_get_crl_fn = ::std::option::Option< + unsafe extern "C" fn( + ctx: *mut X509_STORE_CTX, + crl: *mut *mut X509_CRL, + x: *mut X509, + ) -> ::std::os::raw::c_int, +>; +pub type X509_STORE_CTX_check_crl_fn = ::std::option::Option< + unsafe extern "C" fn(ctx: *mut X509_STORE_CTX, crl: *mut X509_CRL) -> ::std::os::raw::c_int, +>; extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_X509_LOOKUP_file"] - pub fn X509_LOOKUP_file() -> *const X509_LOOKUP_METHOD; + #[link_name = "\u{1}aws_lc_0_21_0_X509_STORE_set_get_crl"] + pub fn X509_STORE_set_get_crl(store: *mut X509_STORE, get_crl: X509_STORE_CTX_get_crl_fn); } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_X509_STORE_add_cert"] - pub fn X509_STORE_add_cert(ctx: *mut X509_STORE, x: *mut X509) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_0_21_0_X509_STORE_set_check_crl"] + pub fn X509_STORE_set_check_crl(store: *mut X509_STORE, check_crl: X509_STORE_CTX_check_crl_fn); } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_X509_STORE_add_crl"] - pub fn X509_STORE_add_crl(ctx: *mut X509_STORE, x: *mut X509_CRL) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_0_21_0_X509_STORE_CTX_set_chain"] + pub fn X509_STORE_CTX_set_chain(ctx: *mut X509_STORE_CTX, sk: *mut stack_st_X509); } -extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_X509_LOOKUP_ctrl"] - pub fn X509_LOOKUP_ctrl( - ctx: *mut X509_LOOKUP, - cmd: ::std::os::raw::c_int, - argc: *const ::std::os::raw::c_char, - argl: ::std::os::raw::c_long, - ret: *mut *mut ::std::os::raw::c_char, - ) -> ::std::os::raw::c_int; +#[repr(C)] +#[derive(Debug, Copy, Clone, PartialEq, Eq)] +pub struct X509_algor_st { + pub algorithm: *mut ASN1_OBJECT, + pub parameter: *mut ASN1_TYPE, } -extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_X509_load_cert_file"] - pub fn X509_load_cert_file( - ctx: *mut X509_LOOKUP, - file: *const ::std::os::raw::c_char, - type_: ::std::os::raw::c_int, - ) -> ::std::os::raw::c_int; +#[test] +fn bindgen_test_layout_X509_algor_st() { + const UNINIT: ::std::mem::MaybeUninit = ::std::mem::MaybeUninit::uninit(); + let ptr = UNINIT.as_ptr(); + assert_eq!( + ::std::mem::size_of::(), + 16usize, + concat!("Size of: ", stringify!(X509_algor_st)) + ); + assert_eq!( + ::std::mem::align_of::(), + 8usize, + concat!("Alignment of ", stringify!(X509_algor_st)) + ); + assert_eq!( + unsafe { ::std::ptr::addr_of!((*ptr).algorithm) as usize - ptr as usize }, + 0usize, + concat!( + "Offset of field: ", + stringify!(X509_algor_st), + "::", + stringify!(algorithm) + ) + ); + assert_eq!( + unsafe { ::std::ptr::addr_of!((*ptr).parameter) as usize - ptr as usize }, + 8usize, + concat!( + "Offset of field: ", + stringify!(X509_algor_st), + "::", + stringify!(parameter) + ) + ); } -extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_X509_load_crl_file"] - pub fn X509_load_crl_file( - ctx: *mut X509_LOOKUP, - file: *const ::std::os::raw::c_char, - type_: ::std::os::raw::c_int, - ) -> ::std::os::raw::c_int; +impl Default for X509_algor_st { + fn default() -> Self { + let mut s = ::std::mem::MaybeUninit::::uninit(); + unsafe { + ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); + s.assume_init() + } + } } -extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_X509_load_cert_crl_file"] - pub fn X509_load_cert_crl_file( - ctx: *mut X509_LOOKUP, - file: *const ::std::os::raw::c_char, - type_: ::std::os::raw::c_int, - ) -> ::std::os::raw::c_int; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct stack_st_DIST_POINT { + _unused: [u8; 0], } -extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_X509_STORE_load_locations"] - pub fn X509_STORE_load_locations( - ctx: *mut X509_STORE, - file: *const ::std::os::raw::c_char, - dir: *const ::std::os::raw::c_char, - ) -> ::std::os::raw::c_int; +#[repr(C)] +#[derive(Debug, Copy, Clone, PartialEq, Eq)] +pub struct x509_trust_st { + pub trust: ::std::os::raw::c_int, + pub flags: ::std::os::raw::c_int, + pub check_trust: ::std::option::Option< + unsafe extern "C" fn( + arg1: *const X509_TRUST, + arg2: *mut X509, + arg3: ::std::os::raw::c_int, + ) -> ::std::os::raw::c_int, + >, + pub name: *mut ::std::os::raw::c_char, + pub arg1: ::std::os::raw::c_int, + pub arg2: *mut ::std::os::raw::c_void, } -extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_X509_STORE_set_default_paths"] - pub fn X509_STORE_set_default_paths(ctx: *mut X509_STORE) -> ::std::os::raw::c_int; +#[test] +fn bindgen_test_layout_x509_trust_st() { + const UNINIT: ::std::mem::MaybeUninit = ::std::mem::MaybeUninit::uninit(); + let ptr = UNINIT.as_ptr(); + assert_eq!( + ::std::mem::size_of::(), + 40usize, + concat!("Size of: ", stringify!(x509_trust_st)) + ); + assert_eq!( + ::std::mem::align_of::(), + 8usize, + concat!("Alignment of ", stringify!(x509_trust_st)) + ); + assert_eq!( + unsafe { ::std::ptr::addr_of!((*ptr).trust) as usize - ptr as usize }, + 0usize, + concat!( + "Offset of field: ", + stringify!(x509_trust_st), + "::", + stringify!(trust) + ) + ); + assert_eq!( + unsafe { ::std::ptr::addr_of!((*ptr).flags) as usize - ptr as usize }, + 4usize, + concat!( + "Offset of field: ", + stringify!(x509_trust_st), + "::", + stringify!(flags) + ) + ); + assert_eq!( + unsafe { ::std::ptr::addr_of!((*ptr).check_trust) as usize - ptr as usize }, + 8usize, + concat!( + "Offset of field: ", + stringify!(x509_trust_st), + "::", + stringify!(check_trust) + ) + ); + assert_eq!( + unsafe { ::std::ptr::addr_of!((*ptr).name) as usize - ptr as usize }, + 16usize, + concat!( + "Offset of field: ", + stringify!(x509_trust_st), + "::", + stringify!(name) + ) + ); + assert_eq!( + unsafe { ::std::ptr::addr_of!((*ptr).arg1) as usize - ptr as usize }, + 24usize, + concat!( + "Offset of field: ", + stringify!(x509_trust_st), + "::", + stringify!(arg1) + ) + ); + assert_eq!( + unsafe { ::std::ptr::addr_of!((*ptr).arg2) as usize - ptr as usize }, + 32usize, + concat!( + "Offset of field: ", + stringify!(x509_trust_st), + "::", + stringify!(arg2) + ) + ); } -extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_X509_STORE_CTX_get_error"] - pub fn X509_STORE_CTX_get_error(ctx: *mut X509_STORE_CTX) -> ::std::os::raw::c_int; +impl Default for x509_trust_st { + fn default() -> Self { + let mut s = ::std::mem::MaybeUninit::::uninit(); + unsafe { + ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); + s.assume_init() + } + } } -extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_X509_STORE_CTX_set_error"] - pub fn X509_STORE_CTX_set_error(ctx: *mut X509_STORE_CTX, s: ::std::os::raw::c_int); +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct stack_st_X509_TRUST { + _unused: [u8; 0], } +pub type sk_X509_TRUST_free_func = + ::std::option::Option; +pub type sk_X509_TRUST_copy_func = + ::std::option::Option *mut X509_TRUST>; +pub type sk_X509_TRUST_cmp_func = ::std::option::Option< + unsafe extern "C" fn( + arg1: *const *const X509_TRUST, + arg2: *const *const X509_TRUST, + ) -> ::std::os::raw::c_int, +>; +pub type sk_X509_TRUST_delete_if_func = ::std::option::Option< + unsafe extern "C" fn( + arg1: *mut X509_TRUST, + arg2: *mut ::std::os::raw::c_void, + ) -> ::std::os::raw::c_int, +>; extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_X509_STORE_CTX_get_error_depth"] - pub fn X509_STORE_CTX_get_error_depth(ctx: *mut X509_STORE_CTX) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_0_21_0_X509_get_default_cert_area"] + pub fn X509_get_default_cert_area() -> *const ::std::os::raw::c_char; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_X509_STORE_CTX_get_current_cert"] - pub fn X509_STORE_CTX_get_current_cert(ctx: *mut X509_STORE_CTX) -> *mut X509; + #[link_name = "\u{1}aws_lc_0_21_0_X509_get_default_cert_dir"] + pub fn X509_get_default_cert_dir() -> *const ::std::os::raw::c_char; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_X509_STORE_CTX_get0_current_issuer"] - pub fn X509_STORE_CTX_get0_current_issuer(ctx: *mut X509_STORE_CTX) -> *mut X509; + #[link_name = "\u{1}aws_lc_0_21_0_X509_get_default_cert_file"] + pub fn X509_get_default_cert_file() -> *const ::std::os::raw::c_char; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_X509_STORE_CTX_get0_current_crl"] - pub fn X509_STORE_CTX_get0_current_crl(ctx: *mut X509_STORE_CTX) -> *mut X509_CRL; + #[link_name = "\u{1}aws_lc_0_21_0_X509_get_default_cert_dir_env"] + pub fn X509_get_default_cert_dir_env() -> *const ::std::os::raw::c_char; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_X509_STORE_CTX_get0_chain"] - pub fn X509_STORE_CTX_get0_chain(ctx: *mut X509_STORE_CTX) -> *mut stack_st_X509; + #[link_name = "\u{1}aws_lc_0_21_0_X509_get_default_cert_file_env"] + pub fn X509_get_default_cert_file_env() -> *const ::std::os::raw::c_char; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_X509_STORE_CTX_get1_chain"] - pub fn X509_STORE_CTX_get1_chain(ctx: *mut X509_STORE_CTX) -> *mut stack_st_X509; + #[link_name = "\u{1}aws_lc_0_21_0_X509_get_default_private_dir"] + pub fn X509_get_default_private_dir() -> *const ::std::os::raw::c_char; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_X509_STORE_CTX_set_cert"] - pub fn X509_STORE_CTX_set_cert(c: *mut X509_STORE_CTX, x: *mut X509); + #[link_name = "\u{1}aws_lc_0_21_0_X509_TRUST_set"] + pub fn X509_TRUST_set( + t: *mut ::std::os::raw::c_int, + trust: ::std::os::raw::c_int, + ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_X509_STORE_CTX_get0_untrusted"] - pub fn X509_STORE_CTX_get0_untrusted(ctx: *mut X509_STORE_CTX) -> *mut stack_st_X509; + #[link_name = "\u{1}aws_lc_0_21_0_X509_cmp"] + pub fn X509_cmp(a: *const X509, b: *const X509) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_X509_STORE_CTX_set0_crls"] - pub fn X509_STORE_CTX_set0_crls(c: *mut X509_STORE_CTX, sk: *mut stack_st_X509_CRL); + #[link_name = "\u{1}aws_lc_0_21_0_X509_NAME_hash"] + pub fn X509_NAME_hash(name: *mut X509_NAME) -> u32; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_X509_STORE_CTX_set_purpose"] - pub fn X509_STORE_CTX_set_purpose( - ctx: *mut X509_STORE_CTX, - purpose: ::std::os::raw::c_int, - ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_0_21_0_X509_NAME_hash_old"] + pub fn X509_NAME_hash_old(name: *mut X509_NAME) -> u32; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_X509_STORE_CTX_set_trust"] - pub fn X509_STORE_CTX_set_trust( - ctx: *mut X509_STORE_CTX, - trust: ::std::os::raw::c_int, - ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_0_21_0_X509_CRL_match"] + pub fn X509_CRL_match(a: *const X509_CRL, b: *const X509_CRL) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_X509_STORE_CTX_purpose_inherit"] - pub fn X509_STORE_CTX_purpose_inherit( - ctx: *mut X509_STORE_CTX, - def_purpose: ::std::os::raw::c_int, - purpose: ::std::os::raw::c_int, - trust: ::std::os::raw::c_int, - ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_0_21_0_X509_TRUST_get_count"] + pub fn X509_TRUST_get_count() -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_X509_STORE_CTX_set_flags"] - pub fn X509_STORE_CTX_set_flags(ctx: *mut X509_STORE_CTX, flags: ::std::os::raw::c_ulong); + #[link_name = "\u{1}aws_lc_0_21_0_X509_TRUST_get0"] + pub fn X509_TRUST_get0(idx: ::std::os::raw::c_int) -> *const X509_TRUST; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_X509_STORE_CTX_set_time"] - pub fn X509_STORE_CTX_set_time( - ctx: *mut X509_STORE_CTX, - flags: ::std::os::raw::c_ulong, - t: time_t, - ); + #[link_name = "\u{1}aws_lc_0_21_0_X509_TRUST_get_by_id"] + pub fn X509_TRUST_get_by_id(id: ::std::os::raw::c_int) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_X509_STORE_CTX_set_time_posix"] - pub fn X509_STORE_CTX_set_time_posix( - ctx: *mut X509_STORE_CTX, - flags: ::std::os::raw::c_ulong, - t: i64, - ); + #[link_name = "\u{1}aws_lc_0_21_0_X509_TRUST_get_flags"] + pub fn X509_TRUST_get_flags(xp: *const X509_TRUST) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_X509_STORE_CTX_get0_param"] - pub fn X509_STORE_CTX_get0_param(ctx: *mut X509_STORE_CTX) -> *mut X509_VERIFY_PARAM; + #[link_name = "\u{1}aws_lc_0_21_0_X509_TRUST_get0_name"] + pub fn X509_TRUST_get0_name(xp: *const X509_TRUST) -> *mut ::std::os::raw::c_char; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_X509_STORE_CTX_set0_param"] - pub fn X509_STORE_CTX_set0_param(ctx: *mut X509_STORE_CTX, param: *mut X509_VERIFY_PARAM); + #[link_name = "\u{1}aws_lc_0_21_0_X509_TRUST_get_trust"] + pub fn X509_TRUST_get_trust(xp: *const X509_TRUST) -> ::std::os::raw::c_int; +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct stack_st_X509_OBJECT { + _unused: [u8; 0], } +pub type sk_X509_OBJECT_free_func = + ::std::option::Option; +pub type sk_X509_OBJECT_copy_func = + ::std::option::Option *mut X509_OBJECT>; +pub type sk_X509_OBJECT_cmp_func = ::std::option::Option< + unsafe extern "C" fn( + arg1: *const *const X509_OBJECT, + arg2: *const *const X509_OBJECT, + ) -> ::std::os::raw::c_int, +>; +pub type sk_X509_OBJECT_delete_if_func = ::std::option::Option< + unsafe extern "C" fn( + arg1: *mut X509_OBJECT, + arg2: *mut ::std::os::raw::c_void, + ) -> ::std::os::raw::c_int, +>; extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_X509_STORE_CTX_set_default"] - pub fn X509_STORE_CTX_set_default( - ctx: *mut X509_STORE_CTX, - name: *const ::std::os::raw::c_char, + #[link_name = "\u{1}aws_lc_0_21_0_X509_LOOKUP_load_file"] + pub fn X509_LOOKUP_load_file( + lookup: *mut X509_LOOKUP, + path: *const ::std::os::raw::c_char, + type_: ::std::os::raw::c_int, ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_X509_STORE_CTX_get_by_subject"] - pub fn X509_STORE_CTX_get_by_subject( - vs: *mut X509_STORE_CTX, + #[link_name = "\u{1}aws_lc_0_21_0_X509_LOOKUP_add_dir"] + pub fn X509_LOOKUP_add_dir( + lookup: *mut X509_LOOKUP, + path: *const ::std::os::raw::c_char, type_: ::std::os::raw::c_int, - name: *mut X509_NAME, - ret: *mut X509_OBJECT, ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_X509_VERIFY_PARAM_new"] - pub fn X509_VERIFY_PARAM_new() -> *mut X509_VERIFY_PARAM; + #[link_name = "\u{1}aws_lc_0_21_0_X509_OBJECT_new"] + pub fn X509_OBJECT_new() -> *mut X509_OBJECT; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_X509_VERIFY_PARAM_free"] - pub fn X509_VERIFY_PARAM_free(param: *mut X509_VERIFY_PARAM); + #[link_name = "\u{1}aws_lc_0_21_0_X509_OBJECT_free"] + pub fn X509_OBJECT_free(obj: *mut X509_OBJECT); } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_X509_VERIFY_PARAM_inherit"] - pub fn X509_VERIFY_PARAM_inherit( - to: *mut X509_VERIFY_PARAM, - from: *const X509_VERIFY_PARAM, - ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_0_21_0_X509_OBJECT_get_type"] + pub fn X509_OBJECT_get_type(obj: *const X509_OBJECT) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_X509_VERIFY_PARAM_set1"] - pub fn X509_VERIFY_PARAM_set1( - to: *mut X509_VERIFY_PARAM, - from: *const X509_VERIFY_PARAM, - ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_0_21_0_X509_OBJECT_get0_X509"] + pub fn X509_OBJECT_get0_X509(obj: *const X509_OBJECT) -> *mut X509; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_X509_VERIFY_PARAM_set_flags"] - pub fn X509_VERIFY_PARAM_set_flags( - param: *mut X509_VERIFY_PARAM, - flags: ::std::os::raw::c_ulong, - ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_0_21_0_X509_OBJECT_get0_X509_CRL"] + pub fn X509_OBJECT_get0_X509_CRL(a: *const X509_OBJECT) -> *mut X509_CRL; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_X509_VERIFY_PARAM_clear_flags"] - pub fn X509_VERIFY_PARAM_clear_flags( - param: *mut X509_VERIFY_PARAM, - flags: ::std::os::raw::c_ulong, + #[link_name = "\u{1}aws_lc_0_21_0_X509_OBJECT_set1_X509"] + pub fn X509_OBJECT_set1_X509(a: *mut X509_OBJECT, obj: *mut X509) -> ::std::os::raw::c_int; +} +extern "C" { + #[link_name = "\u{1}aws_lc_0_21_0_X509_OBJECT_set1_X509_CRL"] + pub fn X509_OBJECT_set1_X509_CRL( + a: *mut X509_OBJECT, + obj: *mut X509_CRL, ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_X509_VERIFY_PARAM_get_flags"] - pub fn X509_VERIFY_PARAM_get_flags(param: *const X509_VERIFY_PARAM) -> ::std::os::raw::c_ulong; + #[link_name = "\u{1}aws_lc_0_21_0_X509_STORE_lock"] + pub fn X509_STORE_lock(v: *mut X509_STORE) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_X509_VERIFY_PARAM_set_purpose"] - pub fn X509_VERIFY_PARAM_set_purpose( - param: *mut X509_VERIFY_PARAM, - purpose: ::std::os::raw::c_int, - ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_0_21_0_X509_STORE_unlock"] + pub fn X509_STORE_unlock(v: *mut X509_STORE) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_X509_VERIFY_PARAM_set_trust"] - pub fn X509_VERIFY_PARAM_set_trust( - param: *mut X509_VERIFY_PARAM, - trust: ::std::os::raw::c_int, - ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_0_21_0_X509_STORE_get0_objects"] + pub fn X509_STORE_get0_objects(st: *mut X509_STORE) -> *mut stack_st_X509_OBJECT; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_X509_VERIFY_PARAM_set_depth"] - pub fn X509_VERIFY_PARAM_set_depth(param: *mut X509_VERIFY_PARAM, depth: ::std::os::raw::c_int); + #[link_name = "\u{1}aws_lc_0_21_0_X509_STORE_CTX_get1_certs"] + pub fn X509_STORE_CTX_get1_certs( + st: *mut X509_STORE_CTX, + nm: *mut X509_NAME, + ) -> *mut stack_st_X509; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_X509_VERIFY_PARAM_set_time"] - pub fn X509_VERIFY_PARAM_set_time(param: *mut X509_VERIFY_PARAM, t: time_t); + #[link_name = "\u{1}aws_lc_0_21_0_X509_STORE_CTX_get1_crls"] + pub fn X509_STORE_CTX_get1_crls( + st: *mut X509_STORE_CTX, + nm: *mut X509_NAME, + ) -> *mut stack_st_X509_CRL; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_X509_VERIFY_PARAM_set_time_posix"] - pub fn X509_VERIFY_PARAM_set_time_posix(param: *mut X509_VERIFY_PARAM, t: i64); + #[link_name = "\u{1}aws_lc_0_21_0_X509_STORE_add_lookup"] + pub fn X509_STORE_add_lookup( + v: *mut X509_STORE, + m: *const X509_LOOKUP_METHOD, + ) -> *mut X509_LOOKUP; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_X509_VERIFY_PARAM_add0_policy"] - pub fn X509_VERIFY_PARAM_add0_policy( - param: *mut X509_VERIFY_PARAM, - policy: *mut ASN1_OBJECT, - ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_0_21_0_X509_LOOKUP_hash_dir"] + pub fn X509_LOOKUP_hash_dir() -> *const X509_LOOKUP_METHOD; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_X509_VERIFY_PARAM_set1_policies"] - pub fn X509_VERIFY_PARAM_set1_policies( - param: *mut X509_VERIFY_PARAM, - policies: *const stack_st_ASN1_OBJECT, - ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_0_21_0_X509_LOOKUP_file"] + pub fn X509_LOOKUP_file() -> *const X509_LOOKUP_METHOD; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_X509_VERIFY_PARAM_set1_host"] - pub fn X509_VERIFY_PARAM_set1_host( - param: *mut X509_VERIFY_PARAM, - name: *const ::std::os::raw::c_char, - namelen: usize, + #[link_name = "\u{1}aws_lc_0_21_0_X509_STORE_CTX_get_by_subject"] + pub fn X509_STORE_CTX_get_by_subject( + vs: *mut X509_STORE_CTX, + type_: ::std::os::raw::c_int, + name: *mut X509_NAME, + ret: *mut X509_OBJECT, ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_X509_VERIFY_PARAM_add1_host"] - pub fn X509_VERIFY_PARAM_add1_host( - param: *mut X509_VERIFY_PARAM, - name: *const ::std::os::raw::c_char, - name_len: usize, + #[link_name = "\u{1}aws_lc_0_21_0_X509_LOOKUP_ctrl"] + pub fn X509_LOOKUP_ctrl( + ctx: *mut X509_LOOKUP, + cmd: ::std::os::raw::c_int, + argc: *const ::std::os::raw::c_char, + argl: ::std::os::raw::c_long, + ret: *mut *mut ::std::os::raw::c_char, ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_X509_VERIFY_PARAM_set_hostflags"] - pub fn X509_VERIFY_PARAM_set_hostflags( - param: *mut X509_VERIFY_PARAM, - flags: ::std::os::raw::c_uint, - ); + #[link_name = "\u{1}aws_lc_0_21_0_X509_load_cert_file"] + pub fn X509_load_cert_file( + ctx: *mut X509_LOOKUP, + file: *const ::std::os::raw::c_char, + type_: ::std::os::raw::c_int, + ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_X509_VERIFY_PARAM_set1_email"] - pub fn X509_VERIFY_PARAM_set1_email( - param: *mut X509_VERIFY_PARAM, - email: *const ::std::os::raw::c_char, - emaillen: usize, + #[link_name = "\u{1}aws_lc_0_21_0_X509_load_crl_file"] + pub fn X509_load_crl_file( + ctx: *mut X509_LOOKUP, + file: *const ::std::os::raw::c_char, + type_: ::std::os::raw::c_int, ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_X509_VERIFY_PARAM_set1_ip"] - pub fn X509_VERIFY_PARAM_set1_ip( - param: *mut X509_VERIFY_PARAM, - ip: *const ::std::os::raw::c_uchar, - iplen: usize, + #[link_name = "\u{1}aws_lc_0_21_0_X509_load_cert_crl_file"] + pub fn X509_load_cert_crl_file( + ctx: *mut X509_LOOKUP, + file: *const ::std::os::raw::c_char, + type_: ::std::os::raw::c_int, ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_X509_VERIFY_PARAM_set1_ip_asc"] - pub fn X509_VERIFY_PARAM_set1_ip_asc( - param: *mut X509_VERIFY_PARAM, - ipasc: *const ::std::os::raw::c_char, + #[link_name = "\u{1}aws_lc_0_21_0_X509_STORE_load_locations"] + pub fn X509_STORE_load_locations( + ctx: *mut X509_STORE, + file: *const ::std::os::raw::c_char, + dir: *const ::std::os::raw::c_char, ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_X509_VERIFY_PARAM_get_depth"] - pub fn X509_VERIFY_PARAM_get_depth(param: *const X509_VERIFY_PARAM) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_0_21_0_X509_STORE_set_default_paths"] + pub fn X509_STORE_set_default_paths(ctx: *mut X509_STORE) -> ::std::os::raw::c_int; } pub type X509V3_EXT_NEW = ::std::option::Option *mut ::std::os::raw::c_void>; @@ -25347,14 +25336,6 @@ extern "C" { flags: ::std::os::raw::c_ulong, ) -> ::std::os::raw::c_int; } -extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_X509_check_purpose"] - pub fn X509_check_purpose( - x: *mut X509, - id: ::std::os::raw::c_int, - ca: ::std::os::raw::c_int, - ) -> ::std::os::raw::c_int; -} extern "C" { #[link_name = "\u{1}aws_lc_0_21_0_X509_PURPOSE_set"] pub fn X509_PURPOSE_set( From 29619fbe5a77633da27e6e1e7d1a2736419fb3e1 Mon Sep 17 00:00:00 2001 From: aws-lc-sys-bindings-generator Date: Wed, 28 Aug 2024 14:43:22 +0000 Subject: [PATCH 27/36] Generated bindings for i686-pc-windows-msvc --- aws-lc-sys/src/i686_pc_windows_msvc_crypto.rs | 3591 ++++++++--------- 1 file changed, 1786 insertions(+), 1805 deletions(-) diff --git a/aws-lc-sys/src/i686_pc_windows_msvc_crypto.rs b/aws-lc-sys/src/i686_pc_windows_msvc_crypto.rs index 2faf6842955..f20aa94c840 100644 --- a/aws-lc-sys/src/i686_pc_windows_msvc_crypto.rs +++ b/aws-lc-sys/src/i686_pc_windows_msvc_crypto.rs @@ -111,7 +111,7 @@ pub const AWSLC_VERSION_NAME: &[u8; 7] = b"AWS-LC\0"; pub const OPENSSL_VERSION_NUMBER: i32 = 269488255; pub const SSLEAY_VERSION_NUMBER: i32 = 269488255; pub const AWSLC_API_VERSION: i32 = 29; -pub const AWSLC_VERSION_NUMBER_STRING: &[u8; 7] = b"1.33.0\0"; +pub const AWSLC_VERSION_NUMBER_STRING: &[u8; 7] = b"1.34.2\0"; pub const AES_ENCRYPT: i32 = 1; pub const AES_DECRYPT: i32 = 0; pub const AES_MAXNR: i32 = 14; @@ -132,7 +132,7 @@ pub const CRYPTO_LOCK: i32 = 1; pub const CRYPTO_UNLOCK: i32 = 2; pub const CRYPTO_READ: i32 = 4; pub const CRYPTO_WRITE: i32 = 8; -pub const OPENSSL_VERSION_TEXT: &[u8; 42] = b"OpenSSL 1.1.1 (compatible; AWS-LC 1.33.0)\0"; +pub const OPENSSL_VERSION_TEXT: &[u8; 42] = b"OpenSSL 1.1.1 (compatible; AWS-LC 1.34.2)\0"; pub const OPENSSL_VERSION: i32 = 0; pub const OPENSSL_CFLAGS: i32 = 1; pub const OPENSSL_BUILT_ON: i32 = 2; @@ -3283,6 +3283,14 @@ pub const EVP_PKEY_DH: i32 = 28; pub const HKDF_R_OUTPUT_TOO_LARGE: i32 = 100; pub const MD5_CBLOCK: i32 = 64; pub const MD5_DIGEST_LENGTH: i32 = 16; +pub const HMAC_MD5_PRECOMPUTED_KEY_SIZE: i32 = 32; +pub const HMAC_SHA1_PRECOMPUTED_KEY_SIZE: i32 = 40; +pub const HMAC_SHA224_PRECOMPUTED_KEY_SIZE: i32 = 64; +pub const HMAC_SHA256_PRECOMPUTED_KEY_SIZE: i32 = 64; +pub const HMAC_SHA384_PRECOMPUTED_KEY_SIZE: i32 = 128; +pub const HMAC_SHA512_PRECOMPUTED_KEY_SIZE: i32 = 128; +pub const HMAC_SHA512_224_PRECOMPUTED_KEY_SIZE: i32 = 128; +pub const HMAC_SHA512_256_PRECOMPUTED_KEY_SIZE: i32 = 128; pub const HMAC_MAX_PRECOMPUTED_KEY_SIZE: i32 = 128; pub const HMAC_R_MISSING_PARAMETERS: i32 = 100; pub const HMAC_R_BUFFER_TOO_SMALL: i32 = 102; @@ -3501,63 +3509,6 @@ pub const GEN_EDIPARTY: i32 = 5; pub const GEN_URI: i32 = 6; pub const GEN_IPADD: i32 = 7; pub const GEN_RID: i32 = 8; -pub const X509_FLAG_COMPAT: i32 = 0; -pub const X509_FLAG_NO_HEADER: i32 = 1; -pub const X509_FLAG_NO_VERSION: i32 = 2; -pub const X509_FLAG_NO_SERIAL: i32 = 4; -pub const X509_FLAG_NO_SIGNAME: i32 = 8; -pub const X509_FLAG_NO_ISSUER: i32 = 16; -pub const X509_FLAG_NO_VALIDITY: i32 = 32; -pub const X509_FLAG_NO_SUBJECT: i32 = 64; -pub const X509_FLAG_NO_PUBKEY: i32 = 128; -pub const X509_FLAG_NO_EXTENSIONS: i32 = 256; -pub const X509_FLAG_NO_SIGDUMP: i32 = 512; -pub const X509_FLAG_NO_AUX: i32 = 1024; -pub const X509_FLAG_NO_ATTRIBUTES: i32 = 2048; -pub const X509_FLAG_NO_IDS: i32 = 4096; -pub const X509V3_EXT_UNKNOWN_MASK: i32 = 983040; -pub const X509V3_EXT_DEFAULT: i32 = 0; -pub const X509V3_EXT_ERROR_UNKNOWN: i32 = 65536; -pub const X509V3_EXT_PARSE_UNKNOWN: i32 = 131072; -pub const X509V3_EXT_DUMP_UNKNOWN: i32 = 196608; -pub const XN_FLAG_COMPAT: i32 = 0; -pub const XN_FLAG_SEP_MASK: i32 = 983040; -pub const XN_FLAG_SEP_COMMA_PLUS: i32 = 65536; -pub const XN_FLAG_SEP_CPLUS_SPC: i32 = 131072; -pub const XN_FLAG_SEP_SPLUS_SPC: i32 = 196608; -pub const XN_FLAG_SEP_MULTILINE: i32 = 262144; -pub const XN_FLAG_DN_REV: i32 = 1048576; -pub const XN_FLAG_FN_MASK: i32 = 6291456; -pub const XN_FLAG_FN_SN: i32 = 0; -pub const XN_FLAG_FN_LN: i32 = 2097152; -pub const XN_FLAG_FN_OID: i32 = 4194304; -pub const XN_FLAG_FN_NONE: i32 = 6291456; -pub const XN_FLAG_SPC_EQ: i32 = 8388608; -pub const XN_FLAG_DUMP_UNKNOWN_FIELDS: i32 = 16777216; -pub const XN_FLAG_FN_ALIGN: i32 = 33554432; -pub const XN_FLAG_RFC2253: i32 = 17892119; -pub const XN_FLAG_ONELINE: i32 = 8520479; -pub const XN_FLAG_MULTILINE: i32 = 44302342; -pub const X509V3_CTX_TEST: i32 = 1; -pub const X509_TRUST_DEFAULT: i32 = -1; -pub const X509_TRUST_COMPAT: i32 = 1; -pub const X509_TRUST_SSL_CLIENT: i32 = 2; -pub const X509_TRUST_SSL_SERVER: i32 = 3; -pub const X509_TRUST_EMAIL: i32 = 4; -pub const X509_TRUST_OBJECT_SIGN: i32 = 5; -pub const X509_TRUST_TSA: i32 = 8; -pub const X509_TRUST_TRUSTED: i32 = 1; -pub const X509_TRUST_REJECTED: i32 = 2; -pub const X509_TRUST_UNTRUSTED: i32 = 3; -pub const X509_LU_NONE: i32 = 0; -pub const X509_LU_X509: i32 = 1; -pub const X509_LU_CRL: i32 = 2; -pub const X509_LU_PKEY: i32 = 3; -pub const X509_L_FILE_LOAD: i32 = 1; -pub const X509_L_ADD_DIR: i32 = 2; -pub const X509_FILETYPE_PEM: i32 = 1; -pub const X509_FILETYPE_ASN1: i32 = 2; -pub const X509_FILETYPE_DEFAULT: i32 = 3; pub const X509_V_OK: i32 = 0; pub const X509_V_ERR_UNSPECIFIED: i32 = 1; pub const X509_V_ERR_UNABLE_TO_GET_ISSUER_CERT: i32 = 2; @@ -3619,6 +3570,78 @@ pub const X509_V_ERR_IP_ADDRESS_MISMATCH: i32 = 64; pub const X509_V_ERR_INVALID_CALL: i32 = 65; pub const X509_V_ERR_STORE_LOOKUP: i32 = 66; pub const X509_V_ERR_NAME_CONSTRAINTS_WITHOUT_SANS: i32 = 67; +pub const X509_CHECK_FLAG_NO_WILDCARDS: i32 = 2; +pub const X509_CHECK_FLAG_NEVER_CHECK_SUBJECT: i32 = 32; +pub const X509_PURPOSE_SSL_CLIENT: i32 = 1; +pub const X509_PURPOSE_SSL_SERVER: i32 = 2; +pub const X509_PURPOSE_NS_SSL_SERVER: i32 = 3; +pub const X509_PURPOSE_SMIME_SIGN: i32 = 4; +pub const X509_PURPOSE_SMIME_ENCRYPT: i32 = 5; +pub const X509_PURPOSE_CRL_SIGN: i32 = 6; +pub const X509_PURPOSE_ANY: i32 = 7; +pub const X509_PURPOSE_OCSP_HELPER: i32 = 8; +pub const X509_PURPOSE_TIMESTAMP_SIGN: i32 = 9; +pub const X509_TRUST_COMPAT: i32 = 1; +pub const X509_TRUST_SSL_CLIENT: i32 = 2; +pub const X509_TRUST_SSL_SERVER: i32 = 3; +pub const X509_TRUST_EMAIL: i32 = 4; +pub const X509_TRUST_OBJECT_SIGN: i32 = 5; +pub const X509_TRUST_TSA: i32 = 8; +pub const X509_FLAG_COMPAT: i32 = 0; +pub const X509_FLAG_NO_HEADER: i32 = 1; +pub const X509_FLAG_NO_VERSION: i32 = 2; +pub const X509_FLAG_NO_SERIAL: i32 = 4; +pub const X509_FLAG_NO_SIGNAME: i32 = 8; +pub const X509_FLAG_NO_ISSUER: i32 = 16; +pub const X509_FLAG_NO_VALIDITY: i32 = 32; +pub const X509_FLAG_NO_SUBJECT: i32 = 64; +pub const X509_FLAG_NO_PUBKEY: i32 = 128; +pub const X509_FLAG_NO_EXTENSIONS: i32 = 256; +pub const X509_FLAG_NO_SIGDUMP: i32 = 512; +pub const X509_FLAG_NO_AUX: i32 = 1024; +pub const X509_FLAG_NO_ATTRIBUTES: i32 = 2048; +pub const X509_FLAG_NO_IDS: i32 = 4096; +pub const X509V3_EXT_UNKNOWN_MASK: i32 = 983040; +pub const X509V3_EXT_DEFAULT: i32 = 0; +pub const X509V3_EXT_ERROR_UNKNOWN: i32 = 65536; +pub const X509V3_EXT_PARSE_UNKNOWN: i32 = 131072; +pub const X509V3_EXT_DUMP_UNKNOWN: i32 = 196608; +pub const XN_FLAG_COMPAT: i32 = 0; +pub const XN_FLAG_SEP_MASK: i32 = 983040; +pub const XN_FLAG_SEP_COMMA_PLUS: i32 = 65536; +pub const XN_FLAG_SEP_CPLUS_SPC: i32 = 131072; +pub const XN_FLAG_SEP_SPLUS_SPC: i32 = 196608; +pub const XN_FLAG_SEP_MULTILINE: i32 = 262144; +pub const XN_FLAG_DN_REV: i32 = 1048576; +pub const XN_FLAG_FN_MASK: i32 = 6291456; +pub const XN_FLAG_FN_SN: i32 = 0; +pub const XN_FLAG_FN_LN: i32 = 2097152; +pub const XN_FLAG_FN_OID: i32 = 4194304; +pub const XN_FLAG_FN_NONE: i32 = 6291456; +pub const XN_FLAG_SPC_EQ: i32 = 8388608; +pub const XN_FLAG_DUMP_UNKNOWN_FIELDS: i32 = 16777216; +pub const XN_FLAG_FN_ALIGN: i32 = 33554432; +pub const XN_FLAG_RFC2253: i32 = 17892119; +pub const XN_FLAG_ONELINE: i32 = 8520479; +pub const XN_FLAG_MULTILINE: i32 = 44302342; +pub const X509_TRUST_TRUSTED: i32 = 1; +pub const X509_TRUST_REJECTED: i32 = 2; +pub const X509_TRUST_UNTRUSTED: i32 = 3; +pub const X509V3_CTX_TEST: i32 = 1; +pub const X509_CHECK_FLAG_ALWAYS_CHECK_SUBJECT: i32 = 0; +pub const X509_CHECK_FLAG_MULTI_LABEL_WILDCARDS: i32 = 0; +pub const X509_CHECK_FLAG_SINGLE_LABEL_SUBDOMAINS: i32 = 0; +pub const X509_CHECK_FLAG_NO_PARTIAL_WILDCARDS: i32 = 0; +pub const X509_TRUST_DEFAULT: i32 = -1; +pub const X509_LU_NONE: i32 = 0; +pub const X509_LU_X509: i32 = 1; +pub const X509_LU_CRL: i32 = 2; +pub const X509_LU_PKEY: i32 = 3; +pub const X509_L_FILE_LOAD: i32 = 1; +pub const X509_L_ADD_DIR: i32 = 2; +pub const X509_FILETYPE_PEM: i32 = 1; +pub const X509_FILETYPE_ASN1: i32 = 2; +pub const X509_FILETYPE_DEFAULT: i32 = 3; pub const X509_V_FLAG_CB_ISSUER_CHECK: i32 = 1; pub const X509_V_FLAG_USE_CHECK_TIME: i32 = 2; pub const X509_V_FLAG_CRL_CHECK: i32 = 4; @@ -3650,15 +3673,6 @@ pub const NS_SSL_CA: i32 = 4; pub const NS_SMIME_CA: i32 = 2; pub const NS_OBJSIGN_CA: i32 = 1; pub const NS_ANY_CA: i32 = 7; -pub const X509_PURPOSE_SSL_CLIENT: i32 = 1; -pub const X509_PURPOSE_SSL_SERVER: i32 = 2; -pub const X509_PURPOSE_NS_SSL_SERVER: i32 = 3; -pub const X509_PURPOSE_SMIME_SIGN: i32 = 4; -pub const X509_PURPOSE_SMIME_ENCRYPT: i32 = 5; -pub const X509_PURPOSE_CRL_SIGN: i32 = 6; -pub const X509_PURPOSE_ANY: i32 = 7; -pub const X509_PURPOSE_OCSP_HELPER: i32 = 8; -pub const X509_PURPOSE_TIMESTAMP_SIGN: i32 = 9; pub const X509V3_ADD_OP_MASK: i32 = 15; pub const X509V3_ADD_DEFAULT: i32 = 0; pub const X509V3_ADD_APPEND: i32 = 1; @@ -3667,12 +3681,6 @@ pub const X509V3_ADD_REPLACE_EXISTING: i32 = 3; pub const X509V3_ADD_KEEP_EXISTING: i32 = 4; pub const X509V3_ADD_DELETE: i32 = 5; pub const X509V3_ADD_SILENT: i32 = 16; -pub const X509_CHECK_FLAG_NO_WILDCARDS: i32 = 2; -pub const X509_CHECK_FLAG_NEVER_CHECK_SUBJECT: i32 = 32; -pub const X509_CHECK_FLAG_NO_PARTIAL_WILDCARDS: i32 = 0; -pub const X509_CHECK_FLAG_ALWAYS_CHECK_SUBJECT: i32 = 0; -pub const X509_CHECK_FLAG_MULTI_LABEL_WILDCARDS: i32 = 0; -pub const X509_CHECK_FLAG_SINGLE_LABEL_SUBDOMAINS: i32 = 0; pub const X509_R_AKID_MISMATCH: i32 = 100; pub const X509_R_BAD_PKCS7_VERSION: i32 = 101; pub const X509_R_BAD_X509_FILETYPE: i32 = 102; @@ -13026,24 +13034,6 @@ extern "C" { enc: ::std::os::raw::c_int, ); } -extern "C" { - #[link_name = "\u{1}_aws_lc_0_21_0_DES_decrypt3"] - pub fn DES_decrypt3( - data: *mut u32, - ks1: *const DES_key_schedule, - ks2: *const DES_key_schedule, - ks3: *const DES_key_schedule, - ); -} -extern "C" { - #[link_name = "\u{1}_aws_lc_0_21_0_DES_encrypt3"] - pub fn DES_encrypt3( - data: *mut u32, - ks1: *const DES_key_schedule, - ks2: *const DES_key_schedule, - ks3: *const DES_key_schedule, - ); -} extern "C" { #[link_name = "\u{1}_aws_lc_0_21_0_DH_new"] pub fn DH_new() -> *mut DH; @@ -21048,1751 +21038,1558 @@ extern "C" { idx: ::std::os::raw::c_int, ) -> *mut ASN1_TYPE; } -#[repr(C)] -#[derive(Debug, Copy, Clone, PartialEq, Eq)] -pub struct Netscape_spki_st { - pub spkac: *mut NETSCAPE_SPKAC, - pub sig_algor: *mut X509_ALGOR, - pub signature: *mut ASN1_BIT_STRING, -} -#[test] -fn bindgen_test_layout_Netscape_spki_st() { - const UNINIT: ::std::mem::MaybeUninit = ::std::mem::MaybeUninit::uninit(); - let ptr = UNINIT.as_ptr(); - assert_eq!( - ::std::mem::size_of::(), - 12usize, - concat!("Size of: ", stringify!(Netscape_spki_st)) - ); - assert_eq!( - ::std::mem::align_of::(), - 4usize, - concat!("Alignment of ", stringify!(Netscape_spki_st)) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).spkac) as usize - ptr as usize }, - 0usize, - concat!( - "Offset of field: ", - stringify!(Netscape_spki_st), - "::", - stringify!(spkac) - ) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).sig_algor) as usize - ptr as usize }, - 4usize, - concat!( - "Offset of field: ", - stringify!(Netscape_spki_st), - "::", - stringify!(sig_algor) - ) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).signature) as usize - ptr as usize }, - 8usize, - concat!( - "Offset of field: ", - stringify!(Netscape_spki_st), - "::", - stringify!(signature) - ) - ); +extern "C" { + #[link_name = "\u{1}_aws_lc_0_21_0_X509_STORE_new"] + pub fn X509_STORE_new() -> *mut X509_STORE; } -impl Default for Netscape_spki_st { - fn default() -> Self { - let mut s = ::std::mem::MaybeUninit::::uninit(); - unsafe { - ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() - } - } +extern "C" { + #[link_name = "\u{1}_aws_lc_0_21_0_X509_STORE_up_ref"] + pub fn X509_STORE_up_ref(store: *mut X509_STORE) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_0_21_0_NETSCAPE_SPKI_it"] - pub static NETSCAPE_SPKI_it: ASN1_ITEM; + #[link_name = "\u{1}_aws_lc_0_21_0_X509_STORE_free"] + pub fn X509_STORE_free(store: *mut X509_STORE); } extern "C" { - #[link_name = "\u{1}_aws_lc_0_21_0_NETSCAPE_SPKI_new"] - pub fn NETSCAPE_SPKI_new() -> *mut NETSCAPE_SPKI; + #[link_name = "\u{1}_aws_lc_0_21_0_X509_STORE_add_cert"] + pub fn X509_STORE_add_cert(store: *mut X509_STORE, x509: *mut X509) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_0_21_0_NETSCAPE_SPKI_free"] - pub fn NETSCAPE_SPKI_free(spki: *mut NETSCAPE_SPKI); + #[link_name = "\u{1}_aws_lc_0_21_0_X509_STORE_add_crl"] + pub fn X509_STORE_add_crl(store: *mut X509_STORE, crl: *mut X509_CRL) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_0_21_0_d2i_NETSCAPE_SPKI"] - pub fn d2i_NETSCAPE_SPKI( - out: *mut *mut NETSCAPE_SPKI, - inp: *mut *const u8, - len: ::std::os::raw::c_long, - ) -> *mut NETSCAPE_SPKI; + #[link_name = "\u{1}_aws_lc_0_21_0_X509_STORE_get0_param"] + pub fn X509_STORE_get0_param(store: *mut X509_STORE) -> *mut X509_VERIFY_PARAM; } extern "C" { - #[link_name = "\u{1}_aws_lc_0_21_0_i2d_NETSCAPE_SPKI"] - pub fn i2d_NETSCAPE_SPKI( - spki: *const NETSCAPE_SPKI, - outp: *mut *mut u8, + #[link_name = "\u{1}_aws_lc_0_21_0_X509_STORE_set1_param"] + pub fn X509_STORE_set1_param( + store: *mut X509_STORE, + param: *const X509_VERIFY_PARAM, ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_0_21_0_NETSCAPE_SPKI_verify"] - pub fn NETSCAPE_SPKI_verify( - spki: *mut NETSCAPE_SPKI, - pkey: *mut EVP_PKEY, + #[link_name = "\u{1}_aws_lc_0_21_0_X509_STORE_set_flags"] + pub fn X509_STORE_set_flags( + store: *mut X509_STORE, + flags: ::std::os::raw::c_ulong, ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_0_21_0_NETSCAPE_SPKI_b64_decode"] - pub fn NETSCAPE_SPKI_b64_decode( - str_: *const ::std::os::raw::c_char, - len: ossl_ssize_t, - ) -> *mut NETSCAPE_SPKI; + #[link_name = "\u{1}_aws_lc_0_21_0_X509_STORE_set_depth"] + pub fn X509_STORE_set_depth( + store: *mut X509_STORE, + depth: ::std::os::raw::c_int, + ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_0_21_0_NETSCAPE_SPKI_b64_encode"] - pub fn NETSCAPE_SPKI_b64_encode(spki: *mut NETSCAPE_SPKI) -> *mut ::std::os::raw::c_char; + #[link_name = "\u{1}_aws_lc_0_21_0_X509_STORE_set_purpose"] + pub fn X509_STORE_set_purpose( + store: *mut X509_STORE, + purpose: ::std::os::raw::c_int, + ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_0_21_0_NETSCAPE_SPKI_get_pubkey"] - pub fn NETSCAPE_SPKI_get_pubkey(spki: *const NETSCAPE_SPKI) -> *mut EVP_PKEY; + #[link_name = "\u{1}_aws_lc_0_21_0_X509_STORE_set_trust"] + pub fn X509_STORE_set_trust( + store: *mut X509_STORE, + trust: ::std::os::raw::c_int, + ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_0_21_0_NETSCAPE_SPKI_set_pubkey"] - pub fn NETSCAPE_SPKI_set_pubkey( - spki: *mut NETSCAPE_SPKI, - pkey: *mut EVP_PKEY, - ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}_aws_lc_0_21_0_X509_STORE_CTX_new"] + pub fn X509_STORE_CTX_new() -> *mut X509_STORE_CTX; } extern "C" { - #[link_name = "\u{1}_aws_lc_0_21_0_NETSCAPE_SPKI_sign"] - pub fn NETSCAPE_SPKI_sign( - spki: *mut NETSCAPE_SPKI, - pkey: *mut EVP_PKEY, - md: *const EVP_MD, + #[link_name = "\u{1}_aws_lc_0_21_0_X509_STORE_CTX_free"] + pub fn X509_STORE_CTX_free(ctx: *mut X509_STORE_CTX); +} +extern "C" { + #[link_name = "\u{1}_aws_lc_0_21_0_X509_STORE_CTX_init"] + pub fn X509_STORE_CTX_init( + ctx: *mut X509_STORE_CTX, + store: *mut X509_STORE, + x509: *mut X509, + chain: *mut stack_st_X509, ) -> ::std::os::raw::c_int; } -#[repr(C)] -#[derive(Debug, Copy, Clone, PartialEq, Eq)] -pub struct Netscape_spkac_st { - pub pubkey: *mut X509_PUBKEY, - pub challenge: *mut ASN1_IA5STRING, +extern "C" { + #[link_name = "\u{1}_aws_lc_0_21_0_X509_verify_cert"] + pub fn X509_verify_cert(ctx: *mut X509_STORE_CTX) -> ::std::os::raw::c_int; } -#[test] -fn bindgen_test_layout_Netscape_spkac_st() { - const UNINIT: ::std::mem::MaybeUninit = ::std::mem::MaybeUninit::uninit(); - let ptr = UNINIT.as_ptr(); - assert_eq!( - ::std::mem::size_of::(), - 8usize, - concat!("Size of: ", stringify!(Netscape_spkac_st)) - ); - assert_eq!( - ::std::mem::align_of::(), - 4usize, - concat!("Alignment of ", stringify!(Netscape_spkac_st)) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).pubkey) as usize - ptr as usize }, - 0usize, - concat!( - "Offset of field: ", - stringify!(Netscape_spkac_st), - "::", - stringify!(pubkey) - ) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).challenge) as usize - ptr as usize }, - 4usize, - concat!( - "Offset of field: ", - stringify!(Netscape_spkac_st), - "::", - stringify!(challenge) - ) - ); +extern "C" { + #[link_name = "\u{1}_aws_lc_0_21_0_X509_STORE_CTX_get0_chain"] + pub fn X509_STORE_CTX_get0_chain(ctx: *mut X509_STORE_CTX) -> *mut stack_st_X509; } -impl Default for Netscape_spkac_st { - fn default() -> Self { - let mut s = ::std::mem::MaybeUninit::::uninit(); - unsafe { - ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() - } - } +extern "C" { + #[link_name = "\u{1}_aws_lc_0_21_0_X509_STORE_CTX_get1_chain"] + pub fn X509_STORE_CTX_get1_chain(ctx: *mut X509_STORE_CTX) -> *mut stack_st_X509; } extern "C" { - #[link_name = "\u{1}_aws_lc_0_21_0_NETSCAPE_SPKAC_it"] - pub static NETSCAPE_SPKAC_it: ASN1_ITEM; + #[link_name = "\u{1}_aws_lc_0_21_0_X509_STORE_CTX_set_cert"] + pub fn X509_STORE_CTX_set_cert(c: *mut X509_STORE_CTX, x: *mut X509); } extern "C" { - #[link_name = "\u{1}_aws_lc_0_21_0_NETSCAPE_SPKAC_new"] - pub fn NETSCAPE_SPKAC_new() -> *mut NETSCAPE_SPKAC; + #[link_name = "\u{1}_aws_lc_0_21_0_X509_STORE_CTX_get_error"] + pub fn X509_STORE_CTX_get_error(ctx: *mut X509_STORE_CTX) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_0_21_0_NETSCAPE_SPKAC_free"] - pub fn NETSCAPE_SPKAC_free(spkac: *mut NETSCAPE_SPKAC); + #[link_name = "\u{1}_aws_lc_0_21_0_X509_STORE_CTX_set_error"] + pub fn X509_STORE_CTX_set_error(ctx: *mut X509_STORE_CTX, err: ::std::os::raw::c_int); } extern "C" { - #[link_name = "\u{1}_aws_lc_0_21_0_d2i_NETSCAPE_SPKAC"] - pub fn d2i_NETSCAPE_SPKAC( - out: *mut *mut NETSCAPE_SPKAC, - inp: *mut *const u8, - len: ::std::os::raw::c_long, - ) -> *mut NETSCAPE_SPKAC; + #[link_name = "\u{1}_aws_lc_0_21_0_X509_verify_cert_error_string"] + pub fn X509_verify_cert_error_string( + err: ::std::os::raw::c_long, + ) -> *const ::std::os::raw::c_char; } extern "C" { - #[link_name = "\u{1}_aws_lc_0_21_0_i2d_NETSCAPE_SPKAC"] - pub fn i2d_NETSCAPE_SPKAC( - spkac: *const NETSCAPE_SPKAC, - outp: *mut *mut u8, - ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}_aws_lc_0_21_0_X509_STORE_CTX_get_error_depth"] + pub fn X509_STORE_CTX_get_error_depth(ctx: *mut X509_STORE_CTX) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_0_21_0_NETSCAPE_SPKI_print"] - pub fn NETSCAPE_SPKI_print(out: *mut BIO, spki: *mut NETSCAPE_SPKI) -> ::std::os::raw::c_int; + #[link_name = "\u{1}_aws_lc_0_21_0_X509_STORE_CTX_get_current_cert"] + pub fn X509_STORE_CTX_get_current_cert(ctx: *mut X509_STORE_CTX) -> *mut X509; } -#[repr(C)] -#[derive(Debug, Copy, Clone, PartialEq, Eq)] -pub struct rsa_pss_params_st { - pub hashAlgorithm: *mut X509_ALGOR, - pub maskGenAlgorithm: *mut X509_ALGOR, - pub saltLength: *mut ASN1_INTEGER, - pub trailerField: *mut ASN1_INTEGER, - pub maskHash: *mut X509_ALGOR, +extern "C" { + #[link_name = "\u{1}_aws_lc_0_21_0_X509_STORE_CTX_get0_current_issuer"] + pub fn X509_STORE_CTX_get0_current_issuer(ctx: *mut X509_STORE_CTX) -> *mut X509; } -#[test] -fn bindgen_test_layout_rsa_pss_params_st() { - const UNINIT: ::std::mem::MaybeUninit = ::std::mem::MaybeUninit::uninit(); - let ptr = UNINIT.as_ptr(); - assert_eq!( - ::std::mem::size_of::(), - 20usize, - concat!("Size of: ", stringify!(rsa_pss_params_st)) - ); - assert_eq!( - ::std::mem::align_of::(), - 4usize, - concat!("Alignment of ", stringify!(rsa_pss_params_st)) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).hashAlgorithm) as usize - ptr as usize }, - 0usize, - concat!( - "Offset of field: ", - stringify!(rsa_pss_params_st), - "::", - stringify!(hashAlgorithm) - ) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).maskGenAlgorithm) as usize - ptr as usize }, - 4usize, - concat!( - "Offset of field: ", - stringify!(rsa_pss_params_st), - "::", - stringify!(maskGenAlgorithm) - ) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).saltLength) as usize - ptr as usize }, - 8usize, - concat!( - "Offset of field: ", - stringify!(rsa_pss_params_st), - "::", - stringify!(saltLength) - ) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).trailerField) as usize - ptr as usize }, - 12usize, - concat!( - "Offset of field: ", - stringify!(rsa_pss_params_st), - "::", - stringify!(trailerField) - ) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).maskHash) as usize - ptr as usize }, - 16usize, - concat!( - "Offset of field: ", - stringify!(rsa_pss_params_st), - "::", - stringify!(maskHash) - ) - ); +extern "C" { + #[link_name = "\u{1}_aws_lc_0_21_0_X509_STORE_CTX_get0_current_crl"] + pub fn X509_STORE_CTX_get0_current_crl(ctx: *mut X509_STORE_CTX) -> *mut X509_CRL; } -impl Default for rsa_pss_params_st { - fn default() -> Self { - let mut s = ::std::mem::MaybeUninit::::uninit(); - unsafe { - ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() - } - } +extern "C" { + #[link_name = "\u{1}_aws_lc_0_21_0_X509_STORE_CTX_get0_store"] + pub fn X509_STORE_CTX_get0_store(ctx: *mut X509_STORE_CTX) -> *mut X509_STORE; } extern "C" { - #[link_name = "\u{1}_aws_lc_0_21_0_RSA_PSS_PARAMS_it"] - pub static RSA_PSS_PARAMS_it: ASN1_ITEM; + #[link_name = "\u{1}_aws_lc_0_21_0_X509_STORE_CTX_get0_cert"] + pub fn X509_STORE_CTX_get0_cert(ctx: *mut X509_STORE_CTX) -> *mut X509; } extern "C" { - #[link_name = "\u{1}_aws_lc_0_21_0_RSA_PSS_PARAMS_new"] - pub fn RSA_PSS_PARAMS_new() -> *mut RSA_PSS_PARAMS; + #[link_name = "\u{1}_aws_lc_0_21_0_X509_STORE_CTX_get0_untrusted"] + pub fn X509_STORE_CTX_get0_untrusted(ctx: *mut X509_STORE_CTX) -> *mut stack_st_X509; } extern "C" { - #[link_name = "\u{1}_aws_lc_0_21_0_RSA_PSS_PARAMS_free"] - pub fn RSA_PSS_PARAMS_free(params: *mut RSA_PSS_PARAMS); + #[link_name = "\u{1}_aws_lc_0_21_0_X509_STORE_CTX_set0_trusted_stack"] + pub fn X509_STORE_CTX_set0_trusted_stack(ctx: *mut X509_STORE_CTX, sk: *mut stack_st_X509); } extern "C" { - #[link_name = "\u{1}_aws_lc_0_21_0_d2i_RSA_PSS_PARAMS"] - pub fn d2i_RSA_PSS_PARAMS( - out: *mut *mut RSA_PSS_PARAMS, - inp: *mut *const u8, - len: ::std::os::raw::c_long, - ) -> *mut RSA_PSS_PARAMS; + #[link_name = "\u{1}_aws_lc_0_21_0_X509_STORE_CTX_set0_crls"] + pub fn X509_STORE_CTX_set0_crls(ctx: *mut X509_STORE_CTX, sk: *mut stack_st_X509_CRL); } extern "C" { - #[link_name = "\u{1}_aws_lc_0_21_0_i2d_RSA_PSS_PARAMS"] - pub fn i2d_RSA_PSS_PARAMS( - in_: *const RSA_PSS_PARAMS, - outp: *mut *mut u8, + #[link_name = "\u{1}_aws_lc_0_21_0_X509_STORE_CTX_set_default"] + pub fn X509_STORE_CTX_set_default( + ctx: *mut X509_STORE_CTX, + name: *const ::std::os::raw::c_char, ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_0_21_0_PKCS8_PRIV_KEY_INFO_it"] - pub static PKCS8_PRIV_KEY_INFO_it: ASN1_ITEM; + #[link_name = "\u{1}_aws_lc_0_21_0_X509_STORE_CTX_get0_param"] + pub fn X509_STORE_CTX_get0_param(ctx: *mut X509_STORE_CTX) -> *mut X509_VERIFY_PARAM; } extern "C" { - #[link_name = "\u{1}_aws_lc_0_21_0_PKCS8_PRIV_KEY_INFO_new"] - pub fn PKCS8_PRIV_KEY_INFO_new() -> *mut PKCS8_PRIV_KEY_INFO; -} -extern "C" { - #[link_name = "\u{1}_aws_lc_0_21_0_PKCS8_PRIV_KEY_INFO_free"] - pub fn PKCS8_PRIV_KEY_INFO_free(key: *mut PKCS8_PRIV_KEY_INFO); -} -extern "C" { - #[link_name = "\u{1}_aws_lc_0_21_0_d2i_PKCS8_PRIV_KEY_INFO"] - pub fn d2i_PKCS8_PRIV_KEY_INFO( - out: *mut *mut PKCS8_PRIV_KEY_INFO, - inp: *mut *const u8, - len: ::std::os::raw::c_long, - ) -> *mut PKCS8_PRIV_KEY_INFO; -} -extern "C" { - #[link_name = "\u{1}_aws_lc_0_21_0_i2d_PKCS8_PRIV_KEY_INFO"] - pub fn i2d_PKCS8_PRIV_KEY_INFO( - key: *const PKCS8_PRIV_KEY_INFO, - outp: *mut *mut u8, - ) -> ::std::os::raw::c_int; -} -extern "C" { - #[link_name = "\u{1}_aws_lc_0_21_0_EVP_PKCS82PKEY"] - pub fn EVP_PKCS82PKEY(p8: *const PKCS8_PRIV_KEY_INFO) -> *mut EVP_PKEY; + #[link_name = "\u{1}_aws_lc_0_21_0_X509_STORE_CTX_set0_param"] + pub fn X509_STORE_CTX_set0_param(ctx: *mut X509_STORE_CTX, param: *mut X509_VERIFY_PARAM); } extern "C" { - #[link_name = "\u{1}_aws_lc_0_21_0_EVP_PKEY2PKCS8"] - pub fn EVP_PKEY2PKCS8(pkey: *const EVP_PKEY) -> *mut PKCS8_PRIV_KEY_INFO; + #[link_name = "\u{1}_aws_lc_0_21_0_X509_STORE_CTX_set_flags"] + pub fn X509_STORE_CTX_set_flags(ctx: *mut X509_STORE_CTX, flags: ::std::os::raw::c_ulong); } extern "C" { - #[link_name = "\u{1}_aws_lc_0_21_0_X509_SIG_it"] - pub static X509_SIG_it: ASN1_ITEM; + #[link_name = "\u{1}_aws_lc_0_21_0_X509_STORE_CTX_set_time"] + pub fn X509_STORE_CTX_set_time( + ctx: *mut X509_STORE_CTX, + flags: ::std::os::raw::c_ulong, + t: time_t, + ); } extern "C" { - #[link_name = "\u{1}_aws_lc_0_21_0_X509_SIG_new"] - pub fn X509_SIG_new() -> *mut X509_SIG; + #[link_name = "\u{1}_aws_lc_0_21_0_X509_STORE_CTX_set_time_posix"] + pub fn X509_STORE_CTX_set_time_posix( + ctx: *mut X509_STORE_CTX, + flags: ::std::os::raw::c_ulong, + t: i64, + ); } extern "C" { - #[link_name = "\u{1}_aws_lc_0_21_0_X509_SIG_free"] - pub fn X509_SIG_free(key: *mut X509_SIG); + #[link_name = "\u{1}_aws_lc_0_21_0_X509_STORE_CTX_set_depth"] + pub fn X509_STORE_CTX_set_depth(ctx: *mut X509_STORE_CTX, depth: ::std::os::raw::c_int); } extern "C" { - #[link_name = "\u{1}_aws_lc_0_21_0_d2i_X509_SIG"] - pub fn d2i_X509_SIG( - out: *mut *mut X509_SIG, - inp: *mut *const u8, - len: ::std::os::raw::c_long, - ) -> *mut X509_SIG; + #[link_name = "\u{1}_aws_lc_0_21_0_X509_STORE_CTX_set_purpose"] + pub fn X509_STORE_CTX_set_purpose( + ctx: *mut X509_STORE_CTX, + purpose: ::std::os::raw::c_int, + ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_0_21_0_i2d_X509_SIG"] - pub fn i2d_X509_SIG(sig: *const X509_SIG, outp: *mut *mut u8) -> ::std::os::raw::c_int; + #[link_name = "\u{1}_aws_lc_0_21_0_X509_STORE_CTX_set_trust"] + pub fn X509_STORE_CTX_set_trust( + ctx: *mut X509_STORE_CTX, + trust: ::std::os::raw::c_int, + ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_0_21_0_X509_SIG_get0"] - pub fn X509_SIG_get0( - sig: *const X509_SIG, - out_alg: *mut *const X509_ALGOR, - out_digest: *mut *const ASN1_OCTET_STRING, - ); + #[link_name = "\u{1}_aws_lc_0_21_0_X509_VERIFY_PARAM_new"] + pub fn X509_VERIFY_PARAM_new() -> *mut X509_VERIFY_PARAM; } extern "C" { - #[link_name = "\u{1}_aws_lc_0_21_0_X509_SIG_getm"] - pub fn X509_SIG_getm( - sig: *mut X509_SIG, - out_alg: *mut *mut X509_ALGOR, - out_digest: *mut *mut ASN1_OCTET_STRING, - ); + #[link_name = "\u{1}_aws_lc_0_21_0_X509_VERIFY_PARAM_free"] + pub fn X509_VERIFY_PARAM_free(param: *mut X509_VERIFY_PARAM); } extern "C" { - #[link_name = "\u{1}_aws_lc_0_21_0_X509_print_ex"] - pub fn X509_print_ex( - bp: *mut BIO, - x: *mut X509, - nmflag: ::std::os::raw::c_ulong, - cflag: ::std::os::raw::c_ulong, + #[link_name = "\u{1}_aws_lc_0_21_0_X509_VERIFY_PARAM_inherit"] + pub fn X509_VERIFY_PARAM_inherit( + to: *mut X509_VERIFY_PARAM, + from: *const X509_VERIFY_PARAM, ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_0_21_0_X509_print_ex_fp"] - pub fn X509_print_ex_fp( - fp: *mut FILE, - x: *mut X509, - nmflag: ::std::os::raw::c_ulong, - cflag: ::std::os::raw::c_ulong, + #[link_name = "\u{1}_aws_lc_0_21_0_X509_VERIFY_PARAM_set1"] + pub fn X509_VERIFY_PARAM_set1( + to: *mut X509_VERIFY_PARAM, + from: *const X509_VERIFY_PARAM, ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_0_21_0_X509_print"] - pub fn X509_print(bp: *mut BIO, x: *mut X509) -> ::std::os::raw::c_int; + #[link_name = "\u{1}_aws_lc_0_21_0_X509_VERIFY_PARAM_set_flags"] + pub fn X509_VERIFY_PARAM_set_flags( + param: *mut X509_VERIFY_PARAM, + flags: ::std::os::raw::c_ulong, + ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_0_21_0_X509_print_fp"] - pub fn X509_print_fp(fp: *mut FILE, x: *mut X509) -> ::std::os::raw::c_int; + #[link_name = "\u{1}_aws_lc_0_21_0_X509_VERIFY_PARAM_clear_flags"] + pub fn X509_VERIFY_PARAM_clear_flags( + param: *mut X509_VERIFY_PARAM, + flags: ::std::os::raw::c_ulong, + ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_0_21_0_X509_CRL_print"] - pub fn X509_CRL_print(bp: *mut BIO, x: *mut X509_CRL) -> ::std::os::raw::c_int; + #[link_name = "\u{1}_aws_lc_0_21_0_X509_VERIFY_PARAM_get_flags"] + pub fn X509_VERIFY_PARAM_get_flags(param: *const X509_VERIFY_PARAM) -> ::std::os::raw::c_ulong; } extern "C" { - #[link_name = "\u{1}_aws_lc_0_21_0_X509_CRL_print_fp"] - pub fn X509_CRL_print_fp(fp: *mut FILE, x: *mut X509_CRL) -> ::std::os::raw::c_int; + #[link_name = "\u{1}_aws_lc_0_21_0_X509_VERIFY_PARAM_set_depth"] + pub fn X509_VERIFY_PARAM_set_depth(param: *mut X509_VERIFY_PARAM, depth: ::std::os::raw::c_int); } extern "C" { - #[link_name = "\u{1}_aws_lc_0_21_0_X509_REQ_print_ex"] - pub fn X509_REQ_print_ex( - bp: *mut BIO, - x: *mut X509_REQ, - nmflag: ::std::os::raw::c_ulong, - cflag: ::std::os::raw::c_ulong, - ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}_aws_lc_0_21_0_X509_VERIFY_PARAM_get_depth"] + pub fn X509_VERIFY_PARAM_get_depth(param: *const X509_VERIFY_PARAM) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_0_21_0_X509_REQ_print"] - pub fn X509_REQ_print(bp: *mut BIO, req: *mut X509_REQ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}_aws_lc_0_21_0_X509_VERIFY_PARAM_set_time"] + pub fn X509_VERIFY_PARAM_set_time(param: *mut X509_VERIFY_PARAM, t: time_t); } extern "C" { - #[link_name = "\u{1}_aws_lc_0_21_0_X509_REQ_print_fp"] - pub fn X509_REQ_print_fp(fp: *mut FILE, req: *mut X509_REQ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}_aws_lc_0_21_0_X509_VERIFY_PARAM_set_time_posix"] + pub fn X509_VERIFY_PARAM_set_time_posix(param: *mut X509_VERIFY_PARAM, t: i64); } extern "C" { - #[link_name = "\u{1}_aws_lc_0_21_0_X509_NAME_print_ex"] - pub fn X509_NAME_print_ex( - out: *mut BIO, - nm: *const X509_NAME, - indent: ::std::os::raw::c_int, - flags: ::std::os::raw::c_ulong, + #[link_name = "\u{1}_aws_lc_0_21_0_X509_VERIFY_PARAM_add0_policy"] + pub fn X509_VERIFY_PARAM_add0_policy( + param: *mut X509_VERIFY_PARAM, + policy: *mut ASN1_OBJECT, ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_0_21_0_X509_NAME_print"] - pub fn X509_NAME_print( - bp: *mut BIO, - name: *const X509_NAME, - obase: ::std::os::raw::c_int, + #[link_name = "\u{1}_aws_lc_0_21_0_X509_VERIFY_PARAM_set1_policies"] + pub fn X509_VERIFY_PARAM_set1_policies( + param: *mut X509_VERIFY_PARAM, + policies: *const stack_st_ASN1_OBJECT, ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_0_21_0_X509_NAME_oneline"] - pub fn X509_NAME_oneline( - name: *const X509_NAME, - buf: *mut ::std::os::raw::c_char, - size: ::std::os::raw::c_int, - ) -> *mut ::std::os::raw::c_char; -} -extern "C" { - #[link_name = "\u{1}_aws_lc_0_21_0_X509_NAME_print_ex_fp"] - pub fn X509_NAME_print_ex_fp( - fp: *mut FILE, - nm: *const X509_NAME, - indent: ::std::os::raw::c_int, - flags: ::std::os::raw::c_ulong, + #[link_name = "\u{1}_aws_lc_0_21_0_X509_VERIFY_PARAM_set1_host"] + pub fn X509_VERIFY_PARAM_set1_host( + param: *mut X509_VERIFY_PARAM, + name: *const ::std::os::raw::c_char, + name_len: usize, ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_0_21_0_X509_signature_dump"] - pub fn X509_signature_dump( - bio: *mut BIO, - sig: *const ASN1_STRING, - indent: ::std::os::raw::c_int, + #[link_name = "\u{1}_aws_lc_0_21_0_X509_VERIFY_PARAM_add1_host"] + pub fn X509_VERIFY_PARAM_add1_host( + param: *mut X509_VERIFY_PARAM, + name: *const ::std::os::raw::c_char, + name_len: usize, ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_0_21_0_X509_signature_print"] - pub fn X509_signature_print( - bio: *mut BIO, - alg: *const X509_ALGOR, - sig: *const ASN1_STRING, - ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}_aws_lc_0_21_0_X509_VERIFY_PARAM_set_hostflags"] + pub fn X509_VERIFY_PARAM_set_hostflags( + param: *mut X509_VERIFY_PARAM, + flags: ::std::os::raw::c_uint, + ); } extern "C" { - #[link_name = "\u{1}_aws_lc_0_21_0_X509V3_EXT_print"] - pub fn X509V3_EXT_print( - out: *mut BIO, - ext: *const X509_EXTENSION, - flag: ::std::os::raw::c_ulong, - indent: ::std::os::raw::c_int, + #[link_name = "\u{1}_aws_lc_0_21_0_X509_VERIFY_PARAM_set1_email"] + pub fn X509_VERIFY_PARAM_set1_email( + param: *mut X509_VERIFY_PARAM, + email: *const ::std::os::raw::c_char, + email_len: usize, ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_0_21_0_X509V3_EXT_print_fp"] - pub fn X509V3_EXT_print_fp( - out: *mut FILE, - ext: *const X509_EXTENSION, - flag: ::std::os::raw::c_int, - indent: ::std::os::raw::c_int, + #[link_name = "\u{1}_aws_lc_0_21_0_X509_VERIFY_PARAM_set1_ip"] + pub fn X509_VERIFY_PARAM_set1_ip( + param: *mut X509_VERIFY_PARAM, + ip: *const u8, + ip_len: usize, ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_0_21_0_X509V3_extensions_print"] - pub fn X509V3_extensions_print( - out: *mut BIO, - title: *const ::std::os::raw::c_char, - exts: *const stack_st_X509_EXTENSION, - flag: ::std::os::raw::c_ulong, - indent: ::std::os::raw::c_int, + #[link_name = "\u{1}_aws_lc_0_21_0_X509_VERIFY_PARAM_set1_ip_asc"] + pub fn X509_VERIFY_PARAM_set1_ip_asc( + param: *mut X509_VERIFY_PARAM, + ipasc: *const ::std::os::raw::c_char, ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_0_21_0_GENERAL_NAME_print"] - pub fn GENERAL_NAME_print(out: *mut BIO, gen: *const GENERAL_NAME) -> ::std::os::raw::c_int; -} -extern "C" { - #[link_name = "\u{1}_aws_lc_0_21_0_X509_pubkey_digest"] - pub fn X509_pubkey_digest( - x509: *const X509, - md: *const EVP_MD, - out: *mut u8, - out_len: *mut ::std::os::raw::c_uint, + #[link_name = "\u{1}_aws_lc_0_21_0_X509_VERIFY_PARAM_set_purpose"] + pub fn X509_VERIFY_PARAM_set_purpose( + param: *mut X509_VERIFY_PARAM, + purpose: ::std::os::raw::c_int, ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_0_21_0_X509_digest"] - pub fn X509_digest( - x509: *const X509, - md: *const EVP_MD, - out: *mut u8, - out_len: *mut ::std::os::raw::c_uint, + #[link_name = "\u{1}_aws_lc_0_21_0_X509_VERIFY_PARAM_set_trust"] + pub fn X509_VERIFY_PARAM_set_trust( + param: *mut X509_VERIFY_PARAM, + trust: ::std::os::raw::c_int, ) -> ::std::os::raw::c_int; } -extern "C" { - #[link_name = "\u{1}_aws_lc_0_21_0_X509_CRL_digest"] - pub fn X509_CRL_digest( - crl: *const X509_CRL, - md: *const EVP_MD, - out: *mut u8, - out_len: *mut ::std::os::raw::c_uint, - ) -> ::std::os::raw::c_int; -} -extern "C" { - #[link_name = "\u{1}_aws_lc_0_21_0_X509_REQ_digest"] - pub fn X509_REQ_digest( - req: *const X509_REQ, - md: *const EVP_MD, - out: *mut u8, - out_len: *mut ::std::os::raw::c_uint, - ) -> ::std::os::raw::c_int; -} -extern "C" { - #[link_name = "\u{1}_aws_lc_0_21_0_X509_NAME_digest"] - pub fn X509_NAME_digest( - name: *const X509_NAME, - md: *const EVP_MD, - out: *mut u8, - out_len: *mut ::std::os::raw::c_uint, - ) -> ::std::os::raw::c_int; +#[repr(C)] +#[derive(Debug, Copy, Clone, PartialEq, Eq)] +pub struct Netscape_spki_st { + pub spkac: *mut NETSCAPE_SPKAC, + pub sig_algor: *mut X509_ALGOR, + pub signature: *mut ASN1_BIT_STRING, } -extern "C" { - #[link_name = "\u{1}_aws_lc_0_21_0_d2i_X509_bio"] - pub fn d2i_X509_bio(bp: *mut BIO, x509: *mut *mut X509) -> *mut X509; +#[test] +fn bindgen_test_layout_Netscape_spki_st() { + const UNINIT: ::std::mem::MaybeUninit = ::std::mem::MaybeUninit::uninit(); + let ptr = UNINIT.as_ptr(); + assert_eq!( + ::std::mem::size_of::(), + 12usize, + concat!("Size of: ", stringify!(Netscape_spki_st)) + ); + assert_eq!( + ::std::mem::align_of::(), + 4usize, + concat!("Alignment of ", stringify!(Netscape_spki_st)) + ); + assert_eq!( + unsafe { ::std::ptr::addr_of!((*ptr).spkac) as usize - ptr as usize }, + 0usize, + concat!( + "Offset of field: ", + stringify!(Netscape_spki_st), + "::", + stringify!(spkac) + ) + ); + assert_eq!( + unsafe { ::std::ptr::addr_of!((*ptr).sig_algor) as usize - ptr as usize }, + 4usize, + concat!( + "Offset of field: ", + stringify!(Netscape_spki_st), + "::", + stringify!(sig_algor) + ) + ); + assert_eq!( + unsafe { ::std::ptr::addr_of!((*ptr).signature) as usize - ptr as usize }, + 8usize, + concat!( + "Offset of field: ", + stringify!(Netscape_spki_st), + "::", + stringify!(signature) + ) + ); } -extern "C" { - #[link_name = "\u{1}_aws_lc_0_21_0_d2i_X509_CRL_bio"] - pub fn d2i_X509_CRL_bio(bp: *mut BIO, crl: *mut *mut X509_CRL) -> *mut X509_CRL; +impl Default for Netscape_spki_st { + fn default() -> Self { + let mut s = ::std::mem::MaybeUninit::::uninit(); + unsafe { + ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); + s.assume_init() + } + } } extern "C" { - #[link_name = "\u{1}_aws_lc_0_21_0_d2i_X509_REQ_bio"] - pub fn d2i_X509_REQ_bio(bp: *mut BIO, req: *mut *mut X509_REQ) -> *mut X509_REQ; + #[link_name = "\u{1}_aws_lc_0_21_0_NETSCAPE_SPKI_it"] + pub static NETSCAPE_SPKI_it: ASN1_ITEM; } extern "C" { - #[link_name = "\u{1}_aws_lc_0_21_0_d2i_RSAPrivateKey_bio"] - pub fn d2i_RSAPrivateKey_bio(bp: *mut BIO, rsa: *mut *mut RSA) -> *mut RSA; + #[link_name = "\u{1}_aws_lc_0_21_0_NETSCAPE_SPKI_new"] + pub fn NETSCAPE_SPKI_new() -> *mut NETSCAPE_SPKI; } extern "C" { - #[link_name = "\u{1}_aws_lc_0_21_0_d2i_RSAPublicKey_bio"] - pub fn d2i_RSAPublicKey_bio(bp: *mut BIO, rsa: *mut *mut RSA) -> *mut RSA; + #[link_name = "\u{1}_aws_lc_0_21_0_NETSCAPE_SPKI_free"] + pub fn NETSCAPE_SPKI_free(spki: *mut NETSCAPE_SPKI); } extern "C" { - #[link_name = "\u{1}_aws_lc_0_21_0_d2i_RSA_PUBKEY_bio"] - pub fn d2i_RSA_PUBKEY_bio(bp: *mut BIO, rsa: *mut *mut RSA) -> *mut RSA; + #[link_name = "\u{1}_aws_lc_0_21_0_d2i_NETSCAPE_SPKI"] + pub fn d2i_NETSCAPE_SPKI( + out: *mut *mut NETSCAPE_SPKI, + inp: *mut *const u8, + len: ::std::os::raw::c_long, + ) -> *mut NETSCAPE_SPKI; } extern "C" { - #[link_name = "\u{1}_aws_lc_0_21_0_d2i_DSA_PUBKEY_bio"] - pub fn d2i_DSA_PUBKEY_bio(bp: *mut BIO, dsa: *mut *mut DSA) -> *mut DSA; + #[link_name = "\u{1}_aws_lc_0_21_0_i2d_NETSCAPE_SPKI"] + pub fn i2d_NETSCAPE_SPKI( + spki: *const NETSCAPE_SPKI, + outp: *mut *mut u8, + ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_0_21_0_d2i_DSAPrivateKey_bio"] - pub fn d2i_DSAPrivateKey_bio(bp: *mut BIO, dsa: *mut *mut DSA) -> *mut DSA; + #[link_name = "\u{1}_aws_lc_0_21_0_NETSCAPE_SPKI_verify"] + pub fn NETSCAPE_SPKI_verify( + spki: *mut NETSCAPE_SPKI, + pkey: *mut EVP_PKEY, + ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_0_21_0_d2i_EC_PUBKEY_bio"] - pub fn d2i_EC_PUBKEY_bio(bp: *mut BIO, eckey: *mut *mut EC_KEY) -> *mut EC_KEY; + #[link_name = "\u{1}_aws_lc_0_21_0_NETSCAPE_SPKI_b64_decode"] + pub fn NETSCAPE_SPKI_b64_decode( + str_: *const ::std::os::raw::c_char, + len: ossl_ssize_t, + ) -> *mut NETSCAPE_SPKI; } extern "C" { - #[link_name = "\u{1}_aws_lc_0_21_0_d2i_ECPrivateKey_bio"] - pub fn d2i_ECPrivateKey_bio(bp: *mut BIO, eckey: *mut *mut EC_KEY) -> *mut EC_KEY; + #[link_name = "\u{1}_aws_lc_0_21_0_NETSCAPE_SPKI_b64_encode"] + pub fn NETSCAPE_SPKI_b64_encode(spki: *mut NETSCAPE_SPKI) -> *mut ::std::os::raw::c_char; } extern "C" { - #[link_name = "\u{1}_aws_lc_0_21_0_d2i_PKCS8_bio"] - pub fn d2i_PKCS8_bio(bp: *mut BIO, p8: *mut *mut X509_SIG) -> *mut X509_SIG; + #[link_name = "\u{1}_aws_lc_0_21_0_NETSCAPE_SPKI_get_pubkey"] + pub fn NETSCAPE_SPKI_get_pubkey(spki: *const NETSCAPE_SPKI) -> *mut EVP_PKEY; } extern "C" { - #[link_name = "\u{1}_aws_lc_0_21_0_d2i_PKCS8_PRIV_KEY_INFO_bio"] - pub fn d2i_PKCS8_PRIV_KEY_INFO_bio( - bp: *mut BIO, - p8inf: *mut *mut PKCS8_PRIV_KEY_INFO, - ) -> *mut PKCS8_PRIV_KEY_INFO; + #[link_name = "\u{1}_aws_lc_0_21_0_NETSCAPE_SPKI_set_pubkey"] + pub fn NETSCAPE_SPKI_set_pubkey( + spki: *mut NETSCAPE_SPKI, + pkey: *mut EVP_PKEY, + ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_0_21_0_d2i_PUBKEY_bio"] - pub fn d2i_PUBKEY_bio(bp: *mut BIO, a: *mut *mut EVP_PKEY) -> *mut EVP_PKEY; + #[link_name = "\u{1}_aws_lc_0_21_0_NETSCAPE_SPKI_sign"] + pub fn NETSCAPE_SPKI_sign( + spki: *mut NETSCAPE_SPKI, + pkey: *mut EVP_PKEY, + md: *const EVP_MD, + ) -> ::std::os::raw::c_int; } -extern "C" { - #[link_name = "\u{1}_aws_lc_0_21_0_d2i_DHparams_bio"] - pub fn d2i_DHparams_bio(bp: *mut BIO, dh: *mut *mut DH) -> *mut DH; +#[repr(C)] +#[derive(Debug, Copy, Clone, PartialEq, Eq)] +pub struct Netscape_spkac_st { + pub pubkey: *mut X509_PUBKEY, + pub challenge: *mut ASN1_IA5STRING, } -extern "C" { - #[link_name = "\u{1}_aws_lc_0_21_0_d2i_PrivateKey_bio"] - pub fn d2i_PrivateKey_bio(bp: *mut BIO, a: *mut *mut EVP_PKEY) -> *mut EVP_PKEY; +#[test] +fn bindgen_test_layout_Netscape_spkac_st() { + const UNINIT: ::std::mem::MaybeUninit = ::std::mem::MaybeUninit::uninit(); + let ptr = UNINIT.as_ptr(); + assert_eq!( + ::std::mem::size_of::(), + 8usize, + concat!("Size of: ", stringify!(Netscape_spkac_st)) + ); + assert_eq!( + ::std::mem::align_of::(), + 4usize, + concat!("Alignment of ", stringify!(Netscape_spkac_st)) + ); + assert_eq!( + unsafe { ::std::ptr::addr_of!((*ptr).pubkey) as usize - ptr as usize }, + 0usize, + concat!( + "Offset of field: ", + stringify!(Netscape_spkac_st), + "::", + stringify!(pubkey) + ) + ); + assert_eq!( + unsafe { ::std::ptr::addr_of!((*ptr).challenge) as usize - ptr as usize }, + 4usize, + concat!( + "Offset of field: ", + stringify!(Netscape_spkac_st), + "::", + stringify!(challenge) + ) + ); } -extern "C" { - #[link_name = "\u{1}_aws_lc_0_21_0_i2d_X509_bio"] - pub fn i2d_X509_bio(bp: *mut BIO, x509: *mut X509) -> ::std::os::raw::c_int; +impl Default for Netscape_spkac_st { + fn default() -> Self { + let mut s = ::std::mem::MaybeUninit::::uninit(); + unsafe { + ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); + s.assume_init() + } + } } extern "C" { - #[link_name = "\u{1}_aws_lc_0_21_0_i2d_X509_CRL_bio"] - pub fn i2d_X509_CRL_bio(bp: *mut BIO, crl: *mut X509_CRL) -> ::std::os::raw::c_int; + #[link_name = "\u{1}_aws_lc_0_21_0_NETSCAPE_SPKAC_it"] + pub static NETSCAPE_SPKAC_it: ASN1_ITEM; } extern "C" { - #[link_name = "\u{1}_aws_lc_0_21_0_i2d_X509_REQ_bio"] - pub fn i2d_X509_REQ_bio(bp: *mut BIO, req: *mut X509_REQ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}_aws_lc_0_21_0_NETSCAPE_SPKAC_new"] + pub fn NETSCAPE_SPKAC_new() -> *mut NETSCAPE_SPKAC; } extern "C" { - #[link_name = "\u{1}_aws_lc_0_21_0_i2d_RSAPrivateKey_bio"] - pub fn i2d_RSAPrivateKey_bio(bp: *mut BIO, rsa: *mut RSA) -> ::std::os::raw::c_int; + #[link_name = "\u{1}_aws_lc_0_21_0_NETSCAPE_SPKAC_free"] + pub fn NETSCAPE_SPKAC_free(spkac: *mut NETSCAPE_SPKAC); } extern "C" { - #[link_name = "\u{1}_aws_lc_0_21_0_i2d_RSAPublicKey_bio"] - pub fn i2d_RSAPublicKey_bio(bp: *mut BIO, rsa: *mut RSA) -> ::std::os::raw::c_int; + #[link_name = "\u{1}_aws_lc_0_21_0_d2i_NETSCAPE_SPKAC"] + pub fn d2i_NETSCAPE_SPKAC( + out: *mut *mut NETSCAPE_SPKAC, + inp: *mut *const u8, + len: ::std::os::raw::c_long, + ) -> *mut NETSCAPE_SPKAC; } extern "C" { - #[link_name = "\u{1}_aws_lc_0_21_0_i2d_RSA_PUBKEY_bio"] - pub fn i2d_RSA_PUBKEY_bio(bp: *mut BIO, rsa: *mut RSA) -> ::std::os::raw::c_int; + #[link_name = "\u{1}_aws_lc_0_21_0_i2d_NETSCAPE_SPKAC"] + pub fn i2d_NETSCAPE_SPKAC( + spkac: *const NETSCAPE_SPKAC, + outp: *mut *mut u8, + ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_0_21_0_i2d_DSA_PUBKEY_bio"] - pub fn i2d_DSA_PUBKEY_bio(bp: *mut BIO, dsa: *mut DSA) -> ::std::os::raw::c_int; + #[link_name = "\u{1}_aws_lc_0_21_0_NETSCAPE_SPKI_print"] + pub fn NETSCAPE_SPKI_print(out: *mut BIO, spki: *mut NETSCAPE_SPKI) -> ::std::os::raw::c_int; } -extern "C" { - #[link_name = "\u{1}_aws_lc_0_21_0_i2d_DSAPrivateKey_bio"] - pub fn i2d_DSAPrivateKey_bio(bp: *mut BIO, dsa: *mut DSA) -> ::std::os::raw::c_int; +#[repr(C)] +#[derive(Debug, Copy, Clone, PartialEq, Eq)] +pub struct rsa_pss_params_st { + pub hashAlgorithm: *mut X509_ALGOR, + pub maskGenAlgorithm: *mut X509_ALGOR, + pub saltLength: *mut ASN1_INTEGER, + pub trailerField: *mut ASN1_INTEGER, + pub maskHash: *mut X509_ALGOR, } -extern "C" { - #[link_name = "\u{1}_aws_lc_0_21_0_i2d_EC_PUBKEY_bio"] - pub fn i2d_EC_PUBKEY_bio(bp: *mut BIO, eckey: *mut EC_KEY) -> ::std::os::raw::c_int; -} -extern "C" { - #[link_name = "\u{1}_aws_lc_0_21_0_i2d_ECPrivateKey_bio"] - pub fn i2d_ECPrivateKey_bio(bp: *mut BIO, eckey: *mut EC_KEY) -> ::std::os::raw::c_int; +#[test] +fn bindgen_test_layout_rsa_pss_params_st() { + const UNINIT: ::std::mem::MaybeUninit = ::std::mem::MaybeUninit::uninit(); + let ptr = UNINIT.as_ptr(); + assert_eq!( + ::std::mem::size_of::(), + 20usize, + concat!("Size of: ", stringify!(rsa_pss_params_st)) + ); + assert_eq!( + ::std::mem::align_of::(), + 4usize, + concat!("Alignment of ", stringify!(rsa_pss_params_st)) + ); + assert_eq!( + unsafe { ::std::ptr::addr_of!((*ptr).hashAlgorithm) as usize - ptr as usize }, + 0usize, + concat!( + "Offset of field: ", + stringify!(rsa_pss_params_st), + "::", + stringify!(hashAlgorithm) + ) + ); + assert_eq!( + unsafe { ::std::ptr::addr_of!((*ptr).maskGenAlgorithm) as usize - ptr as usize }, + 4usize, + concat!( + "Offset of field: ", + stringify!(rsa_pss_params_st), + "::", + stringify!(maskGenAlgorithm) + ) + ); + assert_eq!( + unsafe { ::std::ptr::addr_of!((*ptr).saltLength) as usize - ptr as usize }, + 8usize, + concat!( + "Offset of field: ", + stringify!(rsa_pss_params_st), + "::", + stringify!(saltLength) + ) + ); + assert_eq!( + unsafe { ::std::ptr::addr_of!((*ptr).trailerField) as usize - ptr as usize }, + 12usize, + concat!( + "Offset of field: ", + stringify!(rsa_pss_params_st), + "::", + stringify!(trailerField) + ) + ); + assert_eq!( + unsafe { ::std::ptr::addr_of!((*ptr).maskHash) as usize - ptr as usize }, + 16usize, + concat!( + "Offset of field: ", + stringify!(rsa_pss_params_st), + "::", + stringify!(maskHash) + ) + ); } -extern "C" { - #[link_name = "\u{1}_aws_lc_0_21_0_i2d_PKCS8_bio"] - pub fn i2d_PKCS8_bio(bp: *mut BIO, p8: *mut X509_SIG) -> ::std::os::raw::c_int; +impl Default for rsa_pss_params_st { + fn default() -> Self { + let mut s = ::std::mem::MaybeUninit::::uninit(); + unsafe { + ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); + s.assume_init() + } + } } extern "C" { - #[link_name = "\u{1}_aws_lc_0_21_0_i2d_PKCS8_PRIV_KEY_INFO_bio"] - pub fn i2d_PKCS8_PRIV_KEY_INFO_bio( - bp: *mut BIO, - p8inf: *mut PKCS8_PRIV_KEY_INFO, - ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}_aws_lc_0_21_0_RSA_PSS_PARAMS_it"] + pub static RSA_PSS_PARAMS_it: ASN1_ITEM; } extern "C" { - #[link_name = "\u{1}_aws_lc_0_21_0_i2d_PrivateKey_bio"] - pub fn i2d_PrivateKey_bio(bp: *mut BIO, pkey: *mut EVP_PKEY) -> ::std::os::raw::c_int; + #[link_name = "\u{1}_aws_lc_0_21_0_RSA_PSS_PARAMS_new"] + pub fn RSA_PSS_PARAMS_new() -> *mut RSA_PSS_PARAMS; } extern "C" { - #[link_name = "\u{1}_aws_lc_0_21_0_i2d_PUBKEY_bio"] - pub fn i2d_PUBKEY_bio(bp: *mut BIO, pkey: *mut EVP_PKEY) -> ::std::os::raw::c_int; + #[link_name = "\u{1}_aws_lc_0_21_0_RSA_PSS_PARAMS_free"] + pub fn RSA_PSS_PARAMS_free(params: *mut RSA_PSS_PARAMS); } extern "C" { - #[link_name = "\u{1}_aws_lc_0_21_0_i2d_DHparams_bio"] - pub fn i2d_DHparams_bio(bp: *mut BIO, dh: *const DH) -> ::std::os::raw::c_int; + #[link_name = "\u{1}_aws_lc_0_21_0_d2i_RSA_PSS_PARAMS"] + pub fn d2i_RSA_PSS_PARAMS( + out: *mut *mut RSA_PSS_PARAMS, + inp: *mut *const u8, + len: ::std::os::raw::c_long, + ) -> *mut RSA_PSS_PARAMS; } extern "C" { - #[link_name = "\u{1}_aws_lc_0_21_0_i2d_PKCS8PrivateKeyInfo_bio"] - pub fn i2d_PKCS8PrivateKeyInfo_bio(bp: *mut BIO, key: *mut EVP_PKEY) -> ::std::os::raw::c_int; + #[link_name = "\u{1}_aws_lc_0_21_0_i2d_RSA_PSS_PARAMS"] + pub fn i2d_RSA_PSS_PARAMS( + in_: *const RSA_PSS_PARAMS, + outp: *mut *mut u8, + ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_0_21_0_d2i_X509_fp"] - pub fn d2i_X509_fp(fp: *mut FILE, x509: *mut *mut X509) -> *mut X509; + #[link_name = "\u{1}_aws_lc_0_21_0_PKCS8_PRIV_KEY_INFO_it"] + pub static PKCS8_PRIV_KEY_INFO_it: ASN1_ITEM; } extern "C" { - #[link_name = "\u{1}_aws_lc_0_21_0_d2i_X509_CRL_fp"] - pub fn d2i_X509_CRL_fp(fp: *mut FILE, crl: *mut *mut X509_CRL) -> *mut X509_CRL; + #[link_name = "\u{1}_aws_lc_0_21_0_PKCS8_PRIV_KEY_INFO_new"] + pub fn PKCS8_PRIV_KEY_INFO_new() -> *mut PKCS8_PRIV_KEY_INFO; } extern "C" { - #[link_name = "\u{1}_aws_lc_0_21_0_d2i_X509_REQ_fp"] - pub fn d2i_X509_REQ_fp(fp: *mut FILE, req: *mut *mut X509_REQ) -> *mut X509_REQ; + #[link_name = "\u{1}_aws_lc_0_21_0_PKCS8_PRIV_KEY_INFO_free"] + pub fn PKCS8_PRIV_KEY_INFO_free(key: *mut PKCS8_PRIV_KEY_INFO); } extern "C" { - #[link_name = "\u{1}_aws_lc_0_21_0_d2i_RSAPrivateKey_fp"] - pub fn d2i_RSAPrivateKey_fp(fp: *mut FILE, rsa: *mut *mut RSA) -> *mut RSA; + #[link_name = "\u{1}_aws_lc_0_21_0_d2i_PKCS8_PRIV_KEY_INFO"] + pub fn d2i_PKCS8_PRIV_KEY_INFO( + out: *mut *mut PKCS8_PRIV_KEY_INFO, + inp: *mut *const u8, + len: ::std::os::raw::c_long, + ) -> *mut PKCS8_PRIV_KEY_INFO; } extern "C" { - #[link_name = "\u{1}_aws_lc_0_21_0_d2i_RSAPublicKey_fp"] - pub fn d2i_RSAPublicKey_fp(fp: *mut FILE, rsa: *mut *mut RSA) -> *mut RSA; + #[link_name = "\u{1}_aws_lc_0_21_0_i2d_PKCS8_PRIV_KEY_INFO"] + pub fn i2d_PKCS8_PRIV_KEY_INFO( + key: *const PKCS8_PRIV_KEY_INFO, + outp: *mut *mut u8, + ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_0_21_0_d2i_RSA_PUBKEY_fp"] - pub fn d2i_RSA_PUBKEY_fp(fp: *mut FILE, rsa: *mut *mut RSA) -> *mut RSA; + #[link_name = "\u{1}_aws_lc_0_21_0_EVP_PKCS82PKEY"] + pub fn EVP_PKCS82PKEY(p8: *const PKCS8_PRIV_KEY_INFO) -> *mut EVP_PKEY; } extern "C" { - #[link_name = "\u{1}_aws_lc_0_21_0_d2i_DSA_PUBKEY_fp"] - pub fn d2i_DSA_PUBKEY_fp(fp: *mut FILE, dsa: *mut *mut DSA) -> *mut DSA; + #[link_name = "\u{1}_aws_lc_0_21_0_EVP_PKEY2PKCS8"] + pub fn EVP_PKEY2PKCS8(pkey: *const EVP_PKEY) -> *mut PKCS8_PRIV_KEY_INFO; } extern "C" { - #[link_name = "\u{1}_aws_lc_0_21_0_d2i_DSAPrivateKey_fp"] - pub fn d2i_DSAPrivateKey_fp(fp: *mut FILE, dsa: *mut *mut DSA) -> *mut DSA; + #[link_name = "\u{1}_aws_lc_0_21_0_X509_SIG_it"] + pub static X509_SIG_it: ASN1_ITEM; } extern "C" { - #[link_name = "\u{1}_aws_lc_0_21_0_d2i_EC_PUBKEY_fp"] - pub fn d2i_EC_PUBKEY_fp(fp: *mut FILE, eckey: *mut *mut EC_KEY) -> *mut EC_KEY; + #[link_name = "\u{1}_aws_lc_0_21_0_X509_SIG_new"] + pub fn X509_SIG_new() -> *mut X509_SIG; } extern "C" { - #[link_name = "\u{1}_aws_lc_0_21_0_d2i_ECPrivateKey_fp"] - pub fn d2i_ECPrivateKey_fp(fp: *mut FILE, eckey: *mut *mut EC_KEY) -> *mut EC_KEY; + #[link_name = "\u{1}_aws_lc_0_21_0_X509_SIG_free"] + pub fn X509_SIG_free(key: *mut X509_SIG); } extern "C" { - #[link_name = "\u{1}_aws_lc_0_21_0_d2i_PKCS8_fp"] - pub fn d2i_PKCS8_fp(fp: *mut FILE, p8: *mut *mut X509_SIG) -> *mut X509_SIG; + #[link_name = "\u{1}_aws_lc_0_21_0_d2i_X509_SIG"] + pub fn d2i_X509_SIG( + out: *mut *mut X509_SIG, + inp: *mut *const u8, + len: ::std::os::raw::c_long, + ) -> *mut X509_SIG; } extern "C" { - #[link_name = "\u{1}_aws_lc_0_21_0_d2i_PKCS8_PRIV_KEY_INFO_fp"] - pub fn d2i_PKCS8_PRIV_KEY_INFO_fp( - fp: *mut FILE, - p8inf: *mut *mut PKCS8_PRIV_KEY_INFO, - ) -> *mut PKCS8_PRIV_KEY_INFO; + #[link_name = "\u{1}_aws_lc_0_21_0_i2d_X509_SIG"] + pub fn i2d_X509_SIG(sig: *const X509_SIG, outp: *mut *mut u8) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_0_21_0_d2i_PrivateKey_fp"] - pub fn d2i_PrivateKey_fp(fp: *mut FILE, a: *mut *mut EVP_PKEY) -> *mut EVP_PKEY; + #[link_name = "\u{1}_aws_lc_0_21_0_X509_SIG_get0"] + pub fn X509_SIG_get0( + sig: *const X509_SIG, + out_alg: *mut *const X509_ALGOR, + out_digest: *mut *const ASN1_OCTET_STRING, + ); } extern "C" { - #[link_name = "\u{1}_aws_lc_0_21_0_d2i_PUBKEY_fp"] - pub fn d2i_PUBKEY_fp(fp: *mut FILE, a: *mut *mut EVP_PKEY) -> *mut EVP_PKEY; + #[link_name = "\u{1}_aws_lc_0_21_0_X509_SIG_getm"] + pub fn X509_SIG_getm( + sig: *mut X509_SIG, + out_alg: *mut *mut X509_ALGOR, + out_digest: *mut *mut ASN1_OCTET_STRING, + ); } extern "C" { - #[link_name = "\u{1}_aws_lc_0_21_0_i2d_X509_fp"] - pub fn i2d_X509_fp(fp: *mut FILE, x509: *mut X509) -> ::std::os::raw::c_int; + #[link_name = "\u{1}_aws_lc_0_21_0_X509_print_ex"] + pub fn X509_print_ex( + bp: *mut BIO, + x: *mut X509, + nmflag: ::std::os::raw::c_ulong, + cflag: ::std::os::raw::c_ulong, + ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_0_21_0_i2d_X509_CRL_fp"] - pub fn i2d_X509_CRL_fp(fp: *mut FILE, crl: *mut X509_CRL) -> ::std::os::raw::c_int; + #[link_name = "\u{1}_aws_lc_0_21_0_X509_print_ex_fp"] + pub fn X509_print_ex_fp( + fp: *mut FILE, + x: *mut X509, + nmflag: ::std::os::raw::c_ulong, + cflag: ::std::os::raw::c_ulong, + ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_0_21_0_i2d_X509_REQ_fp"] - pub fn i2d_X509_REQ_fp(fp: *mut FILE, req: *mut X509_REQ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}_aws_lc_0_21_0_X509_print"] + pub fn X509_print(bp: *mut BIO, x: *mut X509) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_0_21_0_i2d_RSAPrivateKey_fp"] - pub fn i2d_RSAPrivateKey_fp(fp: *mut FILE, rsa: *mut RSA) -> ::std::os::raw::c_int; + #[link_name = "\u{1}_aws_lc_0_21_0_X509_print_fp"] + pub fn X509_print_fp(fp: *mut FILE, x: *mut X509) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_0_21_0_i2d_RSAPublicKey_fp"] - pub fn i2d_RSAPublicKey_fp(fp: *mut FILE, rsa: *mut RSA) -> ::std::os::raw::c_int; + #[link_name = "\u{1}_aws_lc_0_21_0_X509_CRL_print"] + pub fn X509_CRL_print(bp: *mut BIO, x: *mut X509_CRL) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_0_21_0_i2d_RSA_PUBKEY_fp"] - pub fn i2d_RSA_PUBKEY_fp(fp: *mut FILE, rsa: *mut RSA) -> ::std::os::raw::c_int; + #[link_name = "\u{1}_aws_lc_0_21_0_X509_CRL_print_fp"] + pub fn X509_CRL_print_fp(fp: *mut FILE, x: *mut X509_CRL) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_0_21_0_i2d_DSA_PUBKEY_fp"] - pub fn i2d_DSA_PUBKEY_fp(fp: *mut FILE, dsa: *mut DSA) -> ::std::os::raw::c_int; + #[link_name = "\u{1}_aws_lc_0_21_0_X509_REQ_print_ex"] + pub fn X509_REQ_print_ex( + bp: *mut BIO, + x: *mut X509_REQ, + nmflag: ::std::os::raw::c_ulong, + cflag: ::std::os::raw::c_ulong, + ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_0_21_0_i2d_DSAPrivateKey_fp"] - pub fn i2d_DSAPrivateKey_fp(fp: *mut FILE, dsa: *mut DSA) -> ::std::os::raw::c_int; + #[link_name = "\u{1}_aws_lc_0_21_0_X509_REQ_print"] + pub fn X509_REQ_print(bp: *mut BIO, req: *mut X509_REQ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_0_21_0_i2d_EC_PUBKEY_fp"] - pub fn i2d_EC_PUBKEY_fp(fp: *mut FILE, eckey: *mut EC_KEY) -> ::std::os::raw::c_int; + #[link_name = "\u{1}_aws_lc_0_21_0_X509_REQ_print_fp"] + pub fn X509_REQ_print_fp(fp: *mut FILE, req: *mut X509_REQ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_0_21_0_i2d_ECPrivateKey_fp"] - pub fn i2d_ECPrivateKey_fp(fp: *mut FILE, eckey: *mut EC_KEY) -> ::std::os::raw::c_int; + #[link_name = "\u{1}_aws_lc_0_21_0_X509_NAME_print_ex"] + pub fn X509_NAME_print_ex( + out: *mut BIO, + nm: *const X509_NAME, + indent: ::std::os::raw::c_int, + flags: ::std::os::raw::c_ulong, + ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_0_21_0_i2d_PKCS8_fp"] - pub fn i2d_PKCS8_fp(fp: *mut FILE, p8: *mut X509_SIG) -> ::std::os::raw::c_int; + #[link_name = "\u{1}_aws_lc_0_21_0_X509_NAME_print"] + pub fn X509_NAME_print( + bp: *mut BIO, + name: *const X509_NAME, + obase: ::std::os::raw::c_int, + ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_0_21_0_i2d_PKCS8_PRIV_KEY_INFO_fp"] - pub fn i2d_PKCS8_PRIV_KEY_INFO_fp( + #[link_name = "\u{1}_aws_lc_0_21_0_X509_NAME_oneline"] + pub fn X509_NAME_oneline( + name: *const X509_NAME, + buf: *mut ::std::os::raw::c_char, + size: ::std::os::raw::c_int, + ) -> *mut ::std::os::raw::c_char; +} +extern "C" { + #[link_name = "\u{1}_aws_lc_0_21_0_X509_NAME_print_ex_fp"] + pub fn X509_NAME_print_ex_fp( fp: *mut FILE, - p8inf: *mut PKCS8_PRIV_KEY_INFO, + nm: *const X509_NAME, + indent: ::std::os::raw::c_int, + flags: ::std::os::raw::c_ulong, ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_0_21_0_i2d_PKCS8PrivateKeyInfo_fp"] - pub fn i2d_PKCS8PrivateKeyInfo_fp(fp: *mut FILE, key: *mut EVP_PKEY) -> ::std::os::raw::c_int; + #[link_name = "\u{1}_aws_lc_0_21_0_X509_signature_dump"] + pub fn X509_signature_dump( + bio: *mut BIO, + sig: *const ASN1_STRING, + indent: ::std::os::raw::c_int, + ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_0_21_0_i2d_PrivateKey_fp"] - pub fn i2d_PrivateKey_fp(fp: *mut FILE, pkey: *mut EVP_PKEY) -> ::std::os::raw::c_int; + #[link_name = "\u{1}_aws_lc_0_21_0_X509_signature_print"] + pub fn X509_signature_print( + bio: *mut BIO, + alg: *const X509_ALGOR, + sig: *const ASN1_STRING, + ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_0_21_0_i2d_PUBKEY_fp"] - pub fn i2d_PUBKEY_fp(fp: *mut FILE, pkey: *mut EVP_PKEY) -> ::std::os::raw::c_int; + #[link_name = "\u{1}_aws_lc_0_21_0_X509V3_EXT_print"] + pub fn X509V3_EXT_print( + out: *mut BIO, + ext: *const X509_EXTENSION, + flag: ::std::os::raw::c_ulong, + indent: ::std::os::raw::c_int, + ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_0_21_0_X509_find_by_issuer_and_serial"] - pub fn X509_find_by_issuer_and_serial( - sk: *const stack_st_X509, - name: *mut X509_NAME, - serial: *const ASN1_INTEGER, - ) -> *mut X509; + #[link_name = "\u{1}_aws_lc_0_21_0_X509V3_EXT_print_fp"] + pub fn X509V3_EXT_print_fp( + out: *mut FILE, + ext: *const X509_EXTENSION, + flag: ::std::os::raw::c_int, + indent: ::std::os::raw::c_int, + ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_0_21_0_X509_find_by_subject"] - pub fn X509_find_by_subject(sk: *const stack_st_X509, name: *mut X509_NAME) -> *mut X509; + #[link_name = "\u{1}_aws_lc_0_21_0_X509V3_extensions_print"] + pub fn X509V3_extensions_print( + out: *mut BIO, + title: *const ::std::os::raw::c_char, + exts: *const stack_st_X509_EXTENSION, + flag: ::std::os::raw::c_ulong, + indent: ::std::os::raw::c_int, + ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_0_21_0_X509_cmp_time"] - pub fn X509_cmp_time(s: *const ASN1_TIME, t: *const time_t) -> ::std::os::raw::c_int; + #[link_name = "\u{1}_aws_lc_0_21_0_GENERAL_NAME_print"] + pub fn GENERAL_NAME_print(out: *mut BIO, gen: *const GENERAL_NAME) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_0_21_0_X509_cmp_time_posix"] - pub fn X509_cmp_time_posix(s: *const ASN1_TIME, t: i64) -> ::std::os::raw::c_int; + #[link_name = "\u{1}_aws_lc_0_21_0_X509_pubkey_digest"] + pub fn X509_pubkey_digest( + x509: *const X509, + md: *const EVP_MD, + out: *mut u8, + out_len: *mut ::std::os::raw::c_uint, + ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_0_21_0_X509_cmp_current_time"] - pub fn X509_cmp_current_time(s: *const ASN1_TIME) -> ::std::os::raw::c_int; + #[link_name = "\u{1}_aws_lc_0_21_0_X509_digest"] + pub fn X509_digest( + x509: *const X509, + md: *const EVP_MD, + out: *mut u8, + out_len: *mut ::std::os::raw::c_uint, + ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_0_21_0_X509_time_adj"] - pub fn X509_time_adj( - s: *mut ASN1_TIME, - offset_sec: ::std::os::raw::c_long, - t: *const time_t, - ) -> *mut ASN1_TIME; + #[link_name = "\u{1}_aws_lc_0_21_0_X509_CRL_digest"] + pub fn X509_CRL_digest( + crl: *const X509_CRL, + md: *const EVP_MD, + out: *mut u8, + out_len: *mut ::std::os::raw::c_uint, + ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_0_21_0_X509_time_adj_ex"] - pub fn X509_time_adj_ex( - s: *mut ASN1_TIME, - offset_day: ::std::os::raw::c_int, - offset_sec: ::std::os::raw::c_long, - t: *const time_t, - ) -> *mut ASN1_TIME; + #[link_name = "\u{1}_aws_lc_0_21_0_X509_REQ_digest"] + pub fn X509_REQ_digest( + req: *const X509_REQ, + md: *const EVP_MD, + out: *mut u8, + out_len: *mut ::std::os::raw::c_uint, + ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_0_21_0_X509_gmtime_adj"] - pub fn X509_gmtime_adj(s: *mut ASN1_TIME, offset_sec: ::std::os::raw::c_long) - -> *mut ASN1_TIME; + #[link_name = "\u{1}_aws_lc_0_21_0_X509_NAME_digest"] + pub fn X509_NAME_digest( + name: *const X509_NAME, + md: *const EVP_MD, + out: *mut u8, + out_len: *mut ::std::os::raw::c_uint, + ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_0_21_0_X509_issuer_name_cmp"] - pub fn X509_issuer_name_cmp(a: *const X509, b: *const X509) -> ::std::os::raw::c_int; + #[link_name = "\u{1}_aws_lc_0_21_0_d2i_X509_bio"] + pub fn d2i_X509_bio(bp: *mut BIO, x509: *mut *mut X509) -> *mut X509; } extern "C" { - #[link_name = "\u{1}_aws_lc_0_21_0_X509_subject_name_cmp"] - pub fn X509_subject_name_cmp(a: *const X509, b: *const X509) -> ::std::os::raw::c_int; + #[link_name = "\u{1}_aws_lc_0_21_0_d2i_X509_CRL_bio"] + pub fn d2i_X509_CRL_bio(bp: *mut BIO, crl: *mut *mut X509_CRL) -> *mut X509_CRL; } extern "C" { - #[link_name = "\u{1}_aws_lc_0_21_0_X509_CRL_cmp"] - pub fn X509_CRL_cmp(a: *const X509_CRL, b: *const X509_CRL) -> ::std::os::raw::c_int; + #[link_name = "\u{1}_aws_lc_0_21_0_d2i_X509_REQ_bio"] + pub fn d2i_X509_REQ_bio(bp: *mut BIO, req: *mut *mut X509_REQ) -> *mut X509_REQ; } extern "C" { - #[link_name = "\u{1}_aws_lc_0_21_0_X509_issuer_name_hash"] - pub fn X509_issuer_name_hash(x509: *mut X509) -> u32; + #[link_name = "\u{1}_aws_lc_0_21_0_d2i_RSAPrivateKey_bio"] + pub fn d2i_RSAPrivateKey_bio(bp: *mut BIO, rsa: *mut *mut RSA) -> *mut RSA; } extern "C" { - #[link_name = "\u{1}_aws_lc_0_21_0_X509_subject_name_hash"] - pub fn X509_subject_name_hash(x509: *mut X509) -> u32; + #[link_name = "\u{1}_aws_lc_0_21_0_d2i_RSAPublicKey_bio"] + pub fn d2i_RSAPublicKey_bio(bp: *mut BIO, rsa: *mut *mut RSA) -> *mut RSA; } extern "C" { - #[link_name = "\u{1}_aws_lc_0_21_0_X509_issuer_name_hash_old"] - pub fn X509_issuer_name_hash_old(x509: *mut X509) -> u32; + #[link_name = "\u{1}_aws_lc_0_21_0_d2i_RSA_PUBKEY_bio"] + pub fn d2i_RSA_PUBKEY_bio(bp: *mut BIO, rsa: *mut *mut RSA) -> *mut RSA; } extern "C" { - #[link_name = "\u{1}_aws_lc_0_21_0_X509_subject_name_hash_old"] - pub fn X509_subject_name_hash_old(x509: *mut X509) -> u32; + #[link_name = "\u{1}_aws_lc_0_21_0_d2i_DSA_PUBKEY_bio"] + pub fn d2i_DSA_PUBKEY_bio(bp: *mut BIO, dsa: *mut *mut DSA) -> *mut DSA; } extern "C" { - #[link_name = "\u{1}_aws_lc_0_21_0_X509_get_ex_new_index"] - pub fn X509_get_ex_new_index( - argl: ::std::os::raw::c_long, - argp: *mut ::std::os::raw::c_void, - unused: *mut CRYPTO_EX_unused, - dup_unused: CRYPTO_EX_dup, - free_func: CRYPTO_EX_free, - ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}_aws_lc_0_21_0_d2i_DSAPrivateKey_bio"] + pub fn d2i_DSAPrivateKey_bio(bp: *mut BIO, dsa: *mut *mut DSA) -> *mut DSA; } extern "C" { - #[link_name = "\u{1}_aws_lc_0_21_0_X509_set_ex_data"] - pub fn X509_set_ex_data( - r: *mut X509, - idx: ::std::os::raw::c_int, - arg: *mut ::std::os::raw::c_void, - ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}_aws_lc_0_21_0_d2i_EC_PUBKEY_bio"] + pub fn d2i_EC_PUBKEY_bio(bp: *mut BIO, eckey: *mut *mut EC_KEY) -> *mut EC_KEY; } extern "C" { - #[link_name = "\u{1}_aws_lc_0_21_0_X509_get_ex_data"] - pub fn X509_get_ex_data( - r: *mut X509, - idx: ::std::os::raw::c_int, - ) -> *mut ::std::os::raw::c_void; + #[link_name = "\u{1}_aws_lc_0_21_0_d2i_ECPrivateKey_bio"] + pub fn d2i_ECPrivateKey_bio(bp: *mut BIO, eckey: *mut *mut EC_KEY) -> *mut EC_KEY; } extern "C" { - #[link_name = "\u{1}_aws_lc_0_21_0_X509_STORE_CTX_get_ex_new_index"] - pub fn X509_STORE_CTX_get_ex_new_index( - argl: ::std::os::raw::c_long, - argp: *mut ::std::os::raw::c_void, - unused: *mut CRYPTO_EX_unused, - dup_unused: CRYPTO_EX_dup, - free_func: CRYPTO_EX_free, - ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}_aws_lc_0_21_0_d2i_PKCS8_bio"] + pub fn d2i_PKCS8_bio(bp: *mut BIO, p8: *mut *mut X509_SIG) -> *mut X509_SIG; } extern "C" { - #[link_name = "\u{1}_aws_lc_0_21_0_X509_STORE_CTX_set_ex_data"] - pub fn X509_STORE_CTX_set_ex_data( - ctx: *mut X509_STORE_CTX, - idx: ::std::os::raw::c_int, - data: *mut ::std::os::raw::c_void, - ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}_aws_lc_0_21_0_d2i_PKCS8_PRIV_KEY_INFO_bio"] + pub fn d2i_PKCS8_PRIV_KEY_INFO_bio( + bp: *mut BIO, + p8inf: *mut *mut PKCS8_PRIV_KEY_INFO, + ) -> *mut PKCS8_PRIV_KEY_INFO; } extern "C" { - #[link_name = "\u{1}_aws_lc_0_21_0_X509_STORE_CTX_get_ex_data"] - pub fn X509_STORE_CTX_get_ex_data( - ctx: *mut X509_STORE_CTX, - idx: ::std::os::raw::c_int, - ) -> *mut ::std::os::raw::c_void; + #[link_name = "\u{1}_aws_lc_0_21_0_d2i_PUBKEY_bio"] + pub fn d2i_PUBKEY_bio(bp: *mut BIO, a: *mut *mut EVP_PKEY) -> *mut EVP_PKEY; } extern "C" { - #[link_name = "\u{1}_aws_lc_0_21_0_X509_STORE_get_ex_new_index"] - pub fn X509_STORE_get_ex_new_index( - argl: ::std::os::raw::c_long, - argp: *mut ::std::os::raw::c_void, - unused: *mut CRYPTO_EX_unused, - dup_unused: CRYPTO_EX_dup, - free_func: CRYPTO_EX_free, - ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}_aws_lc_0_21_0_d2i_DHparams_bio"] + pub fn d2i_DHparams_bio(bp: *mut BIO, dh: *mut *mut DH) -> *mut DH; } extern "C" { - #[link_name = "\u{1}_aws_lc_0_21_0_X509_STORE_set_ex_data"] - pub fn X509_STORE_set_ex_data( - ctx: *mut X509_STORE, - idx: ::std::os::raw::c_int, - data: *mut ::std::os::raw::c_void, - ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}_aws_lc_0_21_0_d2i_PrivateKey_bio"] + pub fn d2i_PrivateKey_bio(bp: *mut BIO, a: *mut *mut EVP_PKEY) -> *mut EVP_PKEY; } extern "C" { - #[link_name = "\u{1}_aws_lc_0_21_0_X509_STORE_get_ex_data"] - pub fn X509_STORE_get_ex_data( - ctx: *mut X509_STORE, - idx: ::std::os::raw::c_int, - ) -> *mut ::std::os::raw::c_void; + #[link_name = "\u{1}_aws_lc_0_21_0_i2d_X509_bio"] + pub fn i2d_X509_bio(bp: *mut BIO, x509: *mut X509) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_0_21_0_ASN1_digest"] - pub fn ASN1_digest( - i2d: i2d_of_void, - type_: *const EVP_MD, - data: *mut ::std::os::raw::c_char, - md: *mut ::std::os::raw::c_uchar, - len: *mut ::std::os::raw::c_uint, - ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}_aws_lc_0_21_0_i2d_X509_CRL_bio"] + pub fn i2d_X509_CRL_bio(bp: *mut BIO, crl: *mut X509_CRL) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_0_21_0_ASN1_item_digest"] - pub fn ASN1_item_digest( - it: *const ASN1_ITEM, - type_: *const EVP_MD, - data: *mut ::std::os::raw::c_void, - md: *mut ::std::os::raw::c_uchar, - len: *mut ::std::os::raw::c_uint, - ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}_aws_lc_0_21_0_i2d_X509_REQ_bio"] + pub fn i2d_X509_REQ_bio(bp: *mut BIO, req: *mut X509_REQ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_0_21_0_ASN1_item_verify"] - pub fn ASN1_item_verify( - it: *const ASN1_ITEM, - algor1: *const X509_ALGOR, - signature: *const ASN1_BIT_STRING, - data: *mut ::std::os::raw::c_void, - pkey: *mut EVP_PKEY, - ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}_aws_lc_0_21_0_i2d_RSAPrivateKey_bio"] + pub fn i2d_RSAPrivateKey_bio(bp: *mut BIO, rsa: *mut RSA) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_0_21_0_ASN1_item_sign"] - pub fn ASN1_item_sign( - it: *const ASN1_ITEM, - algor1: *mut X509_ALGOR, - algor2: *mut X509_ALGOR, - signature: *mut ASN1_BIT_STRING, - data: *mut ::std::os::raw::c_void, - pkey: *mut EVP_PKEY, - type_: *const EVP_MD, - ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}_aws_lc_0_21_0_i2d_RSAPublicKey_bio"] + pub fn i2d_RSAPublicKey_bio(bp: *mut BIO, rsa: *mut RSA) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_0_21_0_ASN1_item_sign_ctx"] - pub fn ASN1_item_sign_ctx( - it: *const ASN1_ITEM, - algor1: *mut X509_ALGOR, - algor2: *mut X509_ALGOR, - signature: *mut ASN1_BIT_STRING, - asn: *mut ::std::os::raw::c_void, - ctx: *mut EVP_MD_CTX, - ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}_aws_lc_0_21_0_i2d_RSA_PUBKEY_bio"] + pub fn i2d_RSA_PUBKEY_bio(bp: *mut BIO, rsa: *mut RSA) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_0_21_0_X509_supported_extension"] - pub fn X509_supported_extension(ex: *const X509_EXTENSION) -> ::std::os::raw::c_int; + #[link_name = "\u{1}_aws_lc_0_21_0_i2d_DSA_PUBKEY_bio"] + pub fn i2d_DSA_PUBKEY_bio(bp: *mut BIO, dsa: *mut DSA) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_0_21_0_X509_check_ca"] - pub fn X509_check_ca(x509: *mut X509) -> ::std::os::raw::c_int; + #[link_name = "\u{1}_aws_lc_0_21_0_i2d_DSAPrivateKey_bio"] + pub fn i2d_DSAPrivateKey_bio(bp: *mut BIO, dsa: *mut DSA) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_0_21_0_X509_check_issued"] - pub fn X509_check_issued(issuer: *mut X509, subject: *mut X509) -> ::std::os::raw::c_int; + #[link_name = "\u{1}_aws_lc_0_21_0_i2d_EC_PUBKEY_bio"] + pub fn i2d_EC_PUBKEY_bio(bp: *mut BIO, eckey: *mut EC_KEY) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_0_21_0_NAME_CONSTRAINTS_check"] - pub fn NAME_CONSTRAINTS_check( - x509: *mut X509, - nc: *mut NAME_CONSTRAINTS, - ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}_aws_lc_0_21_0_i2d_ECPrivateKey_bio"] + pub fn i2d_ECPrivateKey_bio(bp: *mut BIO, eckey: *mut EC_KEY) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_0_21_0_X509_check_host"] - pub fn X509_check_host( - x509: *const X509, - chk: *const ::std::os::raw::c_char, - chklen: usize, - flags: ::std::os::raw::c_uint, - out_peername: *mut *mut ::std::os::raw::c_char, - ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}_aws_lc_0_21_0_i2d_PKCS8_bio"] + pub fn i2d_PKCS8_bio(bp: *mut BIO, p8: *mut X509_SIG) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_0_21_0_X509_check_email"] - pub fn X509_check_email( - x509: *const X509, - chk: *const ::std::os::raw::c_char, - chklen: usize, - flags: ::std::os::raw::c_uint, + #[link_name = "\u{1}_aws_lc_0_21_0_i2d_PKCS8_PRIV_KEY_INFO_bio"] + pub fn i2d_PKCS8_PRIV_KEY_INFO_bio( + bp: *mut BIO, + p8inf: *mut PKCS8_PRIV_KEY_INFO, ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_0_21_0_X509_check_ip"] - pub fn X509_check_ip( - x509: *const X509, - chk: *const u8, - chklen: usize, - flags: ::std::os::raw::c_uint, - ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}_aws_lc_0_21_0_i2d_PrivateKey_bio"] + pub fn i2d_PrivateKey_bio(bp: *mut BIO, pkey: *mut EVP_PKEY) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_0_21_0_X509_check_ip_asc"] - pub fn X509_check_ip_asc( - x509: *const X509, - ipasc: *const ::std::os::raw::c_char, - flags: ::std::os::raw::c_uint, - ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}_aws_lc_0_21_0_i2d_PUBKEY_bio"] + pub fn i2d_PUBKEY_bio(bp: *mut BIO, pkey: *mut EVP_PKEY) -> ::std::os::raw::c_int; } -#[repr(C)] -#[derive(Debug, Copy, Clone, PartialEq, Eq)] -pub struct private_key_st { - pub dec_pkey: *mut EVP_PKEY, +extern "C" { + #[link_name = "\u{1}_aws_lc_0_21_0_i2d_DHparams_bio"] + pub fn i2d_DHparams_bio(bp: *mut BIO, dh: *const DH) -> ::std::os::raw::c_int; } -#[test] -fn bindgen_test_layout_private_key_st() { - const UNINIT: ::std::mem::MaybeUninit = ::std::mem::MaybeUninit::uninit(); - let ptr = UNINIT.as_ptr(); - assert_eq!( - ::std::mem::size_of::(), - 4usize, - concat!("Size of: ", stringify!(private_key_st)) - ); - assert_eq!( - ::std::mem::align_of::(), - 4usize, - concat!("Alignment of ", stringify!(private_key_st)) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).dec_pkey) as usize - ptr as usize }, - 0usize, - concat!( - "Offset of field: ", - stringify!(private_key_st), - "::", - stringify!(dec_pkey) - ) - ); +extern "C" { + #[link_name = "\u{1}_aws_lc_0_21_0_i2d_PKCS8PrivateKeyInfo_bio"] + pub fn i2d_PKCS8PrivateKeyInfo_bio(bp: *mut BIO, key: *mut EVP_PKEY) -> ::std::os::raw::c_int; } -impl Default for private_key_st { - fn default() -> Self { - let mut s = ::std::mem::MaybeUninit::::uninit(); - unsafe { - ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() - } - } +extern "C" { + #[link_name = "\u{1}_aws_lc_0_21_0_d2i_X509_fp"] + pub fn d2i_X509_fp(fp: *mut FILE, x509: *mut *mut X509) -> *mut X509; } -#[repr(C)] -#[derive(Debug, Copy, Clone, PartialEq, Eq)] -pub struct X509_info_st { - pub x509: *mut X509, - pub crl: *mut X509_CRL, - pub x_pkey: *mut X509_PKEY, - pub enc_cipher: EVP_CIPHER_INFO, - pub enc_len: ::std::os::raw::c_int, - pub enc_data: *mut ::std::os::raw::c_char, +extern "C" { + #[link_name = "\u{1}_aws_lc_0_21_0_d2i_X509_CRL_fp"] + pub fn d2i_X509_CRL_fp(fp: *mut FILE, crl: *mut *mut X509_CRL) -> *mut X509_CRL; } -#[test] -fn bindgen_test_layout_X509_info_st() { - const UNINIT: ::std::mem::MaybeUninit = ::std::mem::MaybeUninit::uninit(); - let ptr = UNINIT.as_ptr(); - assert_eq!( - ::std::mem::size_of::(), - 40usize, - concat!("Size of: ", stringify!(X509_info_st)) - ); - assert_eq!( - ::std::mem::align_of::(), - 4usize, - concat!("Alignment of ", stringify!(X509_info_st)) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).x509) as usize - ptr as usize }, - 0usize, - concat!( - "Offset of field: ", - stringify!(X509_info_st), - "::", - stringify!(x509) - ) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).crl) as usize - ptr as usize }, - 4usize, - concat!( - "Offset of field: ", - stringify!(X509_info_st), - "::", - stringify!(crl) - ) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).x_pkey) as usize - ptr as usize }, - 8usize, - concat!( - "Offset of field: ", - stringify!(X509_info_st), - "::", - stringify!(x_pkey) - ) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).enc_cipher) as usize - ptr as usize }, - 12usize, - concat!( - "Offset of field: ", - stringify!(X509_info_st), - "::", - stringify!(enc_cipher) - ) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).enc_len) as usize - ptr as usize }, - 32usize, - concat!( - "Offset of field: ", - stringify!(X509_info_st), - "::", - stringify!(enc_len) - ) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).enc_data) as usize - ptr as usize }, - 36usize, - concat!( - "Offset of field: ", - stringify!(X509_info_st), - "::", - stringify!(enc_data) - ) - ); +extern "C" { + #[link_name = "\u{1}_aws_lc_0_21_0_d2i_X509_REQ_fp"] + pub fn d2i_X509_REQ_fp(fp: *mut FILE, req: *mut *mut X509_REQ) -> *mut X509_REQ; } -impl Default for X509_info_st { - fn default() -> Self { - let mut s = ::std::mem::MaybeUninit::::uninit(); - unsafe { - ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() - } - } +extern "C" { + #[link_name = "\u{1}_aws_lc_0_21_0_d2i_RSAPrivateKey_fp"] + pub fn d2i_RSAPrivateKey_fp(fp: *mut FILE, rsa: *mut *mut RSA) -> *mut RSA; } -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct stack_st_X509_INFO { - _unused: [u8; 0], +extern "C" { + #[link_name = "\u{1}_aws_lc_0_21_0_d2i_RSAPublicKey_fp"] + pub fn d2i_RSAPublicKey_fp(fp: *mut FILE, rsa: *mut *mut RSA) -> *mut RSA; } -pub type sk_X509_INFO_free_func = ::std::option::Option; -pub type sk_X509_INFO_copy_func = - ::std::option::Option *mut X509_INFO>; -pub type sk_X509_INFO_cmp_func = ::std::option::Option< - unsafe extern "C" fn( - arg1: *const *const X509_INFO, - arg2: *const *const X509_INFO, - ) -> ::std::os::raw::c_int, ->; -pub type sk_X509_INFO_delete_if_func = ::std::option::Option< - unsafe extern "C" fn( - arg1: *mut X509_INFO, - arg2: *mut ::std::os::raw::c_void, - ) -> ::std::os::raw::c_int, ->; extern "C" { - #[link_name = "\u{1}_aws_lc_0_21_0_X509_INFO_free"] - pub fn X509_INFO_free(info: *mut X509_INFO); -} -#[repr(C)] -#[derive(Debug, Copy, Clone, PartialEq, Eq)] -pub struct v3_ext_ctx { - pub flags: ::std::os::raw::c_int, - pub issuer_cert: *const X509, - pub subject_cert: *const X509, - pub subject_req: *const X509_REQ, - pub crl: *const X509_CRL, - pub db: *const CONF, -} -#[test] -fn bindgen_test_layout_v3_ext_ctx() { - const UNINIT: ::std::mem::MaybeUninit = ::std::mem::MaybeUninit::uninit(); - let ptr = UNINIT.as_ptr(); - assert_eq!( - ::std::mem::size_of::(), - 24usize, - concat!("Size of: ", stringify!(v3_ext_ctx)) - ); - assert_eq!( - ::std::mem::align_of::(), - 4usize, - concat!("Alignment of ", stringify!(v3_ext_ctx)) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).flags) as usize - ptr as usize }, - 0usize, - concat!( - "Offset of field: ", - stringify!(v3_ext_ctx), - "::", - stringify!(flags) - ) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).issuer_cert) as usize - ptr as usize }, - 4usize, - concat!( - "Offset of field: ", - stringify!(v3_ext_ctx), - "::", - stringify!(issuer_cert) - ) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).subject_cert) as usize - ptr as usize }, - 8usize, - concat!( - "Offset of field: ", - stringify!(v3_ext_ctx), - "::", - stringify!(subject_cert) - ) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).subject_req) as usize - ptr as usize }, - 12usize, - concat!( - "Offset of field: ", - stringify!(v3_ext_ctx), - "::", - stringify!(subject_req) - ) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).crl) as usize - ptr as usize }, - 16usize, - concat!( - "Offset of field: ", - stringify!(v3_ext_ctx), - "::", - stringify!(crl) - ) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).db) as usize - ptr as usize }, - 20usize, - concat!( - "Offset of field: ", - stringify!(v3_ext_ctx), - "::", - stringify!(db) - ) - ); -} -impl Default for v3_ext_ctx { - fn default() -> Self { - let mut s = ::std::mem::MaybeUninit::::uninit(); - unsafe { - ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() - } - } + #[link_name = "\u{1}_aws_lc_0_21_0_d2i_RSA_PUBKEY_fp"] + pub fn d2i_RSA_PUBKEY_fp(fp: *mut FILE, rsa: *mut *mut RSA) -> *mut RSA; } extern "C" { - #[link_name = "\u{1}_aws_lc_0_21_0_X509V3_set_ctx"] - pub fn X509V3_set_ctx( - ctx: *mut X509V3_CTX, - issuer: *const X509, - subject: *const X509, - req: *const X509_REQ, - crl: *const X509_CRL, - flags: ::std::os::raw::c_int, - ); + #[link_name = "\u{1}_aws_lc_0_21_0_d2i_DSA_PUBKEY_fp"] + pub fn d2i_DSA_PUBKEY_fp(fp: *mut FILE, dsa: *mut *mut DSA) -> *mut DSA; } extern "C" { - #[link_name = "\u{1}_aws_lc_0_21_0_X509V3_set_nconf"] - pub fn X509V3_set_nconf(ctx: *mut X509V3_CTX, conf: *const CONF); + #[link_name = "\u{1}_aws_lc_0_21_0_d2i_DSAPrivateKey_fp"] + pub fn d2i_DSAPrivateKey_fp(fp: *mut FILE, dsa: *mut *mut DSA) -> *mut DSA; } extern "C" { - #[link_name = "\u{1}_aws_lc_0_21_0_X509V3_EXT_nconf"] - pub fn X509V3_EXT_nconf( - conf: *const CONF, - ctx: *const X509V3_CTX, - name: *const ::std::os::raw::c_char, - value: *const ::std::os::raw::c_char, - ) -> *mut X509_EXTENSION; + #[link_name = "\u{1}_aws_lc_0_21_0_d2i_EC_PUBKEY_fp"] + pub fn d2i_EC_PUBKEY_fp(fp: *mut FILE, eckey: *mut *mut EC_KEY) -> *mut EC_KEY; } extern "C" { - #[link_name = "\u{1}_aws_lc_0_21_0_X509V3_EXT_nconf_nid"] - pub fn X509V3_EXT_nconf_nid( - conf: *const CONF, - ctx: *const X509V3_CTX, - ext_nid: ::std::os::raw::c_int, - value: *const ::std::os::raw::c_char, - ) -> *mut X509_EXTENSION; + #[link_name = "\u{1}_aws_lc_0_21_0_d2i_ECPrivateKey_fp"] + pub fn d2i_ECPrivateKey_fp(fp: *mut FILE, eckey: *mut *mut EC_KEY) -> *mut EC_KEY; } extern "C" { - #[link_name = "\u{1}_aws_lc_0_21_0_X509V3_EXT_conf_nid"] - pub fn X509V3_EXT_conf_nid( - conf: *mut lhash_st_CONF_VALUE, - ctx: *const X509V3_CTX, - ext_nid: ::std::os::raw::c_int, - value: *const ::std::os::raw::c_char, - ) -> *mut X509_EXTENSION; + #[link_name = "\u{1}_aws_lc_0_21_0_d2i_PKCS8_fp"] + pub fn d2i_PKCS8_fp(fp: *mut FILE, p8: *mut *mut X509_SIG) -> *mut X509_SIG; } extern "C" { - #[link_name = "\u{1}_aws_lc_0_21_0_X509V3_EXT_add_nconf_sk"] - pub fn X509V3_EXT_add_nconf_sk( - conf: *const CONF, - ctx: *const X509V3_CTX, - section: *const ::std::os::raw::c_char, - sk: *mut *mut stack_st_X509_EXTENSION, - ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}_aws_lc_0_21_0_d2i_PKCS8_PRIV_KEY_INFO_fp"] + pub fn d2i_PKCS8_PRIV_KEY_INFO_fp( + fp: *mut FILE, + p8inf: *mut *mut PKCS8_PRIV_KEY_INFO, + ) -> *mut PKCS8_PRIV_KEY_INFO; } extern "C" { - #[link_name = "\u{1}_aws_lc_0_21_0_X509V3_EXT_add_nconf"] - pub fn X509V3_EXT_add_nconf( - conf: *const CONF, - ctx: *const X509V3_CTX, - section: *const ::std::os::raw::c_char, - cert: *mut X509, - ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}_aws_lc_0_21_0_d2i_PrivateKey_fp"] + pub fn d2i_PrivateKey_fp(fp: *mut FILE, a: *mut *mut EVP_PKEY) -> *mut EVP_PKEY; } extern "C" { - #[link_name = "\u{1}_aws_lc_0_21_0_X509V3_EXT_REQ_add_nconf"] - pub fn X509V3_EXT_REQ_add_nconf( - conf: *const CONF, - ctx: *const X509V3_CTX, - section: *const ::std::os::raw::c_char, - req: *mut X509_REQ, - ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}_aws_lc_0_21_0_d2i_PUBKEY_fp"] + pub fn d2i_PUBKEY_fp(fp: *mut FILE, a: *mut *mut EVP_PKEY) -> *mut EVP_PKEY; } extern "C" { - #[link_name = "\u{1}_aws_lc_0_21_0_X509V3_EXT_CRL_add_nconf"] - pub fn X509V3_EXT_CRL_add_nconf( - conf: *const CONF, - ctx: *const X509V3_CTX, - section: *const ::std::os::raw::c_char, - crl: *mut X509_CRL, - ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}_aws_lc_0_21_0_i2d_X509_fp"] + pub fn i2d_X509_fp(fp: *mut FILE, x509: *mut X509) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_0_21_0_X509V3_EXT_conf"] - pub fn X509V3_EXT_conf( - conf: *mut lhash_st_CONF_VALUE, - ctx: *mut X509V3_CTX, - name: *const ::std::os::raw::c_char, - value: *const ::std::os::raw::c_char, - ) -> *mut X509_EXTENSION; + #[link_name = "\u{1}_aws_lc_0_21_0_i2d_X509_CRL_fp"] + pub fn i2d_X509_CRL_fp(fp: *mut FILE, crl: *mut X509_CRL) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_0_21_0_i2s_ASN1_OCTET_STRING"] - pub fn i2s_ASN1_OCTET_STRING( - method: *const X509V3_EXT_METHOD, - oct: *const ASN1_OCTET_STRING, - ) -> *mut ::std::os::raw::c_char; + #[link_name = "\u{1}_aws_lc_0_21_0_i2d_X509_REQ_fp"] + pub fn i2d_X509_REQ_fp(fp: *mut FILE, req: *mut X509_REQ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_0_21_0_s2i_ASN1_OCTET_STRING"] - pub fn s2i_ASN1_OCTET_STRING( - method: *const X509V3_EXT_METHOD, - ctx: *const X509V3_CTX, - str_: *const ::std::os::raw::c_char, - ) -> *mut ASN1_OCTET_STRING; + #[link_name = "\u{1}_aws_lc_0_21_0_i2d_RSAPrivateKey_fp"] + pub fn i2d_RSAPrivateKey_fp(fp: *mut FILE, rsa: *mut RSA) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_0_21_0_i2s_ASN1_INTEGER"] - pub fn i2s_ASN1_INTEGER( - method: *const X509V3_EXT_METHOD, - aint: *const ASN1_INTEGER, - ) -> *mut ::std::os::raw::c_char; + #[link_name = "\u{1}_aws_lc_0_21_0_i2d_RSAPublicKey_fp"] + pub fn i2d_RSAPublicKey_fp(fp: *mut FILE, rsa: *mut RSA) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_0_21_0_s2i_ASN1_INTEGER"] - pub fn s2i_ASN1_INTEGER( - method: *const X509V3_EXT_METHOD, - value: *const ::std::os::raw::c_char, - ) -> *mut ASN1_INTEGER; + #[link_name = "\u{1}_aws_lc_0_21_0_i2d_RSA_PUBKEY_fp"] + pub fn i2d_RSA_PUBKEY_fp(fp: *mut FILE, rsa: *mut RSA) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_0_21_0_i2s_ASN1_ENUMERATED"] - pub fn i2s_ASN1_ENUMERATED( - method: *const X509V3_EXT_METHOD, - aint: *const ASN1_ENUMERATED, - ) -> *mut ::std::os::raw::c_char; + #[link_name = "\u{1}_aws_lc_0_21_0_i2d_DSA_PUBKEY_fp"] + pub fn i2d_DSA_PUBKEY_fp(fp: *mut FILE, dsa: *mut DSA) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_0_21_0_X509V3_conf_free"] - pub fn X509V3_conf_free(val: *mut CONF_VALUE); + #[link_name = "\u{1}_aws_lc_0_21_0_i2d_DSAPrivateKey_fp"] + pub fn i2d_DSAPrivateKey_fp(fp: *mut FILE, dsa: *mut DSA) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_0_21_0_i2v_GENERAL_NAME"] - pub fn i2v_GENERAL_NAME( - method: *const X509V3_EXT_METHOD, - gen: *const GENERAL_NAME, - ret: *mut stack_st_CONF_VALUE, - ) -> *mut stack_st_CONF_VALUE; + #[link_name = "\u{1}_aws_lc_0_21_0_i2d_EC_PUBKEY_fp"] + pub fn i2d_EC_PUBKEY_fp(fp: *mut FILE, eckey: *mut EC_KEY) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_0_21_0_i2v_GENERAL_NAMES"] - pub fn i2v_GENERAL_NAMES( - method: *const X509V3_EXT_METHOD, - gen: *const GENERAL_NAMES, - extlist: *mut stack_st_CONF_VALUE, - ) -> *mut stack_st_CONF_VALUE; + #[link_name = "\u{1}_aws_lc_0_21_0_i2d_ECPrivateKey_fp"] + pub fn i2d_ECPrivateKey_fp(fp: *mut FILE, eckey: *mut EC_KEY) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_0_21_0_a2i_IPADDRESS"] - pub fn a2i_IPADDRESS(ipasc: *const ::std::os::raw::c_char) -> *mut ASN1_OCTET_STRING; + #[link_name = "\u{1}_aws_lc_0_21_0_i2d_PKCS8_fp"] + pub fn i2d_PKCS8_fp(fp: *mut FILE, p8: *mut X509_SIG) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_0_21_0_a2i_IPADDRESS_NC"] - pub fn a2i_IPADDRESS_NC(ipasc: *const ::std::os::raw::c_char) -> *mut ASN1_OCTET_STRING; + #[link_name = "\u{1}_aws_lc_0_21_0_i2d_PKCS8_PRIV_KEY_INFO_fp"] + pub fn i2d_PKCS8_PRIV_KEY_INFO_fp( + fp: *mut FILE, + p8inf: *mut PKCS8_PRIV_KEY_INFO, + ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_0_21_0_X509_get_notBefore"] - pub fn X509_get_notBefore(x509: *const X509) -> *mut ASN1_TIME; + #[link_name = "\u{1}_aws_lc_0_21_0_i2d_PKCS8PrivateKeyInfo_fp"] + pub fn i2d_PKCS8PrivateKeyInfo_fp(fp: *mut FILE, key: *mut EVP_PKEY) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_0_21_0_X509_get_notAfter"] - pub fn X509_get_notAfter(x509: *const X509) -> *mut ASN1_TIME; + #[link_name = "\u{1}_aws_lc_0_21_0_i2d_PrivateKey_fp"] + pub fn i2d_PrivateKey_fp(fp: *mut FILE, pkey: *mut EVP_PKEY) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_0_21_0_X509_set_notBefore"] - pub fn X509_set_notBefore(x509: *mut X509, tm: *const ASN1_TIME) -> ::std::os::raw::c_int; + #[link_name = "\u{1}_aws_lc_0_21_0_i2d_PUBKEY_fp"] + pub fn i2d_PUBKEY_fp(fp: *mut FILE, pkey: *mut EVP_PKEY) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_0_21_0_X509_set_notAfter"] - pub fn X509_set_notAfter(x509: *mut X509, tm: *const ASN1_TIME) -> ::std::os::raw::c_int; + #[link_name = "\u{1}_aws_lc_0_21_0_X509_find_by_issuer_and_serial"] + pub fn X509_find_by_issuer_and_serial( + sk: *const stack_st_X509, + name: *mut X509_NAME, + serial: *const ASN1_INTEGER, + ) -> *mut X509; } extern "C" { - #[link_name = "\u{1}_aws_lc_0_21_0_X509_CRL_get_lastUpdate"] - pub fn X509_CRL_get_lastUpdate(crl: *mut X509_CRL) -> *mut ASN1_TIME; + #[link_name = "\u{1}_aws_lc_0_21_0_X509_find_by_subject"] + pub fn X509_find_by_subject(sk: *const stack_st_X509, name: *mut X509_NAME) -> *mut X509; } extern "C" { - #[link_name = "\u{1}_aws_lc_0_21_0_X509_CRL_get_nextUpdate"] - pub fn X509_CRL_get_nextUpdate(crl: *mut X509_CRL) -> *mut ASN1_TIME; + #[link_name = "\u{1}_aws_lc_0_21_0_X509_cmp_time"] + pub fn X509_cmp_time(s: *const ASN1_TIME, t: *const time_t) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_0_21_0_X509_get_serialNumber"] - pub fn X509_get_serialNumber(x509: *mut X509) -> *mut ASN1_INTEGER; + #[link_name = "\u{1}_aws_lc_0_21_0_X509_cmp_time_posix"] + pub fn X509_cmp_time_posix(s: *const ASN1_TIME, t: i64) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_0_21_0_X509_NAME_get_text_by_OBJ"] - pub fn X509_NAME_get_text_by_OBJ( - name: *const X509_NAME, - obj: *const ASN1_OBJECT, - buf: *mut ::std::os::raw::c_char, - len: ::std::os::raw::c_int, - ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}_aws_lc_0_21_0_X509_cmp_current_time"] + pub fn X509_cmp_current_time(s: *const ASN1_TIME) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_0_21_0_X509_NAME_get_text_by_NID"] - pub fn X509_NAME_get_text_by_NID( - name: *const X509_NAME, - nid: ::std::os::raw::c_int, - buf: *mut ::std::os::raw::c_char, - len: ::std::os::raw::c_int, - ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}_aws_lc_0_21_0_X509_time_adj"] + pub fn X509_time_adj( + s: *mut ASN1_TIME, + offset_sec: ::std::os::raw::c_long, + t: *const time_t, + ) -> *mut ASN1_TIME; } extern "C" { - #[link_name = "\u{1}_aws_lc_0_21_0_X509_STORE_CTX_get0_parent_ctx"] - pub fn X509_STORE_CTX_get0_parent_ctx(ctx: *mut X509_STORE_CTX) -> *mut X509_STORE_CTX; + #[link_name = "\u{1}_aws_lc_0_21_0_X509_time_adj_ex"] + pub fn X509_time_adj_ex( + s: *mut ASN1_TIME, + offset_day: ::std::os::raw::c_int, + offset_sec: ::std::os::raw::c_long, + t: *const time_t, + ) -> *mut ASN1_TIME; } extern "C" { - #[link_name = "\u{1}_aws_lc_0_21_0_X509_LOOKUP_free"] - pub fn X509_LOOKUP_free(ctx: *mut X509_LOOKUP); + #[link_name = "\u{1}_aws_lc_0_21_0_X509_gmtime_adj"] + pub fn X509_gmtime_adj(s: *mut ASN1_TIME, offset_sec: ::std::os::raw::c_long) + -> *mut ASN1_TIME; } extern "C" { - #[link_name = "\u{1}_aws_lc_0_21_0_X509_STORE_CTX_cleanup"] - pub fn X509_STORE_CTX_cleanup(ctx: *mut X509_STORE_CTX); + #[link_name = "\u{1}_aws_lc_0_21_0_X509_issuer_name_cmp"] + pub fn X509_issuer_name_cmp(a: *const X509, b: *const X509) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_0_21_0_X509V3_add_standard_extensions"] - pub fn X509V3_add_standard_extensions() -> ::std::os::raw::c_int; + #[link_name = "\u{1}_aws_lc_0_21_0_X509_subject_name_cmp"] + pub fn X509_subject_name_cmp(a: *const X509, b: *const X509) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_0_21_0_X509V3_parse_list"] - pub fn X509V3_parse_list(line: *const ::std::os::raw::c_char) -> *mut stack_st_CONF_VALUE; + #[link_name = "\u{1}_aws_lc_0_21_0_X509_CRL_cmp"] + pub fn X509_CRL_cmp(a: *const X509_CRL, b: *const X509_CRL) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_0_21_0_X509_STORE_CTX_get_chain"] - pub fn X509_STORE_CTX_get_chain(ctx: *mut X509_STORE_CTX) -> *mut stack_st_X509; + #[link_name = "\u{1}_aws_lc_0_21_0_X509_issuer_name_hash"] + pub fn X509_issuer_name_hash(x509: *mut X509) -> u32; } extern "C" { - #[link_name = "\u{1}_aws_lc_0_21_0_X509_STORE_CTX_trusted_stack"] - pub fn X509_STORE_CTX_trusted_stack(ctx: *mut X509_STORE_CTX, sk: *mut stack_st_X509); + #[link_name = "\u{1}_aws_lc_0_21_0_X509_subject_name_hash"] + pub fn X509_subject_name_hash(x509: *mut X509) -> u32; } -pub type X509_STORE_CTX_verify_cb = ::std::option::Option< - unsafe extern "C" fn( - arg1: ::std::os::raw::c_int, - arg2: *mut X509_STORE_CTX, - ) -> ::std::os::raw::c_int, ->; extern "C" { - #[link_name = "\u{1}_aws_lc_0_21_0_X509_STORE_CTX_set_verify_cb"] - pub fn X509_STORE_CTX_set_verify_cb( - ctx: *mut X509_STORE_CTX, - verify_cb: ::std::option::Option< - unsafe extern "C" fn( - ok: ::std::os::raw::c_int, - ctx: *mut X509_STORE_CTX, - ) -> ::std::os::raw::c_int, - >, - ); + #[link_name = "\u{1}_aws_lc_0_21_0_X509_issuer_name_hash_old"] + pub fn X509_issuer_name_hash_old(x509: *mut X509) -> u32; } extern "C" { - #[link_name = "\u{1}_aws_lc_0_21_0_X509_STORE_set_verify_cb"] - pub fn X509_STORE_set_verify_cb(store: *mut X509_STORE, verify_cb: X509_STORE_CTX_verify_cb); + #[link_name = "\u{1}_aws_lc_0_21_0_X509_subject_name_hash_old"] + pub fn X509_subject_name_hash_old(x509: *mut X509) -> u32; } -pub type X509_STORE_CTX_get_crl_fn = ::std::option::Option< - unsafe extern "C" fn( - ctx: *mut X509_STORE_CTX, - crl: *mut *mut X509_CRL, - x: *mut X509, - ) -> ::std::os::raw::c_int, ->; -pub type X509_STORE_CTX_check_crl_fn = ::std::option::Option< - unsafe extern "C" fn(ctx: *mut X509_STORE_CTX, crl: *mut X509_CRL) -> ::std::os::raw::c_int, ->; extern "C" { - #[link_name = "\u{1}_aws_lc_0_21_0_X509_STORE_set_get_crl"] - pub fn X509_STORE_set_get_crl(store: *mut X509_STORE, get_crl: X509_STORE_CTX_get_crl_fn); + #[link_name = "\u{1}_aws_lc_0_21_0_X509_get_ex_new_index"] + pub fn X509_get_ex_new_index( + argl: ::std::os::raw::c_long, + argp: *mut ::std::os::raw::c_void, + unused: *mut CRYPTO_EX_unused, + dup_unused: CRYPTO_EX_dup, + free_func: CRYPTO_EX_free, + ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_0_21_0_X509_STORE_set_check_crl"] - pub fn X509_STORE_set_check_crl(store: *mut X509_STORE, check_crl: X509_STORE_CTX_check_crl_fn); + #[link_name = "\u{1}_aws_lc_0_21_0_X509_set_ex_data"] + pub fn X509_set_ex_data( + r: *mut X509, + idx: ::std::os::raw::c_int, + arg: *mut ::std::os::raw::c_void, + ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_0_21_0_X509_STORE_CTX_set_chain"] - pub fn X509_STORE_CTX_set_chain(ctx: *mut X509_STORE_CTX, sk: *mut stack_st_X509); + #[link_name = "\u{1}_aws_lc_0_21_0_X509_get_ex_data"] + pub fn X509_get_ex_data( + r: *mut X509, + idx: ::std::os::raw::c_int, + ) -> *mut ::std::os::raw::c_void; } -#[repr(C)] -#[derive(Debug, Copy, Clone, PartialEq, Eq)] -pub struct X509_algor_st { - pub algorithm: *mut ASN1_OBJECT, - pub parameter: *mut ASN1_TYPE, +extern "C" { + #[link_name = "\u{1}_aws_lc_0_21_0_X509_STORE_CTX_get_ex_new_index"] + pub fn X509_STORE_CTX_get_ex_new_index( + argl: ::std::os::raw::c_long, + argp: *mut ::std::os::raw::c_void, + unused: *mut CRYPTO_EX_unused, + dup_unused: CRYPTO_EX_dup, + free_func: CRYPTO_EX_free, + ) -> ::std::os::raw::c_int; } -#[test] -fn bindgen_test_layout_X509_algor_st() { - const UNINIT: ::std::mem::MaybeUninit = ::std::mem::MaybeUninit::uninit(); - let ptr = UNINIT.as_ptr(); - assert_eq!( - ::std::mem::size_of::(), - 8usize, - concat!("Size of: ", stringify!(X509_algor_st)) - ); - assert_eq!( - ::std::mem::align_of::(), - 4usize, - concat!("Alignment of ", stringify!(X509_algor_st)) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).algorithm) as usize - ptr as usize }, - 0usize, - concat!( - "Offset of field: ", - stringify!(X509_algor_st), - "::", - stringify!(algorithm) - ) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).parameter) as usize - ptr as usize }, - 4usize, - concat!( - "Offset of field: ", - stringify!(X509_algor_st), - "::", - stringify!(parameter) - ) - ); +extern "C" { + #[link_name = "\u{1}_aws_lc_0_21_0_X509_STORE_CTX_set_ex_data"] + pub fn X509_STORE_CTX_set_ex_data( + ctx: *mut X509_STORE_CTX, + idx: ::std::os::raw::c_int, + data: *mut ::std::os::raw::c_void, + ) -> ::std::os::raw::c_int; } -impl Default for X509_algor_st { - fn default() -> Self { - let mut s = ::std::mem::MaybeUninit::::uninit(); - unsafe { - ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() - } - } +extern "C" { + #[link_name = "\u{1}_aws_lc_0_21_0_X509_STORE_CTX_get_ex_data"] + pub fn X509_STORE_CTX_get_ex_data( + ctx: *mut X509_STORE_CTX, + idx: ::std::os::raw::c_int, + ) -> *mut ::std::os::raw::c_void; } -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct stack_st_DIST_POINT { - _unused: [u8; 0], +extern "C" { + #[link_name = "\u{1}_aws_lc_0_21_0_X509_STORE_get_ex_new_index"] + pub fn X509_STORE_get_ex_new_index( + argl: ::std::os::raw::c_long, + argp: *mut ::std::os::raw::c_void, + unused: *mut CRYPTO_EX_unused, + dup_unused: CRYPTO_EX_dup, + free_func: CRYPTO_EX_free, + ) -> ::std::os::raw::c_int; } -#[repr(C)] -#[derive(Debug, Copy, Clone, PartialEq, Eq)] -pub struct x509_trust_st { - pub trust: ::std::os::raw::c_int, - pub flags: ::std::os::raw::c_int, - pub check_trust: ::std::option::Option< - unsafe extern "C" fn( - arg1: *const X509_TRUST, - arg2: *mut X509, - arg3: ::std::os::raw::c_int, - ) -> ::std::os::raw::c_int, - >, - pub name: *mut ::std::os::raw::c_char, - pub arg1: ::std::os::raw::c_int, - pub arg2: *mut ::std::os::raw::c_void, +extern "C" { + #[link_name = "\u{1}_aws_lc_0_21_0_X509_STORE_set_ex_data"] + pub fn X509_STORE_set_ex_data( + ctx: *mut X509_STORE, + idx: ::std::os::raw::c_int, + data: *mut ::std::os::raw::c_void, + ) -> ::std::os::raw::c_int; } -#[test] -fn bindgen_test_layout_x509_trust_st() { - const UNINIT: ::std::mem::MaybeUninit = ::std::mem::MaybeUninit::uninit(); - let ptr = UNINIT.as_ptr(); - assert_eq!( - ::std::mem::size_of::(), - 24usize, - concat!("Size of: ", stringify!(x509_trust_st)) - ); - assert_eq!( - ::std::mem::align_of::(), - 4usize, - concat!("Alignment of ", stringify!(x509_trust_st)) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).trust) as usize - ptr as usize }, +extern "C" { + #[link_name = "\u{1}_aws_lc_0_21_0_X509_STORE_get_ex_data"] + pub fn X509_STORE_get_ex_data( + ctx: *mut X509_STORE, + idx: ::std::os::raw::c_int, + ) -> *mut ::std::os::raw::c_void; +} +extern "C" { + #[link_name = "\u{1}_aws_lc_0_21_0_ASN1_digest"] + pub fn ASN1_digest( + i2d: i2d_of_void, + type_: *const EVP_MD, + data: *mut ::std::os::raw::c_char, + md: *mut ::std::os::raw::c_uchar, + len: *mut ::std::os::raw::c_uint, + ) -> ::std::os::raw::c_int; +} +extern "C" { + #[link_name = "\u{1}_aws_lc_0_21_0_ASN1_item_digest"] + pub fn ASN1_item_digest( + it: *const ASN1_ITEM, + type_: *const EVP_MD, + data: *mut ::std::os::raw::c_void, + md: *mut ::std::os::raw::c_uchar, + len: *mut ::std::os::raw::c_uint, + ) -> ::std::os::raw::c_int; +} +extern "C" { + #[link_name = "\u{1}_aws_lc_0_21_0_ASN1_item_verify"] + pub fn ASN1_item_verify( + it: *const ASN1_ITEM, + algor1: *const X509_ALGOR, + signature: *const ASN1_BIT_STRING, + data: *mut ::std::os::raw::c_void, + pkey: *mut EVP_PKEY, + ) -> ::std::os::raw::c_int; +} +extern "C" { + #[link_name = "\u{1}_aws_lc_0_21_0_ASN1_item_sign"] + pub fn ASN1_item_sign( + it: *const ASN1_ITEM, + algor1: *mut X509_ALGOR, + algor2: *mut X509_ALGOR, + signature: *mut ASN1_BIT_STRING, + data: *mut ::std::os::raw::c_void, + pkey: *mut EVP_PKEY, + type_: *const EVP_MD, + ) -> ::std::os::raw::c_int; +} +extern "C" { + #[link_name = "\u{1}_aws_lc_0_21_0_ASN1_item_sign_ctx"] + pub fn ASN1_item_sign_ctx( + it: *const ASN1_ITEM, + algor1: *mut X509_ALGOR, + algor2: *mut X509_ALGOR, + signature: *mut ASN1_BIT_STRING, + asn: *mut ::std::os::raw::c_void, + ctx: *mut EVP_MD_CTX, + ) -> ::std::os::raw::c_int; +} +extern "C" { + #[link_name = "\u{1}_aws_lc_0_21_0_X509_supported_extension"] + pub fn X509_supported_extension(ex: *const X509_EXTENSION) -> ::std::os::raw::c_int; +} +extern "C" { + #[link_name = "\u{1}_aws_lc_0_21_0_X509_check_ca"] + pub fn X509_check_ca(x509: *mut X509) -> ::std::os::raw::c_int; +} +extern "C" { + #[link_name = "\u{1}_aws_lc_0_21_0_X509_check_issued"] + pub fn X509_check_issued(issuer: *mut X509, subject: *mut X509) -> ::std::os::raw::c_int; +} +extern "C" { + #[link_name = "\u{1}_aws_lc_0_21_0_NAME_CONSTRAINTS_check"] + pub fn NAME_CONSTRAINTS_check( + x509: *mut X509, + nc: *mut NAME_CONSTRAINTS, + ) -> ::std::os::raw::c_int; +} +extern "C" { + #[link_name = "\u{1}_aws_lc_0_21_0_X509_check_host"] + pub fn X509_check_host( + x509: *const X509, + chk: *const ::std::os::raw::c_char, + chklen: usize, + flags: ::std::os::raw::c_uint, + out_peername: *mut *mut ::std::os::raw::c_char, + ) -> ::std::os::raw::c_int; +} +extern "C" { + #[link_name = "\u{1}_aws_lc_0_21_0_X509_check_email"] + pub fn X509_check_email( + x509: *const X509, + chk: *const ::std::os::raw::c_char, + chklen: usize, + flags: ::std::os::raw::c_uint, + ) -> ::std::os::raw::c_int; +} +extern "C" { + #[link_name = "\u{1}_aws_lc_0_21_0_X509_check_ip"] + pub fn X509_check_ip( + x509: *const X509, + chk: *const u8, + chklen: usize, + flags: ::std::os::raw::c_uint, + ) -> ::std::os::raw::c_int; +} +extern "C" { + #[link_name = "\u{1}_aws_lc_0_21_0_X509_check_ip_asc"] + pub fn X509_check_ip_asc( + x509: *const X509, + ipasc: *const ::std::os::raw::c_char, + flags: ::std::os::raw::c_uint, + ) -> ::std::os::raw::c_int; +} +extern "C" { + #[link_name = "\u{1}_aws_lc_0_21_0_X509_STORE_CTX_get1_issuer"] + pub fn X509_STORE_CTX_get1_issuer( + out_issuer: *mut *mut X509, + ctx: *mut X509_STORE_CTX, + x509: *mut X509, + ) -> ::std::os::raw::c_int; +} +extern "C" { + #[link_name = "\u{1}_aws_lc_0_21_0_X509_check_purpose"] + pub fn X509_check_purpose( + x509: *mut X509, + purpose: ::std::os::raw::c_int, + ca: ::std::os::raw::c_int, + ) -> ::std::os::raw::c_int; +} +extern "C" { + #[link_name = "\u{1}_aws_lc_0_21_0_X509_check_trust"] + pub fn X509_check_trust( + x509: *mut X509, + id: ::std::os::raw::c_int, + flags: ::std::os::raw::c_int, + ) -> ::std::os::raw::c_int; +} +#[repr(C)] +#[derive(Debug, Copy, Clone, PartialEq, Eq)] +pub struct private_key_st { + pub dec_pkey: *mut EVP_PKEY, +} +#[test] +fn bindgen_test_layout_private_key_st() { + const UNINIT: ::std::mem::MaybeUninit = ::std::mem::MaybeUninit::uninit(); + let ptr = UNINIT.as_ptr(); + assert_eq!( + ::std::mem::size_of::(), + 4usize, + concat!("Size of: ", stringify!(private_key_st)) + ); + assert_eq!( + ::std::mem::align_of::(), + 4usize, + concat!("Alignment of ", stringify!(private_key_st)) + ); + assert_eq!( + unsafe { ::std::ptr::addr_of!((*ptr).dec_pkey) as usize - ptr as usize }, 0usize, concat!( "Offset of field: ", - stringify!(x509_trust_st), + stringify!(private_key_st), "::", - stringify!(trust) + stringify!(dec_pkey) ) ); +} +impl Default for private_key_st { + fn default() -> Self { + let mut s = ::std::mem::MaybeUninit::::uninit(); + unsafe { + ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); + s.assume_init() + } + } +} +#[repr(C)] +#[derive(Debug, Copy, Clone, PartialEq, Eq)] +pub struct X509_info_st { + pub x509: *mut X509, + pub crl: *mut X509_CRL, + pub x_pkey: *mut X509_PKEY, + pub enc_cipher: EVP_CIPHER_INFO, + pub enc_len: ::std::os::raw::c_int, + pub enc_data: *mut ::std::os::raw::c_char, +} +#[test] +fn bindgen_test_layout_X509_info_st() { + const UNINIT: ::std::mem::MaybeUninit = ::std::mem::MaybeUninit::uninit(); + let ptr = UNINIT.as_ptr(); assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).flags) as usize - ptr as usize }, + ::std::mem::size_of::(), + 40usize, + concat!("Size of: ", stringify!(X509_info_st)) + ); + assert_eq!( + ::std::mem::align_of::(), 4usize, + concat!("Alignment of ", stringify!(X509_info_st)) + ); + assert_eq!( + unsafe { ::std::ptr::addr_of!((*ptr).x509) as usize - ptr as usize }, + 0usize, concat!( "Offset of field: ", - stringify!(x509_trust_st), + stringify!(X509_info_st), "::", - stringify!(flags) + stringify!(x509) ) ); assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).check_trust) as usize - ptr as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).crl) as usize - ptr as usize }, + 4usize, + concat!( + "Offset of field: ", + stringify!(X509_info_st), + "::", + stringify!(crl) + ) + ); + assert_eq!( + unsafe { ::std::ptr::addr_of!((*ptr).x_pkey) as usize - ptr as usize }, 8usize, concat!( "Offset of field: ", - stringify!(x509_trust_st), + stringify!(X509_info_st), "::", - stringify!(check_trust) + stringify!(x_pkey) ) ); assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).name) as usize - ptr as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).enc_cipher) as usize - ptr as usize }, 12usize, concat!( "Offset of field: ", - stringify!(x509_trust_st), + stringify!(X509_info_st), "::", - stringify!(name) + stringify!(enc_cipher) ) ); assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).arg1) as usize - ptr as usize }, - 16usize, + unsafe { ::std::ptr::addr_of!((*ptr).enc_len) as usize - ptr as usize }, + 32usize, concat!( "Offset of field: ", - stringify!(x509_trust_st), + stringify!(X509_info_st), "::", - stringify!(arg1) + stringify!(enc_len) ) ); assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).arg2) as usize - ptr as usize }, - 20usize, + unsafe { ::std::ptr::addr_of!((*ptr).enc_data) as usize - ptr as usize }, + 36usize, concat!( "Offset of field: ", - stringify!(x509_trust_st), + stringify!(X509_info_st), "::", - stringify!(arg2) + stringify!(enc_data) ) ); } -impl Default for x509_trust_st { +impl Default for X509_info_st { fn default() -> Self { let mut s = ::std::mem::MaybeUninit::::uninit(); unsafe { @@ -22803,609 +22600,801 @@ impl Default for x509_trust_st { } #[repr(C)] #[derive(Debug, Copy, Clone)] -pub struct stack_st_X509_TRUST { +pub struct stack_st_X509_INFO { _unused: [u8; 0], } -pub type sk_X509_TRUST_free_func = - ::std::option::Option; -pub type sk_X509_TRUST_copy_func = - ::std::option::Option *mut X509_TRUST>; -pub type sk_X509_TRUST_cmp_func = ::std::option::Option< +pub type sk_X509_INFO_free_func = ::std::option::Option; +pub type sk_X509_INFO_copy_func = + ::std::option::Option *mut X509_INFO>; +pub type sk_X509_INFO_cmp_func = ::std::option::Option< unsafe extern "C" fn( - arg1: *const *const X509_TRUST, - arg2: *const *const X509_TRUST, + arg1: *const *const X509_INFO, + arg2: *const *const X509_INFO, ) -> ::std::os::raw::c_int, >; -pub type sk_X509_TRUST_delete_if_func = ::std::option::Option< +pub type sk_X509_INFO_delete_if_func = ::std::option::Option< unsafe extern "C" fn( - arg1: *mut X509_TRUST, + arg1: *mut X509_INFO, arg2: *mut ::std::os::raw::c_void, ) -> ::std::os::raw::c_int, >; extern "C" { - #[link_name = "\u{1}_aws_lc_0_21_0_X509_verify_cert_error_string"] - pub fn X509_verify_cert_error_string( - err: ::std::os::raw::c_long, - ) -> *const ::std::os::raw::c_char; + #[link_name = "\u{1}_aws_lc_0_21_0_X509_INFO_free"] + pub fn X509_INFO_free(info: *mut X509_INFO); } -extern "C" { - #[link_name = "\u{1}_aws_lc_0_21_0_X509_get_default_cert_area"] - pub fn X509_get_default_cert_area() -> *const ::std::os::raw::c_char; +#[repr(C)] +#[derive(Debug, Copy, Clone, PartialEq, Eq)] +pub struct v3_ext_ctx { + pub flags: ::std::os::raw::c_int, + pub issuer_cert: *const X509, + pub subject_cert: *const X509, + pub subject_req: *const X509_REQ, + pub crl: *const X509_CRL, + pub db: *const CONF, +} +#[test] +fn bindgen_test_layout_v3_ext_ctx() { + const UNINIT: ::std::mem::MaybeUninit = ::std::mem::MaybeUninit::uninit(); + let ptr = UNINIT.as_ptr(); + assert_eq!( + ::std::mem::size_of::(), + 24usize, + concat!("Size of: ", stringify!(v3_ext_ctx)) + ); + assert_eq!( + ::std::mem::align_of::(), + 4usize, + concat!("Alignment of ", stringify!(v3_ext_ctx)) + ); + assert_eq!( + unsafe { ::std::ptr::addr_of!((*ptr).flags) as usize - ptr as usize }, + 0usize, + concat!( + "Offset of field: ", + stringify!(v3_ext_ctx), + "::", + stringify!(flags) + ) + ); + assert_eq!( + unsafe { ::std::ptr::addr_of!((*ptr).issuer_cert) as usize - ptr as usize }, + 4usize, + concat!( + "Offset of field: ", + stringify!(v3_ext_ctx), + "::", + stringify!(issuer_cert) + ) + ); + assert_eq!( + unsafe { ::std::ptr::addr_of!((*ptr).subject_cert) as usize - ptr as usize }, + 8usize, + concat!( + "Offset of field: ", + stringify!(v3_ext_ctx), + "::", + stringify!(subject_cert) + ) + ); + assert_eq!( + unsafe { ::std::ptr::addr_of!((*ptr).subject_req) as usize - ptr as usize }, + 12usize, + concat!( + "Offset of field: ", + stringify!(v3_ext_ctx), + "::", + stringify!(subject_req) + ) + ); + assert_eq!( + unsafe { ::std::ptr::addr_of!((*ptr).crl) as usize - ptr as usize }, + 16usize, + concat!( + "Offset of field: ", + stringify!(v3_ext_ctx), + "::", + stringify!(crl) + ) + ); + assert_eq!( + unsafe { ::std::ptr::addr_of!((*ptr).db) as usize - ptr as usize }, + 20usize, + concat!( + "Offset of field: ", + stringify!(v3_ext_ctx), + "::", + stringify!(db) + ) + ); +} +impl Default for v3_ext_ctx { + fn default() -> Self { + let mut s = ::std::mem::MaybeUninit::::uninit(); + unsafe { + ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); + s.assume_init() + } + } } extern "C" { - #[link_name = "\u{1}_aws_lc_0_21_0_X509_get_default_cert_dir"] - pub fn X509_get_default_cert_dir() -> *const ::std::os::raw::c_char; + #[link_name = "\u{1}_aws_lc_0_21_0_X509V3_set_ctx"] + pub fn X509V3_set_ctx( + ctx: *mut X509V3_CTX, + issuer: *const X509, + subject: *const X509, + req: *const X509_REQ, + crl: *const X509_CRL, + flags: ::std::os::raw::c_int, + ); } extern "C" { - #[link_name = "\u{1}_aws_lc_0_21_0_X509_get_default_cert_file"] - pub fn X509_get_default_cert_file() -> *const ::std::os::raw::c_char; + #[link_name = "\u{1}_aws_lc_0_21_0_X509V3_set_nconf"] + pub fn X509V3_set_nconf(ctx: *mut X509V3_CTX, conf: *const CONF); } extern "C" { - #[link_name = "\u{1}_aws_lc_0_21_0_X509_get_default_cert_dir_env"] - pub fn X509_get_default_cert_dir_env() -> *const ::std::os::raw::c_char; + #[link_name = "\u{1}_aws_lc_0_21_0_X509V3_EXT_nconf"] + pub fn X509V3_EXT_nconf( + conf: *const CONF, + ctx: *const X509V3_CTX, + name: *const ::std::os::raw::c_char, + value: *const ::std::os::raw::c_char, + ) -> *mut X509_EXTENSION; } extern "C" { - #[link_name = "\u{1}_aws_lc_0_21_0_X509_get_default_cert_file_env"] - pub fn X509_get_default_cert_file_env() -> *const ::std::os::raw::c_char; + #[link_name = "\u{1}_aws_lc_0_21_0_X509V3_EXT_nconf_nid"] + pub fn X509V3_EXT_nconf_nid( + conf: *const CONF, + ctx: *const X509V3_CTX, + ext_nid: ::std::os::raw::c_int, + value: *const ::std::os::raw::c_char, + ) -> *mut X509_EXTENSION; } extern "C" { - #[link_name = "\u{1}_aws_lc_0_21_0_X509_get_default_private_dir"] - pub fn X509_get_default_private_dir() -> *const ::std::os::raw::c_char; + #[link_name = "\u{1}_aws_lc_0_21_0_X509V3_EXT_conf_nid"] + pub fn X509V3_EXT_conf_nid( + conf: *mut lhash_st_CONF_VALUE, + ctx: *const X509V3_CTX, + ext_nid: ::std::os::raw::c_int, + value: *const ::std::os::raw::c_char, + ) -> *mut X509_EXTENSION; } extern "C" { - #[link_name = "\u{1}_aws_lc_0_21_0_X509_TRUST_set"] - pub fn X509_TRUST_set( - t: *mut ::std::os::raw::c_int, - trust: ::std::os::raw::c_int, + #[link_name = "\u{1}_aws_lc_0_21_0_X509V3_EXT_add_nconf_sk"] + pub fn X509V3_EXT_add_nconf_sk( + conf: *const CONF, + ctx: *const X509V3_CTX, + section: *const ::std::os::raw::c_char, + sk: *mut *mut stack_st_X509_EXTENSION, ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_0_21_0_X509_cmp"] - pub fn X509_cmp(a: *const X509, b: *const X509) -> ::std::os::raw::c_int; + #[link_name = "\u{1}_aws_lc_0_21_0_X509V3_EXT_add_nconf"] + pub fn X509V3_EXT_add_nconf( + conf: *const CONF, + ctx: *const X509V3_CTX, + section: *const ::std::os::raw::c_char, + cert: *mut X509, + ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_0_21_0_X509_NAME_hash"] - pub fn X509_NAME_hash(name: *mut X509_NAME) -> u32; + #[link_name = "\u{1}_aws_lc_0_21_0_X509V3_EXT_REQ_add_nconf"] + pub fn X509V3_EXT_REQ_add_nconf( + conf: *const CONF, + ctx: *const X509V3_CTX, + section: *const ::std::os::raw::c_char, + req: *mut X509_REQ, + ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_0_21_0_X509_NAME_hash_old"] - pub fn X509_NAME_hash_old(name: *mut X509_NAME) -> u32; + #[link_name = "\u{1}_aws_lc_0_21_0_X509V3_EXT_CRL_add_nconf"] + pub fn X509V3_EXT_CRL_add_nconf( + conf: *const CONF, + ctx: *const X509V3_CTX, + section: *const ::std::os::raw::c_char, + crl: *mut X509_CRL, + ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_0_21_0_X509_CRL_match"] - pub fn X509_CRL_match(a: *const X509_CRL, b: *const X509_CRL) -> ::std::os::raw::c_int; + #[link_name = "\u{1}_aws_lc_0_21_0_X509V3_EXT_conf"] + pub fn X509V3_EXT_conf( + conf: *mut lhash_st_CONF_VALUE, + ctx: *mut X509V3_CTX, + name: *const ::std::os::raw::c_char, + value: *const ::std::os::raw::c_char, + ) -> *mut X509_EXTENSION; } extern "C" { - #[link_name = "\u{1}_aws_lc_0_21_0_X509_verify_cert"] - pub fn X509_verify_cert(ctx: *mut X509_STORE_CTX) -> ::std::os::raw::c_int; + #[link_name = "\u{1}_aws_lc_0_21_0_i2s_ASN1_OCTET_STRING"] + pub fn i2s_ASN1_OCTET_STRING( + method: *const X509V3_EXT_METHOD, + oct: *const ASN1_OCTET_STRING, + ) -> *mut ::std::os::raw::c_char; } extern "C" { - #[link_name = "\u{1}_aws_lc_0_21_0_X509_check_trust"] - pub fn X509_check_trust( - x: *mut X509, - id: ::std::os::raw::c_int, - flags: ::std::os::raw::c_int, - ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}_aws_lc_0_21_0_s2i_ASN1_OCTET_STRING"] + pub fn s2i_ASN1_OCTET_STRING( + method: *const X509V3_EXT_METHOD, + ctx: *const X509V3_CTX, + str_: *const ::std::os::raw::c_char, + ) -> *mut ASN1_OCTET_STRING; } extern "C" { - #[link_name = "\u{1}_aws_lc_0_21_0_X509_TRUST_get_count"] - pub fn X509_TRUST_get_count() -> ::std::os::raw::c_int; + #[link_name = "\u{1}_aws_lc_0_21_0_i2s_ASN1_INTEGER"] + pub fn i2s_ASN1_INTEGER( + method: *const X509V3_EXT_METHOD, + aint: *const ASN1_INTEGER, + ) -> *mut ::std::os::raw::c_char; } extern "C" { - #[link_name = "\u{1}_aws_lc_0_21_0_X509_TRUST_get0"] - pub fn X509_TRUST_get0(idx: ::std::os::raw::c_int) -> *const X509_TRUST; + #[link_name = "\u{1}_aws_lc_0_21_0_s2i_ASN1_INTEGER"] + pub fn s2i_ASN1_INTEGER( + method: *const X509V3_EXT_METHOD, + value: *const ::std::os::raw::c_char, + ) -> *mut ASN1_INTEGER; } extern "C" { - #[link_name = "\u{1}_aws_lc_0_21_0_X509_TRUST_get_by_id"] - pub fn X509_TRUST_get_by_id(id: ::std::os::raw::c_int) -> ::std::os::raw::c_int; + #[link_name = "\u{1}_aws_lc_0_21_0_i2s_ASN1_ENUMERATED"] + pub fn i2s_ASN1_ENUMERATED( + method: *const X509V3_EXT_METHOD, + aint: *const ASN1_ENUMERATED, + ) -> *mut ::std::os::raw::c_char; } extern "C" { - #[link_name = "\u{1}_aws_lc_0_21_0_X509_TRUST_get_flags"] - pub fn X509_TRUST_get_flags(xp: *const X509_TRUST) -> ::std::os::raw::c_int; + #[link_name = "\u{1}_aws_lc_0_21_0_X509V3_conf_free"] + pub fn X509V3_conf_free(val: *mut CONF_VALUE); } extern "C" { - #[link_name = "\u{1}_aws_lc_0_21_0_X509_TRUST_get0_name"] - pub fn X509_TRUST_get0_name(xp: *const X509_TRUST) -> *mut ::std::os::raw::c_char; + #[link_name = "\u{1}_aws_lc_0_21_0_i2v_GENERAL_NAME"] + pub fn i2v_GENERAL_NAME( + method: *const X509V3_EXT_METHOD, + gen: *const GENERAL_NAME, + ret: *mut stack_st_CONF_VALUE, + ) -> *mut stack_st_CONF_VALUE; } extern "C" { - #[link_name = "\u{1}_aws_lc_0_21_0_X509_TRUST_get_trust"] - pub fn X509_TRUST_get_trust(xp: *const X509_TRUST) -> ::std::os::raw::c_int; + #[link_name = "\u{1}_aws_lc_0_21_0_i2v_GENERAL_NAMES"] + pub fn i2v_GENERAL_NAMES( + method: *const X509V3_EXT_METHOD, + gen: *const GENERAL_NAMES, + extlist: *mut stack_st_CONF_VALUE, + ) -> *mut stack_st_CONF_VALUE; } -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct stack_st_X509_OBJECT { - _unused: [u8; 0], -} -pub type sk_X509_OBJECT_free_func = - ::std::option::Option; -pub type sk_X509_OBJECT_copy_func = - ::std::option::Option *mut X509_OBJECT>; -pub type sk_X509_OBJECT_cmp_func = ::std::option::Option< - unsafe extern "C" fn( - arg1: *const *const X509_OBJECT, - arg2: *const *const X509_OBJECT, - ) -> ::std::os::raw::c_int, ->; -pub type sk_X509_OBJECT_delete_if_func = ::std::option::Option< - unsafe extern "C" fn( - arg1: *mut X509_OBJECT, - arg2: *mut ::std::os::raw::c_void, - ) -> ::std::os::raw::c_int, ->; extern "C" { - #[link_name = "\u{1}_aws_lc_0_21_0_X509_STORE_set_depth"] - pub fn X509_STORE_set_depth( - store: *mut X509_STORE, - depth: ::std::os::raw::c_int, - ) -> ::std::os::raw::c_int; -} -extern "C" { - #[link_name = "\u{1}_aws_lc_0_21_0_X509_STORE_CTX_set_depth"] - pub fn X509_STORE_CTX_set_depth(ctx: *mut X509_STORE_CTX, depth: ::std::os::raw::c_int); + #[link_name = "\u{1}_aws_lc_0_21_0_a2i_IPADDRESS"] + pub fn a2i_IPADDRESS(ipasc: *const ::std::os::raw::c_char) -> *mut ASN1_OCTET_STRING; } extern "C" { - #[link_name = "\u{1}_aws_lc_0_21_0_X509_LOOKUP_load_file"] - pub fn X509_LOOKUP_load_file( - lookup: *mut X509_LOOKUP, - path: *const ::std::os::raw::c_char, - type_: ::std::os::raw::c_int, - ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}_aws_lc_0_21_0_a2i_IPADDRESS_NC"] + pub fn a2i_IPADDRESS_NC(ipasc: *const ::std::os::raw::c_char) -> *mut ASN1_OCTET_STRING; } extern "C" { - #[link_name = "\u{1}_aws_lc_0_21_0_X509_LOOKUP_add_dir"] - pub fn X509_LOOKUP_add_dir( - lookup: *mut X509_LOOKUP, - path: *const ::std::os::raw::c_char, - type_: ::std::os::raw::c_int, - ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}_aws_lc_0_21_0_X509_get_notBefore"] + pub fn X509_get_notBefore(x509: *const X509) -> *mut ASN1_TIME; } extern "C" { - #[link_name = "\u{1}_aws_lc_0_21_0_X509_OBJECT_new"] - pub fn X509_OBJECT_new() -> *mut X509_OBJECT; + #[link_name = "\u{1}_aws_lc_0_21_0_X509_get_notAfter"] + pub fn X509_get_notAfter(x509: *const X509) -> *mut ASN1_TIME; } extern "C" { - #[link_name = "\u{1}_aws_lc_0_21_0_X509_OBJECT_free"] - pub fn X509_OBJECT_free(obj: *mut X509_OBJECT); + #[link_name = "\u{1}_aws_lc_0_21_0_X509_set_notBefore"] + pub fn X509_set_notBefore(x509: *mut X509, tm: *const ASN1_TIME) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_0_21_0_X509_OBJECT_get_type"] - pub fn X509_OBJECT_get_type(obj: *const X509_OBJECT) -> ::std::os::raw::c_int; + #[link_name = "\u{1}_aws_lc_0_21_0_X509_set_notAfter"] + pub fn X509_set_notAfter(x509: *mut X509, tm: *const ASN1_TIME) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_0_21_0_X509_OBJECT_get0_X509"] - pub fn X509_OBJECT_get0_X509(obj: *const X509_OBJECT) -> *mut X509; + #[link_name = "\u{1}_aws_lc_0_21_0_X509_CRL_get_lastUpdate"] + pub fn X509_CRL_get_lastUpdate(crl: *mut X509_CRL) -> *mut ASN1_TIME; } extern "C" { - #[link_name = "\u{1}_aws_lc_0_21_0_X509_OBJECT_get0_X509_CRL"] - pub fn X509_OBJECT_get0_X509_CRL(a: *const X509_OBJECT) -> *mut X509_CRL; + #[link_name = "\u{1}_aws_lc_0_21_0_X509_CRL_get_nextUpdate"] + pub fn X509_CRL_get_nextUpdate(crl: *mut X509_CRL) -> *mut ASN1_TIME; } extern "C" { - #[link_name = "\u{1}_aws_lc_0_21_0_X509_OBJECT_set1_X509"] - pub fn X509_OBJECT_set1_X509(a: *mut X509_OBJECT, obj: *mut X509) -> ::std::os::raw::c_int; + #[link_name = "\u{1}_aws_lc_0_21_0_X509_get_serialNumber"] + pub fn X509_get_serialNumber(x509: *mut X509) -> *mut ASN1_INTEGER; } extern "C" { - #[link_name = "\u{1}_aws_lc_0_21_0_X509_OBJECT_set1_X509_CRL"] - pub fn X509_OBJECT_set1_X509_CRL( - a: *mut X509_OBJECT, - obj: *mut X509_CRL, + #[link_name = "\u{1}_aws_lc_0_21_0_X509_NAME_get_text_by_OBJ"] + pub fn X509_NAME_get_text_by_OBJ( + name: *const X509_NAME, + obj: *const ASN1_OBJECT, + buf: *mut ::std::os::raw::c_char, + len: ::std::os::raw::c_int, ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_0_21_0_X509_STORE_lock"] - pub fn X509_STORE_lock(v: *mut X509_STORE) -> ::std::os::raw::c_int; -} -extern "C" { - #[link_name = "\u{1}_aws_lc_0_21_0_X509_STORE_unlock"] - pub fn X509_STORE_unlock(v: *mut X509_STORE) -> ::std::os::raw::c_int; -} -extern "C" { - #[link_name = "\u{1}_aws_lc_0_21_0_X509_STORE_new"] - pub fn X509_STORE_new() -> *mut X509_STORE; -} -extern "C" { - #[link_name = "\u{1}_aws_lc_0_21_0_X509_STORE_up_ref"] - pub fn X509_STORE_up_ref(store: *mut X509_STORE) -> ::std::os::raw::c_int; -} -extern "C" { - #[link_name = "\u{1}_aws_lc_0_21_0_X509_STORE_free"] - pub fn X509_STORE_free(store: *mut X509_STORE); -} -extern "C" { - #[link_name = "\u{1}_aws_lc_0_21_0_X509_STORE_get0_objects"] - pub fn X509_STORE_get0_objects(st: *mut X509_STORE) -> *mut stack_st_X509_OBJECT; -} -extern "C" { - #[link_name = "\u{1}_aws_lc_0_21_0_X509_STORE_CTX_get1_certs"] - pub fn X509_STORE_CTX_get1_certs( - st: *mut X509_STORE_CTX, - nm: *mut X509_NAME, - ) -> *mut stack_st_X509; -} -extern "C" { - #[link_name = "\u{1}_aws_lc_0_21_0_X509_STORE_CTX_get1_crls"] - pub fn X509_STORE_CTX_get1_crls( - st: *mut X509_STORE_CTX, - nm: *mut X509_NAME, - ) -> *mut stack_st_X509_CRL; -} -extern "C" { - #[link_name = "\u{1}_aws_lc_0_21_0_X509_STORE_set_flags"] - pub fn X509_STORE_set_flags( - store: *mut X509_STORE, - flags: ::std::os::raw::c_ulong, + #[link_name = "\u{1}_aws_lc_0_21_0_X509_NAME_get_text_by_NID"] + pub fn X509_NAME_get_text_by_NID( + name: *const X509_NAME, + nid: ::std::os::raw::c_int, + buf: *mut ::std::os::raw::c_char, + len: ::std::os::raw::c_int, ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_0_21_0_X509_STORE_set_purpose"] - pub fn X509_STORE_set_purpose( - store: *mut X509_STORE, - purpose: ::std::os::raw::c_int, - ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}_aws_lc_0_21_0_X509_STORE_CTX_get0_parent_ctx"] + pub fn X509_STORE_CTX_get0_parent_ctx(ctx: *mut X509_STORE_CTX) -> *mut X509_STORE_CTX; } extern "C" { - #[link_name = "\u{1}_aws_lc_0_21_0_X509_STORE_set_trust"] - pub fn X509_STORE_set_trust( - store: *mut X509_STORE, - trust: ::std::os::raw::c_int, - ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}_aws_lc_0_21_0_X509_LOOKUP_free"] + pub fn X509_LOOKUP_free(ctx: *mut X509_LOOKUP); } extern "C" { - #[link_name = "\u{1}_aws_lc_0_21_0_X509_STORE_set1_param"] - pub fn X509_STORE_set1_param( - store: *mut X509_STORE, - param: *const X509_VERIFY_PARAM, - ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}_aws_lc_0_21_0_X509_STORE_CTX_cleanup"] + pub fn X509_STORE_CTX_cleanup(ctx: *mut X509_STORE_CTX); } extern "C" { - #[link_name = "\u{1}_aws_lc_0_21_0_X509_STORE_get0_param"] - pub fn X509_STORE_get0_param(store: *mut X509_STORE) -> *mut X509_VERIFY_PARAM; + #[link_name = "\u{1}_aws_lc_0_21_0_X509V3_add_standard_extensions"] + pub fn X509V3_add_standard_extensions() -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_0_21_0_X509_STORE_CTX_new"] - pub fn X509_STORE_CTX_new() -> *mut X509_STORE_CTX; + #[link_name = "\u{1}_aws_lc_0_21_0_X509V3_parse_list"] + pub fn X509V3_parse_list(line: *const ::std::os::raw::c_char) -> *mut stack_st_CONF_VALUE; } extern "C" { - #[link_name = "\u{1}_aws_lc_0_21_0_X509_STORE_CTX_get1_issuer"] - pub fn X509_STORE_CTX_get1_issuer( - issuer: *mut *mut X509, - ctx: *mut X509_STORE_CTX, - x: *mut X509, - ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}_aws_lc_0_21_0_X509_STORE_CTX_get_chain"] + pub fn X509_STORE_CTX_get_chain(ctx: *mut X509_STORE_CTX) -> *mut stack_st_X509; } extern "C" { - #[link_name = "\u{1}_aws_lc_0_21_0_X509_STORE_CTX_free"] - pub fn X509_STORE_CTX_free(ctx: *mut X509_STORE_CTX); + #[link_name = "\u{1}_aws_lc_0_21_0_X509_STORE_CTX_trusted_stack"] + pub fn X509_STORE_CTX_trusted_stack(ctx: *mut X509_STORE_CTX, sk: *mut stack_st_X509); } +pub type X509_STORE_CTX_verify_cb = ::std::option::Option< + unsafe extern "C" fn( + arg1: ::std::os::raw::c_int, + arg2: *mut X509_STORE_CTX, + ) -> ::std::os::raw::c_int, +>; extern "C" { - #[link_name = "\u{1}_aws_lc_0_21_0_X509_STORE_CTX_init"] - pub fn X509_STORE_CTX_init( + #[link_name = "\u{1}_aws_lc_0_21_0_X509_STORE_CTX_set_verify_cb"] + pub fn X509_STORE_CTX_set_verify_cb( ctx: *mut X509_STORE_CTX, - store: *mut X509_STORE, - x509: *mut X509, - chain: *mut stack_st_X509, - ) -> ::std::os::raw::c_int; -} -extern "C" { - #[link_name = "\u{1}_aws_lc_0_21_0_X509_STORE_CTX_set0_trusted_stack"] - pub fn X509_STORE_CTX_set0_trusted_stack(ctx: *mut X509_STORE_CTX, sk: *mut stack_st_X509); -} -extern "C" { - #[link_name = "\u{1}_aws_lc_0_21_0_X509_STORE_CTX_get0_store"] - pub fn X509_STORE_CTX_get0_store(ctx: *mut X509_STORE_CTX) -> *mut X509_STORE; -} -extern "C" { - #[link_name = "\u{1}_aws_lc_0_21_0_X509_STORE_CTX_get0_cert"] - pub fn X509_STORE_CTX_get0_cert(ctx: *mut X509_STORE_CTX) -> *mut X509; -} -extern "C" { - #[link_name = "\u{1}_aws_lc_0_21_0_X509_STORE_add_lookup"] - pub fn X509_STORE_add_lookup( - v: *mut X509_STORE, - m: *const X509_LOOKUP_METHOD, - ) -> *mut X509_LOOKUP; + verify_cb: ::std::option::Option< + unsafe extern "C" fn( + ok: ::std::os::raw::c_int, + ctx: *mut X509_STORE_CTX, + ) -> ::std::os::raw::c_int, + >, + ); } extern "C" { - #[link_name = "\u{1}_aws_lc_0_21_0_X509_LOOKUP_hash_dir"] - pub fn X509_LOOKUP_hash_dir() -> *const X509_LOOKUP_METHOD; + #[link_name = "\u{1}_aws_lc_0_21_0_X509_STORE_set_verify_cb"] + pub fn X509_STORE_set_verify_cb(store: *mut X509_STORE, verify_cb: X509_STORE_CTX_verify_cb); } +pub type X509_STORE_CTX_get_crl_fn = ::std::option::Option< + unsafe extern "C" fn( + ctx: *mut X509_STORE_CTX, + crl: *mut *mut X509_CRL, + x: *mut X509, + ) -> ::std::os::raw::c_int, +>; +pub type X509_STORE_CTX_check_crl_fn = ::std::option::Option< + unsafe extern "C" fn(ctx: *mut X509_STORE_CTX, crl: *mut X509_CRL) -> ::std::os::raw::c_int, +>; extern "C" { - #[link_name = "\u{1}_aws_lc_0_21_0_X509_LOOKUP_file"] - pub fn X509_LOOKUP_file() -> *const X509_LOOKUP_METHOD; + #[link_name = "\u{1}_aws_lc_0_21_0_X509_STORE_set_get_crl"] + pub fn X509_STORE_set_get_crl(store: *mut X509_STORE, get_crl: X509_STORE_CTX_get_crl_fn); } extern "C" { - #[link_name = "\u{1}_aws_lc_0_21_0_X509_STORE_add_cert"] - pub fn X509_STORE_add_cert(ctx: *mut X509_STORE, x: *mut X509) -> ::std::os::raw::c_int; + #[link_name = "\u{1}_aws_lc_0_21_0_X509_STORE_set_check_crl"] + pub fn X509_STORE_set_check_crl(store: *mut X509_STORE, check_crl: X509_STORE_CTX_check_crl_fn); } extern "C" { - #[link_name = "\u{1}_aws_lc_0_21_0_X509_STORE_add_crl"] - pub fn X509_STORE_add_crl(ctx: *mut X509_STORE, x: *mut X509_CRL) -> ::std::os::raw::c_int; + #[link_name = "\u{1}_aws_lc_0_21_0_X509_STORE_CTX_set_chain"] + pub fn X509_STORE_CTX_set_chain(ctx: *mut X509_STORE_CTX, sk: *mut stack_st_X509); } -extern "C" { - #[link_name = "\u{1}_aws_lc_0_21_0_X509_LOOKUP_ctrl"] - pub fn X509_LOOKUP_ctrl( - ctx: *mut X509_LOOKUP, - cmd: ::std::os::raw::c_int, - argc: *const ::std::os::raw::c_char, - argl: ::std::os::raw::c_long, - ret: *mut *mut ::std::os::raw::c_char, - ) -> ::std::os::raw::c_int; +#[repr(C)] +#[derive(Debug, Copy, Clone, PartialEq, Eq)] +pub struct X509_algor_st { + pub algorithm: *mut ASN1_OBJECT, + pub parameter: *mut ASN1_TYPE, } -extern "C" { - #[link_name = "\u{1}_aws_lc_0_21_0_X509_load_cert_file"] - pub fn X509_load_cert_file( - ctx: *mut X509_LOOKUP, - file: *const ::std::os::raw::c_char, - type_: ::std::os::raw::c_int, - ) -> ::std::os::raw::c_int; +#[test] +fn bindgen_test_layout_X509_algor_st() { + const UNINIT: ::std::mem::MaybeUninit = ::std::mem::MaybeUninit::uninit(); + let ptr = UNINIT.as_ptr(); + assert_eq!( + ::std::mem::size_of::(), + 8usize, + concat!("Size of: ", stringify!(X509_algor_st)) + ); + assert_eq!( + ::std::mem::align_of::(), + 4usize, + concat!("Alignment of ", stringify!(X509_algor_st)) + ); + assert_eq!( + unsafe { ::std::ptr::addr_of!((*ptr).algorithm) as usize - ptr as usize }, + 0usize, + concat!( + "Offset of field: ", + stringify!(X509_algor_st), + "::", + stringify!(algorithm) + ) + ); + assert_eq!( + unsafe { ::std::ptr::addr_of!((*ptr).parameter) as usize - ptr as usize }, + 4usize, + concat!( + "Offset of field: ", + stringify!(X509_algor_st), + "::", + stringify!(parameter) + ) + ); } -extern "C" { - #[link_name = "\u{1}_aws_lc_0_21_0_X509_load_crl_file"] - pub fn X509_load_crl_file( - ctx: *mut X509_LOOKUP, - file: *const ::std::os::raw::c_char, - type_: ::std::os::raw::c_int, - ) -> ::std::os::raw::c_int; +impl Default for X509_algor_st { + fn default() -> Self { + let mut s = ::std::mem::MaybeUninit::::uninit(); + unsafe { + ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); + s.assume_init() + } + } } -extern "C" { - #[link_name = "\u{1}_aws_lc_0_21_0_X509_load_cert_crl_file"] - pub fn X509_load_cert_crl_file( - ctx: *mut X509_LOOKUP, - file: *const ::std::os::raw::c_char, - type_: ::std::os::raw::c_int, - ) -> ::std::os::raw::c_int; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct stack_st_DIST_POINT { + _unused: [u8; 0], } -extern "C" { - #[link_name = "\u{1}_aws_lc_0_21_0_X509_STORE_load_locations"] - pub fn X509_STORE_load_locations( - ctx: *mut X509_STORE, - file: *const ::std::os::raw::c_char, - dir: *const ::std::os::raw::c_char, - ) -> ::std::os::raw::c_int; +#[repr(C)] +#[derive(Debug, Copy, Clone, PartialEq, Eq)] +pub struct x509_trust_st { + pub trust: ::std::os::raw::c_int, + pub flags: ::std::os::raw::c_int, + pub check_trust: ::std::option::Option< + unsafe extern "C" fn( + arg1: *const X509_TRUST, + arg2: *mut X509, + arg3: ::std::os::raw::c_int, + ) -> ::std::os::raw::c_int, + >, + pub name: *mut ::std::os::raw::c_char, + pub arg1: ::std::os::raw::c_int, + pub arg2: *mut ::std::os::raw::c_void, } -extern "C" { - #[link_name = "\u{1}_aws_lc_0_21_0_X509_STORE_set_default_paths"] - pub fn X509_STORE_set_default_paths(ctx: *mut X509_STORE) -> ::std::os::raw::c_int; +#[test] +fn bindgen_test_layout_x509_trust_st() { + const UNINIT: ::std::mem::MaybeUninit = ::std::mem::MaybeUninit::uninit(); + let ptr = UNINIT.as_ptr(); + assert_eq!( + ::std::mem::size_of::(), + 24usize, + concat!("Size of: ", stringify!(x509_trust_st)) + ); + assert_eq!( + ::std::mem::align_of::(), + 4usize, + concat!("Alignment of ", stringify!(x509_trust_st)) + ); + assert_eq!( + unsafe { ::std::ptr::addr_of!((*ptr).trust) as usize - ptr as usize }, + 0usize, + concat!( + "Offset of field: ", + stringify!(x509_trust_st), + "::", + stringify!(trust) + ) + ); + assert_eq!( + unsafe { ::std::ptr::addr_of!((*ptr).flags) as usize - ptr as usize }, + 4usize, + concat!( + "Offset of field: ", + stringify!(x509_trust_st), + "::", + stringify!(flags) + ) + ); + assert_eq!( + unsafe { ::std::ptr::addr_of!((*ptr).check_trust) as usize - ptr as usize }, + 8usize, + concat!( + "Offset of field: ", + stringify!(x509_trust_st), + "::", + stringify!(check_trust) + ) + ); + assert_eq!( + unsafe { ::std::ptr::addr_of!((*ptr).name) as usize - ptr as usize }, + 12usize, + concat!( + "Offset of field: ", + stringify!(x509_trust_st), + "::", + stringify!(name) + ) + ); + assert_eq!( + unsafe { ::std::ptr::addr_of!((*ptr).arg1) as usize - ptr as usize }, + 16usize, + concat!( + "Offset of field: ", + stringify!(x509_trust_st), + "::", + stringify!(arg1) + ) + ); + assert_eq!( + unsafe { ::std::ptr::addr_of!((*ptr).arg2) as usize - ptr as usize }, + 20usize, + concat!( + "Offset of field: ", + stringify!(x509_trust_st), + "::", + stringify!(arg2) + ) + ); } -extern "C" { - #[link_name = "\u{1}_aws_lc_0_21_0_X509_STORE_CTX_get_error"] - pub fn X509_STORE_CTX_get_error(ctx: *mut X509_STORE_CTX) -> ::std::os::raw::c_int; +impl Default for x509_trust_st { + fn default() -> Self { + let mut s = ::std::mem::MaybeUninit::::uninit(); + unsafe { + ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); + s.assume_init() + } + } } -extern "C" { - #[link_name = "\u{1}_aws_lc_0_21_0_X509_STORE_CTX_set_error"] - pub fn X509_STORE_CTX_set_error(ctx: *mut X509_STORE_CTX, s: ::std::os::raw::c_int); +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct stack_st_X509_TRUST { + _unused: [u8; 0], } +pub type sk_X509_TRUST_free_func = + ::std::option::Option; +pub type sk_X509_TRUST_copy_func = + ::std::option::Option *mut X509_TRUST>; +pub type sk_X509_TRUST_cmp_func = ::std::option::Option< + unsafe extern "C" fn( + arg1: *const *const X509_TRUST, + arg2: *const *const X509_TRUST, + ) -> ::std::os::raw::c_int, +>; +pub type sk_X509_TRUST_delete_if_func = ::std::option::Option< + unsafe extern "C" fn( + arg1: *mut X509_TRUST, + arg2: *mut ::std::os::raw::c_void, + ) -> ::std::os::raw::c_int, +>; extern "C" { - #[link_name = "\u{1}_aws_lc_0_21_0_X509_STORE_CTX_get_error_depth"] - pub fn X509_STORE_CTX_get_error_depth(ctx: *mut X509_STORE_CTX) -> ::std::os::raw::c_int; + #[link_name = "\u{1}_aws_lc_0_21_0_X509_get_default_cert_area"] + pub fn X509_get_default_cert_area() -> *const ::std::os::raw::c_char; } extern "C" { - #[link_name = "\u{1}_aws_lc_0_21_0_X509_STORE_CTX_get_current_cert"] - pub fn X509_STORE_CTX_get_current_cert(ctx: *mut X509_STORE_CTX) -> *mut X509; + #[link_name = "\u{1}_aws_lc_0_21_0_X509_get_default_cert_dir"] + pub fn X509_get_default_cert_dir() -> *const ::std::os::raw::c_char; } extern "C" { - #[link_name = "\u{1}_aws_lc_0_21_0_X509_STORE_CTX_get0_current_issuer"] - pub fn X509_STORE_CTX_get0_current_issuer(ctx: *mut X509_STORE_CTX) -> *mut X509; + #[link_name = "\u{1}_aws_lc_0_21_0_X509_get_default_cert_file"] + pub fn X509_get_default_cert_file() -> *const ::std::os::raw::c_char; } extern "C" { - #[link_name = "\u{1}_aws_lc_0_21_0_X509_STORE_CTX_get0_current_crl"] - pub fn X509_STORE_CTX_get0_current_crl(ctx: *mut X509_STORE_CTX) -> *mut X509_CRL; + #[link_name = "\u{1}_aws_lc_0_21_0_X509_get_default_cert_dir_env"] + pub fn X509_get_default_cert_dir_env() -> *const ::std::os::raw::c_char; } extern "C" { - #[link_name = "\u{1}_aws_lc_0_21_0_X509_STORE_CTX_get0_chain"] - pub fn X509_STORE_CTX_get0_chain(ctx: *mut X509_STORE_CTX) -> *mut stack_st_X509; + #[link_name = "\u{1}_aws_lc_0_21_0_X509_get_default_cert_file_env"] + pub fn X509_get_default_cert_file_env() -> *const ::std::os::raw::c_char; } extern "C" { - #[link_name = "\u{1}_aws_lc_0_21_0_X509_STORE_CTX_get1_chain"] - pub fn X509_STORE_CTX_get1_chain(ctx: *mut X509_STORE_CTX) -> *mut stack_st_X509; + #[link_name = "\u{1}_aws_lc_0_21_0_X509_get_default_private_dir"] + pub fn X509_get_default_private_dir() -> *const ::std::os::raw::c_char; } extern "C" { - #[link_name = "\u{1}_aws_lc_0_21_0_X509_STORE_CTX_set_cert"] - pub fn X509_STORE_CTX_set_cert(c: *mut X509_STORE_CTX, x: *mut X509); + #[link_name = "\u{1}_aws_lc_0_21_0_X509_TRUST_set"] + pub fn X509_TRUST_set( + t: *mut ::std::os::raw::c_int, + trust: ::std::os::raw::c_int, + ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_0_21_0_X509_STORE_CTX_get0_untrusted"] - pub fn X509_STORE_CTX_get0_untrusted(ctx: *mut X509_STORE_CTX) -> *mut stack_st_X509; + #[link_name = "\u{1}_aws_lc_0_21_0_X509_cmp"] + pub fn X509_cmp(a: *const X509, b: *const X509) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_0_21_0_X509_STORE_CTX_set0_crls"] - pub fn X509_STORE_CTX_set0_crls(c: *mut X509_STORE_CTX, sk: *mut stack_st_X509_CRL); + #[link_name = "\u{1}_aws_lc_0_21_0_X509_NAME_hash"] + pub fn X509_NAME_hash(name: *mut X509_NAME) -> u32; } extern "C" { - #[link_name = "\u{1}_aws_lc_0_21_0_X509_STORE_CTX_set_purpose"] - pub fn X509_STORE_CTX_set_purpose( - ctx: *mut X509_STORE_CTX, - purpose: ::std::os::raw::c_int, - ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}_aws_lc_0_21_0_X509_NAME_hash_old"] + pub fn X509_NAME_hash_old(name: *mut X509_NAME) -> u32; } extern "C" { - #[link_name = "\u{1}_aws_lc_0_21_0_X509_STORE_CTX_set_trust"] - pub fn X509_STORE_CTX_set_trust( - ctx: *mut X509_STORE_CTX, - trust: ::std::os::raw::c_int, - ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}_aws_lc_0_21_0_X509_CRL_match"] + pub fn X509_CRL_match(a: *const X509_CRL, b: *const X509_CRL) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_0_21_0_X509_STORE_CTX_purpose_inherit"] - pub fn X509_STORE_CTX_purpose_inherit( - ctx: *mut X509_STORE_CTX, - def_purpose: ::std::os::raw::c_int, - purpose: ::std::os::raw::c_int, - trust: ::std::os::raw::c_int, - ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}_aws_lc_0_21_0_X509_TRUST_get_count"] + pub fn X509_TRUST_get_count() -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_0_21_0_X509_STORE_CTX_set_flags"] - pub fn X509_STORE_CTX_set_flags(ctx: *mut X509_STORE_CTX, flags: ::std::os::raw::c_ulong); + #[link_name = "\u{1}_aws_lc_0_21_0_X509_TRUST_get0"] + pub fn X509_TRUST_get0(idx: ::std::os::raw::c_int) -> *const X509_TRUST; } extern "C" { - #[link_name = "\u{1}_aws_lc_0_21_0_X509_STORE_CTX_set_time"] - pub fn X509_STORE_CTX_set_time( - ctx: *mut X509_STORE_CTX, - flags: ::std::os::raw::c_ulong, - t: time_t, - ); + #[link_name = "\u{1}_aws_lc_0_21_0_X509_TRUST_get_by_id"] + pub fn X509_TRUST_get_by_id(id: ::std::os::raw::c_int) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_0_21_0_X509_STORE_CTX_set_time_posix"] - pub fn X509_STORE_CTX_set_time_posix( - ctx: *mut X509_STORE_CTX, - flags: ::std::os::raw::c_ulong, - t: i64, - ); + #[link_name = "\u{1}_aws_lc_0_21_0_X509_TRUST_get_flags"] + pub fn X509_TRUST_get_flags(xp: *const X509_TRUST) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_0_21_0_X509_STORE_CTX_get0_param"] - pub fn X509_STORE_CTX_get0_param(ctx: *mut X509_STORE_CTX) -> *mut X509_VERIFY_PARAM; + #[link_name = "\u{1}_aws_lc_0_21_0_X509_TRUST_get0_name"] + pub fn X509_TRUST_get0_name(xp: *const X509_TRUST) -> *mut ::std::os::raw::c_char; } extern "C" { - #[link_name = "\u{1}_aws_lc_0_21_0_X509_STORE_CTX_set0_param"] - pub fn X509_STORE_CTX_set0_param(ctx: *mut X509_STORE_CTX, param: *mut X509_VERIFY_PARAM); + #[link_name = "\u{1}_aws_lc_0_21_0_X509_TRUST_get_trust"] + pub fn X509_TRUST_get_trust(xp: *const X509_TRUST) -> ::std::os::raw::c_int; +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct stack_st_X509_OBJECT { + _unused: [u8; 0], } +pub type sk_X509_OBJECT_free_func = + ::std::option::Option; +pub type sk_X509_OBJECT_copy_func = + ::std::option::Option *mut X509_OBJECT>; +pub type sk_X509_OBJECT_cmp_func = ::std::option::Option< + unsafe extern "C" fn( + arg1: *const *const X509_OBJECT, + arg2: *const *const X509_OBJECT, + ) -> ::std::os::raw::c_int, +>; +pub type sk_X509_OBJECT_delete_if_func = ::std::option::Option< + unsafe extern "C" fn( + arg1: *mut X509_OBJECT, + arg2: *mut ::std::os::raw::c_void, + ) -> ::std::os::raw::c_int, +>; extern "C" { - #[link_name = "\u{1}_aws_lc_0_21_0_X509_STORE_CTX_set_default"] - pub fn X509_STORE_CTX_set_default( - ctx: *mut X509_STORE_CTX, - name: *const ::std::os::raw::c_char, + #[link_name = "\u{1}_aws_lc_0_21_0_X509_LOOKUP_load_file"] + pub fn X509_LOOKUP_load_file( + lookup: *mut X509_LOOKUP, + path: *const ::std::os::raw::c_char, + type_: ::std::os::raw::c_int, ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_0_21_0_X509_STORE_CTX_get_by_subject"] - pub fn X509_STORE_CTX_get_by_subject( - vs: *mut X509_STORE_CTX, + #[link_name = "\u{1}_aws_lc_0_21_0_X509_LOOKUP_add_dir"] + pub fn X509_LOOKUP_add_dir( + lookup: *mut X509_LOOKUP, + path: *const ::std::os::raw::c_char, type_: ::std::os::raw::c_int, - name: *mut X509_NAME, - ret: *mut X509_OBJECT, ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_0_21_0_X509_VERIFY_PARAM_new"] - pub fn X509_VERIFY_PARAM_new() -> *mut X509_VERIFY_PARAM; + #[link_name = "\u{1}_aws_lc_0_21_0_X509_OBJECT_new"] + pub fn X509_OBJECT_new() -> *mut X509_OBJECT; } extern "C" { - #[link_name = "\u{1}_aws_lc_0_21_0_X509_VERIFY_PARAM_free"] - pub fn X509_VERIFY_PARAM_free(param: *mut X509_VERIFY_PARAM); + #[link_name = "\u{1}_aws_lc_0_21_0_X509_OBJECT_free"] + pub fn X509_OBJECT_free(obj: *mut X509_OBJECT); } extern "C" { - #[link_name = "\u{1}_aws_lc_0_21_0_X509_VERIFY_PARAM_inherit"] - pub fn X509_VERIFY_PARAM_inherit( - to: *mut X509_VERIFY_PARAM, - from: *const X509_VERIFY_PARAM, - ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}_aws_lc_0_21_0_X509_OBJECT_get_type"] + pub fn X509_OBJECT_get_type(obj: *const X509_OBJECT) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_0_21_0_X509_VERIFY_PARAM_set1"] - pub fn X509_VERIFY_PARAM_set1( - to: *mut X509_VERIFY_PARAM, - from: *const X509_VERIFY_PARAM, - ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}_aws_lc_0_21_0_X509_OBJECT_get0_X509"] + pub fn X509_OBJECT_get0_X509(obj: *const X509_OBJECT) -> *mut X509; } extern "C" { - #[link_name = "\u{1}_aws_lc_0_21_0_X509_VERIFY_PARAM_set_flags"] - pub fn X509_VERIFY_PARAM_set_flags( - param: *mut X509_VERIFY_PARAM, - flags: ::std::os::raw::c_ulong, - ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}_aws_lc_0_21_0_X509_OBJECT_get0_X509_CRL"] + pub fn X509_OBJECT_get0_X509_CRL(a: *const X509_OBJECT) -> *mut X509_CRL; } extern "C" { - #[link_name = "\u{1}_aws_lc_0_21_0_X509_VERIFY_PARAM_clear_flags"] - pub fn X509_VERIFY_PARAM_clear_flags( - param: *mut X509_VERIFY_PARAM, - flags: ::std::os::raw::c_ulong, + #[link_name = "\u{1}_aws_lc_0_21_0_X509_OBJECT_set1_X509"] + pub fn X509_OBJECT_set1_X509(a: *mut X509_OBJECT, obj: *mut X509) -> ::std::os::raw::c_int; +} +extern "C" { + #[link_name = "\u{1}_aws_lc_0_21_0_X509_OBJECT_set1_X509_CRL"] + pub fn X509_OBJECT_set1_X509_CRL( + a: *mut X509_OBJECT, + obj: *mut X509_CRL, ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_0_21_0_X509_VERIFY_PARAM_get_flags"] - pub fn X509_VERIFY_PARAM_get_flags(param: *const X509_VERIFY_PARAM) -> ::std::os::raw::c_ulong; + #[link_name = "\u{1}_aws_lc_0_21_0_X509_STORE_lock"] + pub fn X509_STORE_lock(v: *mut X509_STORE) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_0_21_0_X509_VERIFY_PARAM_set_purpose"] - pub fn X509_VERIFY_PARAM_set_purpose( - param: *mut X509_VERIFY_PARAM, - purpose: ::std::os::raw::c_int, - ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}_aws_lc_0_21_0_X509_STORE_unlock"] + pub fn X509_STORE_unlock(v: *mut X509_STORE) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_0_21_0_X509_VERIFY_PARAM_set_trust"] - pub fn X509_VERIFY_PARAM_set_trust( - param: *mut X509_VERIFY_PARAM, - trust: ::std::os::raw::c_int, - ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}_aws_lc_0_21_0_X509_STORE_get0_objects"] + pub fn X509_STORE_get0_objects(st: *mut X509_STORE) -> *mut stack_st_X509_OBJECT; } extern "C" { - #[link_name = "\u{1}_aws_lc_0_21_0_X509_VERIFY_PARAM_set_depth"] - pub fn X509_VERIFY_PARAM_set_depth(param: *mut X509_VERIFY_PARAM, depth: ::std::os::raw::c_int); + #[link_name = "\u{1}_aws_lc_0_21_0_X509_STORE_CTX_get1_certs"] + pub fn X509_STORE_CTX_get1_certs( + st: *mut X509_STORE_CTX, + nm: *mut X509_NAME, + ) -> *mut stack_st_X509; } extern "C" { - #[link_name = "\u{1}_aws_lc_0_21_0_X509_VERIFY_PARAM_set_time"] - pub fn X509_VERIFY_PARAM_set_time(param: *mut X509_VERIFY_PARAM, t: time_t); + #[link_name = "\u{1}_aws_lc_0_21_0_X509_STORE_CTX_get1_crls"] + pub fn X509_STORE_CTX_get1_crls( + st: *mut X509_STORE_CTX, + nm: *mut X509_NAME, + ) -> *mut stack_st_X509_CRL; } extern "C" { - #[link_name = "\u{1}_aws_lc_0_21_0_X509_VERIFY_PARAM_set_time_posix"] - pub fn X509_VERIFY_PARAM_set_time_posix(param: *mut X509_VERIFY_PARAM, t: i64); + #[link_name = "\u{1}_aws_lc_0_21_0_X509_STORE_add_lookup"] + pub fn X509_STORE_add_lookup( + v: *mut X509_STORE, + m: *const X509_LOOKUP_METHOD, + ) -> *mut X509_LOOKUP; } extern "C" { - #[link_name = "\u{1}_aws_lc_0_21_0_X509_VERIFY_PARAM_add0_policy"] - pub fn X509_VERIFY_PARAM_add0_policy( - param: *mut X509_VERIFY_PARAM, - policy: *mut ASN1_OBJECT, - ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}_aws_lc_0_21_0_X509_LOOKUP_hash_dir"] + pub fn X509_LOOKUP_hash_dir() -> *const X509_LOOKUP_METHOD; } extern "C" { - #[link_name = "\u{1}_aws_lc_0_21_0_X509_VERIFY_PARAM_set1_policies"] - pub fn X509_VERIFY_PARAM_set1_policies( - param: *mut X509_VERIFY_PARAM, - policies: *const stack_st_ASN1_OBJECT, - ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}_aws_lc_0_21_0_X509_LOOKUP_file"] + pub fn X509_LOOKUP_file() -> *const X509_LOOKUP_METHOD; } extern "C" { - #[link_name = "\u{1}_aws_lc_0_21_0_X509_VERIFY_PARAM_set1_host"] - pub fn X509_VERIFY_PARAM_set1_host( - param: *mut X509_VERIFY_PARAM, - name: *const ::std::os::raw::c_char, - namelen: usize, + #[link_name = "\u{1}_aws_lc_0_21_0_X509_STORE_CTX_get_by_subject"] + pub fn X509_STORE_CTX_get_by_subject( + vs: *mut X509_STORE_CTX, + type_: ::std::os::raw::c_int, + name: *mut X509_NAME, + ret: *mut X509_OBJECT, ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_0_21_0_X509_VERIFY_PARAM_add1_host"] - pub fn X509_VERIFY_PARAM_add1_host( - param: *mut X509_VERIFY_PARAM, - name: *const ::std::os::raw::c_char, - name_len: usize, + #[link_name = "\u{1}_aws_lc_0_21_0_X509_LOOKUP_ctrl"] + pub fn X509_LOOKUP_ctrl( + ctx: *mut X509_LOOKUP, + cmd: ::std::os::raw::c_int, + argc: *const ::std::os::raw::c_char, + argl: ::std::os::raw::c_long, + ret: *mut *mut ::std::os::raw::c_char, ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_0_21_0_X509_VERIFY_PARAM_set_hostflags"] - pub fn X509_VERIFY_PARAM_set_hostflags( - param: *mut X509_VERIFY_PARAM, - flags: ::std::os::raw::c_uint, - ); + #[link_name = "\u{1}_aws_lc_0_21_0_X509_load_cert_file"] + pub fn X509_load_cert_file( + ctx: *mut X509_LOOKUP, + file: *const ::std::os::raw::c_char, + type_: ::std::os::raw::c_int, + ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_0_21_0_X509_VERIFY_PARAM_set1_email"] - pub fn X509_VERIFY_PARAM_set1_email( - param: *mut X509_VERIFY_PARAM, - email: *const ::std::os::raw::c_char, - emaillen: usize, + #[link_name = "\u{1}_aws_lc_0_21_0_X509_load_crl_file"] + pub fn X509_load_crl_file( + ctx: *mut X509_LOOKUP, + file: *const ::std::os::raw::c_char, + type_: ::std::os::raw::c_int, ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_0_21_0_X509_VERIFY_PARAM_set1_ip"] - pub fn X509_VERIFY_PARAM_set1_ip( - param: *mut X509_VERIFY_PARAM, - ip: *const ::std::os::raw::c_uchar, - iplen: usize, + #[link_name = "\u{1}_aws_lc_0_21_0_X509_load_cert_crl_file"] + pub fn X509_load_cert_crl_file( + ctx: *mut X509_LOOKUP, + file: *const ::std::os::raw::c_char, + type_: ::std::os::raw::c_int, ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_0_21_0_X509_VERIFY_PARAM_set1_ip_asc"] - pub fn X509_VERIFY_PARAM_set1_ip_asc( - param: *mut X509_VERIFY_PARAM, - ipasc: *const ::std::os::raw::c_char, + #[link_name = "\u{1}_aws_lc_0_21_0_X509_STORE_load_locations"] + pub fn X509_STORE_load_locations( + ctx: *mut X509_STORE, + file: *const ::std::os::raw::c_char, + dir: *const ::std::os::raw::c_char, ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}_aws_lc_0_21_0_X509_VERIFY_PARAM_get_depth"] - pub fn X509_VERIFY_PARAM_get_depth(param: *const X509_VERIFY_PARAM) -> ::std::os::raw::c_int; + #[link_name = "\u{1}_aws_lc_0_21_0_X509_STORE_set_default_paths"] + pub fn X509_STORE_set_default_paths(ctx: *mut X509_STORE) -> ::std::os::raw::c_int; } pub type X509V3_EXT_NEW = ::std::option::Option *mut ::std::os::raw::c_void>; @@ -25347,14 +25336,6 @@ extern "C" { flags: ::std::os::raw::c_ulong, ) -> ::std::os::raw::c_int; } -extern "C" { - #[link_name = "\u{1}_aws_lc_0_21_0_X509_check_purpose"] - pub fn X509_check_purpose( - x: *mut X509, - id: ::std::os::raw::c_int, - ca: ::std::os::raw::c_int, - ) -> ::std::os::raw::c_int; -} extern "C" { #[link_name = "\u{1}_aws_lc_0_21_0_X509_PURPOSE_set"] pub fn X509_PURPOSE_set( From b8d7033d71b24b33c4b1ae99cd6bae7720ca8222 Mon Sep 17 00:00:00 2001 From: aws-lc-sys-bindings-generator Date: Wed, 28 Aug 2024 14:43:34 +0000 Subject: [PATCH 28/36] Generated bindings for aarch64-unknown-linux-gnu --- .../src/aarch64_unknown_linux_gnu_crypto.rs | 3591 ++++++++--------- 1 file changed, 1786 insertions(+), 1805 deletions(-) diff --git a/aws-lc-sys/src/aarch64_unknown_linux_gnu_crypto.rs b/aws-lc-sys/src/aarch64_unknown_linux_gnu_crypto.rs index 409878402c8..0f273a31ff5 100644 --- a/aws-lc-sys/src/aarch64_unknown_linux_gnu_crypto.rs +++ b/aws-lc-sys/src/aarch64_unknown_linux_gnu_crypto.rs @@ -111,7 +111,7 @@ pub const AWSLC_VERSION_NAME: &[u8; 7] = b"AWS-LC\0"; pub const OPENSSL_VERSION_NUMBER: i32 = 269488255; pub const SSLEAY_VERSION_NUMBER: i32 = 269488255; pub const AWSLC_API_VERSION: i32 = 29; -pub const AWSLC_VERSION_NUMBER_STRING: &[u8; 7] = b"1.33.0\0"; +pub const AWSLC_VERSION_NUMBER_STRING: &[u8; 7] = b"1.34.2\0"; pub const AES_ENCRYPT: i32 = 1; pub const AES_DECRYPT: i32 = 0; pub const AES_MAXNR: i32 = 14; @@ -132,7 +132,7 @@ pub const CRYPTO_LOCK: i32 = 1; pub const CRYPTO_UNLOCK: i32 = 2; pub const CRYPTO_READ: i32 = 4; pub const CRYPTO_WRITE: i32 = 8; -pub const OPENSSL_VERSION_TEXT: &[u8; 42] = b"OpenSSL 1.1.1 (compatible; AWS-LC 1.33.0)\0"; +pub const OPENSSL_VERSION_TEXT: &[u8; 42] = b"OpenSSL 1.1.1 (compatible; AWS-LC 1.34.2)\0"; pub const OPENSSL_VERSION: i32 = 0; pub const OPENSSL_CFLAGS: i32 = 1; pub const OPENSSL_BUILT_ON: i32 = 2; @@ -3283,6 +3283,14 @@ pub const EVP_PKEY_DH: i32 = 28; pub const HKDF_R_OUTPUT_TOO_LARGE: i32 = 100; pub const MD5_CBLOCK: i32 = 64; pub const MD5_DIGEST_LENGTH: i32 = 16; +pub const HMAC_MD5_PRECOMPUTED_KEY_SIZE: i32 = 32; +pub const HMAC_SHA1_PRECOMPUTED_KEY_SIZE: i32 = 40; +pub const HMAC_SHA224_PRECOMPUTED_KEY_SIZE: i32 = 64; +pub const HMAC_SHA256_PRECOMPUTED_KEY_SIZE: i32 = 64; +pub const HMAC_SHA384_PRECOMPUTED_KEY_SIZE: i32 = 128; +pub const HMAC_SHA512_PRECOMPUTED_KEY_SIZE: i32 = 128; +pub const HMAC_SHA512_224_PRECOMPUTED_KEY_SIZE: i32 = 128; +pub const HMAC_SHA512_256_PRECOMPUTED_KEY_SIZE: i32 = 128; pub const HMAC_MAX_PRECOMPUTED_KEY_SIZE: i32 = 128; pub const HMAC_R_MISSING_PARAMETERS: i32 = 100; pub const HMAC_R_BUFFER_TOO_SMALL: i32 = 102; @@ -3501,63 +3509,6 @@ pub const GEN_EDIPARTY: i32 = 5; pub const GEN_URI: i32 = 6; pub const GEN_IPADD: i32 = 7; pub const GEN_RID: i32 = 8; -pub const X509_FLAG_COMPAT: i32 = 0; -pub const X509_FLAG_NO_HEADER: i32 = 1; -pub const X509_FLAG_NO_VERSION: i32 = 2; -pub const X509_FLAG_NO_SERIAL: i32 = 4; -pub const X509_FLAG_NO_SIGNAME: i32 = 8; -pub const X509_FLAG_NO_ISSUER: i32 = 16; -pub const X509_FLAG_NO_VALIDITY: i32 = 32; -pub const X509_FLAG_NO_SUBJECT: i32 = 64; -pub const X509_FLAG_NO_PUBKEY: i32 = 128; -pub const X509_FLAG_NO_EXTENSIONS: i32 = 256; -pub const X509_FLAG_NO_SIGDUMP: i32 = 512; -pub const X509_FLAG_NO_AUX: i32 = 1024; -pub const X509_FLAG_NO_ATTRIBUTES: i32 = 2048; -pub const X509_FLAG_NO_IDS: i32 = 4096; -pub const X509V3_EXT_UNKNOWN_MASK: i32 = 983040; -pub const X509V3_EXT_DEFAULT: i32 = 0; -pub const X509V3_EXT_ERROR_UNKNOWN: i32 = 65536; -pub const X509V3_EXT_PARSE_UNKNOWN: i32 = 131072; -pub const X509V3_EXT_DUMP_UNKNOWN: i32 = 196608; -pub const XN_FLAG_COMPAT: i32 = 0; -pub const XN_FLAG_SEP_MASK: i32 = 983040; -pub const XN_FLAG_SEP_COMMA_PLUS: i32 = 65536; -pub const XN_FLAG_SEP_CPLUS_SPC: i32 = 131072; -pub const XN_FLAG_SEP_SPLUS_SPC: i32 = 196608; -pub const XN_FLAG_SEP_MULTILINE: i32 = 262144; -pub const XN_FLAG_DN_REV: i32 = 1048576; -pub const XN_FLAG_FN_MASK: i32 = 6291456; -pub const XN_FLAG_FN_SN: i32 = 0; -pub const XN_FLAG_FN_LN: i32 = 2097152; -pub const XN_FLAG_FN_OID: i32 = 4194304; -pub const XN_FLAG_FN_NONE: i32 = 6291456; -pub const XN_FLAG_SPC_EQ: i32 = 8388608; -pub const XN_FLAG_DUMP_UNKNOWN_FIELDS: i32 = 16777216; -pub const XN_FLAG_FN_ALIGN: i32 = 33554432; -pub const XN_FLAG_RFC2253: i32 = 17892119; -pub const XN_FLAG_ONELINE: i32 = 8520479; -pub const XN_FLAG_MULTILINE: i32 = 44302342; -pub const X509V3_CTX_TEST: i32 = 1; -pub const X509_TRUST_DEFAULT: i32 = -1; -pub const X509_TRUST_COMPAT: i32 = 1; -pub const X509_TRUST_SSL_CLIENT: i32 = 2; -pub const X509_TRUST_SSL_SERVER: i32 = 3; -pub const X509_TRUST_EMAIL: i32 = 4; -pub const X509_TRUST_OBJECT_SIGN: i32 = 5; -pub const X509_TRUST_TSA: i32 = 8; -pub const X509_TRUST_TRUSTED: i32 = 1; -pub const X509_TRUST_REJECTED: i32 = 2; -pub const X509_TRUST_UNTRUSTED: i32 = 3; -pub const X509_LU_NONE: i32 = 0; -pub const X509_LU_X509: i32 = 1; -pub const X509_LU_CRL: i32 = 2; -pub const X509_LU_PKEY: i32 = 3; -pub const X509_L_FILE_LOAD: i32 = 1; -pub const X509_L_ADD_DIR: i32 = 2; -pub const X509_FILETYPE_PEM: i32 = 1; -pub const X509_FILETYPE_ASN1: i32 = 2; -pub const X509_FILETYPE_DEFAULT: i32 = 3; pub const X509_V_OK: i32 = 0; pub const X509_V_ERR_UNSPECIFIED: i32 = 1; pub const X509_V_ERR_UNABLE_TO_GET_ISSUER_CERT: i32 = 2; @@ -3619,6 +3570,78 @@ pub const X509_V_ERR_IP_ADDRESS_MISMATCH: i32 = 64; pub const X509_V_ERR_INVALID_CALL: i32 = 65; pub const X509_V_ERR_STORE_LOOKUP: i32 = 66; pub const X509_V_ERR_NAME_CONSTRAINTS_WITHOUT_SANS: i32 = 67; +pub const X509_CHECK_FLAG_NO_WILDCARDS: i32 = 2; +pub const X509_CHECK_FLAG_NEVER_CHECK_SUBJECT: i32 = 32; +pub const X509_PURPOSE_SSL_CLIENT: i32 = 1; +pub const X509_PURPOSE_SSL_SERVER: i32 = 2; +pub const X509_PURPOSE_NS_SSL_SERVER: i32 = 3; +pub const X509_PURPOSE_SMIME_SIGN: i32 = 4; +pub const X509_PURPOSE_SMIME_ENCRYPT: i32 = 5; +pub const X509_PURPOSE_CRL_SIGN: i32 = 6; +pub const X509_PURPOSE_ANY: i32 = 7; +pub const X509_PURPOSE_OCSP_HELPER: i32 = 8; +pub const X509_PURPOSE_TIMESTAMP_SIGN: i32 = 9; +pub const X509_TRUST_COMPAT: i32 = 1; +pub const X509_TRUST_SSL_CLIENT: i32 = 2; +pub const X509_TRUST_SSL_SERVER: i32 = 3; +pub const X509_TRUST_EMAIL: i32 = 4; +pub const X509_TRUST_OBJECT_SIGN: i32 = 5; +pub const X509_TRUST_TSA: i32 = 8; +pub const X509_FLAG_COMPAT: i32 = 0; +pub const X509_FLAG_NO_HEADER: i32 = 1; +pub const X509_FLAG_NO_VERSION: i32 = 2; +pub const X509_FLAG_NO_SERIAL: i32 = 4; +pub const X509_FLAG_NO_SIGNAME: i32 = 8; +pub const X509_FLAG_NO_ISSUER: i32 = 16; +pub const X509_FLAG_NO_VALIDITY: i32 = 32; +pub const X509_FLAG_NO_SUBJECT: i32 = 64; +pub const X509_FLAG_NO_PUBKEY: i32 = 128; +pub const X509_FLAG_NO_EXTENSIONS: i32 = 256; +pub const X509_FLAG_NO_SIGDUMP: i32 = 512; +pub const X509_FLAG_NO_AUX: i32 = 1024; +pub const X509_FLAG_NO_ATTRIBUTES: i32 = 2048; +pub const X509_FLAG_NO_IDS: i32 = 4096; +pub const X509V3_EXT_UNKNOWN_MASK: i32 = 983040; +pub const X509V3_EXT_DEFAULT: i32 = 0; +pub const X509V3_EXT_ERROR_UNKNOWN: i32 = 65536; +pub const X509V3_EXT_PARSE_UNKNOWN: i32 = 131072; +pub const X509V3_EXT_DUMP_UNKNOWN: i32 = 196608; +pub const XN_FLAG_COMPAT: i32 = 0; +pub const XN_FLAG_SEP_MASK: i32 = 983040; +pub const XN_FLAG_SEP_COMMA_PLUS: i32 = 65536; +pub const XN_FLAG_SEP_CPLUS_SPC: i32 = 131072; +pub const XN_FLAG_SEP_SPLUS_SPC: i32 = 196608; +pub const XN_FLAG_SEP_MULTILINE: i32 = 262144; +pub const XN_FLAG_DN_REV: i32 = 1048576; +pub const XN_FLAG_FN_MASK: i32 = 6291456; +pub const XN_FLAG_FN_SN: i32 = 0; +pub const XN_FLAG_FN_LN: i32 = 2097152; +pub const XN_FLAG_FN_OID: i32 = 4194304; +pub const XN_FLAG_FN_NONE: i32 = 6291456; +pub const XN_FLAG_SPC_EQ: i32 = 8388608; +pub const XN_FLAG_DUMP_UNKNOWN_FIELDS: i32 = 16777216; +pub const XN_FLAG_FN_ALIGN: i32 = 33554432; +pub const XN_FLAG_RFC2253: i32 = 17892119; +pub const XN_FLAG_ONELINE: i32 = 8520479; +pub const XN_FLAG_MULTILINE: i32 = 44302342; +pub const X509_TRUST_TRUSTED: i32 = 1; +pub const X509_TRUST_REJECTED: i32 = 2; +pub const X509_TRUST_UNTRUSTED: i32 = 3; +pub const X509V3_CTX_TEST: i32 = 1; +pub const X509_CHECK_FLAG_ALWAYS_CHECK_SUBJECT: i32 = 0; +pub const X509_CHECK_FLAG_MULTI_LABEL_WILDCARDS: i32 = 0; +pub const X509_CHECK_FLAG_SINGLE_LABEL_SUBDOMAINS: i32 = 0; +pub const X509_CHECK_FLAG_NO_PARTIAL_WILDCARDS: i32 = 0; +pub const X509_TRUST_DEFAULT: i32 = -1; +pub const X509_LU_NONE: i32 = 0; +pub const X509_LU_X509: i32 = 1; +pub const X509_LU_CRL: i32 = 2; +pub const X509_LU_PKEY: i32 = 3; +pub const X509_L_FILE_LOAD: i32 = 1; +pub const X509_L_ADD_DIR: i32 = 2; +pub const X509_FILETYPE_PEM: i32 = 1; +pub const X509_FILETYPE_ASN1: i32 = 2; +pub const X509_FILETYPE_DEFAULT: i32 = 3; pub const X509_V_FLAG_CB_ISSUER_CHECK: i32 = 1; pub const X509_V_FLAG_USE_CHECK_TIME: i32 = 2; pub const X509_V_FLAG_CRL_CHECK: i32 = 4; @@ -3650,15 +3673,6 @@ pub const NS_SSL_CA: i32 = 4; pub const NS_SMIME_CA: i32 = 2; pub const NS_OBJSIGN_CA: i32 = 1; pub const NS_ANY_CA: i32 = 7; -pub const X509_PURPOSE_SSL_CLIENT: i32 = 1; -pub const X509_PURPOSE_SSL_SERVER: i32 = 2; -pub const X509_PURPOSE_NS_SSL_SERVER: i32 = 3; -pub const X509_PURPOSE_SMIME_SIGN: i32 = 4; -pub const X509_PURPOSE_SMIME_ENCRYPT: i32 = 5; -pub const X509_PURPOSE_CRL_SIGN: i32 = 6; -pub const X509_PURPOSE_ANY: i32 = 7; -pub const X509_PURPOSE_OCSP_HELPER: i32 = 8; -pub const X509_PURPOSE_TIMESTAMP_SIGN: i32 = 9; pub const X509V3_ADD_OP_MASK: i32 = 15; pub const X509V3_ADD_DEFAULT: i32 = 0; pub const X509V3_ADD_APPEND: i32 = 1; @@ -3667,12 +3681,6 @@ pub const X509V3_ADD_REPLACE_EXISTING: i32 = 3; pub const X509V3_ADD_KEEP_EXISTING: i32 = 4; pub const X509V3_ADD_DELETE: i32 = 5; pub const X509V3_ADD_SILENT: i32 = 16; -pub const X509_CHECK_FLAG_NO_WILDCARDS: i32 = 2; -pub const X509_CHECK_FLAG_NEVER_CHECK_SUBJECT: i32 = 32; -pub const X509_CHECK_FLAG_NO_PARTIAL_WILDCARDS: i32 = 0; -pub const X509_CHECK_FLAG_ALWAYS_CHECK_SUBJECT: i32 = 0; -pub const X509_CHECK_FLAG_MULTI_LABEL_WILDCARDS: i32 = 0; -pub const X509_CHECK_FLAG_SINGLE_LABEL_SUBDOMAINS: i32 = 0; pub const X509_R_AKID_MISMATCH: i32 = 100; pub const X509_R_BAD_PKCS7_VERSION: i32 = 101; pub const X509_R_BAD_X509_FILETYPE: i32 = 102; @@ -13394,24 +13402,6 @@ extern "C" { enc: ::std::os::raw::c_int, ); } -extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_DES_decrypt3"] - pub fn DES_decrypt3( - data: *mut u32, - ks1: *const DES_key_schedule, - ks2: *const DES_key_schedule, - ks3: *const DES_key_schedule, - ); -} -extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_DES_encrypt3"] - pub fn DES_encrypt3( - data: *mut u32, - ks1: *const DES_key_schedule, - ks2: *const DES_key_schedule, - ks3: *const DES_key_schedule, - ); -} extern "C" { #[link_name = "\u{1}aws_lc_0_21_0_DH_new"] pub fn DH_new() -> *mut DH; @@ -21416,1751 +21406,1558 @@ extern "C" { idx: ::std::os::raw::c_int, ) -> *mut ASN1_TYPE; } -#[repr(C)] -#[derive(Debug, Copy, Clone, PartialEq, Eq)] -pub struct Netscape_spki_st { - pub spkac: *mut NETSCAPE_SPKAC, - pub sig_algor: *mut X509_ALGOR, - pub signature: *mut ASN1_BIT_STRING, -} -#[test] -fn bindgen_test_layout_Netscape_spki_st() { - const UNINIT: ::std::mem::MaybeUninit = ::std::mem::MaybeUninit::uninit(); - let ptr = UNINIT.as_ptr(); - assert_eq!( - ::std::mem::size_of::(), - 24usize, - concat!("Size of: ", stringify!(Netscape_spki_st)) - ); - assert_eq!( - ::std::mem::align_of::(), - 8usize, - concat!("Alignment of ", stringify!(Netscape_spki_st)) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).spkac) as usize - ptr as usize }, - 0usize, - concat!( - "Offset of field: ", - stringify!(Netscape_spki_st), - "::", - stringify!(spkac) - ) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).sig_algor) as usize - ptr as usize }, - 8usize, - concat!( - "Offset of field: ", - stringify!(Netscape_spki_st), - "::", - stringify!(sig_algor) - ) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).signature) as usize - ptr as usize }, - 16usize, - concat!( - "Offset of field: ", - stringify!(Netscape_spki_st), - "::", - stringify!(signature) - ) - ); +extern "C" { + #[link_name = "\u{1}aws_lc_0_21_0_X509_STORE_new"] + pub fn X509_STORE_new() -> *mut X509_STORE; } -impl Default for Netscape_spki_st { - fn default() -> Self { - let mut s = ::std::mem::MaybeUninit::::uninit(); - unsafe { - ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() - } - } +extern "C" { + #[link_name = "\u{1}aws_lc_0_21_0_X509_STORE_up_ref"] + pub fn X509_STORE_up_ref(store: *mut X509_STORE) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_NETSCAPE_SPKI_it"] - pub static NETSCAPE_SPKI_it: ASN1_ITEM; + #[link_name = "\u{1}aws_lc_0_21_0_X509_STORE_free"] + pub fn X509_STORE_free(store: *mut X509_STORE); } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_NETSCAPE_SPKI_new"] - pub fn NETSCAPE_SPKI_new() -> *mut NETSCAPE_SPKI; + #[link_name = "\u{1}aws_lc_0_21_0_X509_STORE_add_cert"] + pub fn X509_STORE_add_cert(store: *mut X509_STORE, x509: *mut X509) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_NETSCAPE_SPKI_free"] - pub fn NETSCAPE_SPKI_free(spki: *mut NETSCAPE_SPKI); + #[link_name = "\u{1}aws_lc_0_21_0_X509_STORE_add_crl"] + pub fn X509_STORE_add_crl(store: *mut X509_STORE, crl: *mut X509_CRL) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_d2i_NETSCAPE_SPKI"] - pub fn d2i_NETSCAPE_SPKI( - out: *mut *mut NETSCAPE_SPKI, - inp: *mut *const u8, - len: ::std::os::raw::c_long, - ) -> *mut NETSCAPE_SPKI; + #[link_name = "\u{1}aws_lc_0_21_0_X509_STORE_get0_param"] + pub fn X509_STORE_get0_param(store: *mut X509_STORE) -> *mut X509_VERIFY_PARAM; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_i2d_NETSCAPE_SPKI"] - pub fn i2d_NETSCAPE_SPKI( - spki: *const NETSCAPE_SPKI, - outp: *mut *mut u8, + #[link_name = "\u{1}aws_lc_0_21_0_X509_STORE_set1_param"] + pub fn X509_STORE_set1_param( + store: *mut X509_STORE, + param: *const X509_VERIFY_PARAM, ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_NETSCAPE_SPKI_verify"] - pub fn NETSCAPE_SPKI_verify( - spki: *mut NETSCAPE_SPKI, - pkey: *mut EVP_PKEY, + #[link_name = "\u{1}aws_lc_0_21_0_X509_STORE_set_flags"] + pub fn X509_STORE_set_flags( + store: *mut X509_STORE, + flags: ::std::os::raw::c_ulong, ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_NETSCAPE_SPKI_b64_decode"] - pub fn NETSCAPE_SPKI_b64_decode( - str_: *const ::std::os::raw::c_char, - len: ossl_ssize_t, - ) -> *mut NETSCAPE_SPKI; + #[link_name = "\u{1}aws_lc_0_21_0_X509_STORE_set_depth"] + pub fn X509_STORE_set_depth( + store: *mut X509_STORE, + depth: ::std::os::raw::c_int, + ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_NETSCAPE_SPKI_b64_encode"] - pub fn NETSCAPE_SPKI_b64_encode(spki: *mut NETSCAPE_SPKI) -> *mut ::std::os::raw::c_char; + #[link_name = "\u{1}aws_lc_0_21_0_X509_STORE_set_purpose"] + pub fn X509_STORE_set_purpose( + store: *mut X509_STORE, + purpose: ::std::os::raw::c_int, + ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_NETSCAPE_SPKI_get_pubkey"] - pub fn NETSCAPE_SPKI_get_pubkey(spki: *const NETSCAPE_SPKI) -> *mut EVP_PKEY; + #[link_name = "\u{1}aws_lc_0_21_0_X509_STORE_set_trust"] + pub fn X509_STORE_set_trust( + store: *mut X509_STORE, + trust: ::std::os::raw::c_int, + ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_NETSCAPE_SPKI_set_pubkey"] - pub fn NETSCAPE_SPKI_set_pubkey( - spki: *mut NETSCAPE_SPKI, - pkey: *mut EVP_PKEY, - ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_0_21_0_X509_STORE_CTX_new"] + pub fn X509_STORE_CTX_new() -> *mut X509_STORE_CTX; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_NETSCAPE_SPKI_sign"] - pub fn NETSCAPE_SPKI_sign( - spki: *mut NETSCAPE_SPKI, - pkey: *mut EVP_PKEY, - md: *const EVP_MD, + #[link_name = "\u{1}aws_lc_0_21_0_X509_STORE_CTX_free"] + pub fn X509_STORE_CTX_free(ctx: *mut X509_STORE_CTX); +} +extern "C" { + #[link_name = "\u{1}aws_lc_0_21_0_X509_STORE_CTX_init"] + pub fn X509_STORE_CTX_init( + ctx: *mut X509_STORE_CTX, + store: *mut X509_STORE, + x509: *mut X509, + chain: *mut stack_st_X509, ) -> ::std::os::raw::c_int; } -#[repr(C)] -#[derive(Debug, Copy, Clone, PartialEq, Eq)] -pub struct Netscape_spkac_st { - pub pubkey: *mut X509_PUBKEY, - pub challenge: *mut ASN1_IA5STRING, +extern "C" { + #[link_name = "\u{1}aws_lc_0_21_0_X509_verify_cert"] + pub fn X509_verify_cert(ctx: *mut X509_STORE_CTX) -> ::std::os::raw::c_int; } -#[test] -fn bindgen_test_layout_Netscape_spkac_st() { - const UNINIT: ::std::mem::MaybeUninit = ::std::mem::MaybeUninit::uninit(); - let ptr = UNINIT.as_ptr(); - assert_eq!( - ::std::mem::size_of::(), - 16usize, - concat!("Size of: ", stringify!(Netscape_spkac_st)) - ); - assert_eq!( - ::std::mem::align_of::(), - 8usize, - concat!("Alignment of ", stringify!(Netscape_spkac_st)) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).pubkey) as usize - ptr as usize }, - 0usize, - concat!( - "Offset of field: ", - stringify!(Netscape_spkac_st), - "::", - stringify!(pubkey) - ) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).challenge) as usize - ptr as usize }, - 8usize, - concat!( - "Offset of field: ", - stringify!(Netscape_spkac_st), - "::", - stringify!(challenge) - ) - ); +extern "C" { + #[link_name = "\u{1}aws_lc_0_21_0_X509_STORE_CTX_get0_chain"] + pub fn X509_STORE_CTX_get0_chain(ctx: *mut X509_STORE_CTX) -> *mut stack_st_X509; } -impl Default for Netscape_spkac_st { - fn default() -> Self { - let mut s = ::std::mem::MaybeUninit::::uninit(); - unsafe { - ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() - } - } +extern "C" { + #[link_name = "\u{1}aws_lc_0_21_0_X509_STORE_CTX_get1_chain"] + pub fn X509_STORE_CTX_get1_chain(ctx: *mut X509_STORE_CTX) -> *mut stack_st_X509; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_NETSCAPE_SPKAC_it"] - pub static NETSCAPE_SPKAC_it: ASN1_ITEM; + #[link_name = "\u{1}aws_lc_0_21_0_X509_STORE_CTX_set_cert"] + pub fn X509_STORE_CTX_set_cert(c: *mut X509_STORE_CTX, x: *mut X509); } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_NETSCAPE_SPKAC_new"] - pub fn NETSCAPE_SPKAC_new() -> *mut NETSCAPE_SPKAC; + #[link_name = "\u{1}aws_lc_0_21_0_X509_STORE_CTX_get_error"] + pub fn X509_STORE_CTX_get_error(ctx: *mut X509_STORE_CTX) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_NETSCAPE_SPKAC_free"] - pub fn NETSCAPE_SPKAC_free(spkac: *mut NETSCAPE_SPKAC); + #[link_name = "\u{1}aws_lc_0_21_0_X509_STORE_CTX_set_error"] + pub fn X509_STORE_CTX_set_error(ctx: *mut X509_STORE_CTX, err: ::std::os::raw::c_int); } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_d2i_NETSCAPE_SPKAC"] - pub fn d2i_NETSCAPE_SPKAC( - out: *mut *mut NETSCAPE_SPKAC, - inp: *mut *const u8, - len: ::std::os::raw::c_long, - ) -> *mut NETSCAPE_SPKAC; + #[link_name = "\u{1}aws_lc_0_21_0_X509_verify_cert_error_string"] + pub fn X509_verify_cert_error_string( + err: ::std::os::raw::c_long, + ) -> *const ::std::os::raw::c_char; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_i2d_NETSCAPE_SPKAC"] - pub fn i2d_NETSCAPE_SPKAC( - spkac: *const NETSCAPE_SPKAC, - outp: *mut *mut u8, - ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_0_21_0_X509_STORE_CTX_get_error_depth"] + pub fn X509_STORE_CTX_get_error_depth(ctx: *mut X509_STORE_CTX) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_NETSCAPE_SPKI_print"] - pub fn NETSCAPE_SPKI_print(out: *mut BIO, spki: *mut NETSCAPE_SPKI) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_0_21_0_X509_STORE_CTX_get_current_cert"] + pub fn X509_STORE_CTX_get_current_cert(ctx: *mut X509_STORE_CTX) -> *mut X509; } -#[repr(C)] -#[derive(Debug, Copy, Clone, PartialEq, Eq)] -pub struct rsa_pss_params_st { - pub hashAlgorithm: *mut X509_ALGOR, - pub maskGenAlgorithm: *mut X509_ALGOR, - pub saltLength: *mut ASN1_INTEGER, - pub trailerField: *mut ASN1_INTEGER, - pub maskHash: *mut X509_ALGOR, +extern "C" { + #[link_name = "\u{1}aws_lc_0_21_0_X509_STORE_CTX_get0_current_issuer"] + pub fn X509_STORE_CTX_get0_current_issuer(ctx: *mut X509_STORE_CTX) -> *mut X509; } -#[test] -fn bindgen_test_layout_rsa_pss_params_st() { - const UNINIT: ::std::mem::MaybeUninit = ::std::mem::MaybeUninit::uninit(); - let ptr = UNINIT.as_ptr(); - assert_eq!( - ::std::mem::size_of::(), - 40usize, - concat!("Size of: ", stringify!(rsa_pss_params_st)) - ); - assert_eq!( - ::std::mem::align_of::(), - 8usize, - concat!("Alignment of ", stringify!(rsa_pss_params_st)) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).hashAlgorithm) as usize - ptr as usize }, - 0usize, - concat!( - "Offset of field: ", - stringify!(rsa_pss_params_st), - "::", - stringify!(hashAlgorithm) - ) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).maskGenAlgorithm) as usize - ptr as usize }, - 8usize, - concat!( - "Offset of field: ", - stringify!(rsa_pss_params_st), - "::", - stringify!(maskGenAlgorithm) - ) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).saltLength) as usize - ptr as usize }, - 16usize, - concat!( - "Offset of field: ", - stringify!(rsa_pss_params_st), - "::", - stringify!(saltLength) - ) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).trailerField) as usize - ptr as usize }, - 24usize, - concat!( - "Offset of field: ", - stringify!(rsa_pss_params_st), - "::", - stringify!(trailerField) - ) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).maskHash) as usize - ptr as usize }, - 32usize, - concat!( - "Offset of field: ", - stringify!(rsa_pss_params_st), - "::", - stringify!(maskHash) - ) - ); +extern "C" { + #[link_name = "\u{1}aws_lc_0_21_0_X509_STORE_CTX_get0_current_crl"] + pub fn X509_STORE_CTX_get0_current_crl(ctx: *mut X509_STORE_CTX) -> *mut X509_CRL; } -impl Default for rsa_pss_params_st { - fn default() -> Self { - let mut s = ::std::mem::MaybeUninit::::uninit(); - unsafe { - ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() - } - } +extern "C" { + #[link_name = "\u{1}aws_lc_0_21_0_X509_STORE_CTX_get0_store"] + pub fn X509_STORE_CTX_get0_store(ctx: *mut X509_STORE_CTX) -> *mut X509_STORE; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_RSA_PSS_PARAMS_it"] - pub static RSA_PSS_PARAMS_it: ASN1_ITEM; + #[link_name = "\u{1}aws_lc_0_21_0_X509_STORE_CTX_get0_cert"] + pub fn X509_STORE_CTX_get0_cert(ctx: *mut X509_STORE_CTX) -> *mut X509; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_RSA_PSS_PARAMS_new"] - pub fn RSA_PSS_PARAMS_new() -> *mut RSA_PSS_PARAMS; + #[link_name = "\u{1}aws_lc_0_21_0_X509_STORE_CTX_get0_untrusted"] + pub fn X509_STORE_CTX_get0_untrusted(ctx: *mut X509_STORE_CTX) -> *mut stack_st_X509; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_RSA_PSS_PARAMS_free"] - pub fn RSA_PSS_PARAMS_free(params: *mut RSA_PSS_PARAMS); + #[link_name = "\u{1}aws_lc_0_21_0_X509_STORE_CTX_set0_trusted_stack"] + pub fn X509_STORE_CTX_set0_trusted_stack(ctx: *mut X509_STORE_CTX, sk: *mut stack_st_X509); } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_d2i_RSA_PSS_PARAMS"] - pub fn d2i_RSA_PSS_PARAMS( - out: *mut *mut RSA_PSS_PARAMS, - inp: *mut *const u8, - len: ::std::os::raw::c_long, - ) -> *mut RSA_PSS_PARAMS; + #[link_name = "\u{1}aws_lc_0_21_0_X509_STORE_CTX_set0_crls"] + pub fn X509_STORE_CTX_set0_crls(ctx: *mut X509_STORE_CTX, sk: *mut stack_st_X509_CRL); } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_i2d_RSA_PSS_PARAMS"] - pub fn i2d_RSA_PSS_PARAMS( - in_: *const RSA_PSS_PARAMS, - outp: *mut *mut u8, + #[link_name = "\u{1}aws_lc_0_21_0_X509_STORE_CTX_set_default"] + pub fn X509_STORE_CTX_set_default( + ctx: *mut X509_STORE_CTX, + name: *const ::std::os::raw::c_char, ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_PKCS8_PRIV_KEY_INFO_it"] - pub static PKCS8_PRIV_KEY_INFO_it: ASN1_ITEM; + #[link_name = "\u{1}aws_lc_0_21_0_X509_STORE_CTX_get0_param"] + pub fn X509_STORE_CTX_get0_param(ctx: *mut X509_STORE_CTX) -> *mut X509_VERIFY_PARAM; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_PKCS8_PRIV_KEY_INFO_new"] - pub fn PKCS8_PRIV_KEY_INFO_new() -> *mut PKCS8_PRIV_KEY_INFO; -} -extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_PKCS8_PRIV_KEY_INFO_free"] - pub fn PKCS8_PRIV_KEY_INFO_free(key: *mut PKCS8_PRIV_KEY_INFO); -} -extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_d2i_PKCS8_PRIV_KEY_INFO"] - pub fn d2i_PKCS8_PRIV_KEY_INFO( - out: *mut *mut PKCS8_PRIV_KEY_INFO, - inp: *mut *const u8, - len: ::std::os::raw::c_long, - ) -> *mut PKCS8_PRIV_KEY_INFO; -} -extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_i2d_PKCS8_PRIV_KEY_INFO"] - pub fn i2d_PKCS8_PRIV_KEY_INFO( - key: *const PKCS8_PRIV_KEY_INFO, - outp: *mut *mut u8, - ) -> ::std::os::raw::c_int; -} -extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_EVP_PKCS82PKEY"] - pub fn EVP_PKCS82PKEY(p8: *const PKCS8_PRIV_KEY_INFO) -> *mut EVP_PKEY; + #[link_name = "\u{1}aws_lc_0_21_0_X509_STORE_CTX_set0_param"] + pub fn X509_STORE_CTX_set0_param(ctx: *mut X509_STORE_CTX, param: *mut X509_VERIFY_PARAM); } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_EVP_PKEY2PKCS8"] - pub fn EVP_PKEY2PKCS8(pkey: *const EVP_PKEY) -> *mut PKCS8_PRIV_KEY_INFO; + #[link_name = "\u{1}aws_lc_0_21_0_X509_STORE_CTX_set_flags"] + pub fn X509_STORE_CTX_set_flags(ctx: *mut X509_STORE_CTX, flags: ::std::os::raw::c_ulong); } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_X509_SIG_it"] - pub static X509_SIG_it: ASN1_ITEM; + #[link_name = "\u{1}aws_lc_0_21_0_X509_STORE_CTX_set_time"] + pub fn X509_STORE_CTX_set_time( + ctx: *mut X509_STORE_CTX, + flags: ::std::os::raw::c_ulong, + t: time_t, + ); } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_X509_SIG_new"] - pub fn X509_SIG_new() -> *mut X509_SIG; + #[link_name = "\u{1}aws_lc_0_21_0_X509_STORE_CTX_set_time_posix"] + pub fn X509_STORE_CTX_set_time_posix( + ctx: *mut X509_STORE_CTX, + flags: ::std::os::raw::c_ulong, + t: i64, + ); } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_X509_SIG_free"] - pub fn X509_SIG_free(key: *mut X509_SIG); + #[link_name = "\u{1}aws_lc_0_21_0_X509_STORE_CTX_set_depth"] + pub fn X509_STORE_CTX_set_depth(ctx: *mut X509_STORE_CTX, depth: ::std::os::raw::c_int); } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_d2i_X509_SIG"] - pub fn d2i_X509_SIG( - out: *mut *mut X509_SIG, - inp: *mut *const u8, - len: ::std::os::raw::c_long, - ) -> *mut X509_SIG; + #[link_name = "\u{1}aws_lc_0_21_0_X509_STORE_CTX_set_purpose"] + pub fn X509_STORE_CTX_set_purpose( + ctx: *mut X509_STORE_CTX, + purpose: ::std::os::raw::c_int, + ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_i2d_X509_SIG"] - pub fn i2d_X509_SIG(sig: *const X509_SIG, outp: *mut *mut u8) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_0_21_0_X509_STORE_CTX_set_trust"] + pub fn X509_STORE_CTX_set_trust( + ctx: *mut X509_STORE_CTX, + trust: ::std::os::raw::c_int, + ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_X509_SIG_get0"] - pub fn X509_SIG_get0( - sig: *const X509_SIG, - out_alg: *mut *const X509_ALGOR, - out_digest: *mut *const ASN1_OCTET_STRING, - ); + #[link_name = "\u{1}aws_lc_0_21_0_X509_VERIFY_PARAM_new"] + pub fn X509_VERIFY_PARAM_new() -> *mut X509_VERIFY_PARAM; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_X509_SIG_getm"] - pub fn X509_SIG_getm( - sig: *mut X509_SIG, - out_alg: *mut *mut X509_ALGOR, - out_digest: *mut *mut ASN1_OCTET_STRING, - ); + #[link_name = "\u{1}aws_lc_0_21_0_X509_VERIFY_PARAM_free"] + pub fn X509_VERIFY_PARAM_free(param: *mut X509_VERIFY_PARAM); } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_X509_print_ex"] - pub fn X509_print_ex( - bp: *mut BIO, - x: *mut X509, - nmflag: ::std::os::raw::c_ulong, - cflag: ::std::os::raw::c_ulong, + #[link_name = "\u{1}aws_lc_0_21_0_X509_VERIFY_PARAM_inherit"] + pub fn X509_VERIFY_PARAM_inherit( + to: *mut X509_VERIFY_PARAM, + from: *const X509_VERIFY_PARAM, ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_X509_print_ex_fp"] - pub fn X509_print_ex_fp( - fp: *mut FILE, - x: *mut X509, - nmflag: ::std::os::raw::c_ulong, - cflag: ::std::os::raw::c_ulong, + #[link_name = "\u{1}aws_lc_0_21_0_X509_VERIFY_PARAM_set1"] + pub fn X509_VERIFY_PARAM_set1( + to: *mut X509_VERIFY_PARAM, + from: *const X509_VERIFY_PARAM, ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_X509_print"] - pub fn X509_print(bp: *mut BIO, x: *mut X509) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_0_21_0_X509_VERIFY_PARAM_set_flags"] + pub fn X509_VERIFY_PARAM_set_flags( + param: *mut X509_VERIFY_PARAM, + flags: ::std::os::raw::c_ulong, + ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_X509_print_fp"] - pub fn X509_print_fp(fp: *mut FILE, x: *mut X509) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_0_21_0_X509_VERIFY_PARAM_clear_flags"] + pub fn X509_VERIFY_PARAM_clear_flags( + param: *mut X509_VERIFY_PARAM, + flags: ::std::os::raw::c_ulong, + ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_X509_CRL_print"] - pub fn X509_CRL_print(bp: *mut BIO, x: *mut X509_CRL) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_0_21_0_X509_VERIFY_PARAM_get_flags"] + pub fn X509_VERIFY_PARAM_get_flags(param: *const X509_VERIFY_PARAM) -> ::std::os::raw::c_ulong; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_X509_CRL_print_fp"] - pub fn X509_CRL_print_fp(fp: *mut FILE, x: *mut X509_CRL) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_0_21_0_X509_VERIFY_PARAM_set_depth"] + pub fn X509_VERIFY_PARAM_set_depth(param: *mut X509_VERIFY_PARAM, depth: ::std::os::raw::c_int); } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_X509_REQ_print_ex"] - pub fn X509_REQ_print_ex( - bp: *mut BIO, - x: *mut X509_REQ, - nmflag: ::std::os::raw::c_ulong, - cflag: ::std::os::raw::c_ulong, - ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_0_21_0_X509_VERIFY_PARAM_get_depth"] + pub fn X509_VERIFY_PARAM_get_depth(param: *const X509_VERIFY_PARAM) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_X509_REQ_print"] - pub fn X509_REQ_print(bp: *mut BIO, req: *mut X509_REQ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_0_21_0_X509_VERIFY_PARAM_set_time"] + pub fn X509_VERIFY_PARAM_set_time(param: *mut X509_VERIFY_PARAM, t: time_t); } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_X509_REQ_print_fp"] - pub fn X509_REQ_print_fp(fp: *mut FILE, req: *mut X509_REQ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_0_21_0_X509_VERIFY_PARAM_set_time_posix"] + pub fn X509_VERIFY_PARAM_set_time_posix(param: *mut X509_VERIFY_PARAM, t: i64); } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_X509_NAME_print_ex"] - pub fn X509_NAME_print_ex( - out: *mut BIO, - nm: *const X509_NAME, - indent: ::std::os::raw::c_int, - flags: ::std::os::raw::c_ulong, + #[link_name = "\u{1}aws_lc_0_21_0_X509_VERIFY_PARAM_add0_policy"] + pub fn X509_VERIFY_PARAM_add0_policy( + param: *mut X509_VERIFY_PARAM, + policy: *mut ASN1_OBJECT, ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_X509_NAME_print"] - pub fn X509_NAME_print( - bp: *mut BIO, - name: *const X509_NAME, - obase: ::std::os::raw::c_int, + #[link_name = "\u{1}aws_lc_0_21_0_X509_VERIFY_PARAM_set1_policies"] + pub fn X509_VERIFY_PARAM_set1_policies( + param: *mut X509_VERIFY_PARAM, + policies: *const stack_st_ASN1_OBJECT, ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_X509_NAME_oneline"] - pub fn X509_NAME_oneline( - name: *const X509_NAME, - buf: *mut ::std::os::raw::c_char, - size: ::std::os::raw::c_int, - ) -> *mut ::std::os::raw::c_char; -} -extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_X509_NAME_print_ex_fp"] - pub fn X509_NAME_print_ex_fp( - fp: *mut FILE, - nm: *const X509_NAME, - indent: ::std::os::raw::c_int, - flags: ::std::os::raw::c_ulong, + #[link_name = "\u{1}aws_lc_0_21_0_X509_VERIFY_PARAM_set1_host"] + pub fn X509_VERIFY_PARAM_set1_host( + param: *mut X509_VERIFY_PARAM, + name: *const ::std::os::raw::c_char, + name_len: usize, ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_X509_signature_dump"] - pub fn X509_signature_dump( - bio: *mut BIO, - sig: *const ASN1_STRING, - indent: ::std::os::raw::c_int, + #[link_name = "\u{1}aws_lc_0_21_0_X509_VERIFY_PARAM_add1_host"] + pub fn X509_VERIFY_PARAM_add1_host( + param: *mut X509_VERIFY_PARAM, + name: *const ::std::os::raw::c_char, + name_len: usize, ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_X509_signature_print"] - pub fn X509_signature_print( - bio: *mut BIO, - alg: *const X509_ALGOR, - sig: *const ASN1_STRING, - ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_0_21_0_X509_VERIFY_PARAM_set_hostflags"] + pub fn X509_VERIFY_PARAM_set_hostflags( + param: *mut X509_VERIFY_PARAM, + flags: ::std::os::raw::c_uint, + ); } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_X509V3_EXT_print"] - pub fn X509V3_EXT_print( - out: *mut BIO, - ext: *const X509_EXTENSION, - flag: ::std::os::raw::c_ulong, - indent: ::std::os::raw::c_int, + #[link_name = "\u{1}aws_lc_0_21_0_X509_VERIFY_PARAM_set1_email"] + pub fn X509_VERIFY_PARAM_set1_email( + param: *mut X509_VERIFY_PARAM, + email: *const ::std::os::raw::c_char, + email_len: usize, ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_X509V3_EXT_print_fp"] - pub fn X509V3_EXT_print_fp( - out: *mut FILE, - ext: *const X509_EXTENSION, - flag: ::std::os::raw::c_int, - indent: ::std::os::raw::c_int, + #[link_name = "\u{1}aws_lc_0_21_0_X509_VERIFY_PARAM_set1_ip"] + pub fn X509_VERIFY_PARAM_set1_ip( + param: *mut X509_VERIFY_PARAM, + ip: *const u8, + ip_len: usize, ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_X509V3_extensions_print"] - pub fn X509V3_extensions_print( - out: *mut BIO, - title: *const ::std::os::raw::c_char, - exts: *const stack_st_X509_EXTENSION, - flag: ::std::os::raw::c_ulong, - indent: ::std::os::raw::c_int, + #[link_name = "\u{1}aws_lc_0_21_0_X509_VERIFY_PARAM_set1_ip_asc"] + pub fn X509_VERIFY_PARAM_set1_ip_asc( + param: *mut X509_VERIFY_PARAM, + ipasc: *const ::std::os::raw::c_char, ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_GENERAL_NAME_print"] - pub fn GENERAL_NAME_print(out: *mut BIO, gen: *const GENERAL_NAME) -> ::std::os::raw::c_int; -} -extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_X509_pubkey_digest"] - pub fn X509_pubkey_digest( - x509: *const X509, - md: *const EVP_MD, - out: *mut u8, - out_len: *mut ::std::os::raw::c_uint, + #[link_name = "\u{1}aws_lc_0_21_0_X509_VERIFY_PARAM_set_purpose"] + pub fn X509_VERIFY_PARAM_set_purpose( + param: *mut X509_VERIFY_PARAM, + purpose: ::std::os::raw::c_int, ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_X509_digest"] - pub fn X509_digest( - x509: *const X509, - md: *const EVP_MD, - out: *mut u8, - out_len: *mut ::std::os::raw::c_uint, + #[link_name = "\u{1}aws_lc_0_21_0_X509_VERIFY_PARAM_set_trust"] + pub fn X509_VERIFY_PARAM_set_trust( + param: *mut X509_VERIFY_PARAM, + trust: ::std::os::raw::c_int, ) -> ::std::os::raw::c_int; } -extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_X509_CRL_digest"] - pub fn X509_CRL_digest( - crl: *const X509_CRL, - md: *const EVP_MD, - out: *mut u8, - out_len: *mut ::std::os::raw::c_uint, - ) -> ::std::os::raw::c_int; -} -extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_X509_REQ_digest"] - pub fn X509_REQ_digest( - req: *const X509_REQ, - md: *const EVP_MD, - out: *mut u8, - out_len: *mut ::std::os::raw::c_uint, - ) -> ::std::os::raw::c_int; -} -extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_X509_NAME_digest"] - pub fn X509_NAME_digest( - name: *const X509_NAME, - md: *const EVP_MD, - out: *mut u8, - out_len: *mut ::std::os::raw::c_uint, - ) -> ::std::os::raw::c_int; +#[repr(C)] +#[derive(Debug, Copy, Clone, PartialEq, Eq)] +pub struct Netscape_spki_st { + pub spkac: *mut NETSCAPE_SPKAC, + pub sig_algor: *mut X509_ALGOR, + pub signature: *mut ASN1_BIT_STRING, } -extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_d2i_X509_bio"] - pub fn d2i_X509_bio(bp: *mut BIO, x509: *mut *mut X509) -> *mut X509; +#[test] +fn bindgen_test_layout_Netscape_spki_st() { + const UNINIT: ::std::mem::MaybeUninit = ::std::mem::MaybeUninit::uninit(); + let ptr = UNINIT.as_ptr(); + assert_eq!( + ::std::mem::size_of::(), + 24usize, + concat!("Size of: ", stringify!(Netscape_spki_st)) + ); + assert_eq!( + ::std::mem::align_of::(), + 8usize, + concat!("Alignment of ", stringify!(Netscape_spki_st)) + ); + assert_eq!( + unsafe { ::std::ptr::addr_of!((*ptr).spkac) as usize - ptr as usize }, + 0usize, + concat!( + "Offset of field: ", + stringify!(Netscape_spki_st), + "::", + stringify!(spkac) + ) + ); + assert_eq!( + unsafe { ::std::ptr::addr_of!((*ptr).sig_algor) as usize - ptr as usize }, + 8usize, + concat!( + "Offset of field: ", + stringify!(Netscape_spki_st), + "::", + stringify!(sig_algor) + ) + ); + assert_eq!( + unsafe { ::std::ptr::addr_of!((*ptr).signature) as usize - ptr as usize }, + 16usize, + concat!( + "Offset of field: ", + stringify!(Netscape_spki_st), + "::", + stringify!(signature) + ) + ); } -extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_d2i_X509_CRL_bio"] - pub fn d2i_X509_CRL_bio(bp: *mut BIO, crl: *mut *mut X509_CRL) -> *mut X509_CRL; +impl Default for Netscape_spki_st { + fn default() -> Self { + let mut s = ::std::mem::MaybeUninit::::uninit(); + unsafe { + ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); + s.assume_init() + } + } } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_d2i_X509_REQ_bio"] - pub fn d2i_X509_REQ_bio(bp: *mut BIO, req: *mut *mut X509_REQ) -> *mut X509_REQ; + #[link_name = "\u{1}aws_lc_0_21_0_NETSCAPE_SPKI_it"] + pub static NETSCAPE_SPKI_it: ASN1_ITEM; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_d2i_RSAPrivateKey_bio"] - pub fn d2i_RSAPrivateKey_bio(bp: *mut BIO, rsa: *mut *mut RSA) -> *mut RSA; + #[link_name = "\u{1}aws_lc_0_21_0_NETSCAPE_SPKI_new"] + pub fn NETSCAPE_SPKI_new() -> *mut NETSCAPE_SPKI; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_d2i_RSAPublicKey_bio"] - pub fn d2i_RSAPublicKey_bio(bp: *mut BIO, rsa: *mut *mut RSA) -> *mut RSA; + #[link_name = "\u{1}aws_lc_0_21_0_NETSCAPE_SPKI_free"] + pub fn NETSCAPE_SPKI_free(spki: *mut NETSCAPE_SPKI); } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_d2i_RSA_PUBKEY_bio"] - pub fn d2i_RSA_PUBKEY_bio(bp: *mut BIO, rsa: *mut *mut RSA) -> *mut RSA; + #[link_name = "\u{1}aws_lc_0_21_0_d2i_NETSCAPE_SPKI"] + pub fn d2i_NETSCAPE_SPKI( + out: *mut *mut NETSCAPE_SPKI, + inp: *mut *const u8, + len: ::std::os::raw::c_long, + ) -> *mut NETSCAPE_SPKI; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_d2i_DSA_PUBKEY_bio"] - pub fn d2i_DSA_PUBKEY_bio(bp: *mut BIO, dsa: *mut *mut DSA) -> *mut DSA; + #[link_name = "\u{1}aws_lc_0_21_0_i2d_NETSCAPE_SPKI"] + pub fn i2d_NETSCAPE_SPKI( + spki: *const NETSCAPE_SPKI, + outp: *mut *mut u8, + ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_d2i_DSAPrivateKey_bio"] - pub fn d2i_DSAPrivateKey_bio(bp: *mut BIO, dsa: *mut *mut DSA) -> *mut DSA; + #[link_name = "\u{1}aws_lc_0_21_0_NETSCAPE_SPKI_verify"] + pub fn NETSCAPE_SPKI_verify( + spki: *mut NETSCAPE_SPKI, + pkey: *mut EVP_PKEY, + ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_d2i_EC_PUBKEY_bio"] - pub fn d2i_EC_PUBKEY_bio(bp: *mut BIO, eckey: *mut *mut EC_KEY) -> *mut EC_KEY; + #[link_name = "\u{1}aws_lc_0_21_0_NETSCAPE_SPKI_b64_decode"] + pub fn NETSCAPE_SPKI_b64_decode( + str_: *const ::std::os::raw::c_char, + len: ossl_ssize_t, + ) -> *mut NETSCAPE_SPKI; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_d2i_ECPrivateKey_bio"] - pub fn d2i_ECPrivateKey_bio(bp: *mut BIO, eckey: *mut *mut EC_KEY) -> *mut EC_KEY; + #[link_name = "\u{1}aws_lc_0_21_0_NETSCAPE_SPKI_b64_encode"] + pub fn NETSCAPE_SPKI_b64_encode(spki: *mut NETSCAPE_SPKI) -> *mut ::std::os::raw::c_char; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_d2i_PKCS8_bio"] - pub fn d2i_PKCS8_bio(bp: *mut BIO, p8: *mut *mut X509_SIG) -> *mut X509_SIG; + #[link_name = "\u{1}aws_lc_0_21_0_NETSCAPE_SPKI_get_pubkey"] + pub fn NETSCAPE_SPKI_get_pubkey(spki: *const NETSCAPE_SPKI) -> *mut EVP_PKEY; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_d2i_PKCS8_PRIV_KEY_INFO_bio"] - pub fn d2i_PKCS8_PRIV_KEY_INFO_bio( - bp: *mut BIO, - p8inf: *mut *mut PKCS8_PRIV_KEY_INFO, - ) -> *mut PKCS8_PRIV_KEY_INFO; + #[link_name = "\u{1}aws_lc_0_21_0_NETSCAPE_SPKI_set_pubkey"] + pub fn NETSCAPE_SPKI_set_pubkey( + spki: *mut NETSCAPE_SPKI, + pkey: *mut EVP_PKEY, + ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_d2i_PUBKEY_bio"] - pub fn d2i_PUBKEY_bio(bp: *mut BIO, a: *mut *mut EVP_PKEY) -> *mut EVP_PKEY; + #[link_name = "\u{1}aws_lc_0_21_0_NETSCAPE_SPKI_sign"] + pub fn NETSCAPE_SPKI_sign( + spki: *mut NETSCAPE_SPKI, + pkey: *mut EVP_PKEY, + md: *const EVP_MD, + ) -> ::std::os::raw::c_int; } -extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_d2i_DHparams_bio"] - pub fn d2i_DHparams_bio(bp: *mut BIO, dh: *mut *mut DH) -> *mut DH; +#[repr(C)] +#[derive(Debug, Copy, Clone, PartialEq, Eq)] +pub struct Netscape_spkac_st { + pub pubkey: *mut X509_PUBKEY, + pub challenge: *mut ASN1_IA5STRING, } -extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_d2i_PrivateKey_bio"] - pub fn d2i_PrivateKey_bio(bp: *mut BIO, a: *mut *mut EVP_PKEY) -> *mut EVP_PKEY; +#[test] +fn bindgen_test_layout_Netscape_spkac_st() { + const UNINIT: ::std::mem::MaybeUninit = ::std::mem::MaybeUninit::uninit(); + let ptr = UNINIT.as_ptr(); + assert_eq!( + ::std::mem::size_of::(), + 16usize, + concat!("Size of: ", stringify!(Netscape_spkac_st)) + ); + assert_eq!( + ::std::mem::align_of::(), + 8usize, + concat!("Alignment of ", stringify!(Netscape_spkac_st)) + ); + assert_eq!( + unsafe { ::std::ptr::addr_of!((*ptr).pubkey) as usize - ptr as usize }, + 0usize, + concat!( + "Offset of field: ", + stringify!(Netscape_spkac_st), + "::", + stringify!(pubkey) + ) + ); + assert_eq!( + unsafe { ::std::ptr::addr_of!((*ptr).challenge) as usize - ptr as usize }, + 8usize, + concat!( + "Offset of field: ", + stringify!(Netscape_spkac_st), + "::", + stringify!(challenge) + ) + ); } -extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_i2d_X509_bio"] - pub fn i2d_X509_bio(bp: *mut BIO, x509: *mut X509) -> ::std::os::raw::c_int; +impl Default for Netscape_spkac_st { + fn default() -> Self { + let mut s = ::std::mem::MaybeUninit::::uninit(); + unsafe { + ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); + s.assume_init() + } + } } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_i2d_X509_CRL_bio"] - pub fn i2d_X509_CRL_bio(bp: *mut BIO, crl: *mut X509_CRL) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_0_21_0_NETSCAPE_SPKAC_it"] + pub static NETSCAPE_SPKAC_it: ASN1_ITEM; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_i2d_X509_REQ_bio"] - pub fn i2d_X509_REQ_bio(bp: *mut BIO, req: *mut X509_REQ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_0_21_0_NETSCAPE_SPKAC_new"] + pub fn NETSCAPE_SPKAC_new() -> *mut NETSCAPE_SPKAC; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_i2d_RSAPrivateKey_bio"] - pub fn i2d_RSAPrivateKey_bio(bp: *mut BIO, rsa: *mut RSA) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_0_21_0_NETSCAPE_SPKAC_free"] + pub fn NETSCAPE_SPKAC_free(spkac: *mut NETSCAPE_SPKAC); } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_i2d_RSAPublicKey_bio"] - pub fn i2d_RSAPublicKey_bio(bp: *mut BIO, rsa: *mut RSA) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_0_21_0_d2i_NETSCAPE_SPKAC"] + pub fn d2i_NETSCAPE_SPKAC( + out: *mut *mut NETSCAPE_SPKAC, + inp: *mut *const u8, + len: ::std::os::raw::c_long, + ) -> *mut NETSCAPE_SPKAC; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_i2d_RSA_PUBKEY_bio"] - pub fn i2d_RSA_PUBKEY_bio(bp: *mut BIO, rsa: *mut RSA) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_0_21_0_i2d_NETSCAPE_SPKAC"] + pub fn i2d_NETSCAPE_SPKAC( + spkac: *const NETSCAPE_SPKAC, + outp: *mut *mut u8, + ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_i2d_DSA_PUBKEY_bio"] - pub fn i2d_DSA_PUBKEY_bio(bp: *mut BIO, dsa: *mut DSA) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_0_21_0_NETSCAPE_SPKI_print"] + pub fn NETSCAPE_SPKI_print(out: *mut BIO, spki: *mut NETSCAPE_SPKI) -> ::std::os::raw::c_int; } -extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_i2d_DSAPrivateKey_bio"] - pub fn i2d_DSAPrivateKey_bio(bp: *mut BIO, dsa: *mut DSA) -> ::std::os::raw::c_int; +#[repr(C)] +#[derive(Debug, Copy, Clone, PartialEq, Eq)] +pub struct rsa_pss_params_st { + pub hashAlgorithm: *mut X509_ALGOR, + pub maskGenAlgorithm: *mut X509_ALGOR, + pub saltLength: *mut ASN1_INTEGER, + pub trailerField: *mut ASN1_INTEGER, + pub maskHash: *mut X509_ALGOR, } -extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_i2d_EC_PUBKEY_bio"] - pub fn i2d_EC_PUBKEY_bio(bp: *mut BIO, eckey: *mut EC_KEY) -> ::std::os::raw::c_int; -} -extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_i2d_ECPrivateKey_bio"] - pub fn i2d_ECPrivateKey_bio(bp: *mut BIO, eckey: *mut EC_KEY) -> ::std::os::raw::c_int; +#[test] +fn bindgen_test_layout_rsa_pss_params_st() { + const UNINIT: ::std::mem::MaybeUninit = ::std::mem::MaybeUninit::uninit(); + let ptr = UNINIT.as_ptr(); + assert_eq!( + ::std::mem::size_of::(), + 40usize, + concat!("Size of: ", stringify!(rsa_pss_params_st)) + ); + assert_eq!( + ::std::mem::align_of::(), + 8usize, + concat!("Alignment of ", stringify!(rsa_pss_params_st)) + ); + assert_eq!( + unsafe { ::std::ptr::addr_of!((*ptr).hashAlgorithm) as usize - ptr as usize }, + 0usize, + concat!( + "Offset of field: ", + stringify!(rsa_pss_params_st), + "::", + stringify!(hashAlgorithm) + ) + ); + assert_eq!( + unsafe { ::std::ptr::addr_of!((*ptr).maskGenAlgorithm) as usize - ptr as usize }, + 8usize, + concat!( + "Offset of field: ", + stringify!(rsa_pss_params_st), + "::", + stringify!(maskGenAlgorithm) + ) + ); + assert_eq!( + unsafe { ::std::ptr::addr_of!((*ptr).saltLength) as usize - ptr as usize }, + 16usize, + concat!( + "Offset of field: ", + stringify!(rsa_pss_params_st), + "::", + stringify!(saltLength) + ) + ); + assert_eq!( + unsafe { ::std::ptr::addr_of!((*ptr).trailerField) as usize - ptr as usize }, + 24usize, + concat!( + "Offset of field: ", + stringify!(rsa_pss_params_st), + "::", + stringify!(trailerField) + ) + ); + assert_eq!( + unsafe { ::std::ptr::addr_of!((*ptr).maskHash) as usize - ptr as usize }, + 32usize, + concat!( + "Offset of field: ", + stringify!(rsa_pss_params_st), + "::", + stringify!(maskHash) + ) + ); } -extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_i2d_PKCS8_bio"] - pub fn i2d_PKCS8_bio(bp: *mut BIO, p8: *mut X509_SIG) -> ::std::os::raw::c_int; +impl Default for rsa_pss_params_st { + fn default() -> Self { + let mut s = ::std::mem::MaybeUninit::::uninit(); + unsafe { + ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); + s.assume_init() + } + } } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_i2d_PKCS8_PRIV_KEY_INFO_bio"] - pub fn i2d_PKCS8_PRIV_KEY_INFO_bio( - bp: *mut BIO, - p8inf: *mut PKCS8_PRIV_KEY_INFO, - ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_0_21_0_RSA_PSS_PARAMS_it"] + pub static RSA_PSS_PARAMS_it: ASN1_ITEM; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_i2d_PrivateKey_bio"] - pub fn i2d_PrivateKey_bio(bp: *mut BIO, pkey: *mut EVP_PKEY) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_0_21_0_RSA_PSS_PARAMS_new"] + pub fn RSA_PSS_PARAMS_new() -> *mut RSA_PSS_PARAMS; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_i2d_PUBKEY_bio"] - pub fn i2d_PUBKEY_bio(bp: *mut BIO, pkey: *mut EVP_PKEY) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_0_21_0_RSA_PSS_PARAMS_free"] + pub fn RSA_PSS_PARAMS_free(params: *mut RSA_PSS_PARAMS); } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_i2d_DHparams_bio"] - pub fn i2d_DHparams_bio(bp: *mut BIO, dh: *const DH) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_0_21_0_d2i_RSA_PSS_PARAMS"] + pub fn d2i_RSA_PSS_PARAMS( + out: *mut *mut RSA_PSS_PARAMS, + inp: *mut *const u8, + len: ::std::os::raw::c_long, + ) -> *mut RSA_PSS_PARAMS; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_i2d_PKCS8PrivateKeyInfo_bio"] - pub fn i2d_PKCS8PrivateKeyInfo_bio(bp: *mut BIO, key: *mut EVP_PKEY) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_0_21_0_i2d_RSA_PSS_PARAMS"] + pub fn i2d_RSA_PSS_PARAMS( + in_: *const RSA_PSS_PARAMS, + outp: *mut *mut u8, + ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_d2i_X509_fp"] - pub fn d2i_X509_fp(fp: *mut FILE, x509: *mut *mut X509) -> *mut X509; + #[link_name = "\u{1}aws_lc_0_21_0_PKCS8_PRIV_KEY_INFO_it"] + pub static PKCS8_PRIV_KEY_INFO_it: ASN1_ITEM; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_d2i_X509_CRL_fp"] - pub fn d2i_X509_CRL_fp(fp: *mut FILE, crl: *mut *mut X509_CRL) -> *mut X509_CRL; + #[link_name = "\u{1}aws_lc_0_21_0_PKCS8_PRIV_KEY_INFO_new"] + pub fn PKCS8_PRIV_KEY_INFO_new() -> *mut PKCS8_PRIV_KEY_INFO; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_d2i_X509_REQ_fp"] - pub fn d2i_X509_REQ_fp(fp: *mut FILE, req: *mut *mut X509_REQ) -> *mut X509_REQ; + #[link_name = "\u{1}aws_lc_0_21_0_PKCS8_PRIV_KEY_INFO_free"] + pub fn PKCS8_PRIV_KEY_INFO_free(key: *mut PKCS8_PRIV_KEY_INFO); } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_d2i_RSAPrivateKey_fp"] - pub fn d2i_RSAPrivateKey_fp(fp: *mut FILE, rsa: *mut *mut RSA) -> *mut RSA; + #[link_name = "\u{1}aws_lc_0_21_0_d2i_PKCS8_PRIV_KEY_INFO"] + pub fn d2i_PKCS8_PRIV_KEY_INFO( + out: *mut *mut PKCS8_PRIV_KEY_INFO, + inp: *mut *const u8, + len: ::std::os::raw::c_long, + ) -> *mut PKCS8_PRIV_KEY_INFO; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_d2i_RSAPublicKey_fp"] - pub fn d2i_RSAPublicKey_fp(fp: *mut FILE, rsa: *mut *mut RSA) -> *mut RSA; + #[link_name = "\u{1}aws_lc_0_21_0_i2d_PKCS8_PRIV_KEY_INFO"] + pub fn i2d_PKCS8_PRIV_KEY_INFO( + key: *const PKCS8_PRIV_KEY_INFO, + outp: *mut *mut u8, + ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_d2i_RSA_PUBKEY_fp"] - pub fn d2i_RSA_PUBKEY_fp(fp: *mut FILE, rsa: *mut *mut RSA) -> *mut RSA; + #[link_name = "\u{1}aws_lc_0_21_0_EVP_PKCS82PKEY"] + pub fn EVP_PKCS82PKEY(p8: *const PKCS8_PRIV_KEY_INFO) -> *mut EVP_PKEY; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_d2i_DSA_PUBKEY_fp"] - pub fn d2i_DSA_PUBKEY_fp(fp: *mut FILE, dsa: *mut *mut DSA) -> *mut DSA; + #[link_name = "\u{1}aws_lc_0_21_0_EVP_PKEY2PKCS8"] + pub fn EVP_PKEY2PKCS8(pkey: *const EVP_PKEY) -> *mut PKCS8_PRIV_KEY_INFO; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_d2i_DSAPrivateKey_fp"] - pub fn d2i_DSAPrivateKey_fp(fp: *mut FILE, dsa: *mut *mut DSA) -> *mut DSA; + #[link_name = "\u{1}aws_lc_0_21_0_X509_SIG_it"] + pub static X509_SIG_it: ASN1_ITEM; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_d2i_EC_PUBKEY_fp"] - pub fn d2i_EC_PUBKEY_fp(fp: *mut FILE, eckey: *mut *mut EC_KEY) -> *mut EC_KEY; + #[link_name = "\u{1}aws_lc_0_21_0_X509_SIG_new"] + pub fn X509_SIG_new() -> *mut X509_SIG; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_d2i_ECPrivateKey_fp"] - pub fn d2i_ECPrivateKey_fp(fp: *mut FILE, eckey: *mut *mut EC_KEY) -> *mut EC_KEY; + #[link_name = "\u{1}aws_lc_0_21_0_X509_SIG_free"] + pub fn X509_SIG_free(key: *mut X509_SIG); } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_d2i_PKCS8_fp"] - pub fn d2i_PKCS8_fp(fp: *mut FILE, p8: *mut *mut X509_SIG) -> *mut X509_SIG; + #[link_name = "\u{1}aws_lc_0_21_0_d2i_X509_SIG"] + pub fn d2i_X509_SIG( + out: *mut *mut X509_SIG, + inp: *mut *const u8, + len: ::std::os::raw::c_long, + ) -> *mut X509_SIG; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_d2i_PKCS8_PRIV_KEY_INFO_fp"] - pub fn d2i_PKCS8_PRIV_KEY_INFO_fp( - fp: *mut FILE, - p8inf: *mut *mut PKCS8_PRIV_KEY_INFO, - ) -> *mut PKCS8_PRIV_KEY_INFO; + #[link_name = "\u{1}aws_lc_0_21_0_i2d_X509_SIG"] + pub fn i2d_X509_SIG(sig: *const X509_SIG, outp: *mut *mut u8) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_d2i_PrivateKey_fp"] - pub fn d2i_PrivateKey_fp(fp: *mut FILE, a: *mut *mut EVP_PKEY) -> *mut EVP_PKEY; + #[link_name = "\u{1}aws_lc_0_21_0_X509_SIG_get0"] + pub fn X509_SIG_get0( + sig: *const X509_SIG, + out_alg: *mut *const X509_ALGOR, + out_digest: *mut *const ASN1_OCTET_STRING, + ); } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_d2i_PUBKEY_fp"] - pub fn d2i_PUBKEY_fp(fp: *mut FILE, a: *mut *mut EVP_PKEY) -> *mut EVP_PKEY; + #[link_name = "\u{1}aws_lc_0_21_0_X509_SIG_getm"] + pub fn X509_SIG_getm( + sig: *mut X509_SIG, + out_alg: *mut *mut X509_ALGOR, + out_digest: *mut *mut ASN1_OCTET_STRING, + ); } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_i2d_X509_fp"] - pub fn i2d_X509_fp(fp: *mut FILE, x509: *mut X509) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_0_21_0_X509_print_ex"] + pub fn X509_print_ex( + bp: *mut BIO, + x: *mut X509, + nmflag: ::std::os::raw::c_ulong, + cflag: ::std::os::raw::c_ulong, + ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_i2d_X509_CRL_fp"] - pub fn i2d_X509_CRL_fp(fp: *mut FILE, crl: *mut X509_CRL) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_0_21_0_X509_print_ex_fp"] + pub fn X509_print_ex_fp( + fp: *mut FILE, + x: *mut X509, + nmflag: ::std::os::raw::c_ulong, + cflag: ::std::os::raw::c_ulong, + ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_i2d_X509_REQ_fp"] - pub fn i2d_X509_REQ_fp(fp: *mut FILE, req: *mut X509_REQ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_0_21_0_X509_print"] + pub fn X509_print(bp: *mut BIO, x: *mut X509) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_i2d_RSAPrivateKey_fp"] - pub fn i2d_RSAPrivateKey_fp(fp: *mut FILE, rsa: *mut RSA) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_0_21_0_X509_print_fp"] + pub fn X509_print_fp(fp: *mut FILE, x: *mut X509) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_i2d_RSAPublicKey_fp"] - pub fn i2d_RSAPublicKey_fp(fp: *mut FILE, rsa: *mut RSA) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_0_21_0_X509_CRL_print"] + pub fn X509_CRL_print(bp: *mut BIO, x: *mut X509_CRL) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_i2d_RSA_PUBKEY_fp"] - pub fn i2d_RSA_PUBKEY_fp(fp: *mut FILE, rsa: *mut RSA) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_0_21_0_X509_CRL_print_fp"] + pub fn X509_CRL_print_fp(fp: *mut FILE, x: *mut X509_CRL) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_i2d_DSA_PUBKEY_fp"] - pub fn i2d_DSA_PUBKEY_fp(fp: *mut FILE, dsa: *mut DSA) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_0_21_0_X509_REQ_print_ex"] + pub fn X509_REQ_print_ex( + bp: *mut BIO, + x: *mut X509_REQ, + nmflag: ::std::os::raw::c_ulong, + cflag: ::std::os::raw::c_ulong, + ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_i2d_DSAPrivateKey_fp"] - pub fn i2d_DSAPrivateKey_fp(fp: *mut FILE, dsa: *mut DSA) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_0_21_0_X509_REQ_print"] + pub fn X509_REQ_print(bp: *mut BIO, req: *mut X509_REQ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_i2d_EC_PUBKEY_fp"] - pub fn i2d_EC_PUBKEY_fp(fp: *mut FILE, eckey: *mut EC_KEY) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_0_21_0_X509_REQ_print_fp"] + pub fn X509_REQ_print_fp(fp: *mut FILE, req: *mut X509_REQ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_i2d_ECPrivateKey_fp"] - pub fn i2d_ECPrivateKey_fp(fp: *mut FILE, eckey: *mut EC_KEY) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_0_21_0_X509_NAME_print_ex"] + pub fn X509_NAME_print_ex( + out: *mut BIO, + nm: *const X509_NAME, + indent: ::std::os::raw::c_int, + flags: ::std::os::raw::c_ulong, + ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_i2d_PKCS8_fp"] - pub fn i2d_PKCS8_fp(fp: *mut FILE, p8: *mut X509_SIG) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_0_21_0_X509_NAME_print"] + pub fn X509_NAME_print( + bp: *mut BIO, + name: *const X509_NAME, + obase: ::std::os::raw::c_int, + ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_i2d_PKCS8_PRIV_KEY_INFO_fp"] - pub fn i2d_PKCS8_PRIV_KEY_INFO_fp( + #[link_name = "\u{1}aws_lc_0_21_0_X509_NAME_oneline"] + pub fn X509_NAME_oneline( + name: *const X509_NAME, + buf: *mut ::std::os::raw::c_char, + size: ::std::os::raw::c_int, + ) -> *mut ::std::os::raw::c_char; +} +extern "C" { + #[link_name = "\u{1}aws_lc_0_21_0_X509_NAME_print_ex_fp"] + pub fn X509_NAME_print_ex_fp( fp: *mut FILE, - p8inf: *mut PKCS8_PRIV_KEY_INFO, + nm: *const X509_NAME, + indent: ::std::os::raw::c_int, + flags: ::std::os::raw::c_ulong, ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_i2d_PKCS8PrivateKeyInfo_fp"] - pub fn i2d_PKCS8PrivateKeyInfo_fp(fp: *mut FILE, key: *mut EVP_PKEY) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_0_21_0_X509_signature_dump"] + pub fn X509_signature_dump( + bio: *mut BIO, + sig: *const ASN1_STRING, + indent: ::std::os::raw::c_int, + ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_i2d_PrivateKey_fp"] - pub fn i2d_PrivateKey_fp(fp: *mut FILE, pkey: *mut EVP_PKEY) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_0_21_0_X509_signature_print"] + pub fn X509_signature_print( + bio: *mut BIO, + alg: *const X509_ALGOR, + sig: *const ASN1_STRING, + ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_i2d_PUBKEY_fp"] - pub fn i2d_PUBKEY_fp(fp: *mut FILE, pkey: *mut EVP_PKEY) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_0_21_0_X509V3_EXT_print"] + pub fn X509V3_EXT_print( + out: *mut BIO, + ext: *const X509_EXTENSION, + flag: ::std::os::raw::c_ulong, + indent: ::std::os::raw::c_int, + ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_X509_find_by_issuer_and_serial"] - pub fn X509_find_by_issuer_and_serial( - sk: *const stack_st_X509, - name: *mut X509_NAME, - serial: *const ASN1_INTEGER, - ) -> *mut X509; + #[link_name = "\u{1}aws_lc_0_21_0_X509V3_EXT_print_fp"] + pub fn X509V3_EXT_print_fp( + out: *mut FILE, + ext: *const X509_EXTENSION, + flag: ::std::os::raw::c_int, + indent: ::std::os::raw::c_int, + ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_X509_find_by_subject"] - pub fn X509_find_by_subject(sk: *const stack_st_X509, name: *mut X509_NAME) -> *mut X509; + #[link_name = "\u{1}aws_lc_0_21_0_X509V3_extensions_print"] + pub fn X509V3_extensions_print( + out: *mut BIO, + title: *const ::std::os::raw::c_char, + exts: *const stack_st_X509_EXTENSION, + flag: ::std::os::raw::c_ulong, + indent: ::std::os::raw::c_int, + ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_X509_cmp_time"] - pub fn X509_cmp_time(s: *const ASN1_TIME, t: *const time_t) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_0_21_0_GENERAL_NAME_print"] + pub fn GENERAL_NAME_print(out: *mut BIO, gen: *const GENERAL_NAME) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_X509_cmp_time_posix"] - pub fn X509_cmp_time_posix(s: *const ASN1_TIME, t: i64) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_0_21_0_X509_pubkey_digest"] + pub fn X509_pubkey_digest( + x509: *const X509, + md: *const EVP_MD, + out: *mut u8, + out_len: *mut ::std::os::raw::c_uint, + ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_X509_cmp_current_time"] - pub fn X509_cmp_current_time(s: *const ASN1_TIME) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_0_21_0_X509_digest"] + pub fn X509_digest( + x509: *const X509, + md: *const EVP_MD, + out: *mut u8, + out_len: *mut ::std::os::raw::c_uint, + ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_X509_time_adj"] - pub fn X509_time_adj( - s: *mut ASN1_TIME, - offset_sec: ::std::os::raw::c_long, - t: *const time_t, - ) -> *mut ASN1_TIME; + #[link_name = "\u{1}aws_lc_0_21_0_X509_CRL_digest"] + pub fn X509_CRL_digest( + crl: *const X509_CRL, + md: *const EVP_MD, + out: *mut u8, + out_len: *mut ::std::os::raw::c_uint, + ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_X509_time_adj_ex"] - pub fn X509_time_adj_ex( - s: *mut ASN1_TIME, - offset_day: ::std::os::raw::c_int, - offset_sec: ::std::os::raw::c_long, - t: *const time_t, - ) -> *mut ASN1_TIME; + #[link_name = "\u{1}aws_lc_0_21_0_X509_REQ_digest"] + pub fn X509_REQ_digest( + req: *const X509_REQ, + md: *const EVP_MD, + out: *mut u8, + out_len: *mut ::std::os::raw::c_uint, + ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_X509_gmtime_adj"] - pub fn X509_gmtime_adj(s: *mut ASN1_TIME, offset_sec: ::std::os::raw::c_long) - -> *mut ASN1_TIME; + #[link_name = "\u{1}aws_lc_0_21_0_X509_NAME_digest"] + pub fn X509_NAME_digest( + name: *const X509_NAME, + md: *const EVP_MD, + out: *mut u8, + out_len: *mut ::std::os::raw::c_uint, + ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_X509_issuer_name_cmp"] - pub fn X509_issuer_name_cmp(a: *const X509, b: *const X509) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_0_21_0_d2i_X509_bio"] + pub fn d2i_X509_bio(bp: *mut BIO, x509: *mut *mut X509) -> *mut X509; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_X509_subject_name_cmp"] - pub fn X509_subject_name_cmp(a: *const X509, b: *const X509) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_0_21_0_d2i_X509_CRL_bio"] + pub fn d2i_X509_CRL_bio(bp: *mut BIO, crl: *mut *mut X509_CRL) -> *mut X509_CRL; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_X509_CRL_cmp"] - pub fn X509_CRL_cmp(a: *const X509_CRL, b: *const X509_CRL) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_0_21_0_d2i_X509_REQ_bio"] + pub fn d2i_X509_REQ_bio(bp: *mut BIO, req: *mut *mut X509_REQ) -> *mut X509_REQ; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_X509_issuer_name_hash"] - pub fn X509_issuer_name_hash(x509: *mut X509) -> u32; + #[link_name = "\u{1}aws_lc_0_21_0_d2i_RSAPrivateKey_bio"] + pub fn d2i_RSAPrivateKey_bio(bp: *mut BIO, rsa: *mut *mut RSA) -> *mut RSA; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_X509_subject_name_hash"] - pub fn X509_subject_name_hash(x509: *mut X509) -> u32; + #[link_name = "\u{1}aws_lc_0_21_0_d2i_RSAPublicKey_bio"] + pub fn d2i_RSAPublicKey_bio(bp: *mut BIO, rsa: *mut *mut RSA) -> *mut RSA; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_X509_issuer_name_hash_old"] - pub fn X509_issuer_name_hash_old(x509: *mut X509) -> u32; + #[link_name = "\u{1}aws_lc_0_21_0_d2i_RSA_PUBKEY_bio"] + pub fn d2i_RSA_PUBKEY_bio(bp: *mut BIO, rsa: *mut *mut RSA) -> *mut RSA; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_X509_subject_name_hash_old"] - pub fn X509_subject_name_hash_old(x509: *mut X509) -> u32; + #[link_name = "\u{1}aws_lc_0_21_0_d2i_DSA_PUBKEY_bio"] + pub fn d2i_DSA_PUBKEY_bio(bp: *mut BIO, dsa: *mut *mut DSA) -> *mut DSA; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_X509_get_ex_new_index"] - pub fn X509_get_ex_new_index( - argl: ::std::os::raw::c_long, - argp: *mut ::std::os::raw::c_void, - unused: *mut CRYPTO_EX_unused, - dup_unused: CRYPTO_EX_dup, - free_func: CRYPTO_EX_free, - ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_0_21_0_d2i_DSAPrivateKey_bio"] + pub fn d2i_DSAPrivateKey_bio(bp: *mut BIO, dsa: *mut *mut DSA) -> *mut DSA; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_X509_set_ex_data"] - pub fn X509_set_ex_data( - r: *mut X509, - idx: ::std::os::raw::c_int, - arg: *mut ::std::os::raw::c_void, - ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_0_21_0_d2i_EC_PUBKEY_bio"] + pub fn d2i_EC_PUBKEY_bio(bp: *mut BIO, eckey: *mut *mut EC_KEY) -> *mut EC_KEY; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_X509_get_ex_data"] - pub fn X509_get_ex_data( - r: *mut X509, - idx: ::std::os::raw::c_int, - ) -> *mut ::std::os::raw::c_void; + #[link_name = "\u{1}aws_lc_0_21_0_d2i_ECPrivateKey_bio"] + pub fn d2i_ECPrivateKey_bio(bp: *mut BIO, eckey: *mut *mut EC_KEY) -> *mut EC_KEY; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_X509_STORE_CTX_get_ex_new_index"] - pub fn X509_STORE_CTX_get_ex_new_index( - argl: ::std::os::raw::c_long, - argp: *mut ::std::os::raw::c_void, - unused: *mut CRYPTO_EX_unused, - dup_unused: CRYPTO_EX_dup, - free_func: CRYPTO_EX_free, - ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_0_21_0_d2i_PKCS8_bio"] + pub fn d2i_PKCS8_bio(bp: *mut BIO, p8: *mut *mut X509_SIG) -> *mut X509_SIG; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_X509_STORE_CTX_set_ex_data"] - pub fn X509_STORE_CTX_set_ex_data( - ctx: *mut X509_STORE_CTX, - idx: ::std::os::raw::c_int, - data: *mut ::std::os::raw::c_void, - ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_0_21_0_d2i_PKCS8_PRIV_KEY_INFO_bio"] + pub fn d2i_PKCS8_PRIV_KEY_INFO_bio( + bp: *mut BIO, + p8inf: *mut *mut PKCS8_PRIV_KEY_INFO, + ) -> *mut PKCS8_PRIV_KEY_INFO; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_X509_STORE_CTX_get_ex_data"] - pub fn X509_STORE_CTX_get_ex_data( - ctx: *mut X509_STORE_CTX, - idx: ::std::os::raw::c_int, - ) -> *mut ::std::os::raw::c_void; + #[link_name = "\u{1}aws_lc_0_21_0_d2i_PUBKEY_bio"] + pub fn d2i_PUBKEY_bio(bp: *mut BIO, a: *mut *mut EVP_PKEY) -> *mut EVP_PKEY; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_X509_STORE_get_ex_new_index"] - pub fn X509_STORE_get_ex_new_index( - argl: ::std::os::raw::c_long, - argp: *mut ::std::os::raw::c_void, - unused: *mut CRYPTO_EX_unused, - dup_unused: CRYPTO_EX_dup, - free_func: CRYPTO_EX_free, - ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_0_21_0_d2i_DHparams_bio"] + pub fn d2i_DHparams_bio(bp: *mut BIO, dh: *mut *mut DH) -> *mut DH; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_X509_STORE_set_ex_data"] - pub fn X509_STORE_set_ex_data( - ctx: *mut X509_STORE, - idx: ::std::os::raw::c_int, - data: *mut ::std::os::raw::c_void, - ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_0_21_0_d2i_PrivateKey_bio"] + pub fn d2i_PrivateKey_bio(bp: *mut BIO, a: *mut *mut EVP_PKEY) -> *mut EVP_PKEY; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_X509_STORE_get_ex_data"] - pub fn X509_STORE_get_ex_data( - ctx: *mut X509_STORE, - idx: ::std::os::raw::c_int, - ) -> *mut ::std::os::raw::c_void; + #[link_name = "\u{1}aws_lc_0_21_0_i2d_X509_bio"] + pub fn i2d_X509_bio(bp: *mut BIO, x509: *mut X509) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_ASN1_digest"] - pub fn ASN1_digest( - i2d: i2d_of_void, - type_: *const EVP_MD, - data: *mut ::std::os::raw::c_char, - md: *mut ::std::os::raw::c_uchar, - len: *mut ::std::os::raw::c_uint, - ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_0_21_0_i2d_X509_CRL_bio"] + pub fn i2d_X509_CRL_bio(bp: *mut BIO, crl: *mut X509_CRL) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_ASN1_item_digest"] - pub fn ASN1_item_digest( - it: *const ASN1_ITEM, - type_: *const EVP_MD, - data: *mut ::std::os::raw::c_void, - md: *mut ::std::os::raw::c_uchar, - len: *mut ::std::os::raw::c_uint, - ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_0_21_0_i2d_X509_REQ_bio"] + pub fn i2d_X509_REQ_bio(bp: *mut BIO, req: *mut X509_REQ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_ASN1_item_verify"] - pub fn ASN1_item_verify( - it: *const ASN1_ITEM, - algor1: *const X509_ALGOR, - signature: *const ASN1_BIT_STRING, - data: *mut ::std::os::raw::c_void, - pkey: *mut EVP_PKEY, - ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_0_21_0_i2d_RSAPrivateKey_bio"] + pub fn i2d_RSAPrivateKey_bio(bp: *mut BIO, rsa: *mut RSA) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_ASN1_item_sign"] - pub fn ASN1_item_sign( - it: *const ASN1_ITEM, - algor1: *mut X509_ALGOR, - algor2: *mut X509_ALGOR, - signature: *mut ASN1_BIT_STRING, - data: *mut ::std::os::raw::c_void, - pkey: *mut EVP_PKEY, - type_: *const EVP_MD, - ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_0_21_0_i2d_RSAPublicKey_bio"] + pub fn i2d_RSAPublicKey_bio(bp: *mut BIO, rsa: *mut RSA) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_ASN1_item_sign_ctx"] - pub fn ASN1_item_sign_ctx( - it: *const ASN1_ITEM, - algor1: *mut X509_ALGOR, - algor2: *mut X509_ALGOR, - signature: *mut ASN1_BIT_STRING, - asn: *mut ::std::os::raw::c_void, - ctx: *mut EVP_MD_CTX, - ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_0_21_0_i2d_RSA_PUBKEY_bio"] + pub fn i2d_RSA_PUBKEY_bio(bp: *mut BIO, rsa: *mut RSA) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_X509_supported_extension"] - pub fn X509_supported_extension(ex: *const X509_EXTENSION) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_0_21_0_i2d_DSA_PUBKEY_bio"] + pub fn i2d_DSA_PUBKEY_bio(bp: *mut BIO, dsa: *mut DSA) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_X509_check_ca"] - pub fn X509_check_ca(x509: *mut X509) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_0_21_0_i2d_DSAPrivateKey_bio"] + pub fn i2d_DSAPrivateKey_bio(bp: *mut BIO, dsa: *mut DSA) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_X509_check_issued"] - pub fn X509_check_issued(issuer: *mut X509, subject: *mut X509) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_0_21_0_i2d_EC_PUBKEY_bio"] + pub fn i2d_EC_PUBKEY_bio(bp: *mut BIO, eckey: *mut EC_KEY) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_NAME_CONSTRAINTS_check"] - pub fn NAME_CONSTRAINTS_check( - x509: *mut X509, - nc: *mut NAME_CONSTRAINTS, - ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_0_21_0_i2d_ECPrivateKey_bio"] + pub fn i2d_ECPrivateKey_bio(bp: *mut BIO, eckey: *mut EC_KEY) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_X509_check_host"] - pub fn X509_check_host( - x509: *const X509, - chk: *const ::std::os::raw::c_char, - chklen: usize, - flags: ::std::os::raw::c_uint, - out_peername: *mut *mut ::std::os::raw::c_char, - ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_0_21_0_i2d_PKCS8_bio"] + pub fn i2d_PKCS8_bio(bp: *mut BIO, p8: *mut X509_SIG) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_X509_check_email"] - pub fn X509_check_email( - x509: *const X509, - chk: *const ::std::os::raw::c_char, - chklen: usize, - flags: ::std::os::raw::c_uint, + #[link_name = "\u{1}aws_lc_0_21_0_i2d_PKCS8_PRIV_KEY_INFO_bio"] + pub fn i2d_PKCS8_PRIV_KEY_INFO_bio( + bp: *mut BIO, + p8inf: *mut PKCS8_PRIV_KEY_INFO, ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_X509_check_ip"] - pub fn X509_check_ip( - x509: *const X509, - chk: *const u8, - chklen: usize, - flags: ::std::os::raw::c_uint, - ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_0_21_0_i2d_PrivateKey_bio"] + pub fn i2d_PrivateKey_bio(bp: *mut BIO, pkey: *mut EVP_PKEY) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_X509_check_ip_asc"] - pub fn X509_check_ip_asc( - x509: *const X509, - ipasc: *const ::std::os::raw::c_char, - flags: ::std::os::raw::c_uint, - ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_0_21_0_i2d_PUBKEY_bio"] + pub fn i2d_PUBKEY_bio(bp: *mut BIO, pkey: *mut EVP_PKEY) -> ::std::os::raw::c_int; } -#[repr(C)] -#[derive(Debug, Copy, Clone, PartialEq, Eq)] -pub struct private_key_st { - pub dec_pkey: *mut EVP_PKEY, +extern "C" { + #[link_name = "\u{1}aws_lc_0_21_0_i2d_DHparams_bio"] + pub fn i2d_DHparams_bio(bp: *mut BIO, dh: *const DH) -> ::std::os::raw::c_int; } -#[test] -fn bindgen_test_layout_private_key_st() { - const UNINIT: ::std::mem::MaybeUninit = ::std::mem::MaybeUninit::uninit(); - let ptr = UNINIT.as_ptr(); - assert_eq!( - ::std::mem::size_of::(), - 8usize, - concat!("Size of: ", stringify!(private_key_st)) - ); - assert_eq!( - ::std::mem::align_of::(), - 8usize, - concat!("Alignment of ", stringify!(private_key_st)) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).dec_pkey) as usize - ptr as usize }, - 0usize, - concat!( - "Offset of field: ", - stringify!(private_key_st), - "::", - stringify!(dec_pkey) - ) - ); +extern "C" { + #[link_name = "\u{1}aws_lc_0_21_0_i2d_PKCS8PrivateKeyInfo_bio"] + pub fn i2d_PKCS8PrivateKeyInfo_bio(bp: *mut BIO, key: *mut EVP_PKEY) -> ::std::os::raw::c_int; } -impl Default for private_key_st { - fn default() -> Self { - let mut s = ::std::mem::MaybeUninit::::uninit(); - unsafe { - ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() - } - } +extern "C" { + #[link_name = "\u{1}aws_lc_0_21_0_d2i_X509_fp"] + pub fn d2i_X509_fp(fp: *mut FILE, x509: *mut *mut X509) -> *mut X509; } -#[repr(C)] -#[derive(Debug, Copy, Clone, PartialEq, Eq)] -pub struct X509_info_st { - pub x509: *mut X509, - pub crl: *mut X509_CRL, - pub x_pkey: *mut X509_PKEY, - pub enc_cipher: EVP_CIPHER_INFO, - pub enc_len: ::std::os::raw::c_int, - pub enc_data: *mut ::std::os::raw::c_char, +extern "C" { + #[link_name = "\u{1}aws_lc_0_21_0_d2i_X509_CRL_fp"] + pub fn d2i_X509_CRL_fp(fp: *mut FILE, crl: *mut *mut X509_CRL) -> *mut X509_CRL; } -#[test] -fn bindgen_test_layout_X509_info_st() { - const UNINIT: ::std::mem::MaybeUninit = ::std::mem::MaybeUninit::uninit(); - let ptr = UNINIT.as_ptr(); - assert_eq!( - ::std::mem::size_of::(), - 64usize, - concat!("Size of: ", stringify!(X509_info_st)) - ); - assert_eq!( - ::std::mem::align_of::(), - 8usize, - concat!("Alignment of ", stringify!(X509_info_st)) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).x509) as usize - ptr as usize }, - 0usize, - concat!( - "Offset of field: ", - stringify!(X509_info_st), - "::", - stringify!(x509) - ) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).crl) as usize - ptr as usize }, - 8usize, - concat!( - "Offset of field: ", - stringify!(X509_info_st), - "::", - stringify!(crl) - ) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).x_pkey) as usize - ptr as usize }, - 16usize, - concat!( - "Offset of field: ", - stringify!(X509_info_st), - "::", - stringify!(x_pkey) - ) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).enc_cipher) as usize - ptr as usize }, - 24usize, - concat!( - "Offset of field: ", - stringify!(X509_info_st), - "::", - stringify!(enc_cipher) - ) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).enc_len) as usize - ptr as usize }, - 48usize, - concat!( - "Offset of field: ", - stringify!(X509_info_st), - "::", - stringify!(enc_len) - ) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).enc_data) as usize - ptr as usize }, - 56usize, - concat!( - "Offset of field: ", - stringify!(X509_info_st), - "::", - stringify!(enc_data) - ) - ); +extern "C" { + #[link_name = "\u{1}aws_lc_0_21_0_d2i_X509_REQ_fp"] + pub fn d2i_X509_REQ_fp(fp: *mut FILE, req: *mut *mut X509_REQ) -> *mut X509_REQ; } -impl Default for X509_info_st { - fn default() -> Self { - let mut s = ::std::mem::MaybeUninit::::uninit(); - unsafe { - ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() - } - } +extern "C" { + #[link_name = "\u{1}aws_lc_0_21_0_d2i_RSAPrivateKey_fp"] + pub fn d2i_RSAPrivateKey_fp(fp: *mut FILE, rsa: *mut *mut RSA) -> *mut RSA; } -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct stack_st_X509_INFO { - _unused: [u8; 0], +extern "C" { + #[link_name = "\u{1}aws_lc_0_21_0_d2i_RSAPublicKey_fp"] + pub fn d2i_RSAPublicKey_fp(fp: *mut FILE, rsa: *mut *mut RSA) -> *mut RSA; } -pub type sk_X509_INFO_free_func = ::std::option::Option; -pub type sk_X509_INFO_copy_func = - ::std::option::Option *mut X509_INFO>; -pub type sk_X509_INFO_cmp_func = ::std::option::Option< - unsafe extern "C" fn( - arg1: *const *const X509_INFO, - arg2: *const *const X509_INFO, - ) -> ::std::os::raw::c_int, ->; -pub type sk_X509_INFO_delete_if_func = ::std::option::Option< - unsafe extern "C" fn( - arg1: *mut X509_INFO, - arg2: *mut ::std::os::raw::c_void, - ) -> ::std::os::raw::c_int, ->; extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_X509_INFO_free"] - pub fn X509_INFO_free(info: *mut X509_INFO); -} -#[repr(C)] -#[derive(Debug, Copy, Clone, PartialEq, Eq)] -pub struct v3_ext_ctx { - pub flags: ::std::os::raw::c_int, - pub issuer_cert: *const X509, - pub subject_cert: *const X509, - pub subject_req: *const X509_REQ, - pub crl: *const X509_CRL, - pub db: *const CONF, -} -#[test] -fn bindgen_test_layout_v3_ext_ctx() { - const UNINIT: ::std::mem::MaybeUninit = ::std::mem::MaybeUninit::uninit(); - let ptr = UNINIT.as_ptr(); - assert_eq!( - ::std::mem::size_of::(), - 48usize, - concat!("Size of: ", stringify!(v3_ext_ctx)) - ); - assert_eq!( - ::std::mem::align_of::(), - 8usize, - concat!("Alignment of ", stringify!(v3_ext_ctx)) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).flags) as usize - ptr as usize }, - 0usize, - concat!( - "Offset of field: ", - stringify!(v3_ext_ctx), - "::", - stringify!(flags) - ) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).issuer_cert) as usize - ptr as usize }, - 8usize, - concat!( - "Offset of field: ", - stringify!(v3_ext_ctx), - "::", - stringify!(issuer_cert) - ) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).subject_cert) as usize - ptr as usize }, - 16usize, - concat!( - "Offset of field: ", - stringify!(v3_ext_ctx), - "::", - stringify!(subject_cert) - ) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).subject_req) as usize - ptr as usize }, - 24usize, - concat!( - "Offset of field: ", - stringify!(v3_ext_ctx), - "::", - stringify!(subject_req) - ) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).crl) as usize - ptr as usize }, - 32usize, - concat!( - "Offset of field: ", - stringify!(v3_ext_ctx), - "::", - stringify!(crl) - ) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).db) as usize - ptr as usize }, - 40usize, - concat!( - "Offset of field: ", - stringify!(v3_ext_ctx), - "::", - stringify!(db) - ) - ); -} -impl Default for v3_ext_ctx { - fn default() -> Self { - let mut s = ::std::mem::MaybeUninit::::uninit(); - unsafe { - ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() - } - } + #[link_name = "\u{1}aws_lc_0_21_0_d2i_RSA_PUBKEY_fp"] + pub fn d2i_RSA_PUBKEY_fp(fp: *mut FILE, rsa: *mut *mut RSA) -> *mut RSA; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_X509V3_set_ctx"] - pub fn X509V3_set_ctx( - ctx: *mut X509V3_CTX, - issuer: *const X509, - subject: *const X509, - req: *const X509_REQ, - crl: *const X509_CRL, - flags: ::std::os::raw::c_int, - ); + #[link_name = "\u{1}aws_lc_0_21_0_d2i_DSA_PUBKEY_fp"] + pub fn d2i_DSA_PUBKEY_fp(fp: *mut FILE, dsa: *mut *mut DSA) -> *mut DSA; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_X509V3_set_nconf"] - pub fn X509V3_set_nconf(ctx: *mut X509V3_CTX, conf: *const CONF); + #[link_name = "\u{1}aws_lc_0_21_0_d2i_DSAPrivateKey_fp"] + pub fn d2i_DSAPrivateKey_fp(fp: *mut FILE, dsa: *mut *mut DSA) -> *mut DSA; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_X509V3_EXT_nconf"] - pub fn X509V3_EXT_nconf( - conf: *const CONF, - ctx: *const X509V3_CTX, - name: *const ::std::os::raw::c_char, - value: *const ::std::os::raw::c_char, - ) -> *mut X509_EXTENSION; + #[link_name = "\u{1}aws_lc_0_21_0_d2i_EC_PUBKEY_fp"] + pub fn d2i_EC_PUBKEY_fp(fp: *mut FILE, eckey: *mut *mut EC_KEY) -> *mut EC_KEY; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_X509V3_EXT_nconf_nid"] - pub fn X509V3_EXT_nconf_nid( - conf: *const CONF, - ctx: *const X509V3_CTX, - ext_nid: ::std::os::raw::c_int, - value: *const ::std::os::raw::c_char, - ) -> *mut X509_EXTENSION; + #[link_name = "\u{1}aws_lc_0_21_0_d2i_ECPrivateKey_fp"] + pub fn d2i_ECPrivateKey_fp(fp: *mut FILE, eckey: *mut *mut EC_KEY) -> *mut EC_KEY; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_X509V3_EXT_conf_nid"] - pub fn X509V3_EXT_conf_nid( - conf: *mut lhash_st_CONF_VALUE, - ctx: *const X509V3_CTX, - ext_nid: ::std::os::raw::c_int, - value: *const ::std::os::raw::c_char, - ) -> *mut X509_EXTENSION; + #[link_name = "\u{1}aws_lc_0_21_0_d2i_PKCS8_fp"] + pub fn d2i_PKCS8_fp(fp: *mut FILE, p8: *mut *mut X509_SIG) -> *mut X509_SIG; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_X509V3_EXT_add_nconf_sk"] - pub fn X509V3_EXT_add_nconf_sk( - conf: *const CONF, - ctx: *const X509V3_CTX, - section: *const ::std::os::raw::c_char, - sk: *mut *mut stack_st_X509_EXTENSION, - ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_0_21_0_d2i_PKCS8_PRIV_KEY_INFO_fp"] + pub fn d2i_PKCS8_PRIV_KEY_INFO_fp( + fp: *mut FILE, + p8inf: *mut *mut PKCS8_PRIV_KEY_INFO, + ) -> *mut PKCS8_PRIV_KEY_INFO; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_X509V3_EXT_add_nconf"] - pub fn X509V3_EXT_add_nconf( - conf: *const CONF, - ctx: *const X509V3_CTX, - section: *const ::std::os::raw::c_char, - cert: *mut X509, - ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_0_21_0_d2i_PrivateKey_fp"] + pub fn d2i_PrivateKey_fp(fp: *mut FILE, a: *mut *mut EVP_PKEY) -> *mut EVP_PKEY; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_X509V3_EXT_REQ_add_nconf"] - pub fn X509V3_EXT_REQ_add_nconf( - conf: *const CONF, - ctx: *const X509V3_CTX, - section: *const ::std::os::raw::c_char, - req: *mut X509_REQ, - ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_0_21_0_d2i_PUBKEY_fp"] + pub fn d2i_PUBKEY_fp(fp: *mut FILE, a: *mut *mut EVP_PKEY) -> *mut EVP_PKEY; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_X509V3_EXT_CRL_add_nconf"] - pub fn X509V3_EXT_CRL_add_nconf( - conf: *const CONF, - ctx: *const X509V3_CTX, - section: *const ::std::os::raw::c_char, - crl: *mut X509_CRL, - ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_0_21_0_i2d_X509_fp"] + pub fn i2d_X509_fp(fp: *mut FILE, x509: *mut X509) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_X509V3_EXT_conf"] - pub fn X509V3_EXT_conf( - conf: *mut lhash_st_CONF_VALUE, - ctx: *mut X509V3_CTX, - name: *const ::std::os::raw::c_char, - value: *const ::std::os::raw::c_char, - ) -> *mut X509_EXTENSION; + #[link_name = "\u{1}aws_lc_0_21_0_i2d_X509_CRL_fp"] + pub fn i2d_X509_CRL_fp(fp: *mut FILE, crl: *mut X509_CRL) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_i2s_ASN1_OCTET_STRING"] - pub fn i2s_ASN1_OCTET_STRING( - method: *const X509V3_EXT_METHOD, - oct: *const ASN1_OCTET_STRING, - ) -> *mut ::std::os::raw::c_char; + #[link_name = "\u{1}aws_lc_0_21_0_i2d_X509_REQ_fp"] + pub fn i2d_X509_REQ_fp(fp: *mut FILE, req: *mut X509_REQ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_s2i_ASN1_OCTET_STRING"] - pub fn s2i_ASN1_OCTET_STRING( - method: *const X509V3_EXT_METHOD, - ctx: *const X509V3_CTX, - str_: *const ::std::os::raw::c_char, - ) -> *mut ASN1_OCTET_STRING; + #[link_name = "\u{1}aws_lc_0_21_0_i2d_RSAPrivateKey_fp"] + pub fn i2d_RSAPrivateKey_fp(fp: *mut FILE, rsa: *mut RSA) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_i2s_ASN1_INTEGER"] - pub fn i2s_ASN1_INTEGER( - method: *const X509V3_EXT_METHOD, - aint: *const ASN1_INTEGER, - ) -> *mut ::std::os::raw::c_char; + #[link_name = "\u{1}aws_lc_0_21_0_i2d_RSAPublicKey_fp"] + pub fn i2d_RSAPublicKey_fp(fp: *mut FILE, rsa: *mut RSA) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_s2i_ASN1_INTEGER"] - pub fn s2i_ASN1_INTEGER( - method: *const X509V3_EXT_METHOD, - value: *const ::std::os::raw::c_char, - ) -> *mut ASN1_INTEGER; + #[link_name = "\u{1}aws_lc_0_21_0_i2d_RSA_PUBKEY_fp"] + pub fn i2d_RSA_PUBKEY_fp(fp: *mut FILE, rsa: *mut RSA) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_i2s_ASN1_ENUMERATED"] - pub fn i2s_ASN1_ENUMERATED( - method: *const X509V3_EXT_METHOD, - aint: *const ASN1_ENUMERATED, - ) -> *mut ::std::os::raw::c_char; + #[link_name = "\u{1}aws_lc_0_21_0_i2d_DSA_PUBKEY_fp"] + pub fn i2d_DSA_PUBKEY_fp(fp: *mut FILE, dsa: *mut DSA) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_X509V3_conf_free"] - pub fn X509V3_conf_free(val: *mut CONF_VALUE); + #[link_name = "\u{1}aws_lc_0_21_0_i2d_DSAPrivateKey_fp"] + pub fn i2d_DSAPrivateKey_fp(fp: *mut FILE, dsa: *mut DSA) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_i2v_GENERAL_NAME"] - pub fn i2v_GENERAL_NAME( - method: *const X509V3_EXT_METHOD, - gen: *const GENERAL_NAME, - ret: *mut stack_st_CONF_VALUE, - ) -> *mut stack_st_CONF_VALUE; + #[link_name = "\u{1}aws_lc_0_21_0_i2d_EC_PUBKEY_fp"] + pub fn i2d_EC_PUBKEY_fp(fp: *mut FILE, eckey: *mut EC_KEY) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_i2v_GENERAL_NAMES"] - pub fn i2v_GENERAL_NAMES( - method: *const X509V3_EXT_METHOD, - gen: *const GENERAL_NAMES, - extlist: *mut stack_st_CONF_VALUE, - ) -> *mut stack_st_CONF_VALUE; + #[link_name = "\u{1}aws_lc_0_21_0_i2d_ECPrivateKey_fp"] + pub fn i2d_ECPrivateKey_fp(fp: *mut FILE, eckey: *mut EC_KEY) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_a2i_IPADDRESS"] - pub fn a2i_IPADDRESS(ipasc: *const ::std::os::raw::c_char) -> *mut ASN1_OCTET_STRING; + #[link_name = "\u{1}aws_lc_0_21_0_i2d_PKCS8_fp"] + pub fn i2d_PKCS8_fp(fp: *mut FILE, p8: *mut X509_SIG) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_a2i_IPADDRESS_NC"] - pub fn a2i_IPADDRESS_NC(ipasc: *const ::std::os::raw::c_char) -> *mut ASN1_OCTET_STRING; + #[link_name = "\u{1}aws_lc_0_21_0_i2d_PKCS8_PRIV_KEY_INFO_fp"] + pub fn i2d_PKCS8_PRIV_KEY_INFO_fp( + fp: *mut FILE, + p8inf: *mut PKCS8_PRIV_KEY_INFO, + ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_X509_get_notBefore"] - pub fn X509_get_notBefore(x509: *const X509) -> *mut ASN1_TIME; + #[link_name = "\u{1}aws_lc_0_21_0_i2d_PKCS8PrivateKeyInfo_fp"] + pub fn i2d_PKCS8PrivateKeyInfo_fp(fp: *mut FILE, key: *mut EVP_PKEY) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_X509_get_notAfter"] - pub fn X509_get_notAfter(x509: *const X509) -> *mut ASN1_TIME; + #[link_name = "\u{1}aws_lc_0_21_0_i2d_PrivateKey_fp"] + pub fn i2d_PrivateKey_fp(fp: *mut FILE, pkey: *mut EVP_PKEY) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_X509_set_notBefore"] - pub fn X509_set_notBefore(x509: *mut X509, tm: *const ASN1_TIME) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_0_21_0_i2d_PUBKEY_fp"] + pub fn i2d_PUBKEY_fp(fp: *mut FILE, pkey: *mut EVP_PKEY) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_X509_set_notAfter"] - pub fn X509_set_notAfter(x509: *mut X509, tm: *const ASN1_TIME) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_0_21_0_X509_find_by_issuer_and_serial"] + pub fn X509_find_by_issuer_and_serial( + sk: *const stack_st_X509, + name: *mut X509_NAME, + serial: *const ASN1_INTEGER, + ) -> *mut X509; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_X509_CRL_get_lastUpdate"] - pub fn X509_CRL_get_lastUpdate(crl: *mut X509_CRL) -> *mut ASN1_TIME; + #[link_name = "\u{1}aws_lc_0_21_0_X509_find_by_subject"] + pub fn X509_find_by_subject(sk: *const stack_st_X509, name: *mut X509_NAME) -> *mut X509; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_X509_CRL_get_nextUpdate"] - pub fn X509_CRL_get_nextUpdate(crl: *mut X509_CRL) -> *mut ASN1_TIME; + #[link_name = "\u{1}aws_lc_0_21_0_X509_cmp_time"] + pub fn X509_cmp_time(s: *const ASN1_TIME, t: *const time_t) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_X509_get_serialNumber"] - pub fn X509_get_serialNumber(x509: *mut X509) -> *mut ASN1_INTEGER; + #[link_name = "\u{1}aws_lc_0_21_0_X509_cmp_time_posix"] + pub fn X509_cmp_time_posix(s: *const ASN1_TIME, t: i64) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_X509_NAME_get_text_by_OBJ"] - pub fn X509_NAME_get_text_by_OBJ( - name: *const X509_NAME, - obj: *const ASN1_OBJECT, - buf: *mut ::std::os::raw::c_char, - len: ::std::os::raw::c_int, - ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_0_21_0_X509_cmp_current_time"] + pub fn X509_cmp_current_time(s: *const ASN1_TIME) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_X509_NAME_get_text_by_NID"] - pub fn X509_NAME_get_text_by_NID( - name: *const X509_NAME, - nid: ::std::os::raw::c_int, - buf: *mut ::std::os::raw::c_char, - len: ::std::os::raw::c_int, - ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_0_21_0_X509_time_adj"] + pub fn X509_time_adj( + s: *mut ASN1_TIME, + offset_sec: ::std::os::raw::c_long, + t: *const time_t, + ) -> *mut ASN1_TIME; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_X509_STORE_CTX_get0_parent_ctx"] - pub fn X509_STORE_CTX_get0_parent_ctx(ctx: *mut X509_STORE_CTX) -> *mut X509_STORE_CTX; + #[link_name = "\u{1}aws_lc_0_21_0_X509_time_adj_ex"] + pub fn X509_time_adj_ex( + s: *mut ASN1_TIME, + offset_day: ::std::os::raw::c_int, + offset_sec: ::std::os::raw::c_long, + t: *const time_t, + ) -> *mut ASN1_TIME; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_X509_LOOKUP_free"] - pub fn X509_LOOKUP_free(ctx: *mut X509_LOOKUP); + #[link_name = "\u{1}aws_lc_0_21_0_X509_gmtime_adj"] + pub fn X509_gmtime_adj(s: *mut ASN1_TIME, offset_sec: ::std::os::raw::c_long) + -> *mut ASN1_TIME; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_X509_STORE_CTX_cleanup"] - pub fn X509_STORE_CTX_cleanup(ctx: *mut X509_STORE_CTX); + #[link_name = "\u{1}aws_lc_0_21_0_X509_issuer_name_cmp"] + pub fn X509_issuer_name_cmp(a: *const X509, b: *const X509) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_X509V3_add_standard_extensions"] - pub fn X509V3_add_standard_extensions() -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_0_21_0_X509_subject_name_cmp"] + pub fn X509_subject_name_cmp(a: *const X509, b: *const X509) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_X509V3_parse_list"] - pub fn X509V3_parse_list(line: *const ::std::os::raw::c_char) -> *mut stack_st_CONF_VALUE; + #[link_name = "\u{1}aws_lc_0_21_0_X509_CRL_cmp"] + pub fn X509_CRL_cmp(a: *const X509_CRL, b: *const X509_CRL) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_X509_STORE_CTX_get_chain"] - pub fn X509_STORE_CTX_get_chain(ctx: *mut X509_STORE_CTX) -> *mut stack_st_X509; + #[link_name = "\u{1}aws_lc_0_21_0_X509_issuer_name_hash"] + pub fn X509_issuer_name_hash(x509: *mut X509) -> u32; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_X509_STORE_CTX_trusted_stack"] - pub fn X509_STORE_CTX_trusted_stack(ctx: *mut X509_STORE_CTX, sk: *mut stack_st_X509); + #[link_name = "\u{1}aws_lc_0_21_0_X509_subject_name_hash"] + pub fn X509_subject_name_hash(x509: *mut X509) -> u32; } -pub type X509_STORE_CTX_verify_cb = ::std::option::Option< - unsafe extern "C" fn( - arg1: ::std::os::raw::c_int, - arg2: *mut X509_STORE_CTX, - ) -> ::std::os::raw::c_int, ->; extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_X509_STORE_CTX_set_verify_cb"] - pub fn X509_STORE_CTX_set_verify_cb( - ctx: *mut X509_STORE_CTX, - verify_cb: ::std::option::Option< - unsafe extern "C" fn( - ok: ::std::os::raw::c_int, - ctx: *mut X509_STORE_CTX, - ) -> ::std::os::raw::c_int, - >, - ); + #[link_name = "\u{1}aws_lc_0_21_0_X509_issuer_name_hash_old"] + pub fn X509_issuer_name_hash_old(x509: *mut X509) -> u32; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_X509_STORE_set_verify_cb"] - pub fn X509_STORE_set_verify_cb(store: *mut X509_STORE, verify_cb: X509_STORE_CTX_verify_cb); + #[link_name = "\u{1}aws_lc_0_21_0_X509_subject_name_hash_old"] + pub fn X509_subject_name_hash_old(x509: *mut X509) -> u32; } -pub type X509_STORE_CTX_get_crl_fn = ::std::option::Option< - unsafe extern "C" fn( - ctx: *mut X509_STORE_CTX, - crl: *mut *mut X509_CRL, - x: *mut X509, - ) -> ::std::os::raw::c_int, ->; -pub type X509_STORE_CTX_check_crl_fn = ::std::option::Option< - unsafe extern "C" fn(ctx: *mut X509_STORE_CTX, crl: *mut X509_CRL) -> ::std::os::raw::c_int, ->; extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_X509_STORE_set_get_crl"] - pub fn X509_STORE_set_get_crl(store: *mut X509_STORE, get_crl: X509_STORE_CTX_get_crl_fn); + #[link_name = "\u{1}aws_lc_0_21_0_X509_get_ex_new_index"] + pub fn X509_get_ex_new_index( + argl: ::std::os::raw::c_long, + argp: *mut ::std::os::raw::c_void, + unused: *mut CRYPTO_EX_unused, + dup_unused: CRYPTO_EX_dup, + free_func: CRYPTO_EX_free, + ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_X509_STORE_set_check_crl"] - pub fn X509_STORE_set_check_crl(store: *mut X509_STORE, check_crl: X509_STORE_CTX_check_crl_fn); + #[link_name = "\u{1}aws_lc_0_21_0_X509_set_ex_data"] + pub fn X509_set_ex_data( + r: *mut X509, + idx: ::std::os::raw::c_int, + arg: *mut ::std::os::raw::c_void, + ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_X509_STORE_CTX_set_chain"] - pub fn X509_STORE_CTX_set_chain(ctx: *mut X509_STORE_CTX, sk: *mut stack_st_X509); + #[link_name = "\u{1}aws_lc_0_21_0_X509_get_ex_data"] + pub fn X509_get_ex_data( + r: *mut X509, + idx: ::std::os::raw::c_int, + ) -> *mut ::std::os::raw::c_void; } -#[repr(C)] -#[derive(Debug, Copy, Clone, PartialEq, Eq)] -pub struct X509_algor_st { - pub algorithm: *mut ASN1_OBJECT, - pub parameter: *mut ASN1_TYPE, +extern "C" { + #[link_name = "\u{1}aws_lc_0_21_0_X509_STORE_CTX_get_ex_new_index"] + pub fn X509_STORE_CTX_get_ex_new_index( + argl: ::std::os::raw::c_long, + argp: *mut ::std::os::raw::c_void, + unused: *mut CRYPTO_EX_unused, + dup_unused: CRYPTO_EX_dup, + free_func: CRYPTO_EX_free, + ) -> ::std::os::raw::c_int; } -#[test] -fn bindgen_test_layout_X509_algor_st() { - const UNINIT: ::std::mem::MaybeUninit = ::std::mem::MaybeUninit::uninit(); - let ptr = UNINIT.as_ptr(); - assert_eq!( - ::std::mem::size_of::(), - 16usize, - concat!("Size of: ", stringify!(X509_algor_st)) - ); - assert_eq!( - ::std::mem::align_of::(), - 8usize, - concat!("Alignment of ", stringify!(X509_algor_st)) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).algorithm) as usize - ptr as usize }, - 0usize, - concat!( - "Offset of field: ", - stringify!(X509_algor_st), - "::", - stringify!(algorithm) - ) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).parameter) as usize - ptr as usize }, - 8usize, - concat!( - "Offset of field: ", - stringify!(X509_algor_st), - "::", - stringify!(parameter) - ) - ); +extern "C" { + #[link_name = "\u{1}aws_lc_0_21_0_X509_STORE_CTX_set_ex_data"] + pub fn X509_STORE_CTX_set_ex_data( + ctx: *mut X509_STORE_CTX, + idx: ::std::os::raw::c_int, + data: *mut ::std::os::raw::c_void, + ) -> ::std::os::raw::c_int; } -impl Default for X509_algor_st { - fn default() -> Self { - let mut s = ::std::mem::MaybeUninit::::uninit(); - unsafe { - ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); - s.assume_init() - } - } +extern "C" { + #[link_name = "\u{1}aws_lc_0_21_0_X509_STORE_CTX_get_ex_data"] + pub fn X509_STORE_CTX_get_ex_data( + ctx: *mut X509_STORE_CTX, + idx: ::std::os::raw::c_int, + ) -> *mut ::std::os::raw::c_void; } -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct stack_st_DIST_POINT { - _unused: [u8; 0], +extern "C" { + #[link_name = "\u{1}aws_lc_0_21_0_X509_STORE_get_ex_new_index"] + pub fn X509_STORE_get_ex_new_index( + argl: ::std::os::raw::c_long, + argp: *mut ::std::os::raw::c_void, + unused: *mut CRYPTO_EX_unused, + dup_unused: CRYPTO_EX_dup, + free_func: CRYPTO_EX_free, + ) -> ::std::os::raw::c_int; } -#[repr(C)] -#[derive(Debug, Copy, Clone, PartialEq, Eq)] -pub struct x509_trust_st { - pub trust: ::std::os::raw::c_int, - pub flags: ::std::os::raw::c_int, - pub check_trust: ::std::option::Option< - unsafe extern "C" fn( - arg1: *const X509_TRUST, - arg2: *mut X509, - arg3: ::std::os::raw::c_int, - ) -> ::std::os::raw::c_int, - >, - pub name: *mut ::std::os::raw::c_char, - pub arg1: ::std::os::raw::c_int, - pub arg2: *mut ::std::os::raw::c_void, +extern "C" { + #[link_name = "\u{1}aws_lc_0_21_0_X509_STORE_set_ex_data"] + pub fn X509_STORE_set_ex_data( + ctx: *mut X509_STORE, + idx: ::std::os::raw::c_int, + data: *mut ::std::os::raw::c_void, + ) -> ::std::os::raw::c_int; } -#[test] -fn bindgen_test_layout_x509_trust_st() { - const UNINIT: ::std::mem::MaybeUninit = ::std::mem::MaybeUninit::uninit(); - let ptr = UNINIT.as_ptr(); - assert_eq!( - ::std::mem::size_of::(), - 40usize, - concat!("Size of: ", stringify!(x509_trust_st)) - ); - assert_eq!( - ::std::mem::align_of::(), - 8usize, - concat!("Alignment of ", stringify!(x509_trust_st)) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).trust) as usize - ptr as usize }, +extern "C" { + #[link_name = "\u{1}aws_lc_0_21_0_X509_STORE_get_ex_data"] + pub fn X509_STORE_get_ex_data( + ctx: *mut X509_STORE, + idx: ::std::os::raw::c_int, + ) -> *mut ::std::os::raw::c_void; +} +extern "C" { + #[link_name = "\u{1}aws_lc_0_21_0_ASN1_digest"] + pub fn ASN1_digest( + i2d: i2d_of_void, + type_: *const EVP_MD, + data: *mut ::std::os::raw::c_char, + md: *mut ::std::os::raw::c_uchar, + len: *mut ::std::os::raw::c_uint, + ) -> ::std::os::raw::c_int; +} +extern "C" { + #[link_name = "\u{1}aws_lc_0_21_0_ASN1_item_digest"] + pub fn ASN1_item_digest( + it: *const ASN1_ITEM, + type_: *const EVP_MD, + data: *mut ::std::os::raw::c_void, + md: *mut ::std::os::raw::c_uchar, + len: *mut ::std::os::raw::c_uint, + ) -> ::std::os::raw::c_int; +} +extern "C" { + #[link_name = "\u{1}aws_lc_0_21_0_ASN1_item_verify"] + pub fn ASN1_item_verify( + it: *const ASN1_ITEM, + algor1: *const X509_ALGOR, + signature: *const ASN1_BIT_STRING, + data: *mut ::std::os::raw::c_void, + pkey: *mut EVP_PKEY, + ) -> ::std::os::raw::c_int; +} +extern "C" { + #[link_name = "\u{1}aws_lc_0_21_0_ASN1_item_sign"] + pub fn ASN1_item_sign( + it: *const ASN1_ITEM, + algor1: *mut X509_ALGOR, + algor2: *mut X509_ALGOR, + signature: *mut ASN1_BIT_STRING, + data: *mut ::std::os::raw::c_void, + pkey: *mut EVP_PKEY, + type_: *const EVP_MD, + ) -> ::std::os::raw::c_int; +} +extern "C" { + #[link_name = "\u{1}aws_lc_0_21_0_ASN1_item_sign_ctx"] + pub fn ASN1_item_sign_ctx( + it: *const ASN1_ITEM, + algor1: *mut X509_ALGOR, + algor2: *mut X509_ALGOR, + signature: *mut ASN1_BIT_STRING, + asn: *mut ::std::os::raw::c_void, + ctx: *mut EVP_MD_CTX, + ) -> ::std::os::raw::c_int; +} +extern "C" { + #[link_name = "\u{1}aws_lc_0_21_0_X509_supported_extension"] + pub fn X509_supported_extension(ex: *const X509_EXTENSION) -> ::std::os::raw::c_int; +} +extern "C" { + #[link_name = "\u{1}aws_lc_0_21_0_X509_check_ca"] + pub fn X509_check_ca(x509: *mut X509) -> ::std::os::raw::c_int; +} +extern "C" { + #[link_name = "\u{1}aws_lc_0_21_0_X509_check_issued"] + pub fn X509_check_issued(issuer: *mut X509, subject: *mut X509) -> ::std::os::raw::c_int; +} +extern "C" { + #[link_name = "\u{1}aws_lc_0_21_0_NAME_CONSTRAINTS_check"] + pub fn NAME_CONSTRAINTS_check( + x509: *mut X509, + nc: *mut NAME_CONSTRAINTS, + ) -> ::std::os::raw::c_int; +} +extern "C" { + #[link_name = "\u{1}aws_lc_0_21_0_X509_check_host"] + pub fn X509_check_host( + x509: *const X509, + chk: *const ::std::os::raw::c_char, + chklen: usize, + flags: ::std::os::raw::c_uint, + out_peername: *mut *mut ::std::os::raw::c_char, + ) -> ::std::os::raw::c_int; +} +extern "C" { + #[link_name = "\u{1}aws_lc_0_21_0_X509_check_email"] + pub fn X509_check_email( + x509: *const X509, + chk: *const ::std::os::raw::c_char, + chklen: usize, + flags: ::std::os::raw::c_uint, + ) -> ::std::os::raw::c_int; +} +extern "C" { + #[link_name = "\u{1}aws_lc_0_21_0_X509_check_ip"] + pub fn X509_check_ip( + x509: *const X509, + chk: *const u8, + chklen: usize, + flags: ::std::os::raw::c_uint, + ) -> ::std::os::raw::c_int; +} +extern "C" { + #[link_name = "\u{1}aws_lc_0_21_0_X509_check_ip_asc"] + pub fn X509_check_ip_asc( + x509: *const X509, + ipasc: *const ::std::os::raw::c_char, + flags: ::std::os::raw::c_uint, + ) -> ::std::os::raw::c_int; +} +extern "C" { + #[link_name = "\u{1}aws_lc_0_21_0_X509_STORE_CTX_get1_issuer"] + pub fn X509_STORE_CTX_get1_issuer( + out_issuer: *mut *mut X509, + ctx: *mut X509_STORE_CTX, + x509: *mut X509, + ) -> ::std::os::raw::c_int; +} +extern "C" { + #[link_name = "\u{1}aws_lc_0_21_0_X509_check_purpose"] + pub fn X509_check_purpose( + x509: *mut X509, + purpose: ::std::os::raw::c_int, + ca: ::std::os::raw::c_int, + ) -> ::std::os::raw::c_int; +} +extern "C" { + #[link_name = "\u{1}aws_lc_0_21_0_X509_check_trust"] + pub fn X509_check_trust( + x509: *mut X509, + id: ::std::os::raw::c_int, + flags: ::std::os::raw::c_int, + ) -> ::std::os::raw::c_int; +} +#[repr(C)] +#[derive(Debug, Copy, Clone, PartialEq, Eq)] +pub struct private_key_st { + pub dec_pkey: *mut EVP_PKEY, +} +#[test] +fn bindgen_test_layout_private_key_st() { + const UNINIT: ::std::mem::MaybeUninit = ::std::mem::MaybeUninit::uninit(); + let ptr = UNINIT.as_ptr(); + assert_eq!( + ::std::mem::size_of::(), + 8usize, + concat!("Size of: ", stringify!(private_key_st)) + ); + assert_eq!( + ::std::mem::align_of::(), + 8usize, + concat!("Alignment of ", stringify!(private_key_st)) + ); + assert_eq!( + unsafe { ::std::ptr::addr_of!((*ptr).dec_pkey) as usize - ptr as usize }, 0usize, concat!( "Offset of field: ", - stringify!(x509_trust_st), + stringify!(private_key_st), "::", - stringify!(trust) + stringify!(dec_pkey) ) ); +} +impl Default for private_key_st { + fn default() -> Self { + let mut s = ::std::mem::MaybeUninit::::uninit(); + unsafe { + ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); + s.assume_init() + } + } +} +#[repr(C)] +#[derive(Debug, Copy, Clone, PartialEq, Eq)] +pub struct X509_info_st { + pub x509: *mut X509, + pub crl: *mut X509_CRL, + pub x_pkey: *mut X509_PKEY, + pub enc_cipher: EVP_CIPHER_INFO, + pub enc_len: ::std::os::raw::c_int, + pub enc_data: *mut ::std::os::raw::c_char, +} +#[test] +fn bindgen_test_layout_X509_info_st() { + const UNINIT: ::std::mem::MaybeUninit = ::std::mem::MaybeUninit::uninit(); + let ptr = UNINIT.as_ptr(); assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).flags) as usize - ptr as usize }, - 4usize, + ::std::mem::size_of::(), + 64usize, + concat!("Size of: ", stringify!(X509_info_st)) + ); + assert_eq!( + ::std::mem::align_of::(), + 8usize, + concat!("Alignment of ", stringify!(X509_info_st)) + ); + assert_eq!( + unsafe { ::std::ptr::addr_of!((*ptr).x509) as usize - ptr as usize }, + 0usize, concat!( "Offset of field: ", - stringify!(x509_trust_st), + stringify!(X509_info_st), "::", - stringify!(flags) + stringify!(x509) ) ); assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).check_trust) as usize - ptr as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).crl) as usize - ptr as usize }, 8usize, concat!( "Offset of field: ", - stringify!(x509_trust_st), + stringify!(X509_info_st), "::", - stringify!(check_trust) + stringify!(crl) ) ); assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).name) as usize - ptr as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).x_pkey) as usize - ptr as usize }, 16usize, concat!( "Offset of field: ", - stringify!(x509_trust_st), + stringify!(X509_info_st), "::", - stringify!(name) + stringify!(x_pkey) ) ); assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).arg1) as usize - ptr as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).enc_cipher) as usize - ptr as usize }, 24usize, concat!( "Offset of field: ", - stringify!(x509_trust_st), + stringify!(X509_info_st), "::", - stringify!(arg1) + stringify!(enc_cipher) ) ); assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).arg2) as usize - ptr as usize }, - 32usize, + unsafe { ::std::ptr::addr_of!((*ptr).enc_len) as usize - ptr as usize }, + 48usize, concat!( "Offset of field: ", - stringify!(x509_trust_st), + stringify!(X509_info_st), "::", - stringify!(arg2) + stringify!(enc_len) + ) + ); + assert_eq!( + unsafe { ::std::ptr::addr_of!((*ptr).enc_data) as usize - ptr as usize }, + 56usize, + concat!( + "Offset of field: ", + stringify!(X509_info_st), + "::", + stringify!(enc_data) ) ); } -impl Default for x509_trust_st { +impl Default for X509_info_st { fn default() -> Self { let mut s = ::std::mem::MaybeUninit::::uninit(); unsafe { @@ -23171,609 +22968,801 @@ impl Default for x509_trust_st { } #[repr(C)] #[derive(Debug, Copy, Clone)] -pub struct stack_st_X509_TRUST { +pub struct stack_st_X509_INFO { _unused: [u8; 0], } -pub type sk_X509_TRUST_free_func = - ::std::option::Option; -pub type sk_X509_TRUST_copy_func = - ::std::option::Option *mut X509_TRUST>; -pub type sk_X509_TRUST_cmp_func = ::std::option::Option< +pub type sk_X509_INFO_free_func = ::std::option::Option; +pub type sk_X509_INFO_copy_func = + ::std::option::Option *mut X509_INFO>; +pub type sk_X509_INFO_cmp_func = ::std::option::Option< unsafe extern "C" fn( - arg1: *const *const X509_TRUST, - arg2: *const *const X509_TRUST, + arg1: *const *const X509_INFO, + arg2: *const *const X509_INFO, ) -> ::std::os::raw::c_int, >; -pub type sk_X509_TRUST_delete_if_func = ::std::option::Option< +pub type sk_X509_INFO_delete_if_func = ::std::option::Option< unsafe extern "C" fn( - arg1: *mut X509_TRUST, + arg1: *mut X509_INFO, arg2: *mut ::std::os::raw::c_void, ) -> ::std::os::raw::c_int, >; extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_X509_verify_cert_error_string"] - pub fn X509_verify_cert_error_string( - err: ::std::os::raw::c_long, - ) -> *const ::std::os::raw::c_char; + #[link_name = "\u{1}aws_lc_0_21_0_X509_INFO_free"] + pub fn X509_INFO_free(info: *mut X509_INFO); } -extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_X509_get_default_cert_area"] - pub fn X509_get_default_cert_area() -> *const ::std::os::raw::c_char; +#[repr(C)] +#[derive(Debug, Copy, Clone, PartialEq, Eq)] +pub struct v3_ext_ctx { + pub flags: ::std::os::raw::c_int, + pub issuer_cert: *const X509, + pub subject_cert: *const X509, + pub subject_req: *const X509_REQ, + pub crl: *const X509_CRL, + pub db: *const CONF, +} +#[test] +fn bindgen_test_layout_v3_ext_ctx() { + const UNINIT: ::std::mem::MaybeUninit = ::std::mem::MaybeUninit::uninit(); + let ptr = UNINIT.as_ptr(); + assert_eq!( + ::std::mem::size_of::(), + 48usize, + concat!("Size of: ", stringify!(v3_ext_ctx)) + ); + assert_eq!( + ::std::mem::align_of::(), + 8usize, + concat!("Alignment of ", stringify!(v3_ext_ctx)) + ); + assert_eq!( + unsafe { ::std::ptr::addr_of!((*ptr).flags) as usize - ptr as usize }, + 0usize, + concat!( + "Offset of field: ", + stringify!(v3_ext_ctx), + "::", + stringify!(flags) + ) + ); + assert_eq!( + unsafe { ::std::ptr::addr_of!((*ptr).issuer_cert) as usize - ptr as usize }, + 8usize, + concat!( + "Offset of field: ", + stringify!(v3_ext_ctx), + "::", + stringify!(issuer_cert) + ) + ); + assert_eq!( + unsafe { ::std::ptr::addr_of!((*ptr).subject_cert) as usize - ptr as usize }, + 16usize, + concat!( + "Offset of field: ", + stringify!(v3_ext_ctx), + "::", + stringify!(subject_cert) + ) + ); + assert_eq!( + unsafe { ::std::ptr::addr_of!((*ptr).subject_req) as usize - ptr as usize }, + 24usize, + concat!( + "Offset of field: ", + stringify!(v3_ext_ctx), + "::", + stringify!(subject_req) + ) + ); + assert_eq!( + unsafe { ::std::ptr::addr_of!((*ptr).crl) as usize - ptr as usize }, + 32usize, + concat!( + "Offset of field: ", + stringify!(v3_ext_ctx), + "::", + stringify!(crl) + ) + ); + assert_eq!( + unsafe { ::std::ptr::addr_of!((*ptr).db) as usize - ptr as usize }, + 40usize, + concat!( + "Offset of field: ", + stringify!(v3_ext_ctx), + "::", + stringify!(db) + ) + ); +} +impl Default for v3_ext_ctx { + fn default() -> Self { + let mut s = ::std::mem::MaybeUninit::::uninit(); + unsafe { + ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); + s.assume_init() + } + } } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_X509_get_default_cert_dir"] - pub fn X509_get_default_cert_dir() -> *const ::std::os::raw::c_char; + #[link_name = "\u{1}aws_lc_0_21_0_X509V3_set_ctx"] + pub fn X509V3_set_ctx( + ctx: *mut X509V3_CTX, + issuer: *const X509, + subject: *const X509, + req: *const X509_REQ, + crl: *const X509_CRL, + flags: ::std::os::raw::c_int, + ); } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_X509_get_default_cert_file"] - pub fn X509_get_default_cert_file() -> *const ::std::os::raw::c_char; + #[link_name = "\u{1}aws_lc_0_21_0_X509V3_set_nconf"] + pub fn X509V3_set_nconf(ctx: *mut X509V3_CTX, conf: *const CONF); } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_X509_get_default_cert_dir_env"] - pub fn X509_get_default_cert_dir_env() -> *const ::std::os::raw::c_char; + #[link_name = "\u{1}aws_lc_0_21_0_X509V3_EXT_nconf"] + pub fn X509V3_EXT_nconf( + conf: *const CONF, + ctx: *const X509V3_CTX, + name: *const ::std::os::raw::c_char, + value: *const ::std::os::raw::c_char, + ) -> *mut X509_EXTENSION; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_X509_get_default_cert_file_env"] - pub fn X509_get_default_cert_file_env() -> *const ::std::os::raw::c_char; + #[link_name = "\u{1}aws_lc_0_21_0_X509V3_EXT_nconf_nid"] + pub fn X509V3_EXT_nconf_nid( + conf: *const CONF, + ctx: *const X509V3_CTX, + ext_nid: ::std::os::raw::c_int, + value: *const ::std::os::raw::c_char, + ) -> *mut X509_EXTENSION; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_X509_get_default_private_dir"] - pub fn X509_get_default_private_dir() -> *const ::std::os::raw::c_char; + #[link_name = "\u{1}aws_lc_0_21_0_X509V3_EXT_conf_nid"] + pub fn X509V3_EXT_conf_nid( + conf: *mut lhash_st_CONF_VALUE, + ctx: *const X509V3_CTX, + ext_nid: ::std::os::raw::c_int, + value: *const ::std::os::raw::c_char, + ) -> *mut X509_EXTENSION; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_X509_TRUST_set"] - pub fn X509_TRUST_set( - t: *mut ::std::os::raw::c_int, - trust: ::std::os::raw::c_int, + #[link_name = "\u{1}aws_lc_0_21_0_X509V3_EXT_add_nconf_sk"] + pub fn X509V3_EXT_add_nconf_sk( + conf: *const CONF, + ctx: *const X509V3_CTX, + section: *const ::std::os::raw::c_char, + sk: *mut *mut stack_st_X509_EXTENSION, ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_X509_cmp"] - pub fn X509_cmp(a: *const X509, b: *const X509) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_0_21_0_X509V3_EXT_add_nconf"] + pub fn X509V3_EXT_add_nconf( + conf: *const CONF, + ctx: *const X509V3_CTX, + section: *const ::std::os::raw::c_char, + cert: *mut X509, + ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_X509_NAME_hash"] - pub fn X509_NAME_hash(name: *mut X509_NAME) -> u32; + #[link_name = "\u{1}aws_lc_0_21_0_X509V3_EXT_REQ_add_nconf"] + pub fn X509V3_EXT_REQ_add_nconf( + conf: *const CONF, + ctx: *const X509V3_CTX, + section: *const ::std::os::raw::c_char, + req: *mut X509_REQ, + ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_X509_NAME_hash_old"] - pub fn X509_NAME_hash_old(name: *mut X509_NAME) -> u32; + #[link_name = "\u{1}aws_lc_0_21_0_X509V3_EXT_CRL_add_nconf"] + pub fn X509V3_EXT_CRL_add_nconf( + conf: *const CONF, + ctx: *const X509V3_CTX, + section: *const ::std::os::raw::c_char, + crl: *mut X509_CRL, + ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_X509_CRL_match"] - pub fn X509_CRL_match(a: *const X509_CRL, b: *const X509_CRL) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_0_21_0_X509V3_EXT_conf"] + pub fn X509V3_EXT_conf( + conf: *mut lhash_st_CONF_VALUE, + ctx: *mut X509V3_CTX, + name: *const ::std::os::raw::c_char, + value: *const ::std::os::raw::c_char, + ) -> *mut X509_EXTENSION; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_X509_verify_cert"] - pub fn X509_verify_cert(ctx: *mut X509_STORE_CTX) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_0_21_0_i2s_ASN1_OCTET_STRING"] + pub fn i2s_ASN1_OCTET_STRING( + method: *const X509V3_EXT_METHOD, + oct: *const ASN1_OCTET_STRING, + ) -> *mut ::std::os::raw::c_char; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_X509_check_trust"] - pub fn X509_check_trust( - x: *mut X509, - id: ::std::os::raw::c_int, - flags: ::std::os::raw::c_int, - ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_0_21_0_s2i_ASN1_OCTET_STRING"] + pub fn s2i_ASN1_OCTET_STRING( + method: *const X509V3_EXT_METHOD, + ctx: *const X509V3_CTX, + str_: *const ::std::os::raw::c_char, + ) -> *mut ASN1_OCTET_STRING; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_X509_TRUST_get_count"] - pub fn X509_TRUST_get_count() -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_0_21_0_i2s_ASN1_INTEGER"] + pub fn i2s_ASN1_INTEGER( + method: *const X509V3_EXT_METHOD, + aint: *const ASN1_INTEGER, + ) -> *mut ::std::os::raw::c_char; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_X509_TRUST_get0"] - pub fn X509_TRUST_get0(idx: ::std::os::raw::c_int) -> *const X509_TRUST; + #[link_name = "\u{1}aws_lc_0_21_0_s2i_ASN1_INTEGER"] + pub fn s2i_ASN1_INTEGER( + method: *const X509V3_EXT_METHOD, + value: *const ::std::os::raw::c_char, + ) -> *mut ASN1_INTEGER; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_X509_TRUST_get_by_id"] - pub fn X509_TRUST_get_by_id(id: ::std::os::raw::c_int) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_0_21_0_i2s_ASN1_ENUMERATED"] + pub fn i2s_ASN1_ENUMERATED( + method: *const X509V3_EXT_METHOD, + aint: *const ASN1_ENUMERATED, + ) -> *mut ::std::os::raw::c_char; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_X509_TRUST_get_flags"] - pub fn X509_TRUST_get_flags(xp: *const X509_TRUST) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_0_21_0_X509V3_conf_free"] + pub fn X509V3_conf_free(val: *mut CONF_VALUE); } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_X509_TRUST_get0_name"] - pub fn X509_TRUST_get0_name(xp: *const X509_TRUST) -> *mut ::std::os::raw::c_char; + #[link_name = "\u{1}aws_lc_0_21_0_i2v_GENERAL_NAME"] + pub fn i2v_GENERAL_NAME( + method: *const X509V3_EXT_METHOD, + gen: *const GENERAL_NAME, + ret: *mut stack_st_CONF_VALUE, + ) -> *mut stack_st_CONF_VALUE; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_X509_TRUST_get_trust"] - pub fn X509_TRUST_get_trust(xp: *const X509_TRUST) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_0_21_0_i2v_GENERAL_NAMES"] + pub fn i2v_GENERAL_NAMES( + method: *const X509V3_EXT_METHOD, + gen: *const GENERAL_NAMES, + extlist: *mut stack_st_CONF_VALUE, + ) -> *mut stack_st_CONF_VALUE; } -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct stack_st_X509_OBJECT { - _unused: [u8; 0], -} -pub type sk_X509_OBJECT_free_func = - ::std::option::Option; -pub type sk_X509_OBJECT_copy_func = - ::std::option::Option *mut X509_OBJECT>; -pub type sk_X509_OBJECT_cmp_func = ::std::option::Option< - unsafe extern "C" fn( - arg1: *const *const X509_OBJECT, - arg2: *const *const X509_OBJECT, - ) -> ::std::os::raw::c_int, ->; -pub type sk_X509_OBJECT_delete_if_func = ::std::option::Option< - unsafe extern "C" fn( - arg1: *mut X509_OBJECT, - arg2: *mut ::std::os::raw::c_void, - ) -> ::std::os::raw::c_int, ->; extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_X509_STORE_set_depth"] - pub fn X509_STORE_set_depth( - store: *mut X509_STORE, - depth: ::std::os::raw::c_int, - ) -> ::std::os::raw::c_int; -} -extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_X509_STORE_CTX_set_depth"] - pub fn X509_STORE_CTX_set_depth(ctx: *mut X509_STORE_CTX, depth: ::std::os::raw::c_int); + #[link_name = "\u{1}aws_lc_0_21_0_a2i_IPADDRESS"] + pub fn a2i_IPADDRESS(ipasc: *const ::std::os::raw::c_char) -> *mut ASN1_OCTET_STRING; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_X509_LOOKUP_load_file"] - pub fn X509_LOOKUP_load_file( - lookup: *mut X509_LOOKUP, - path: *const ::std::os::raw::c_char, - type_: ::std::os::raw::c_int, - ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_0_21_0_a2i_IPADDRESS_NC"] + pub fn a2i_IPADDRESS_NC(ipasc: *const ::std::os::raw::c_char) -> *mut ASN1_OCTET_STRING; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_X509_LOOKUP_add_dir"] - pub fn X509_LOOKUP_add_dir( - lookup: *mut X509_LOOKUP, - path: *const ::std::os::raw::c_char, - type_: ::std::os::raw::c_int, - ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_0_21_0_X509_get_notBefore"] + pub fn X509_get_notBefore(x509: *const X509) -> *mut ASN1_TIME; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_X509_OBJECT_new"] - pub fn X509_OBJECT_new() -> *mut X509_OBJECT; + #[link_name = "\u{1}aws_lc_0_21_0_X509_get_notAfter"] + pub fn X509_get_notAfter(x509: *const X509) -> *mut ASN1_TIME; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_X509_OBJECT_free"] - pub fn X509_OBJECT_free(obj: *mut X509_OBJECT); + #[link_name = "\u{1}aws_lc_0_21_0_X509_set_notBefore"] + pub fn X509_set_notBefore(x509: *mut X509, tm: *const ASN1_TIME) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_X509_OBJECT_get_type"] - pub fn X509_OBJECT_get_type(obj: *const X509_OBJECT) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_0_21_0_X509_set_notAfter"] + pub fn X509_set_notAfter(x509: *mut X509, tm: *const ASN1_TIME) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_X509_OBJECT_get0_X509"] - pub fn X509_OBJECT_get0_X509(obj: *const X509_OBJECT) -> *mut X509; + #[link_name = "\u{1}aws_lc_0_21_0_X509_CRL_get_lastUpdate"] + pub fn X509_CRL_get_lastUpdate(crl: *mut X509_CRL) -> *mut ASN1_TIME; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_X509_OBJECT_get0_X509_CRL"] - pub fn X509_OBJECT_get0_X509_CRL(a: *const X509_OBJECT) -> *mut X509_CRL; + #[link_name = "\u{1}aws_lc_0_21_0_X509_CRL_get_nextUpdate"] + pub fn X509_CRL_get_nextUpdate(crl: *mut X509_CRL) -> *mut ASN1_TIME; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_X509_OBJECT_set1_X509"] - pub fn X509_OBJECT_set1_X509(a: *mut X509_OBJECT, obj: *mut X509) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_0_21_0_X509_get_serialNumber"] + pub fn X509_get_serialNumber(x509: *mut X509) -> *mut ASN1_INTEGER; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_X509_OBJECT_set1_X509_CRL"] - pub fn X509_OBJECT_set1_X509_CRL( - a: *mut X509_OBJECT, - obj: *mut X509_CRL, + #[link_name = "\u{1}aws_lc_0_21_0_X509_NAME_get_text_by_OBJ"] + pub fn X509_NAME_get_text_by_OBJ( + name: *const X509_NAME, + obj: *const ASN1_OBJECT, + buf: *mut ::std::os::raw::c_char, + len: ::std::os::raw::c_int, ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_X509_STORE_lock"] - pub fn X509_STORE_lock(v: *mut X509_STORE) -> ::std::os::raw::c_int; -} -extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_X509_STORE_unlock"] - pub fn X509_STORE_unlock(v: *mut X509_STORE) -> ::std::os::raw::c_int; -} -extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_X509_STORE_new"] - pub fn X509_STORE_new() -> *mut X509_STORE; -} -extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_X509_STORE_up_ref"] - pub fn X509_STORE_up_ref(store: *mut X509_STORE) -> ::std::os::raw::c_int; -} -extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_X509_STORE_free"] - pub fn X509_STORE_free(store: *mut X509_STORE); -} -extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_X509_STORE_get0_objects"] - pub fn X509_STORE_get0_objects(st: *mut X509_STORE) -> *mut stack_st_X509_OBJECT; -} -extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_X509_STORE_CTX_get1_certs"] - pub fn X509_STORE_CTX_get1_certs( - st: *mut X509_STORE_CTX, - nm: *mut X509_NAME, - ) -> *mut stack_st_X509; -} -extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_X509_STORE_CTX_get1_crls"] - pub fn X509_STORE_CTX_get1_crls( - st: *mut X509_STORE_CTX, - nm: *mut X509_NAME, - ) -> *mut stack_st_X509_CRL; -} -extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_X509_STORE_set_flags"] - pub fn X509_STORE_set_flags( - store: *mut X509_STORE, - flags: ::std::os::raw::c_ulong, + #[link_name = "\u{1}aws_lc_0_21_0_X509_NAME_get_text_by_NID"] + pub fn X509_NAME_get_text_by_NID( + name: *const X509_NAME, + nid: ::std::os::raw::c_int, + buf: *mut ::std::os::raw::c_char, + len: ::std::os::raw::c_int, ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_X509_STORE_set_purpose"] - pub fn X509_STORE_set_purpose( - store: *mut X509_STORE, - purpose: ::std::os::raw::c_int, - ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_0_21_0_X509_STORE_CTX_get0_parent_ctx"] + pub fn X509_STORE_CTX_get0_parent_ctx(ctx: *mut X509_STORE_CTX) -> *mut X509_STORE_CTX; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_X509_STORE_set_trust"] - pub fn X509_STORE_set_trust( - store: *mut X509_STORE, - trust: ::std::os::raw::c_int, - ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_0_21_0_X509_LOOKUP_free"] + pub fn X509_LOOKUP_free(ctx: *mut X509_LOOKUP); } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_X509_STORE_set1_param"] - pub fn X509_STORE_set1_param( - store: *mut X509_STORE, - param: *const X509_VERIFY_PARAM, - ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_0_21_0_X509_STORE_CTX_cleanup"] + pub fn X509_STORE_CTX_cleanup(ctx: *mut X509_STORE_CTX); } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_X509_STORE_get0_param"] - pub fn X509_STORE_get0_param(store: *mut X509_STORE) -> *mut X509_VERIFY_PARAM; + #[link_name = "\u{1}aws_lc_0_21_0_X509V3_add_standard_extensions"] + pub fn X509V3_add_standard_extensions() -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_X509_STORE_CTX_new"] - pub fn X509_STORE_CTX_new() -> *mut X509_STORE_CTX; + #[link_name = "\u{1}aws_lc_0_21_0_X509V3_parse_list"] + pub fn X509V3_parse_list(line: *const ::std::os::raw::c_char) -> *mut stack_st_CONF_VALUE; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_X509_STORE_CTX_get1_issuer"] - pub fn X509_STORE_CTX_get1_issuer( - issuer: *mut *mut X509, - ctx: *mut X509_STORE_CTX, - x: *mut X509, - ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_0_21_0_X509_STORE_CTX_get_chain"] + pub fn X509_STORE_CTX_get_chain(ctx: *mut X509_STORE_CTX) -> *mut stack_st_X509; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_X509_STORE_CTX_free"] - pub fn X509_STORE_CTX_free(ctx: *mut X509_STORE_CTX); + #[link_name = "\u{1}aws_lc_0_21_0_X509_STORE_CTX_trusted_stack"] + pub fn X509_STORE_CTX_trusted_stack(ctx: *mut X509_STORE_CTX, sk: *mut stack_st_X509); } +pub type X509_STORE_CTX_verify_cb = ::std::option::Option< + unsafe extern "C" fn( + arg1: ::std::os::raw::c_int, + arg2: *mut X509_STORE_CTX, + ) -> ::std::os::raw::c_int, +>; extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_X509_STORE_CTX_init"] - pub fn X509_STORE_CTX_init( + #[link_name = "\u{1}aws_lc_0_21_0_X509_STORE_CTX_set_verify_cb"] + pub fn X509_STORE_CTX_set_verify_cb( ctx: *mut X509_STORE_CTX, - store: *mut X509_STORE, - x509: *mut X509, - chain: *mut stack_st_X509, - ) -> ::std::os::raw::c_int; -} -extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_X509_STORE_CTX_set0_trusted_stack"] - pub fn X509_STORE_CTX_set0_trusted_stack(ctx: *mut X509_STORE_CTX, sk: *mut stack_st_X509); -} -extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_X509_STORE_CTX_get0_store"] - pub fn X509_STORE_CTX_get0_store(ctx: *mut X509_STORE_CTX) -> *mut X509_STORE; -} -extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_X509_STORE_CTX_get0_cert"] - pub fn X509_STORE_CTX_get0_cert(ctx: *mut X509_STORE_CTX) -> *mut X509; -} -extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_X509_STORE_add_lookup"] - pub fn X509_STORE_add_lookup( - v: *mut X509_STORE, - m: *const X509_LOOKUP_METHOD, - ) -> *mut X509_LOOKUP; + verify_cb: ::std::option::Option< + unsafe extern "C" fn( + ok: ::std::os::raw::c_int, + ctx: *mut X509_STORE_CTX, + ) -> ::std::os::raw::c_int, + >, + ); } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_X509_LOOKUP_hash_dir"] - pub fn X509_LOOKUP_hash_dir() -> *const X509_LOOKUP_METHOD; + #[link_name = "\u{1}aws_lc_0_21_0_X509_STORE_set_verify_cb"] + pub fn X509_STORE_set_verify_cb(store: *mut X509_STORE, verify_cb: X509_STORE_CTX_verify_cb); } +pub type X509_STORE_CTX_get_crl_fn = ::std::option::Option< + unsafe extern "C" fn( + ctx: *mut X509_STORE_CTX, + crl: *mut *mut X509_CRL, + x: *mut X509, + ) -> ::std::os::raw::c_int, +>; +pub type X509_STORE_CTX_check_crl_fn = ::std::option::Option< + unsafe extern "C" fn(ctx: *mut X509_STORE_CTX, crl: *mut X509_CRL) -> ::std::os::raw::c_int, +>; extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_X509_LOOKUP_file"] - pub fn X509_LOOKUP_file() -> *const X509_LOOKUP_METHOD; + #[link_name = "\u{1}aws_lc_0_21_0_X509_STORE_set_get_crl"] + pub fn X509_STORE_set_get_crl(store: *mut X509_STORE, get_crl: X509_STORE_CTX_get_crl_fn); } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_X509_STORE_add_cert"] - pub fn X509_STORE_add_cert(ctx: *mut X509_STORE, x: *mut X509) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_0_21_0_X509_STORE_set_check_crl"] + pub fn X509_STORE_set_check_crl(store: *mut X509_STORE, check_crl: X509_STORE_CTX_check_crl_fn); } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_X509_STORE_add_crl"] - pub fn X509_STORE_add_crl(ctx: *mut X509_STORE, x: *mut X509_CRL) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_0_21_0_X509_STORE_CTX_set_chain"] + pub fn X509_STORE_CTX_set_chain(ctx: *mut X509_STORE_CTX, sk: *mut stack_st_X509); } -extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_X509_LOOKUP_ctrl"] - pub fn X509_LOOKUP_ctrl( - ctx: *mut X509_LOOKUP, - cmd: ::std::os::raw::c_int, - argc: *const ::std::os::raw::c_char, - argl: ::std::os::raw::c_long, - ret: *mut *mut ::std::os::raw::c_char, - ) -> ::std::os::raw::c_int; +#[repr(C)] +#[derive(Debug, Copy, Clone, PartialEq, Eq)] +pub struct X509_algor_st { + pub algorithm: *mut ASN1_OBJECT, + pub parameter: *mut ASN1_TYPE, } -extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_X509_load_cert_file"] - pub fn X509_load_cert_file( - ctx: *mut X509_LOOKUP, - file: *const ::std::os::raw::c_char, - type_: ::std::os::raw::c_int, - ) -> ::std::os::raw::c_int; +#[test] +fn bindgen_test_layout_X509_algor_st() { + const UNINIT: ::std::mem::MaybeUninit = ::std::mem::MaybeUninit::uninit(); + let ptr = UNINIT.as_ptr(); + assert_eq!( + ::std::mem::size_of::(), + 16usize, + concat!("Size of: ", stringify!(X509_algor_st)) + ); + assert_eq!( + ::std::mem::align_of::(), + 8usize, + concat!("Alignment of ", stringify!(X509_algor_st)) + ); + assert_eq!( + unsafe { ::std::ptr::addr_of!((*ptr).algorithm) as usize - ptr as usize }, + 0usize, + concat!( + "Offset of field: ", + stringify!(X509_algor_st), + "::", + stringify!(algorithm) + ) + ); + assert_eq!( + unsafe { ::std::ptr::addr_of!((*ptr).parameter) as usize - ptr as usize }, + 8usize, + concat!( + "Offset of field: ", + stringify!(X509_algor_st), + "::", + stringify!(parameter) + ) + ); } -extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_X509_load_crl_file"] - pub fn X509_load_crl_file( - ctx: *mut X509_LOOKUP, - file: *const ::std::os::raw::c_char, - type_: ::std::os::raw::c_int, - ) -> ::std::os::raw::c_int; +impl Default for X509_algor_st { + fn default() -> Self { + let mut s = ::std::mem::MaybeUninit::::uninit(); + unsafe { + ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); + s.assume_init() + } + } } -extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_X509_load_cert_crl_file"] - pub fn X509_load_cert_crl_file( - ctx: *mut X509_LOOKUP, - file: *const ::std::os::raw::c_char, - type_: ::std::os::raw::c_int, - ) -> ::std::os::raw::c_int; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct stack_st_DIST_POINT { + _unused: [u8; 0], } -extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_X509_STORE_load_locations"] - pub fn X509_STORE_load_locations( - ctx: *mut X509_STORE, - file: *const ::std::os::raw::c_char, - dir: *const ::std::os::raw::c_char, - ) -> ::std::os::raw::c_int; +#[repr(C)] +#[derive(Debug, Copy, Clone, PartialEq, Eq)] +pub struct x509_trust_st { + pub trust: ::std::os::raw::c_int, + pub flags: ::std::os::raw::c_int, + pub check_trust: ::std::option::Option< + unsafe extern "C" fn( + arg1: *const X509_TRUST, + arg2: *mut X509, + arg3: ::std::os::raw::c_int, + ) -> ::std::os::raw::c_int, + >, + pub name: *mut ::std::os::raw::c_char, + pub arg1: ::std::os::raw::c_int, + pub arg2: *mut ::std::os::raw::c_void, } -extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_X509_STORE_set_default_paths"] - pub fn X509_STORE_set_default_paths(ctx: *mut X509_STORE) -> ::std::os::raw::c_int; +#[test] +fn bindgen_test_layout_x509_trust_st() { + const UNINIT: ::std::mem::MaybeUninit = ::std::mem::MaybeUninit::uninit(); + let ptr = UNINIT.as_ptr(); + assert_eq!( + ::std::mem::size_of::(), + 40usize, + concat!("Size of: ", stringify!(x509_trust_st)) + ); + assert_eq!( + ::std::mem::align_of::(), + 8usize, + concat!("Alignment of ", stringify!(x509_trust_st)) + ); + assert_eq!( + unsafe { ::std::ptr::addr_of!((*ptr).trust) as usize - ptr as usize }, + 0usize, + concat!( + "Offset of field: ", + stringify!(x509_trust_st), + "::", + stringify!(trust) + ) + ); + assert_eq!( + unsafe { ::std::ptr::addr_of!((*ptr).flags) as usize - ptr as usize }, + 4usize, + concat!( + "Offset of field: ", + stringify!(x509_trust_st), + "::", + stringify!(flags) + ) + ); + assert_eq!( + unsafe { ::std::ptr::addr_of!((*ptr).check_trust) as usize - ptr as usize }, + 8usize, + concat!( + "Offset of field: ", + stringify!(x509_trust_st), + "::", + stringify!(check_trust) + ) + ); + assert_eq!( + unsafe { ::std::ptr::addr_of!((*ptr).name) as usize - ptr as usize }, + 16usize, + concat!( + "Offset of field: ", + stringify!(x509_trust_st), + "::", + stringify!(name) + ) + ); + assert_eq!( + unsafe { ::std::ptr::addr_of!((*ptr).arg1) as usize - ptr as usize }, + 24usize, + concat!( + "Offset of field: ", + stringify!(x509_trust_st), + "::", + stringify!(arg1) + ) + ); + assert_eq!( + unsafe { ::std::ptr::addr_of!((*ptr).arg2) as usize - ptr as usize }, + 32usize, + concat!( + "Offset of field: ", + stringify!(x509_trust_st), + "::", + stringify!(arg2) + ) + ); } -extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_X509_STORE_CTX_get_error"] - pub fn X509_STORE_CTX_get_error(ctx: *mut X509_STORE_CTX) -> ::std::os::raw::c_int; +impl Default for x509_trust_st { + fn default() -> Self { + let mut s = ::std::mem::MaybeUninit::::uninit(); + unsafe { + ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); + s.assume_init() + } + } } -extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_X509_STORE_CTX_set_error"] - pub fn X509_STORE_CTX_set_error(ctx: *mut X509_STORE_CTX, s: ::std::os::raw::c_int); +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct stack_st_X509_TRUST { + _unused: [u8; 0], } +pub type sk_X509_TRUST_free_func = + ::std::option::Option; +pub type sk_X509_TRUST_copy_func = + ::std::option::Option *mut X509_TRUST>; +pub type sk_X509_TRUST_cmp_func = ::std::option::Option< + unsafe extern "C" fn( + arg1: *const *const X509_TRUST, + arg2: *const *const X509_TRUST, + ) -> ::std::os::raw::c_int, +>; +pub type sk_X509_TRUST_delete_if_func = ::std::option::Option< + unsafe extern "C" fn( + arg1: *mut X509_TRUST, + arg2: *mut ::std::os::raw::c_void, + ) -> ::std::os::raw::c_int, +>; extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_X509_STORE_CTX_get_error_depth"] - pub fn X509_STORE_CTX_get_error_depth(ctx: *mut X509_STORE_CTX) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_0_21_0_X509_get_default_cert_area"] + pub fn X509_get_default_cert_area() -> *const ::std::os::raw::c_char; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_X509_STORE_CTX_get_current_cert"] - pub fn X509_STORE_CTX_get_current_cert(ctx: *mut X509_STORE_CTX) -> *mut X509; + #[link_name = "\u{1}aws_lc_0_21_0_X509_get_default_cert_dir"] + pub fn X509_get_default_cert_dir() -> *const ::std::os::raw::c_char; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_X509_STORE_CTX_get0_current_issuer"] - pub fn X509_STORE_CTX_get0_current_issuer(ctx: *mut X509_STORE_CTX) -> *mut X509; + #[link_name = "\u{1}aws_lc_0_21_0_X509_get_default_cert_file"] + pub fn X509_get_default_cert_file() -> *const ::std::os::raw::c_char; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_X509_STORE_CTX_get0_current_crl"] - pub fn X509_STORE_CTX_get0_current_crl(ctx: *mut X509_STORE_CTX) -> *mut X509_CRL; + #[link_name = "\u{1}aws_lc_0_21_0_X509_get_default_cert_dir_env"] + pub fn X509_get_default_cert_dir_env() -> *const ::std::os::raw::c_char; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_X509_STORE_CTX_get0_chain"] - pub fn X509_STORE_CTX_get0_chain(ctx: *mut X509_STORE_CTX) -> *mut stack_st_X509; + #[link_name = "\u{1}aws_lc_0_21_0_X509_get_default_cert_file_env"] + pub fn X509_get_default_cert_file_env() -> *const ::std::os::raw::c_char; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_X509_STORE_CTX_get1_chain"] - pub fn X509_STORE_CTX_get1_chain(ctx: *mut X509_STORE_CTX) -> *mut stack_st_X509; + #[link_name = "\u{1}aws_lc_0_21_0_X509_get_default_private_dir"] + pub fn X509_get_default_private_dir() -> *const ::std::os::raw::c_char; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_X509_STORE_CTX_set_cert"] - pub fn X509_STORE_CTX_set_cert(c: *mut X509_STORE_CTX, x: *mut X509); + #[link_name = "\u{1}aws_lc_0_21_0_X509_TRUST_set"] + pub fn X509_TRUST_set( + t: *mut ::std::os::raw::c_int, + trust: ::std::os::raw::c_int, + ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_X509_STORE_CTX_get0_untrusted"] - pub fn X509_STORE_CTX_get0_untrusted(ctx: *mut X509_STORE_CTX) -> *mut stack_st_X509; + #[link_name = "\u{1}aws_lc_0_21_0_X509_cmp"] + pub fn X509_cmp(a: *const X509, b: *const X509) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_X509_STORE_CTX_set0_crls"] - pub fn X509_STORE_CTX_set0_crls(c: *mut X509_STORE_CTX, sk: *mut stack_st_X509_CRL); + #[link_name = "\u{1}aws_lc_0_21_0_X509_NAME_hash"] + pub fn X509_NAME_hash(name: *mut X509_NAME) -> u32; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_X509_STORE_CTX_set_purpose"] - pub fn X509_STORE_CTX_set_purpose( - ctx: *mut X509_STORE_CTX, - purpose: ::std::os::raw::c_int, - ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_0_21_0_X509_NAME_hash_old"] + pub fn X509_NAME_hash_old(name: *mut X509_NAME) -> u32; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_X509_STORE_CTX_set_trust"] - pub fn X509_STORE_CTX_set_trust( - ctx: *mut X509_STORE_CTX, - trust: ::std::os::raw::c_int, - ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_0_21_0_X509_CRL_match"] + pub fn X509_CRL_match(a: *const X509_CRL, b: *const X509_CRL) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_X509_STORE_CTX_purpose_inherit"] - pub fn X509_STORE_CTX_purpose_inherit( - ctx: *mut X509_STORE_CTX, - def_purpose: ::std::os::raw::c_int, - purpose: ::std::os::raw::c_int, - trust: ::std::os::raw::c_int, - ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_0_21_0_X509_TRUST_get_count"] + pub fn X509_TRUST_get_count() -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_X509_STORE_CTX_set_flags"] - pub fn X509_STORE_CTX_set_flags(ctx: *mut X509_STORE_CTX, flags: ::std::os::raw::c_ulong); + #[link_name = "\u{1}aws_lc_0_21_0_X509_TRUST_get0"] + pub fn X509_TRUST_get0(idx: ::std::os::raw::c_int) -> *const X509_TRUST; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_X509_STORE_CTX_set_time"] - pub fn X509_STORE_CTX_set_time( - ctx: *mut X509_STORE_CTX, - flags: ::std::os::raw::c_ulong, - t: time_t, - ); + #[link_name = "\u{1}aws_lc_0_21_0_X509_TRUST_get_by_id"] + pub fn X509_TRUST_get_by_id(id: ::std::os::raw::c_int) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_X509_STORE_CTX_set_time_posix"] - pub fn X509_STORE_CTX_set_time_posix( - ctx: *mut X509_STORE_CTX, - flags: ::std::os::raw::c_ulong, - t: i64, - ); + #[link_name = "\u{1}aws_lc_0_21_0_X509_TRUST_get_flags"] + pub fn X509_TRUST_get_flags(xp: *const X509_TRUST) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_X509_STORE_CTX_get0_param"] - pub fn X509_STORE_CTX_get0_param(ctx: *mut X509_STORE_CTX) -> *mut X509_VERIFY_PARAM; + #[link_name = "\u{1}aws_lc_0_21_0_X509_TRUST_get0_name"] + pub fn X509_TRUST_get0_name(xp: *const X509_TRUST) -> *mut ::std::os::raw::c_char; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_X509_STORE_CTX_set0_param"] - pub fn X509_STORE_CTX_set0_param(ctx: *mut X509_STORE_CTX, param: *mut X509_VERIFY_PARAM); + #[link_name = "\u{1}aws_lc_0_21_0_X509_TRUST_get_trust"] + pub fn X509_TRUST_get_trust(xp: *const X509_TRUST) -> ::std::os::raw::c_int; +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct stack_st_X509_OBJECT { + _unused: [u8; 0], } +pub type sk_X509_OBJECT_free_func = + ::std::option::Option; +pub type sk_X509_OBJECT_copy_func = + ::std::option::Option *mut X509_OBJECT>; +pub type sk_X509_OBJECT_cmp_func = ::std::option::Option< + unsafe extern "C" fn( + arg1: *const *const X509_OBJECT, + arg2: *const *const X509_OBJECT, + ) -> ::std::os::raw::c_int, +>; +pub type sk_X509_OBJECT_delete_if_func = ::std::option::Option< + unsafe extern "C" fn( + arg1: *mut X509_OBJECT, + arg2: *mut ::std::os::raw::c_void, + ) -> ::std::os::raw::c_int, +>; extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_X509_STORE_CTX_set_default"] - pub fn X509_STORE_CTX_set_default( - ctx: *mut X509_STORE_CTX, - name: *const ::std::os::raw::c_char, + #[link_name = "\u{1}aws_lc_0_21_0_X509_LOOKUP_load_file"] + pub fn X509_LOOKUP_load_file( + lookup: *mut X509_LOOKUP, + path: *const ::std::os::raw::c_char, + type_: ::std::os::raw::c_int, ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_X509_STORE_CTX_get_by_subject"] - pub fn X509_STORE_CTX_get_by_subject( - vs: *mut X509_STORE_CTX, + #[link_name = "\u{1}aws_lc_0_21_0_X509_LOOKUP_add_dir"] + pub fn X509_LOOKUP_add_dir( + lookup: *mut X509_LOOKUP, + path: *const ::std::os::raw::c_char, type_: ::std::os::raw::c_int, - name: *mut X509_NAME, - ret: *mut X509_OBJECT, ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_X509_VERIFY_PARAM_new"] - pub fn X509_VERIFY_PARAM_new() -> *mut X509_VERIFY_PARAM; + #[link_name = "\u{1}aws_lc_0_21_0_X509_OBJECT_new"] + pub fn X509_OBJECT_new() -> *mut X509_OBJECT; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_X509_VERIFY_PARAM_free"] - pub fn X509_VERIFY_PARAM_free(param: *mut X509_VERIFY_PARAM); + #[link_name = "\u{1}aws_lc_0_21_0_X509_OBJECT_free"] + pub fn X509_OBJECT_free(obj: *mut X509_OBJECT); } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_X509_VERIFY_PARAM_inherit"] - pub fn X509_VERIFY_PARAM_inherit( - to: *mut X509_VERIFY_PARAM, - from: *const X509_VERIFY_PARAM, - ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_0_21_0_X509_OBJECT_get_type"] + pub fn X509_OBJECT_get_type(obj: *const X509_OBJECT) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_X509_VERIFY_PARAM_set1"] - pub fn X509_VERIFY_PARAM_set1( - to: *mut X509_VERIFY_PARAM, - from: *const X509_VERIFY_PARAM, - ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_0_21_0_X509_OBJECT_get0_X509"] + pub fn X509_OBJECT_get0_X509(obj: *const X509_OBJECT) -> *mut X509; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_X509_VERIFY_PARAM_set_flags"] - pub fn X509_VERIFY_PARAM_set_flags( - param: *mut X509_VERIFY_PARAM, - flags: ::std::os::raw::c_ulong, - ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_0_21_0_X509_OBJECT_get0_X509_CRL"] + pub fn X509_OBJECT_get0_X509_CRL(a: *const X509_OBJECT) -> *mut X509_CRL; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_X509_VERIFY_PARAM_clear_flags"] - pub fn X509_VERIFY_PARAM_clear_flags( - param: *mut X509_VERIFY_PARAM, - flags: ::std::os::raw::c_ulong, + #[link_name = "\u{1}aws_lc_0_21_0_X509_OBJECT_set1_X509"] + pub fn X509_OBJECT_set1_X509(a: *mut X509_OBJECT, obj: *mut X509) -> ::std::os::raw::c_int; +} +extern "C" { + #[link_name = "\u{1}aws_lc_0_21_0_X509_OBJECT_set1_X509_CRL"] + pub fn X509_OBJECT_set1_X509_CRL( + a: *mut X509_OBJECT, + obj: *mut X509_CRL, ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_X509_VERIFY_PARAM_get_flags"] - pub fn X509_VERIFY_PARAM_get_flags(param: *const X509_VERIFY_PARAM) -> ::std::os::raw::c_ulong; + #[link_name = "\u{1}aws_lc_0_21_0_X509_STORE_lock"] + pub fn X509_STORE_lock(v: *mut X509_STORE) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_X509_VERIFY_PARAM_set_purpose"] - pub fn X509_VERIFY_PARAM_set_purpose( - param: *mut X509_VERIFY_PARAM, - purpose: ::std::os::raw::c_int, - ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_0_21_0_X509_STORE_unlock"] + pub fn X509_STORE_unlock(v: *mut X509_STORE) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_X509_VERIFY_PARAM_set_trust"] - pub fn X509_VERIFY_PARAM_set_trust( - param: *mut X509_VERIFY_PARAM, - trust: ::std::os::raw::c_int, - ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_0_21_0_X509_STORE_get0_objects"] + pub fn X509_STORE_get0_objects(st: *mut X509_STORE) -> *mut stack_st_X509_OBJECT; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_X509_VERIFY_PARAM_set_depth"] - pub fn X509_VERIFY_PARAM_set_depth(param: *mut X509_VERIFY_PARAM, depth: ::std::os::raw::c_int); + #[link_name = "\u{1}aws_lc_0_21_0_X509_STORE_CTX_get1_certs"] + pub fn X509_STORE_CTX_get1_certs( + st: *mut X509_STORE_CTX, + nm: *mut X509_NAME, + ) -> *mut stack_st_X509; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_X509_VERIFY_PARAM_set_time"] - pub fn X509_VERIFY_PARAM_set_time(param: *mut X509_VERIFY_PARAM, t: time_t); + #[link_name = "\u{1}aws_lc_0_21_0_X509_STORE_CTX_get1_crls"] + pub fn X509_STORE_CTX_get1_crls( + st: *mut X509_STORE_CTX, + nm: *mut X509_NAME, + ) -> *mut stack_st_X509_CRL; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_X509_VERIFY_PARAM_set_time_posix"] - pub fn X509_VERIFY_PARAM_set_time_posix(param: *mut X509_VERIFY_PARAM, t: i64); + #[link_name = "\u{1}aws_lc_0_21_0_X509_STORE_add_lookup"] + pub fn X509_STORE_add_lookup( + v: *mut X509_STORE, + m: *const X509_LOOKUP_METHOD, + ) -> *mut X509_LOOKUP; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_X509_VERIFY_PARAM_add0_policy"] - pub fn X509_VERIFY_PARAM_add0_policy( - param: *mut X509_VERIFY_PARAM, - policy: *mut ASN1_OBJECT, - ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_0_21_0_X509_LOOKUP_hash_dir"] + pub fn X509_LOOKUP_hash_dir() -> *const X509_LOOKUP_METHOD; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_X509_VERIFY_PARAM_set1_policies"] - pub fn X509_VERIFY_PARAM_set1_policies( - param: *mut X509_VERIFY_PARAM, - policies: *const stack_st_ASN1_OBJECT, - ) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_0_21_0_X509_LOOKUP_file"] + pub fn X509_LOOKUP_file() -> *const X509_LOOKUP_METHOD; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_X509_VERIFY_PARAM_set1_host"] - pub fn X509_VERIFY_PARAM_set1_host( - param: *mut X509_VERIFY_PARAM, - name: *const ::std::os::raw::c_char, - namelen: usize, + #[link_name = "\u{1}aws_lc_0_21_0_X509_STORE_CTX_get_by_subject"] + pub fn X509_STORE_CTX_get_by_subject( + vs: *mut X509_STORE_CTX, + type_: ::std::os::raw::c_int, + name: *mut X509_NAME, + ret: *mut X509_OBJECT, ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_X509_VERIFY_PARAM_add1_host"] - pub fn X509_VERIFY_PARAM_add1_host( - param: *mut X509_VERIFY_PARAM, - name: *const ::std::os::raw::c_char, - name_len: usize, + #[link_name = "\u{1}aws_lc_0_21_0_X509_LOOKUP_ctrl"] + pub fn X509_LOOKUP_ctrl( + ctx: *mut X509_LOOKUP, + cmd: ::std::os::raw::c_int, + argc: *const ::std::os::raw::c_char, + argl: ::std::os::raw::c_long, + ret: *mut *mut ::std::os::raw::c_char, ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_X509_VERIFY_PARAM_set_hostflags"] - pub fn X509_VERIFY_PARAM_set_hostflags( - param: *mut X509_VERIFY_PARAM, - flags: ::std::os::raw::c_uint, - ); + #[link_name = "\u{1}aws_lc_0_21_0_X509_load_cert_file"] + pub fn X509_load_cert_file( + ctx: *mut X509_LOOKUP, + file: *const ::std::os::raw::c_char, + type_: ::std::os::raw::c_int, + ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_X509_VERIFY_PARAM_set1_email"] - pub fn X509_VERIFY_PARAM_set1_email( - param: *mut X509_VERIFY_PARAM, - email: *const ::std::os::raw::c_char, - emaillen: usize, + #[link_name = "\u{1}aws_lc_0_21_0_X509_load_crl_file"] + pub fn X509_load_crl_file( + ctx: *mut X509_LOOKUP, + file: *const ::std::os::raw::c_char, + type_: ::std::os::raw::c_int, ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_X509_VERIFY_PARAM_set1_ip"] - pub fn X509_VERIFY_PARAM_set1_ip( - param: *mut X509_VERIFY_PARAM, - ip: *const ::std::os::raw::c_uchar, - iplen: usize, + #[link_name = "\u{1}aws_lc_0_21_0_X509_load_cert_crl_file"] + pub fn X509_load_cert_crl_file( + ctx: *mut X509_LOOKUP, + file: *const ::std::os::raw::c_char, + type_: ::std::os::raw::c_int, ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_X509_VERIFY_PARAM_set1_ip_asc"] - pub fn X509_VERIFY_PARAM_set1_ip_asc( - param: *mut X509_VERIFY_PARAM, - ipasc: *const ::std::os::raw::c_char, + #[link_name = "\u{1}aws_lc_0_21_0_X509_STORE_load_locations"] + pub fn X509_STORE_load_locations( + ctx: *mut X509_STORE, + file: *const ::std::os::raw::c_char, + dir: *const ::std::os::raw::c_char, ) -> ::std::os::raw::c_int; } extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_X509_VERIFY_PARAM_get_depth"] - pub fn X509_VERIFY_PARAM_get_depth(param: *const X509_VERIFY_PARAM) -> ::std::os::raw::c_int; + #[link_name = "\u{1}aws_lc_0_21_0_X509_STORE_set_default_paths"] + pub fn X509_STORE_set_default_paths(ctx: *mut X509_STORE) -> ::std::os::raw::c_int; } pub type X509V3_EXT_NEW = ::std::option::Option *mut ::std::os::raw::c_void>; @@ -25715,14 +25704,6 @@ extern "C" { flags: ::std::os::raw::c_ulong, ) -> ::std::os::raw::c_int; } -extern "C" { - #[link_name = "\u{1}aws_lc_0_21_0_X509_check_purpose"] - pub fn X509_check_purpose( - x: *mut X509, - id: ::std::os::raw::c_int, - ca: ::std::os::raw::c_int, - ) -> ::std::os::raw::c_int; -} extern "C" { #[link_name = "\u{1}aws_lc_0_21_0_X509_PURPOSE_set"] pub fn X509_PURPOSE_set( From d4b985c3230136b11ca527db522b115fa66e2e16 Mon Sep 17 00:00:00 2001 From: aws-lc-sys-bindings-generator Date: Wed, 28 Aug 2024 14:45:04 +0000 Subject: [PATCH 29/36] Collected source files from macos-13-xlarge --- aws-lc-sys/builder/cc_builder/aarch64_apple_darwin.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/aws-lc-sys/builder/cc_builder/aarch64_apple_darwin.rs b/aws-lc-sys/builder/cc_builder/aarch64_apple_darwin.rs index f2fd31d3fa2..de7ac97e97c 100644 --- a/aws-lc-sys/builder/cc_builder/aarch64_apple_darwin.rs +++ b/aws-lc-sys/builder/cc_builder/aarch64_apple_darwin.rs @@ -1,6 +1,6 @@ // Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. // SPDX-License-Identifier: Apache-2.0 OR ISC -// Wed Aug 21 22:12:32 UTC 2024 +// Wed Aug 28 14:44:16 UTC 2024 use crate::cc_builder::Library; @@ -164,7 +164,7 @@ pub(super) const CRYPTO_LIBRARY: Library = Library { "crypto/rand_extra/pq_custom_randombytes.c", "crypto/rand_extra/rand_extra.c", "crypto/rc4/rc4.c", - "crypto/refcount_lock.c", + "crypto/refcount_c11.c", "crypto/rsa_extra/rsa_asn1.c", "crypto/rsa_extra/rsa_crypt.c", "crypto/rsa_extra/rsa_print.c", From 3f8971dd50720444e6dfc45947aeb59aee78818a Mon Sep 17 00:00:00 2001 From: aws-lc-sys-bindings-generator Date: Wed, 28 Aug 2024 14:46:38 +0000 Subject: [PATCH 30/36] Collected source files from ubuntu-latest --- aws-lc-sys/builder/cc_builder/x86_64_unknown_linux_gnu.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/aws-lc-sys/builder/cc_builder/x86_64_unknown_linux_gnu.rs b/aws-lc-sys/builder/cc_builder/x86_64_unknown_linux_gnu.rs index c693d9c24c4..269c0408582 100644 --- a/aws-lc-sys/builder/cc_builder/x86_64_unknown_linux_gnu.rs +++ b/aws-lc-sys/builder/cc_builder/x86_64_unknown_linux_gnu.rs @@ -1,6 +1,6 @@ // Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. // SPDX-License-Identifier: Apache-2.0 OR ISC -// Wed Aug 21 22:12:14 UTC 2024 +// Wed Aug 28 14:45:50 UTC 2024 use crate::cc_builder::Library; From 7665df64cda1009211e946d1a25828121aa8dcd4 Mon Sep 17 00:00:00 2001 From: aws-lc-sys-bindings-generator Date: Wed, 28 Aug 2024 14:47:04 +0000 Subject: [PATCH 31/36] Collected source files from macos-12 --- aws-lc-sys/builder/cc_builder/x86_64_apple_darwin.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/aws-lc-sys/builder/cc_builder/x86_64_apple_darwin.rs b/aws-lc-sys/builder/cc_builder/x86_64_apple_darwin.rs index 0d30759178f..33608c996cc 100644 --- a/aws-lc-sys/builder/cc_builder/x86_64_apple_darwin.rs +++ b/aws-lc-sys/builder/cc_builder/x86_64_apple_darwin.rs @@ -1,6 +1,6 @@ // Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. // SPDX-License-Identifier: Apache-2.0 OR ISC -// Wed Aug 21 22:13:39 UTC 2024 +// Wed Aug 28 14:45:46 UTC 2024 use crate::cc_builder::Library; @@ -164,7 +164,7 @@ pub(super) const CRYPTO_LIBRARY: Library = Library { "crypto/rand_extra/pq_custom_randombytes.c", "crypto/rand_extra/rand_extra.c", "crypto/rc4/rc4.c", - "crypto/refcount_lock.c", + "crypto/refcount_c11.c", "crypto/rsa_extra/rsa_asn1.c", "crypto/rsa_extra/rsa_crypt.c", "crypto/rsa_extra/rsa_print.c", From 1c526bf325a564f0e5571b1cbb4fa9e6065f330a Mon Sep 17 00:00:00 2001 From: aws-lc-sys-bindings-generator Date: Wed, 28 Aug 2024 14:50:30 +0000 Subject: [PATCH 32/36] Collected source files for x86_64-unknown-linux-musl --- aws-lc-sys/builder/cc_builder/x86_64_unknown_linux_musl.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/aws-lc-sys/builder/cc_builder/x86_64_unknown_linux_musl.rs b/aws-lc-sys/builder/cc_builder/x86_64_unknown_linux_musl.rs index b27196ce1b1..d20f7b079a6 100644 --- a/aws-lc-sys/builder/cc_builder/x86_64_unknown_linux_musl.rs +++ b/aws-lc-sys/builder/cc_builder/x86_64_unknown_linux_musl.rs @@ -1,6 +1,6 @@ // Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. // SPDX-License-Identifier: Apache-2.0 OR ISC -// Wed Aug 21 22:18:39 UTC 2024 +// Wed Aug 28 14:49:39 UTC 2024 use crate::cc_builder::Library; From d9368be896b5c4081f0488e72f8ecee65ac87fc7 Mon Sep 17 00:00:00 2001 From: aws-lc-sys-bindings-generator Date: Wed, 28 Aug 2024 14:52:41 +0000 Subject: [PATCH 33/36] Collected source files for i686-unknown-linux-gnu --- aws-lc-sys/builder/cc_builder/i686_unknown_linux_gnu.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/aws-lc-sys/builder/cc_builder/i686_unknown_linux_gnu.rs b/aws-lc-sys/builder/cc_builder/i686_unknown_linux_gnu.rs index 3f1a03c7dbb..a9d29ea1d39 100644 --- a/aws-lc-sys/builder/cc_builder/i686_unknown_linux_gnu.rs +++ b/aws-lc-sys/builder/cc_builder/i686_unknown_linux_gnu.rs @@ -1,6 +1,6 @@ // Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. // SPDX-License-Identifier: Apache-2.0 OR ISC -// Wed Aug 21 22:19:08 UTC 2024 +// Wed Aug 28 14:50:40 UTC 2024 use crate::cc_builder::Library; From f30919d0673a53c26e600facdeb073e6d20aa9b9 Mon Sep 17 00:00:00 2001 From: aws-lc-sys-bindings-generator Date: Wed, 28 Aug 2024 14:53:21 +0000 Subject: [PATCH 34/36] Collected source files for aarch64-unknown-linux-gnu --- aws-lc-sys/builder/cc_builder/aarch64_unknown_linux_gnu.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/aws-lc-sys/builder/cc_builder/aarch64_unknown_linux_gnu.rs b/aws-lc-sys/builder/cc_builder/aarch64_unknown_linux_gnu.rs index aa9a78ae9d6..61c26244811 100644 --- a/aws-lc-sys/builder/cc_builder/aarch64_unknown_linux_gnu.rs +++ b/aws-lc-sys/builder/cc_builder/aarch64_unknown_linux_gnu.rs @@ -1,6 +1,6 @@ // Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. // SPDX-License-Identifier: Apache-2.0 OR ISC -// Wed Aug 21 22:18:30 UTC 2024 +// Wed Aug 28 14:49:41 UTC 2024 use crate::cc_builder::Library; From b58fb89b5a1fbbac911a419dba708f0a563ddb4c Mon Sep 17 00:00:00 2001 From: aws-lc-sys-bindings-generator Date: Wed, 28 Aug 2024 14:54:07 +0000 Subject: [PATCH 35/36] Collected source files for aarch64-unknown-linux-musl --- aws-lc-sys/builder/cc_builder/aarch64_unknown_linux_musl.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/aws-lc-sys/builder/cc_builder/aarch64_unknown_linux_musl.rs b/aws-lc-sys/builder/cc_builder/aarch64_unknown_linux_musl.rs index c21930c0468..a6140af83c9 100644 --- a/aws-lc-sys/builder/cc_builder/aarch64_unknown_linux_musl.rs +++ b/aws-lc-sys/builder/cc_builder/aarch64_unknown_linux_musl.rs @@ -1,6 +1,6 @@ // Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. // SPDX-License-Identifier: Apache-2.0 OR ISC -// Wed Aug 21 22:18:54 UTC 2024 +// Wed Aug 28 14:50:47 UTC 2024 use crate::cc_builder::Library; From 99c6931929a63324d749be94653e94f16f397da6 Mon Sep 17 00:00:00 2001 From: aws-lc-sys-bindings-generator Date: Wed, 28 Aug 2024 14:57:02 +0000 Subject: [PATCH 36/36] Collected NASM files --- .../aes128gcmsiv-x86_64-disasm.txt | 1 - .../prebuilt-nasm/aes128gcmsiv-x86_64.obj | Bin 46141 -> 46141 bytes .../prebuilt-nasm/aesni-gcm-avx512-disasm.txt | 1 - .../prebuilt-nasm/aesni-gcm-avx512.obj | Bin 1543 -> 1543 bytes .../prebuilt-nasm/aesni-gcm-x86_64-disasm.txt | 1 - .../prebuilt-nasm/aesni-gcm-x86_64.obj | Bin 17632 -> 17632 bytes .../aesni-sha1-x86_64-disasm.txt | 1 - .../prebuilt-nasm/aesni-sha1-x86_64.obj | Bin 41461 -> 41461 bytes .../aesni-sha256-x86_64-disasm.txt | 1 - .../prebuilt-nasm/aesni-sha256-x86_64.obj | Bin 60211 -> 60211 bytes .../prebuilt-nasm/aesni-x86_64-disasm.txt | 5466 ++++++++--------- .../builder/prebuilt-nasm/aesni-x86_64.obj | Bin 58112 -> 56081 bytes .../prebuilt-nasm/aesni-xts-avx512-disasm.txt | 1 - .../prebuilt-nasm/aesni-xts-avx512.obj | Bin 74688 -> 74688 bytes .../prebuilt-nasm/chacha-x86_64-disasm.txt | 1 - .../builder/prebuilt-nasm/chacha-x86_64.obj | Bin 28435 -> 28435 bytes .../chacha20_poly1305_x86_64-disasm.txt | 1 - .../chacha20_poly1305_x86_64.obj | Bin 127527 -> 127527 bytes .../ghash-ssse3-x86_64-disasm.txt | 1 - .../prebuilt-nasm/ghash-ssse3-x86_64.obj | Bin 6651 -> 6651 bytes .../prebuilt-nasm/ghash-x86_64-disasm.txt | 125 +- .../builder/prebuilt-nasm/ghash-x86_64.obj | Bin 20421 -> 20321 bytes .../prebuilt-nasm/md5-x86_64-disasm.txt | 1 - .../builder/prebuilt-nasm/md5-x86_64.obj | Bin 10249 -> 10249 bytes .../prebuilt-nasm/p256-x86_64-asm-disasm.txt | 1 - .../builder/prebuilt-nasm/p256-x86_64-asm.obj | Bin 63740 -> 63740 bytes .../p256_beeu-x86_64-asm-disasm.txt | 1 - .../prebuilt-nasm/p256_beeu-x86_64-asm.obj | Bin 4795 -> 4795 bytes .../prebuilt-nasm/rdrand-x86_64-disasm.txt | 1 - .../builder/prebuilt-nasm/rdrand-x86_64.obj | Bin 1662 -> 1662 bytes .../prebuilt-nasm/rsaz-avx2-disasm.txt | 1 - .../builder/prebuilt-nasm/rsaz-avx2.obj | Bin 26635 -> 26635 bytes .../prebuilt-nasm/sha1-x86_64-disasm.txt | 1 - .../builder/prebuilt-nasm/sha1-x86_64.obj | Bin 69405 -> 69405 bytes .../prebuilt-nasm/sha256-x86_64-disasm.txt | 1 - .../builder/prebuilt-nasm/sha256-x86_64.obj | Bin 49821 -> 49821 bytes .../prebuilt-nasm/sha512-x86_64-disasm.txt | 1 - .../builder/prebuilt-nasm/sha512-x86_64.obj | Bin 34666 -> 34666 bytes .../trampoline-x86_64-disasm.txt | 1 - .../prebuilt-nasm/trampoline-x86_64.obj | Bin 13957 -> 13957 bytes .../prebuilt-nasm/vpaes-x86_64-disasm.txt | 1 - .../builder/prebuilt-nasm/vpaes-x86_64.obj | Bin 22561 -> 22561 bytes .../prebuilt-nasm/x86_64-mont-disasm.txt | 1 - .../builder/prebuilt-nasm/x86_64-mont.obj | Bin 20345 -> 20345 bytes .../prebuilt-nasm/x86_64-mont5-disasm.txt | 1 - .../builder/prebuilt-nasm/x86_64-mont5.obj | Bin 48593 -> 48593 bytes 46 files changed, 2719 insertions(+), 2893 deletions(-) diff --git a/aws-lc-sys/builder/prebuilt-nasm/aes128gcmsiv-x86_64-disasm.txt b/aws-lc-sys/builder/prebuilt-nasm/aes128gcmsiv-x86_64-disasm.txt index 55cf1bd6b48..849f8344763 100644 --- a/aws-lc-sys/builder/prebuilt-nasm/aes128gcmsiv-x86_64-disasm.txt +++ b/aws-lc-sys/builder/prebuilt-nasm/aes128gcmsiv-x86_64-disasm.txt @@ -1,4 +1,3 @@ -Microsoft (R) COFF/PE Dumper Version 14.40.33813.0 Copyright (C) Microsoft Corporation. All rights reserved. diff --git a/aws-lc-sys/builder/prebuilt-nasm/aes128gcmsiv-x86_64.obj b/aws-lc-sys/builder/prebuilt-nasm/aes128gcmsiv-x86_64.obj index 78527d1adca5ade3d63f28727d145a102b47f8a8..ccf171769781fc9204bf1867fd02614e878815b4 100644 GIT binary patch delta 18 acmdn{f@$vyCiavz7KSW~^BdXCwg3Q1`v+G5 delta 18 acmdn{f@$vyCiavz7KY@sV;kAcwg3Q2u?KYk diff --git a/aws-lc-sys/builder/prebuilt-nasm/aesni-gcm-avx512-disasm.txt b/aws-lc-sys/builder/prebuilt-nasm/aesni-gcm-avx512-disasm.txt index cf59f06c70a..18bc3a5888e 100644 --- a/aws-lc-sys/builder/prebuilt-nasm/aesni-gcm-avx512-disasm.txt +++ b/aws-lc-sys/builder/prebuilt-nasm/aesni-gcm-avx512-disasm.txt @@ -1,4 +1,3 @@ -Microsoft (R) COFF/PE Dumper Version 14.40.33813.0 Copyright (C) Microsoft Corporation. All rights reserved. diff --git a/aws-lc-sys/builder/prebuilt-nasm/aesni-gcm-avx512.obj b/aws-lc-sys/builder/prebuilt-nasm/aesni-gcm-avx512.obj index a274150731c33d7f4fb4687537de586052cd678b..9dafbef111ab89540222d1e9f1d3d376526ee031 100644 GIT binary patch delta 15 WcmZqYY3E^2X=7%{vN*qxoecmX)dV^K delta 15 WcmZqYY3E^2X=7$cPCK@coecmYZ3I{V diff --git a/aws-lc-sys/builder/prebuilt-nasm/aesni-gcm-x86_64-disasm.txt b/aws-lc-sys/builder/prebuilt-nasm/aesni-gcm-x86_64-disasm.txt index 2a8b344e10a..23a9c0d0aad 100644 --- a/aws-lc-sys/builder/prebuilt-nasm/aesni-gcm-x86_64-disasm.txt +++ b/aws-lc-sys/builder/prebuilt-nasm/aesni-gcm-x86_64-disasm.txt @@ -1,4 +1,3 @@ -Microsoft (R) COFF/PE Dumper Version 14.40.33813.0 Copyright (C) Microsoft Corporation. All rights reserved. diff --git a/aws-lc-sys/builder/prebuilt-nasm/aesni-gcm-x86_64.obj b/aws-lc-sys/builder/prebuilt-nasm/aesni-gcm-x86_64.obj index b4b19217bf587c1241c863384860ce38cde69b85..5390d04e5d115cf2e07390fdda4abeb666981b22 100644 GIT binary patch delta 18 ZcmaFR$@rj?kv*l2jUmh8{6_YhE&xQx2ND1P delta 18 ZcmaFR$@rj?kv*l2jUhSh*hco7E&xS-2QUBt diff --git a/aws-lc-sys/builder/prebuilt-nasm/aesni-sha1-x86_64-disasm.txt b/aws-lc-sys/builder/prebuilt-nasm/aesni-sha1-x86_64-disasm.txt index c7957c26b52..2d3a19039ff 100644 --- a/aws-lc-sys/builder/prebuilt-nasm/aesni-sha1-x86_64-disasm.txt +++ b/aws-lc-sys/builder/prebuilt-nasm/aesni-sha1-x86_64-disasm.txt @@ -1,4 +1,3 @@ -Microsoft (R) COFF/PE Dumper Version 14.40.33813.0 Copyright (C) Microsoft Corporation. All rights reserved. diff --git a/aws-lc-sys/builder/prebuilt-nasm/aesni-sha1-x86_64.obj b/aws-lc-sys/builder/prebuilt-nasm/aesni-sha1-x86_64.obj index c04dcf5f12ba0dad04c436aa22f1631f2a4c0cbe..944a9c2c94f368b570e351be81aa6ac227a8bd59 100644 GIT binary patch delta 18 acmex*nCa_bCiavzHij&V^BdXUEd&5hCkP|} delta 18 acmex*nCa_bCiavzHiqQ1V;kAuEd&5h-3USe diff --git a/aws-lc-sys/builder/prebuilt-nasm/aesni-sha256-x86_64-disasm.txt b/aws-lc-sys/builder/prebuilt-nasm/aesni-sha256-x86_64-disasm.txt index bd65057b2b8..3ccfc3f9f92 100644 --- a/aws-lc-sys/builder/prebuilt-nasm/aesni-sha256-x86_64-disasm.txt +++ b/aws-lc-sys/builder/prebuilt-nasm/aesni-sha256-x86_64-disasm.txt @@ -1,4 +1,3 @@ -Microsoft (R) COFF/PE Dumper Version 14.40.33813.0 Copyright (C) Microsoft Corporation. All rights reserved. diff --git a/aws-lc-sys/builder/prebuilt-nasm/aesni-sha256-x86_64.obj b/aws-lc-sys/builder/prebuilt-nasm/aesni-sha256-x86_64.obj index b73b453943338ad00520f2dc4d2d990f5883d0f4..bc478069e78763fa02fb5d6a60ca07db53e81de7 100644 GIT binary patch delta 18 acmdmdjd}AmX7-deHij&V^BdW9UIPF})dx@j delta 18 acmdmdjd}AmX7-deHiqQ1V;k9ZUIPF~iwAB1 diff --git a/aws-lc-sys/builder/prebuilt-nasm/aesni-x86_64-disasm.txt b/aws-lc-sys/builder/prebuilt-nasm/aesni-x86_64-disasm.txt index 8515e841b00..1c6018872af 100644 --- a/aws-lc-sys/builder/prebuilt-nasm/aesni-x86_64-disasm.txt +++ b/aws-lc-sys/builder/prebuilt-nasm/aesni-x86_64-disasm.txt @@ -1,4 +1,3 @@ -Microsoft (R) COFF/PE Dumper Version 14.40.33813.0 Copyright (C) Microsoft Corporation. All rights reserved. @@ -1055,34 +1054,29 @@ L$SEH_begin_aes_hw_ctr32_encrypt_blocks: 0000000000000D76: 4C 89 C9 mov rcx,r9 0000000000000D79: 4C 8B 44 24 28 mov r8,qword ptr [rsp+28h] 0000000000000D7E: 48 83 FA 01 cmp rdx,1 - 0000000000000D82: 0F 85 58 00 00 00 jne L$ctr32_bulk - 0000000000000D88: 41 0F 10 10 movups xmm2,xmmword ptr [r8] - 0000000000000D8C: 0F 10 1F movups xmm3,xmmword ptr [rdi] - 0000000000000D8F: 8B 91 F0 00 00 00 mov edx,dword ptr [rcx+0F0h] - 0000000000000D95: 0F 10 01 movups xmm0,xmmword ptr [rcx] - 0000000000000D98: 0F 10 49 10 movups xmm1,xmmword ptr [rcx+10h] - 0000000000000D9C: 48 8D 49 20 lea rcx,[rcx+20h] - 0000000000000DA0: 0F 57 D0 xorps xmm2,xmm0 + 0000000000000D82: 0F 82 37 08 00 00 jb L$ctr32_epilogue + 0000000000000D88: 0F 85 52 00 00 00 jne L$ctr32_bulk + 0000000000000D8E: 41 0F 10 10 movups xmm2,xmmword ptr [r8] + 0000000000000D92: 0F 10 1F movups xmm3,xmmword ptr [rdi] + 0000000000000D95: 8B 91 F0 00 00 00 mov edx,dword ptr [rcx+0F0h] + 0000000000000D9B: 0F 10 01 movups xmm0,xmmword ptr [rcx] + 0000000000000D9E: 0F 10 49 10 movups xmm1,xmmword ptr [rcx+10h] + 0000000000000DA2: 48 8D 49 20 lea rcx,[rcx+20h] + 0000000000000DA6: 0F 57 D0 xorps xmm2,xmm0 L$oop_enc1_5: - 0000000000000DA3: 66 0F 38 DC D1 aesenc xmm2,xmm1 - 0000000000000DA8: FF CA dec edx - 0000000000000DAA: 0F 10 09 movups xmm1,xmmword ptr [rcx] - 0000000000000DAD: 48 8D 49 10 lea rcx,[rcx+10h] - 0000000000000DB1: 0F 85 EC FF FF FF jne L$oop_enc1_5 - 0000000000000DB7: 66 0F 38 DD D1 aesenclast xmm2,xmm1 - 0000000000000DBC: 66 0F EF C0 pxor xmm0,xmm0 - 0000000000000DC0: 66 0F EF C9 pxor xmm1,xmm1 - 0000000000000DC4: 0F 57 D3 xorps xmm2,xmm3 - 0000000000000DC7: 66 0F EF DB pxor xmm3,xmm3 - 0000000000000DCB: 0F 11 16 movups xmmword ptr [rsi],xmm2 - 0000000000000DCE: 0F 57 D2 xorps xmm2,xmm2 - 0000000000000DD1: E9 89 09 00 00 jmp L$ctr32_epilogue - 0000000000000DD6: 90 nop - 0000000000000DD7: 90 nop - 0000000000000DD8: 90 nop - 0000000000000DD9: 90 nop - 0000000000000DDA: 90 nop - 0000000000000DDB: 90 nop + 0000000000000DA9: 66 0F 38 DC D1 aesenc xmm2,xmm1 + 0000000000000DAE: FF CA dec edx + 0000000000000DB0: 0F 10 09 movups xmm1,xmmword ptr [rcx] + 0000000000000DB3: 48 8D 49 10 lea rcx,[rcx+10h] + 0000000000000DB7: 0F 85 EC FF FF FF jne L$oop_enc1_5 + 0000000000000DBD: 66 0F 38 DD D1 aesenclast xmm2,xmm1 + 0000000000000DC2: 66 0F EF C0 pxor xmm0,xmm0 + 0000000000000DC6: 66 0F EF C9 pxor xmm1,xmm1 + 0000000000000DCA: 0F 57 D3 xorps xmm2,xmm3 + 0000000000000DCD: 66 0F EF DB pxor xmm3,xmm3 + 0000000000000DD1: 0F 11 16 movups xmmword ptr [rsi],xmm2 + 0000000000000DD4: 0F 57 D2 xorps xmm2,xmm2 + 0000000000000DD7: E9 E3 07 00 00 jmp L$ctr32_epilogue 0000000000000DDC: 90 nop 0000000000000DDD: 90 nop 0000000000000DDE: 90 nop @@ -1153,3025 +1147,2859 @@ L$ctr32_body: 0000000000000EDB: 4D 8D 48 07 lea r9,[r8+7] 0000000000000EDF: 44 89 54 24 6C mov dword ptr [rsp+6Ch],r10d 0000000000000EE4: 41 0F C9 bswap r9d - 0000000000000EE7: 4C 8D 15 00 00 00 lea r10,[aws_lc_0_21_0_OPENSSL_ia32cap_P] + 0000000000000EE7: 41 31 E9 xor r9d,ebp + 0000000000000EEA: 44 89 4C 24 7C mov dword ptr [rsp+7Ch],r9d + 0000000000000EEF: 0F 10 49 10 movups xmm1,xmmword ptr [rcx+10h] + 0000000000000EF3: 66 0F 6F 74 24 40 movdqa xmm6,xmmword ptr [rsp+40h] + 0000000000000EF9: 66 0F 6F 7C 24 50 movdqa xmm7,xmmword ptr [rsp+50h] + 0000000000000EFF: 48 83 FA 08 cmp rdx,8 + 0000000000000F03: 0F 82 3F 04 00 00 jb L$ctr32_tail + 0000000000000F09: 48 8D 89 80 00 00 lea rcx,[rcx+80h] 00 - 0000000000000EEE: 45 8B 52 04 mov r10d,dword ptr [r10+4] - 0000000000000EF2: 41 31 E9 xor r9d,ebp - 0000000000000EF5: 41 81 E2 00 00 40 and r10d,4400000h - 04 - 0000000000000EFC: 44 89 4C 24 7C mov dword ptr [rsp+7Ch],r9d - 0000000000000F01: 0F 10 49 10 movups xmm1,xmmword ptr [rcx+10h] - 0000000000000F05: 66 0F 6F 74 24 40 movdqa xmm6,xmmword ptr [rsp+40h] - 0000000000000F0B: 66 0F 6F 7C 24 50 movdqa xmm7,xmmword ptr [rsp+50h] - 0000000000000F11: 48 83 FA 08 cmp rdx,8 - 0000000000000F15: 0F 82 CD 05 00 00 jb L$ctr32_tail - 0000000000000F1B: 48 83 EA 06 sub rdx,6 - 0000000000000F1F: 41 81 FA 00 00 40 cmp r10d,400000h - 00 - 0000000000000F26: 0F 84 14 00 00 00 je L$ctr32_6x - 0000000000000F2C: 48 8D 89 80 00 00 lea rcx,[rcx+80h] - 00 - 0000000000000F33: 48 83 EA 02 sub rdx,2 - 0000000000000F37: E9 84 01 00 00 jmp L$ctr32_loop8 - 0000000000000F3C: 90 nop - 0000000000000F3D: 90 nop - 0000000000000F3E: 90 nop - 0000000000000F3F: 90 nop -L$ctr32_6x: - 0000000000000F40: C1 E0 04 shl eax,4 - 0000000000000F43: 41 BA 30 00 00 00 mov r10d,30h - 0000000000000F49: 0F CD bswap ebp - 0000000000000F4B: 48 8D 4C 01 20 lea rcx,[rcx+rax+20h] - 0000000000000F50: 49 29 C2 sub r10,rax - 0000000000000F53: E9 08 00 00 00 jmp L$ctr32_loop6 - 0000000000000F58: 90 nop - 0000000000000F59: 90 nop - 0000000000000F5A: 90 nop - 0000000000000F5B: 90 nop - 0000000000000F5C: 90 nop - 0000000000000F5D: 90 nop - 0000000000000F5E: 90 nop - 0000000000000F5F: 90 nop -L$ctr32_loop6: - 0000000000000F60: 41 83 C0 06 add r8d,6 - 0000000000000F64: 42 0F 10 44 11 D0 movups xmm0,xmmword ptr [rcx+r10-30h] - 0000000000000F6A: 66 0F 38 DC D1 aesenc xmm2,xmm1 - 0000000000000F6F: 44 89 C0 mov eax,r8d - 0000000000000F72: 31 E8 xor eax,ebp - 0000000000000F74: 66 0F 38 DC D9 aesenc xmm3,xmm1 - 0000000000000F79: 0F 38 F1 44 24 0C movbe dword ptr [rsp+0Ch],eax - 0000000000000F7F: 41 8D 40 01 lea eax,[r8+1] - 0000000000000F83: 66 0F 38 DC E1 aesenc xmm4,xmm1 - 0000000000000F88: 31 E8 xor eax,ebp - 0000000000000F8A: 0F 38 F1 44 24 1C movbe dword ptr [rsp+1Ch],eax - 0000000000000F90: 66 0F 38 DC E9 aesenc xmm5,xmm1 - 0000000000000F95: 41 8D 40 02 lea eax,[r8+2] - 0000000000000F99: 31 E8 xor eax,ebp - 0000000000000F9B: 66 0F 38 DC F1 aesenc xmm6,xmm1 - 0000000000000FA0: 0F 38 F1 44 24 2C movbe dword ptr [rsp+2Ch],eax - 0000000000000FA6: 41 8D 40 03 lea eax,[r8+3] - 0000000000000FAA: 66 0F 38 DC F9 aesenc xmm7,xmm1 - 0000000000000FAF: 42 0F 10 4C 11 E0 movups xmm1,xmmword ptr [rcx+r10-20h] - 0000000000000FB5: 31 E8 xor eax,ebp - 0000000000000FB7: 66 0F 38 DC D0 aesenc xmm2,xmm0 - 0000000000000FBC: 0F 38 F1 44 24 3C movbe dword ptr [rsp+3Ch],eax - 0000000000000FC2: 41 8D 40 04 lea eax,[r8+4] - 0000000000000FC6: 66 0F 38 DC D8 aesenc xmm3,xmm0 - 0000000000000FCB: 31 E8 xor eax,ebp - 0000000000000FCD: 0F 38 F1 44 24 4C movbe dword ptr [rsp+4Ch],eax - 0000000000000FD3: 66 0F 38 DC E0 aesenc xmm4,xmm0 - 0000000000000FD8: 41 8D 40 05 lea eax,[r8+5] - 0000000000000FDC: 31 E8 xor eax,ebp - 0000000000000FDE: 66 0F 38 DC E8 aesenc xmm5,xmm0 - 0000000000000FE3: 0F 38 F1 44 24 5C movbe dword ptr [rsp+5Ch],eax - 0000000000000FE9: 4C 89 D0 mov rax,r10 - 0000000000000FEC: 66 0F 38 DC F0 aesenc xmm6,xmm0 - 0000000000000FF1: 66 0F 38 DC F8 aesenc xmm7,xmm0 - 0000000000000FF6: 42 0F 10 44 11 F0 movups xmm0,xmmword ptr [rcx+r10-10h] - 0000000000000FFC: E8 CF F3 FF FF call L$enc_loop6 - 0000000000001001: F3 44 0F 6F 07 movdqu xmm8,xmmword ptr [rdi] - 0000000000001006: F3 44 0F 6F 4F 10 movdqu xmm9,xmmword ptr [rdi+10h] - 000000000000100C: F3 44 0F 6F 57 20 movdqu xmm10,xmmword ptr [rdi+20h] - 0000000000001012: F3 44 0F 6F 5F 30 movdqu xmm11,xmmword ptr [rdi+30h] - 0000000000001018: F3 44 0F 6F 67 40 movdqu xmm12,xmmword ptr [rdi+40h] - 000000000000101E: F3 44 0F 6F 6F 50 movdqu xmm13,xmmword ptr [rdi+50h] - 0000000000001024: 48 8D 7F 60 lea rdi,[rdi+60h] - 0000000000001028: 42 0F 10 4C 11 C0 movups xmm1,xmmword ptr [rcx+r10-40h] - 000000000000102E: 66 44 0F EF C2 pxor xmm8,xmm2 - 0000000000001033: 0F 28 14 24 movaps xmm2,xmmword ptr [rsp] - 0000000000001037: 66 44 0F EF CB pxor xmm9,xmm3 - 000000000000103C: 0F 28 5C 24 10 movaps xmm3,xmmword ptr [rsp+10h] - 0000000000001041: 66 44 0F EF D4 pxor xmm10,xmm4 - 0000000000001046: 0F 28 64 24 20 movaps xmm4,xmmword ptr [rsp+20h] - 000000000000104B: 66 44 0F EF DD pxor xmm11,xmm5 - 0000000000001050: 0F 28 6C 24 30 movaps xmm5,xmmword ptr [rsp+30h] - 0000000000001055: 66 44 0F EF E6 pxor xmm12,xmm6 - 000000000000105A: 0F 28 74 24 40 movaps xmm6,xmmword ptr [rsp+40h] - 000000000000105F: 66 44 0F EF EF pxor xmm13,xmm7 - 0000000000001064: 0F 28 7C 24 50 movaps xmm7,xmmword ptr [rsp+50h] - 0000000000001069: F3 44 0F 7F 06 movdqu xmmword ptr [rsi],xmm8 - 000000000000106E: F3 44 0F 7F 4E 10 movdqu xmmword ptr [rsi+10h],xmm9 - 0000000000001074: F3 44 0F 7F 56 20 movdqu xmmword ptr [rsi+20h],xmm10 - 000000000000107A: F3 44 0F 7F 5E 30 movdqu xmmword ptr [rsi+30h],xmm11 - 0000000000001080: F3 44 0F 7F 66 40 movdqu xmmword ptr [rsi+40h],xmm12 - 0000000000001086: F3 44 0F 7F 6E 50 movdqu xmmword ptr [rsi+50h],xmm13 - 000000000000108C: 48 8D 76 60 lea rsi,[rsi+60h] - 0000000000001090: 48 83 EA 06 sub rdx,6 - 0000000000001094: 0F 83 C6 FE FF FF jae L$ctr32_loop6 - 000000000000109A: 48 83 C2 06 add rdx,6 - 000000000000109E: 0F 84 FE 05 00 00 je L$ctr32_done - 00000000000010A4: 41 8D 42 D0 lea eax,[r10-30h] - 00000000000010A8: 4A 8D 4C 11 B0 lea rcx,[rcx+r10-50h] - 00000000000010AD: F7 D8 neg eax - 00000000000010AF: C1 E8 04 shr eax,4 - 00000000000010B2: E9 31 04 00 00 jmp L$ctr32_tail - 00000000000010B7: 90 nop - 00000000000010B8: 90 nop - 00000000000010B9: 90 nop - 00000000000010BA: 90 nop - 00000000000010BB: 90 nop - 00000000000010BC: 90 nop - 00000000000010BD: 90 nop - 00000000000010BE: 90 nop - 00000000000010BF: 90 nop + 0000000000000F10: 48 83 EA 08 sub rdx,8 + 0000000000000F14: E9 07 00 00 00 jmp L$ctr32_loop8 + 0000000000000F19: 90 nop + 0000000000000F1A: 90 nop + 0000000000000F1B: 90 nop + 0000000000000F1C: 90 nop + 0000000000000F1D: 90 nop + 0000000000000F1E: 90 nop + 0000000000000F1F: 90 nop L$ctr32_loop8: - 00000000000010C0: 41 83 C0 08 add r8d,8 - 00000000000010C4: 66 44 0F 6F 44 24 movdqa xmm8,xmmword ptr [rsp+60h] + 0000000000000F20: 41 83 C0 08 add r8d,8 + 0000000000000F24: 66 44 0F 6F 44 24 movdqa xmm8,xmmword ptr [rsp+60h] 60 - 00000000000010CB: 66 0F 38 DC D1 aesenc xmm2,xmm1 - 00000000000010D0: 45 89 C1 mov r9d,r8d - 00000000000010D3: 66 44 0F 6F 4C 24 movdqa xmm9,xmmword ptr [rsp+70h] + 0000000000000F2B: 66 0F 38 DC D1 aesenc xmm2,xmm1 + 0000000000000F30: 45 89 C1 mov r9d,r8d + 0000000000000F33: 66 44 0F 6F 4C 24 movdqa xmm9,xmmword ptr [rsp+70h] 70 - 00000000000010DA: 66 0F 38 DC D9 aesenc xmm3,xmm1 - 00000000000010DF: 41 0F C9 bswap r9d - 00000000000010E2: 0F 10 41 A0 movups xmm0,xmmword ptr [rcx-60h] - 00000000000010E6: 66 0F 38 DC E1 aesenc xmm4,xmm1 - 00000000000010EB: 41 31 E9 xor r9d,ebp - 00000000000010EE: 90 nop - 00000000000010EF: 66 0F 38 DC E9 aesenc xmm5,xmm1 - 00000000000010F4: 44 89 4C 24 0C mov dword ptr [rsp+0Ch],r9d - 00000000000010F9: 4D 8D 48 01 lea r9,[r8+1] - 00000000000010FD: 66 0F 38 DC F1 aesenc xmm6,xmm1 - 0000000000001102: 66 0F 38 DC F9 aesenc xmm7,xmm1 - 0000000000001107: 66 44 0F 38 DC C1 aesenc xmm8,xmm1 - 000000000000110D: 66 44 0F 38 DC C9 aesenc xmm9,xmm1 - 0000000000001113: 0F 10 49 B0 movups xmm1,xmmword ptr [rcx-50h] - 0000000000001117: 41 0F C9 bswap r9d - 000000000000111A: 66 0F 38 DC D0 aesenc xmm2,xmm0 - 000000000000111F: 66 0F 38 DC D8 aesenc xmm3,xmm0 - 0000000000001124: 41 31 E9 xor r9d,ebp - 0000000000001127: 66 90 nop - 0000000000001129: 66 0F 38 DC E0 aesenc xmm4,xmm0 - 000000000000112E: 66 0F 38 DC E8 aesenc xmm5,xmm0 - 0000000000001133: 44 89 4C 24 1C mov dword ptr [rsp+1Ch],r9d - 0000000000001138: 4D 8D 48 02 lea r9,[r8+2] - 000000000000113C: 66 0F 38 DC F0 aesenc xmm6,xmm0 - 0000000000001141: 66 0F 38 DC F8 aesenc xmm7,xmm0 - 0000000000001146: 66 44 0F 38 DC C0 aesenc xmm8,xmm0 - 000000000000114C: 66 44 0F 38 DC C8 aesenc xmm9,xmm0 - 0000000000001152: 0F 10 41 C0 movups xmm0,xmmword ptr [rcx-40h] - 0000000000001156: 41 0F C9 bswap r9d - 0000000000001159: 66 0F 38 DC D1 aesenc xmm2,xmm1 - 000000000000115E: 66 0F 38 DC D9 aesenc xmm3,xmm1 - 0000000000001163: 41 31 E9 xor r9d,ebp - 0000000000001166: 66 90 nop - 0000000000001168: 66 0F 38 DC E1 aesenc xmm4,xmm1 - 000000000000116D: 66 0F 38 DC E9 aesenc xmm5,xmm1 - 0000000000001172: 44 89 4C 24 2C mov dword ptr [rsp+2Ch],r9d - 0000000000001177: 4D 8D 48 03 lea r9,[r8+3] - 000000000000117B: 66 0F 38 DC F1 aesenc xmm6,xmm1 - 0000000000001180: 66 0F 38 DC F9 aesenc xmm7,xmm1 - 0000000000001185: 66 44 0F 38 DC C1 aesenc xmm8,xmm1 - 000000000000118B: 66 44 0F 38 DC C9 aesenc xmm9,xmm1 - 0000000000001191: 0F 10 49 D0 movups xmm1,xmmword ptr [rcx-30h] - 0000000000001195: 41 0F C9 bswap r9d - 0000000000001198: 66 0F 38 DC D0 aesenc xmm2,xmm0 - 000000000000119D: 66 0F 38 DC D8 aesenc xmm3,xmm0 - 00000000000011A2: 41 31 E9 xor r9d,ebp - 00000000000011A5: 66 90 nop - 00000000000011A7: 66 0F 38 DC E0 aesenc xmm4,xmm0 - 00000000000011AC: 66 0F 38 DC E8 aesenc xmm5,xmm0 - 00000000000011B1: 44 89 4C 24 3C mov dword ptr [rsp+3Ch],r9d - 00000000000011B6: 4D 8D 48 04 lea r9,[r8+4] - 00000000000011BA: 66 0F 38 DC F0 aesenc xmm6,xmm0 - 00000000000011BF: 66 0F 38 DC F8 aesenc xmm7,xmm0 - 00000000000011C4: 66 44 0F 38 DC C0 aesenc xmm8,xmm0 - 00000000000011CA: 66 44 0F 38 DC C8 aesenc xmm9,xmm0 - 00000000000011D0: 0F 10 41 E0 movups xmm0,xmmword ptr [rcx-20h] - 00000000000011D4: 41 0F C9 bswap r9d - 00000000000011D7: 66 0F 38 DC D1 aesenc xmm2,xmm1 - 00000000000011DC: 66 0F 38 DC D9 aesenc xmm3,xmm1 - 00000000000011E1: 41 31 E9 xor r9d,ebp - 00000000000011E4: 66 90 nop - 00000000000011E6: 66 0F 38 DC E1 aesenc xmm4,xmm1 - 00000000000011EB: 66 0F 38 DC E9 aesenc xmm5,xmm1 - 00000000000011F0: 44 89 4C 24 4C mov dword ptr [rsp+4Ch],r9d - 00000000000011F5: 4D 8D 48 05 lea r9,[r8+5] - 00000000000011F9: 66 0F 38 DC F1 aesenc xmm6,xmm1 - 00000000000011FE: 66 0F 38 DC F9 aesenc xmm7,xmm1 - 0000000000001203: 66 44 0F 38 DC C1 aesenc xmm8,xmm1 - 0000000000001209: 66 44 0F 38 DC C9 aesenc xmm9,xmm1 - 000000000000120F: 0F 10 49 F0 movups xmm1,xmmword ptr [rcx-10h] - 0000000000001213: 41 0F C9 bswap r9d - 0000000000001216: 66 0F 38 DC D0 aesenc xmm2,xmm0 - 000000000000121B: 66 0F 38 DC D8 aesenc xmm3,xmm0 - 0000000000001220: 41 31 E9 xor r9d,ebp - 0000000000001223: 66 90 nop - 0000000000001225: 66 0F 38 DC E0 aesenc xmm4,xmm0 - 000000000000122A: 66 0F 38 DC E8 aesenc xmm5,xmm0 - 000000000000122F: 44 89 4C 24 5C mov dword ptr [rsp+5Ch],r9d - 0000000000001234: 4D 8D 48 06 lea r9,[r8+6] - 0000000000001238: 66 0F 38 DC F0 aesenc xmm6,xmm0 - 000000000000123D: 66 0F 38 DC F8 aesenc xmm7,xmm0 - 0000000000001242: 66 44 0F 38 DC C0 aesenc xmm8,xmm0 - 0000000000001248: 66 44 0F 38 DC C8 aesenc xmm9,xmm0 - 000000000000124E: 0F 10 01 movups xmm0,xmmword ptr [rcx] - 0000000000001251: 41 0F C9 bswap r9d - 0000000000001254: 66 0F 38 DC D1 aesenc xmm2,xmm1 - 0000000000001259: 66 0F 38 DC D9 aesenc xmm3,xmm1 - 000000000000125E: 41 31 E9 xor r9d,ebp - 0000000000001261: 66 90 nop - 0000000000001263: 66 0F 38 DC E1 aesenc xmm4,xmm1 - 0000000000001268: 66 0F 38 DC E9 aesenc xmm5,xmm1 - 000000000000126D: 44 89 4C 24 6C mov dword ptr [rsp+6Ch],r9d - 0000000000001272: 4D 8D 48 07 lea r9,[r8+7] - 0000000000001276: 66 0F 38 DC F1 aesenc xmm6,xmm1 - 000000000000127B: 66 0F 38 DC F9 aesenc xmm7,xmm1 - 0000000000001280: 66 44 0F 38 DC C1 aesenc xmm8,xmm1 - 0000000000001286: 66 44 0F 38 DC C9 aesenc xmm9,xmm1 - 000000000000128C: 0F 10 49 10 movups xmm1,xmmword ptr [rcx+10h] - 0000000000001290: 41 0F C9 bswap r9d - 0000000000001293: 66 0F 38 DC D0 aesenc xmm2,xmm0 - 0000000000001298: 66 0F 38 DC D8 aesenc xmm3,xmm0 - 000000000000129D: 66 0F 38 DC E0 aesenc xmm4,xmm0 - 00000000000012A2: 41 31 E9 xor r9d,ebp - 00000000000012A5: F3 44 0F 6F 17 movdqu xmm10,xmmword ptr [rdi] - 00000000000012AA: 66 0F 38 DC E8 aesenc xmm5,xmm0 - 00000000000012AF: 44 89 4C 24 7C mov dword ptr [rsp+7Ch],r9d - 00000000000012B4: 83 F8 0B cmp eax,0Bh - 00000000000012B7: 66 0F 38 DC F0 aesenc xmm6,xmm0 - 00000000000012BC: 66 0F 38 DC F8 aesenc xmm7,xmm0 - 00000000000012C1: 66 44 0F 38 DC C0 aesenc xmm8,xmm0 - 00000000000012C7: 66 44 0F 38 DC C8 aesenc xmm9,xmm0 - 00000000000012CD: 0F 10 41 20 movups xmm0,xmmword ptr [rcx+20h] - 00000000000012D1: 0F 82 C9 00 00 00 jb L$ctr32_enc_done - 00000000000012D7: 66 0F 38 DC D1 aesenc xmm2,xmm1 - 00000000000012DC: 66 0F 38 DC D9 aesenc xmm3,xmm1 - 00000000000012E1: 66 0F 38 DC E1 aesenc xmm4,xmm1 - 00000000000012E6: 66 0F 38 DC E9 aesenc xmm5,xmm1 - 00000000000012EB: 66 0F 38 DC F1 aesenc xmm6,xmm1 - 00000000000012F0: 66 0F 38 DC F9 aesenc xmm7,xmm1 - 00000000000012F5: 66 44 0F 38 DC C1 aesenc xmm8,xmm1 - 00000000000012FB: 66 44 0F 38 DC C9 aesenc xmm9,xmm1 - 0000000000001301: 0F 10 49 30 movups xmm1,xmmword ptr [rcx+30h] - 0000000000001305: 66 0F 38 DC D0 aesenc xmm2,xmm0 - 000000000000130A: 66 0F 38 DC D8 aesenc xmm3,xmm0 - 000000000000130F: 66 0F 38 DC E0 aesenc xmm4,xmm0 - 0000000000001314: 66 0F 38 DC E8 aesenc xmm5,xmm0 - 0000000000001319: 66 0F 38 DC F0 aesenc xmm6,xmm0 - 000000000000131E: 66 0F 38 DC F8 aesenc xmm7,xmm0 - 0000000000001323: 66 44 0F 38 DC C0 aesenc xmm8,xmm0 - 0000000000001329: 66 44 0F 38 DC C8 aesenc xmm9,xmm0 - 000000000000132F: 0F 10 41 40 movups xmm0,xmmword ptr [rcx+40h] - 0000000000001333: 0F 84 67 00 00 00 je L$ctr32_enc_done - 0000000000001339: 66 0F 38 DC D1 aesenc xmm2,xmm1 - 000000000000133E: 66 0F 38 DC D9 aesenc xmm3,xmm1 - 0000000000001343: 66 0F 38 DC E1 aesenc xmm4,xmm1 - 0000000000001348: 66 0F 38 DC E9 aesenc xmm5,xmm1 - 000000000000134D: 66 0F 38 DC F1 aesenc xmm6,xmm1 - 0000000000001352: 66 0F 38 DC F9 aesenc xmm7,xmm1 - 0000000000001357: 66 44 0F 38 DC C1 aesenc xmm8,xmm1 - 000000000000135D: 66 44 0F 38 DC C9 aesenc xmm9,xmm1 - 0000000000001363: 0F 10 49 50 movups xmm1,xmmword ptr [rcx+50h] - 0000000000001367: 66 0F 38 DC D0 aesenc xmm2,xmm0 - 000000000000136C: 66 0F 38 DC D8 aesenc xmm3,xmm0 - 0000000000001371: 66 0F 38 DC E0 aesenc xmm4,xmm0 - 0000000000001376: 66 0F 38 DC E8 aesenc xmm5,xmm0 - 000000000000137B: 66 0F 38 DC F0 aesenc xmm6,xmm0 - 0000000000001380: 66 0F 38 DC F8 aesenc xmm7,xmm0 - 0000000000001385: 66 44 0F 38 DC C0 aesenc xmm8,xmm0 - 000000000000138B: 66 44 0F 38 DC C8 aesenc xmm9,xmm0 - 0000000000001391: 0F 10 41 60 movups xmm0,xmmword ptr [rcx+60h] - 0000000000001395: E9 06 00 00 00 jmp L$ctr32_enc_done - 000000000000139A: 90 nop - 000000000000139B: 90 nop - 000000000000139C: 90 nop - 000000000000139D: 90 nop - 000000000000139E: 90 nop - 000000000000139F: 90 nop + 0000000000000F3A: 66 0F 38 DC D9 aesenc xmm3,xmm1 + 0000000000000F3F: 41 0F C9 bswap r9d + 0000000000000F42: 0F 10 41 A0 movups xmm0,xmmword ptr [rcx-60h] + 0000000000000F46: 66 0F 38 DC E1 aesenc xmm4,xmm1 + 0000000000000F4B: 41 31 E9 xor r9d,ebp + 0000000000000F4E: 90 nop + 0000000000000F4F: 66 0F 38 DC E9 aesenc xmm5,xmm1 + 0000000000000F54: 44 89 4C 24 0C mov dword ptr [rsp+0Ch],r9d + 0000000000000F59: 4D 8D 48 01 lea r9,[r8+1] + 0000000000000F5D: 66 0F 38 DC F1 aesenc xmm6,xmm1 + 0000000000000F62: 66 0F 38 DC F9 aesenc xmm7,xmm1 + 0000000000000F67: 66 44 0F 38 DC C1 aesenc xmm8,xmm1 + 0000000000000F6D: 66 44 0F 38 DC C9 aesenc xmm9,xmm1 + 0000000000000F73: 0F 10 49 B0 movups xmm1,xmmword ptr [rcx-50h] + 0000000000000F77: 41 0F C9 bswap r9d + 0000000000000F7A: 66 0F 38 DC D0 aesenc xmm2,xmm0 + 0000000000000F7F: 66 0F 38 DC D8 aesenc xmm3,xmm0 + 0000000000000F84: 41 31 E9 xor r9d,ebp + 0000000000000F87: 66 90 nop + 0000000000000F89: 66 0F 38 DC E0 aesenc xmm4,xmm0 + 0000000000000F8E: 66 0F 38 DC E8 aesenc xmm5,xmm0 + 0000000000000F93: 44 89 4C 24 1C mov dword ptr [rsp+1Ch],r9d + 0000000000000F98: 4D 8D 48 02 lea r9,[r8+2] + 0000000000000F9C: 66 0F 38 DC F0 aesenc xmm6,xmm0 + 0000000000000FA1: 66 0F 38 DC F8 aesenc xmm7,xmm0 + 0000000000000FA6: 66 44 0F 38 DC C0 aesenc xmm8,xmm0 + 0000000000000FAC: 66 44 0F 38 DC C8 aesenc xmm9,xmm0 + 0000000000000FB2: 0F 10 41 C0 movups xmm0,xmmword ptr [rcx-40h] + 0000000000000FB6: 41 0F C9 bswap r9d + 0000000000000FB9: 66 0F 38 DC D1 aesenc xmm2,xmm1 + 0000000000000FBE: 66 0F 38 DC D9 aesenc xmm3,xmm1 + 0000000000000FC3: 41 31 E9 xor r9d,ebp + 0000000000000FC6: 66 90 nop + 0000000000000FC8: 66 0F 38 DC E1 aesenc xmm4,xmm1 + 0000000000000FCD: 66 0F 38 DC E9 aesenc xmm5,xmm1 + 0000000000000FD2: 44 89 4C 24 2C mov dword ptr [rsp+2Ch],r9d + 0000000000000FD7: 4D 8D 48 03 lea r9,[r8+3] + 0000000000000FDB: 66 0F 38 DC F1 aesenc xmm6,xmm1 + 0000000000000FE0: 66 0F 38 DC F9 aesenc xmm7,xmm1 + 0000000000000FE5: 66 44 0F 38 DC C1 aesenc xmm8,xmm1 + 0000000000000FEB: 66 44 0F 38 DC C9 aesenc xmm9,xmm1 + 0000000000000FF1: 0F 10 49 D0 movups xmm1,xmmword ptr [rcx-30h] + 0000000000000FF5: 41 0F C9 bswap r9d + 0000000000000FF8: 66 0F 38 DC D0 aesenc xmm2,xmm0 + 0000000000000FFD: 66 0F 38 DC D8 aesenc xmm3,xmm0 + 0000000000001002: 41 31 E9 xor r9d,ebp + 0000000000001005: 66 90 nop + 0000000000001007: 66 0F 38 DC E0 aesenc xmm4,xmm0 + 000000000000100C: 66 0F 38 DC E8 aesenc xmm5,xmm0 + 0000000000001011: 44 89 4C 24 3C mov dword ptr [rsp+3Ch],r9d + 0000000000001016: 4D 8D 48 04 lea r9,[r8+4] + 000000000000101A: 66 0F 38 DC F0 aesenc xmm6,xmm0 + 000000000000101F: 66 0F 38 DC F8 aesenc xmm7,xmm0 + 0000000000001024: 66 44 0F 38 DC C0 aesenc xmm8,xmm0 + 000000000000102A: 66 44 0F 38 DC C8 aesenc xmm9,xmm0 + 0000000000001030: 0F 10 41 E0 movups xmm0,xmmword ptr [rcx-20h] + 0000000000001034: 41 0F C9 bswap r9d + 0000000000001037: 66 0F 38 DC D1 aesenc xmm2,xmm1 + 000000000000103C: 66 0F 38 DC D9 aesenc xmm3,xmm1 + 0000000000001041: 41 31 E9 xor r9d,ebp + 0000000000001044: 66 90 nop + 0000000000001046: 66 0F 38 DC E1 aesenc xmm4,xmm1 + 000000000000104B: 66 0F 38 DC E9 aesenc xmm5,xmm1 + 0000000000001050: 44 89 4C 24 4C mov dword ptr [rsp+4Ch],r9d + 0000000000001055: 4D 8D 48 05 lea r9,[r8+5] + 0000000000001059: 66 0F 38 DC F1 aesenc xmm6,xmm1 + 000000000000105E: 66 0F 38 DC F9 aesenc xmm7,xmm1 + 0000000000001063: 66 44 0F 38 DC C1 aesenc xmm8,xmm1 + 0000000000001069: 66 44 0F 38 DC C9 aesenc xmm9,xmm1 + 000000000000106F: 0F 10 49 F0 movups xmm1,xmmword ptr [rcx-10h] + 0000000000001073: 41 0F C9 bswap r9d + 0000000000001076: 66 0F 38 DC D0 aesenc xmm2,xmm0 + 000000000000107B: 66 0F 38 DC D8 aesenc xmm3,xmm0 + 0000000000001080: 41 31 E9 xor r9d,ebp + 0000000000001083: 66 90 nop + 0000000000001085: 66 0F 38 DC E0 aesenc xmm4,xmm0 + 000000000000108A: 66 0F 38 DC E8 aesenc xmm5,xmm0 + 000000000000108F: 44 89 4C 24 5C mov dword ptr [rsp+5Ch],r9d + 0000000000001094: 4D 8D 48 06 lea r9,[r8+6] + 0000000000001098: 66 0F 38 DC F0 aesenc xmm6,xmm0 + 000000000000109D: 66 0F 38 DC F8 aesenc xmm7,xmm0 + 00000000000010A2: 66 44 0F 38 DC C0 aesenc xmm8,xmm0 + 00000000000010A8: 66 44 0F 38 DC C8 aesenc xmm9,xmm0 + 00000000000010AE: 0F 10 01 movups xmm0,xmmword ptr [rcx] + 00000000000010B1: 41 0F C9 bswap r9d + 00000000000010B4: 66 0F 38 DC D1 aesenc xmm2,xmm1 + 00000000000010B9: 66 0F 38 DC D9 aesenc xmm3,xmm1 + 00000000000010BE: 41 31 E9 xor r9d,ebp + 00000000000010C1: 66 90 nop + 00000000000010C3: 66 0F 38 DC E1 aesenc xmm4,xmm1 + 00000000000010C8: 66 0F 38 DC E9 aesenc xmm5,xmm1 + 00000000000010CD: 44 89 4C 24 6C mov dword ptr [rsp+6Ch],r9d + 00000000000010D2: 4D 8D 48 07 lea r9,[r8+7] + 00000000000010D6: 66 0F 38 DC F1 aesenc xmm6,xmm1 + 00000000000010DB: 66 0F 38 DC F9 aesenc xmm7,xmm1 + 00000000000010E0: 66 44 0F 38 DC C1 aesenc xmm8,xmm1 + 00000000000010E6: 66 44 0F 38 DC C9 aesenc xmm9,xmm1 + 00000000000010EC: 0F 10 49 10 movups xmm1,xmmword ptr [rcx+10h] + 00000000000010F0: 41 0F C9 bswap r9d + 00000000000010F3: 66 0F 38 DC D0 aesenc xmm2,xmm0 + 00000000000010F8: 66 0F 38 DC D8 aesenc xmm3,xmm0 + 00000000000010FD: 66 0F 38 DC E0 aesenc xmm4,xmm0 + 0000000000001102: 41 31 E9 xor r9d,ebp + 0000000000001105: F3 44 0F 6F 17 movdqu xmm10,xmmword ptr [rdi] + 000000000000110A: 66 0F 38 DC E8 aesenc xmm5,xmm0 + 000000000000110F: 44 89 4C 24 7C mov dword ptr [rsp+7Ch],r9d + 0000000000001114: 83 F8 0B cmp eax,0Bh + 0000000000001117: 66 0F 38 DC F0 aesenc xmm6,xmm0 + 000000000000111C: 66 0F 38 DC F8 aesenc xmm7,xmm0 + 0000000000001121: 66 44 0F 38 DC C0 aesenc xmm8,xmm0 + 0000000000001127: 66 44 0F 38 DC C8 aesenc xmm9,xmm0 + 000000000000112D: 0F 10 41 20 movups xmm0,xmmword ptr [rcx+20h] + 0000000000001131: 0F 82 C9 00 00 00 jb L$ctr32_enc_done + 0000000000001137: 66 0F 38 DC D1 aesenc xmm2,xmm1 + 000000000000113C: 66 0F 38 DC D9 aesenc xmm3,xmm1 + 0000000000001141: 66 0F 38 DC E1 aesenc xmm4,xmm1 + 0000000000001146: 66 0F 38 DC E9 aesenc xmm5,xmm1 + 000000000000114B: 66 0F 38 DC F1 aesenc xmm6,xmm1 + 0000000000001150: 66 0F 38 DC F9 aesenc xmm7,xmm1 + 0000000000001155: 66 44 0F 38 DC C1 aesenc xmm8,xmm1 + 000000000000115B: 66 44 0F 38 DC C9 aesenc xmm9,xmm1 + 0000000000001161: 0F 10 49 30 movups xmm1,xmmword ptr [rcx+30h] + 0000000000001165: 66 0F 38 DC D0 aesenc xmm2,xmm0 + 000000000000116A: 66 0F 38 DC D8 aesenc xmm3,xmm0 + 000000000000116F: 66 0F 38 DC E0 aesenc xmm4,xmm0 + 0000000000001174: 66 0F 38 DC E8 aesenc xmm5,xmm0 + 0000000000001179: 66 0F 38 DC F0 aesenc xmm6,xmm0 + 000000000000117E: 66 0F 38 DC F8 aesenc xmm7,xmm0 + 0000000000001183: 66 44 0F 38 DC C0 aesenc xmm8,xmm0 + 0000000000001189: 66 44 0F 38 DC C8 aesenc xmm9,xmm0 + 000000000000118F: 0F 10 41 40 movups xmm0,xmmword ptr [rcx+40h] + 0000000000001193: 0F 84 67 00 00 00 je L$ctr32_enc_done + 0000000000001199: 66 0F 38 DC D1 aesenc xmm2,xmm1 + 000000000000119E: 66 0F 38 DC D9 aesenc xmm3,xmm1 + 00000000000011A3: 66 0F 38 DC E1 aesenc xmm4,xmm1 + 00000000000011A8: 66 0F 38 DC E9 aesenc xmm5,xmm1 + 00000000000011AD: 66 0F 38 DC F1 aesenc xmm6,xmm1 + 00000000000011B2: 66 0F 38 DC F9 aesenc xmm7,xmm1 + 00000000000011B7: 66 44 0F 38 DC C1 aesenc xmm8,xmm1 + 00000000000011BD: 66 44 0F 38 DC C9 aesenc xmm9,xmm1 + 00000000000011C3: 0F 10 49 50 movups xmm1,xmmword ptr [rcx+50h] + 00000000000011C7: 66 0F 38 DC D0 aesenc xmm2,xmm0 + 00000000000011CC: 66 0F 38 DC D8 aesenc xmm3,xmm0 + 00000000000011D1: 66 0F 38 DC E0 aesenc xmm4,xmm0 + 00000000000011D6: 66 0F 38 DC E8 aesenc xmm5,xmm0 + 00000000000011DB: 66 0F 38 DC F0 aesenc xmm6,xmm0 + 00000000000011E0: 66 0F 38 DC F8 aesenc xmm7,xmm0 + 00000000000011E5: 66 44 0F 38 DC C0 aesenc xmm8,xmm0 + 00000000000011EB: 66 44 0F 38 DC C8 aesenc xmm9,xmm0 + 00000000000011F1: 0F 10 41 60 movups xmm0,xmmword ptr [rcx+60h] + 00000000000011F5: E9 06 00 00 00 jmp L$ctr32_enc_done + 00000000000011FA: 90 nop + 00000000000011FB: 90 nop + 00000000000011FC: 90 nop + 00000000000011FD: 90 nop + 00000000000011FE: 90 nop + 00000000000011FF: 90 nop L$ctr32_enc_done: - 00000000000013A0: F3 44 0F 6F 5F 10 movdqu xmm11,xmmword ptr [rdi+10h] - 00000000000013A6: 66 44 0F EF D0 pxor xmm10,xmm0 - 00000000000013AB: F3 44 0F 6F 67 20 movdqu xmm12,xmmword ptr [rdi+20h] - 00000000000013B1: 66 44 0F EF D8 pxor xmm11,xmm0 - 00000000000013B6: F3 44 0F 6F 6F 30 movdqu xmm13,xmmword ptr [rdi+30h] - 00000000000013BC: 66 44 0F EF E0 pxor xmm12,xmm0 - 00000000000013C1: F3 44 0F 6F 77 40 movdqu xmm14,xmmword ptr [rdi+40h] - 00000000000013C7: 66 44 0F EF E8 pxor xmm13,xmm0 - 00000000000013CC: F3 44 0F 6F 7F 50 movdqu xmm15,xmmword ptr [rdi+50h] - 00000000000013D2: 66 44 0F EF F0 pxor xmm14,xmm0 - 00000000000013D7: 0F 18 8F C0 01 00 prefetcht0 [rdi+1C0h] + 0000000000001200: F3 44 0F 6F 5F 10 movdqu xmm11,xmmword ptr [rdi+10h] + 0000000000001206: 66 44 0F EF D0 pxor xmm10,xmm0 + 000000000000120B: F3 44 0F 6F 67 20 movdqu xmm12,xmmword ptr [rdi+20h] + 0000000000001211: 66 44 0F EF D8 pxor xmm11,xmm0 + 0000000000001216: F3 44 0F 6F 6F 30 movdqu xmm13,xmmword ptr [rdi+30h] + 000000000000121C: 66 44 0F EF E0 pxor xmm12,xmm0 + 0000000000001221: F3 44 0F 6F 77 40 movdqu xmm14,xmmword ptr [rdi+40h] + 0000000000001227: 66 44 0F EF E8 pxor xmm13,xmm0 + 000000000000122C: F3 44 0F 6F 7F 50 movdqu xmm15,xmmword ptr [rdi+50h] + 0000000000001232: 66 44 0F EF F0 pxor xmm14,xmm0 + 0000000000001237: 0F 18 8F C0 01 00 prefetcht0 [rdi+1C0h] 00 - 00000000000013DE: 0F 18 8F 00 02 00 prefetcht0 [rdi+200h] + 000000000000123E: 0F 18 8F 00 02 00 prefetcht0 [rdi+200h] 00 - 00000000000013E5: 66 44 0F EF F8 pxor xmm15,xmm0 - 00000000000013EA: 66 0F 38 DC D1 aesenc xmm2,xmm1 - 00000000000013EF: 66 0F 38 DC D9 aesenc xmm3,xmm1 - 00000000000013F4: 66 0F 38 DC E1 aesenc xmm4,xmm1 - 00000000000013F9: 66 0F 38 DC E9 aesenc xmm5,xmm1 - 00000000000013FE: 66 0F 38 DC F1 aesenc xmm6,xmm1 - 0000000000001403: 66 0F 38 DC F9 aesenc xmm7,xmm1 - 0000000000001408: 66 44 0F 38 DC C1 aesenc xmm8,xmm1 - 000000000000140E: 66 44 0F 38 DC C9 aesenc xmm9,xmm1 - 0000000000001414: F3 0F 6F 4F 60 movdqu xmm1,xmmword ptr [rdi+60h] - 0000000000001419: 48 8D BF 80 00 00 lea rdi,[rdi+80h] + 0000000000001245: 66 44 0F EF F8 pxor xmm15,xmm0 + 000000000000124A: 66 0F 38 DC D1 aesenc xmm2,xmm1 + 000000000000124F: 66 0F 38 DC D9 aesenc xmm3,xmm1 + 0000000000001254: 66 0F 38 DC E1 aesenc xmm4,xmm1 + 0000000000001259: 66 0F 38 DC E9 aesenc xmm5,xmm1 + 000000000000125E: 66 0F 38 DC F1 aesenc xmm6,xmm1 + 0000000000001263: 66 0F 38 DC F9 aesenc xmm7,xmm1 + 0000000000001268: 66 44 0F 38 DC C1 aesenc xmm8,xmm1 + 000000000000126E: 66 44 0F 38 DC C9 aesenc xmm9,xmm1 + 0000000000001274: F3 0F 6F 4F 60 movdqu xmm1,xmmword ptr [rdi+60h] + 0000000000001279: 48 8D BF 80 00 00 lea rdi,[rdi+80h] 00 - 0000000000001420: 66 41 0F 38 DD D2 aesenclast xmm2,xmm10 - 0000000000001426: 66 0F EF C8 pxor xmm1,xmm0 - 000000000000142A: F3 44 0F 6F 57 F0 movdqu xmm10,xmmword ptr [rdi-10h] - 0000000000001430: 66 41 0F 38 DD DB aesenclast xmm3,xmm11 - 0000000000001436: 66 44 0F EF D0 pxor xmm10,xmm0 - 000000000000143B: 66 44 0F 6F 1C 24 movdqa xmm11,xmmword ptr [rsp] - 0000000000001441: 66 41 0F 38 DD E4 aesenclast xmm4,xmm12 - 0000000000001447: 66 41 0F 38 DD ED aesenclast xmm5,xmm13 - 000000000000144D: 66 44 0F 6F 64 24 movdqa xmm12,xmmword ptr [rsp+10h] + 0000000000001280: 66 41 0F 38 DD D2 aesenclast xmm2,xmm10 + 0000000000001286: 66 0F EF C8 pxor xmm1,xmm0 + 000000000000128A: F3 44 0F 6F 57 F0 movdqu xmm10,xmmword ptr [rdi-10h] + 0000000000001290: 66 41 0F 38 DD DB aesenclast xmm3,xmm11 + 0000000000001296: 66 44 0F EF D0 pxor xmm10,xmm0 + 000000000000129B: 66 44 0F 6F 1C 24 movdqa xmm11,xmmword ptr [rsp] + 00000000000012A1: 66 41 0F 38 DD E4 aesenclast xmm4,xmm12 + 00000000000012A7: 66 41 0F 38 DD ED aesenclast xmm5,xmm13 + 00000000000012AD: 66 44 0F 6F 64 24 movdqa xmm12,xmmword ptr [rsp+10h] 10 - 0000000000001454: 66 44 0F 6F 6C 24 movdqa xmm13,xmmword ptr [rsp+20h] + 00000000000012B4: 66 44 0F 6F 6C 24 movdqa xmm13,xmmword ptr [rsp+20h] 20 - 000000000000145B: 66 41 0F 38 DD F6 aesenclast xmm6,xmm14 - 0000000000001461: 66 41 0F 38 DD FF aesenclast xmm7,xmm15 - 0000000000001467: 66 44 0F 6F 74 24 movdqa xmm14,xmmword ptr [rsp+30h] + 00000000000012BB: 66 41 0F 38 DD F6 aesenclast xmm6,xmm14 + 00000000000012C1: 66 41 0F 38 DD FF aesenclast xmm7,xmm15 + 00000000000012C7: 66 44 0F 6F 74 24 movdqa xmm14,xmmword ptr [rsp+30h] 30 - 000000000000146E: 66 44 0F 6F 7C 24 movdqa xmm15,xmmword ptr [rsp+40h] + 00000000000012CE: 66 44 0F 6F 7C 24 movdqa xmm15,xmmword ptr [rsp+40h] 40 - 0000000000001475: 66 44 0F 38 DD C1 aesenclast xmm8,xmm1 - 000000000000147B: 66 0F 6F 44 24 50 movdqa xmm0,xmmword ptr [rsp+50h] - 0000000000001481: 0F 10 49 90 movups xmm1,xmmword ptr [rcx-70h] - 0000000000001485: 66 45 0F 38 DD CA aesenclast xmm9,xmm10 - 000000000000148B: 0F 11 16 movups xmmword ptr [rsi],xmm2 - 000000000000148E: 66 41 0F 6F D3 movdqa xmm2,xmm11 - 0000000000001493: 0F 11 5E 10 movups xmmword ptr [rsi+10h],xmm3 - 0000000000001497: 66 41 0F 6F DC movdqa xmm3,xmm12 - 000000000000149C: 0F 11 66 20 movups xmmword ptr [rsi+20h],xmm4 - 00000000000014A0: 66 41 0F 6F E5 movdqa xmm4,xmm13 - 00000000000014A5: 0F 11 6E 30 movups xmmword ptr [rsi+30h],xmm5 - 00000000000014A9: 66 41 0F 6F EE movdqa xmm5,xmm14 - 00000000000014AE: 0F 11 76 40 movups xmmword ptr [rsi+40h],xmm6 - 00000000000014B2: 66 41 0F 6F F7 movdqa xmm6,xmm15 - 00000000000014B7: 0F 11 7E 50 movups xmmword ptr [rsi+50h],xmm7 - 00000000000014BB: 66 0F 6F F8 movdqa xmm7,xmm0 - 00000000000014BF: 44 0F 11 46 60 movups xmmword ptr [rsi+60h],xmm8 - 00000000000014C4: 44 0F 11 4E 70 movups xmmword ptr [rsi+70h],xmm9 - 00000000000014C9: 48 8D B6 80 00 00 lea rsi,[rsi+80h] + 00000000000012D5: 66 44 0F 38 DD C1 aesenclast xmm8,xmm1 + 00000000000012DB: 66 0F 6F 44 24 50 movdqa xmm0,xmmword ptr [rsp+50h] + 00000000000012E1: 0F 10 49 90 movups xmm1,xmmword ptr [rcx-70h] + 00000000000012E5: 66 45 0F 38 DD CA aesenclast xmm9,xmm10 + 00000000000012EB: 0F 11 16 movups xmmword ptr [rsi],xmm2 + 00000000000012EE: 66 41 0F 6F D3 movdqa xmm2,xmm11 + 00000000000012F3: 0F 11 5E 10 movups xmmword ptr [rsi+10h],xmm3 + 00000000000012F7: 66 41 0F 6F DC movdqa xmm3,xmm12 + 00000000000012FC: 0F 11 66 20 movups xmmword ptr [rsi+20h],xmm4 + 0000000000001300: 66 41 0F 6F E5 movdqa xmm4,xmm13 + 0000000000001305: 0F 11 6E 30 movups xmmword ptr [rsi+30h],xmm5 + 0000000000001309: 66 41 0F 6F EE movdqa xmm5,xmm14 + 000000000000130E: 0F 11 76 40 movups xmmword ptr [rsi+40h],xmm6 + 0000000000001312: 66 41 0F 6F F7 movdqa xmm6,xmm15 + 0000000000001317: 0F 11 7E 50 movups xmmword ptr [rsi+50h],xmm7 + 000000000000131B: 66 0F 6F F8 movdqa xmm7,xmm0 + 000000000000131F: 44 0F 11 46 60 movups xmmword ptr [rsi+60h],xmm8 + 0000000000001324: 44 0F 11 4E 70 movups xmmword ptr [rsi+70h],xmm9 + 0000000000001329: 48 8D B6 80 00 00 lea rsi,[rsi+80h] 00 - 00000000000014D0: 48 83 EA 08 sub rdx,8 - 00000000000014D4: 0F 83 E6 FB FF FF jae L$ctr32_loop8 - 00000000000014DA: 48 83 C2 08 add rdx,8 - 00000000000014DE: 0F 84 BE 01 00 00 je L$ctr32_done - 00000000000014E4: 48 8D 49 80 lea rcx,[rcx-80h] + 0000000000001330: 48 83 EA 08 sub rdx,8 + 0000000000001334: 0F 83 E6 FB FF FF jae L$ctr32_loop8 + 000000000000133A: 48 83 C2 08 add rdx,8 + 000000000000133E: 0F 84 BE 01 00 00 je L$ctr32_done + 0000000000001344: 48 8D 49 80 lea rcx,[rcx-80h] L$ctr32_tail: - 00000000000014E8: 48 8D 49 10 lea rcx,[rcx+10h] - 00000000000014EC: 48 83 FA 04 cmp rdx,4 - 00000000000014F0: 0F 82 4A 01 00 00 jb L$ctr32_loop3 - 00000000000014F6: 0F 84 C4 00 00 00 je L$ctr32_loop4 - 00000000000014FC: C1 E0 04 shl eax,4 - 00000000000014FF: 66 44 0F 6F 44 24 movdqa xmm8,xmmword ptr [rsp+60h] + 0000000000001348: 48 8D 49 10 lea rcx,[rcx+10h] + 000000000000134C: 48 83 FA 04 cmp rdx,4 + 0000000000001350: 0F 82 4A 01 00 00 jb L$ctr32_loop3 + 0000000000001356: 0F 84 C4 00 00 00 je L$ctr32_loop4 + 000000000000135C: C1 E0 04 shl eax,4 + 000000000000135F: 66 44 0F 6F 44 24 movdqa xmm8,xmmword ptr [rsp+60h] 60 - 0000000000001506: 66 45 0F EF C9 pxor xmm9,xmm9 - 000000000000150B: 0F 10 41 10 movups xmm0,xmmword ptr [rcx+10h] - 000000000000150F: 66 0F 38 DC D1 aesenc xmm2,xmm1 - 0000000000001514: 66 0F 38 DC D9 aesenc xmm3,xmm1 - 0000000000001519: 48 8D 4C 08 10 lea rcx,[rax+rcx+10h] - 000000000000151E: 48 F7 D8 neg rax - 0000000000001521: 66 0F 38 DC E1 aesenc xmm4,xmm1 - 0000000000001526: 48 83 C0 10 add rax,10h - 000000000000152A: 44 0F 10 17 movups xmm10,xmmword ptr [rdi] - 000000000000152E: 66 0F 38 DC E9 aesenc xmm5,xmm1 - 0000000000001533: 66 0F 38 DC F1 aesenc xmm6,xmm1 - 0000000000001538: 44 0F 10 5F 10 movups xmm11,xmmword ptr [rdi+10h] - 000000000000153D: 44 0F 10 67 20 movups xmm12,xmmword ptr [rdi+20h] - 0000000000001542: 66 0F 38 DC F9 aesenc xmm7,xmm1 - 0000000000001547: 66 44 0F 38 DC C1 aesenc xmm8,xmm1 - 000000000000154D: E8 68 F0 FF FF call L$enc_loop8_enter - 0000000000001552: F3 44 0F 6F 6F 30 movdqu xmm13,xmmword ptr [rdi+30h] - 0000000000001558: 66 41 0F EF D2 pxor xmm2,xmm10 - 000000000000155D: F3 44 0F 6F 57 40 movdqu xmm10,xmmword ptr [rdi+40h] - 0000000000001563: 66 41 0F EF DB pxor xmm3,xmm11 - 0000000000001568: F3 0F 7F 16 movdqu xmmword ptr [rsi],xmm2 - 000000000000156C: 66 41 0F EF E4 pxor xmm4,xmm12 - 0000000000001571: F3 0F 7F 5E 10 movdqu xmmword ptr [rsi+10h],xmm3 - 0000000000001576: 66 41 0F EF ED pxor xmm5,xmm13 - 000000000000157B: F3 0F 7F 66 20 movdqu xmmword ptr [rsi+20h],xmm4 - 0000000000001580: 66 41 0F EF F2 pxor xmm6,xmm10 - 0000000000001585: F3 0F 7F 6E 30 movdqu xmmword ptr [rsi+30h],xmm5 - 000000000000158A: F3 0F 7F 76 40 movdqu xmmword ptr [rsi+40h],xmm6 - 000000000000158F: 48 83 FA 06 cmp rdx,6 - 0000000000001593: 0F 82 09 01 00 00 jb L$ctr32_done - 0000000000001599: 44 0F 10 5F 50 movups xmm11,xmmword ptr [rdi+50h] - 000000000000159E: 41 0F 57 FB xorps xmm7,xmm11 - 00000000000015A2: 0F 11 7E 50 movups xmmword ptr [rsi+50h],xmm7 - 00000000000015A6: 0F 84 F6 00 00 00 je L$ctr32_done - 00000000000015AC: 44 0F 10 67 60 movups xmm12,xmmword ptr [rdi+60h] - 00000000000015B1: 45 0F 57 C4 xorps xmm8,xmm12 - 00000000000015B5: 44 0F 11 46 60 movups xmmword ptr [rsi+60h],xmm8 - 00000000000015BA: E9 E3 00 00 00 jmp L$ctr32_done - 00000000000015BF: 90 nop + 0000000000001366: 66 45 0F EF C9 pxor xmm9,xmm9 + 000000000000136B: 0F 10 41 10 movups xmm0,xmmword ptr [rcx+10h] + 000000000000136F: 66 0F 38 DC D1 aesenc xmm2,xmm1 + 0000000000001374: 66 0F 38 DC D9 aesenc xmm3,xmm1 + 0000000000001379: 48 8D 4C 08 10 lea rcx,[rax+rcx+10h] + 000000000000137E: 48 F7 D8 neg rax + 0000000000001381: 66 0F 38 DC E1 aesenc xmm4,xmm1 + 0000000000001386: 48 83 C0 10 add rax,10h + 000000000000138A: 44 0F 10 17 movups xmm10,xmmword ptr [rdi] + 000000000000138E: 66 0F 38 DC E9 aesenc xmm5,xmm1 + 0000000000001393: 66 0F 38 DC F1 aesenc xmm6,xmm1 + 0000000000001398: 44 0F 10 5F 10 movups xmm11,xmmword ptr [rdi+10h] + 000000000000139D: 44 0F 10 67 20 movups xmm12,xmmword ptr [rdi+20h] + 00000000000013A2: 66 0F 38 DC F9 aesenc xmm7,xmm1 + 00000000000013A7: 66 44 0F 38 DC C1 aesenc xmm8,xmm1 + 00000000000013AD: E8 08 F2 FF FF call L$enc_loop8_enter + 00000000000013B2: F3 44 0F 6F 6F 30 movdqu xmm13,xmmword ptr [rdi+30h] + 00000000000013B8: 66 41 0F EF D2 pxor xmm2,xmm10 + 00000000000013BD: F3 44 0F 6F 57 40 movdqu xmm10,xmmword ptr [rdi+40h] + 00000000000013C3: 66 41 0F EF DB pxor xmm3,xmm11 + 00000000000013C8: F3 0F 7F 16 movdqu xmmword ptr [rsi],xmm2 + 00000000000013CC: 66 41 0F EF E4 pxor xmm4,xmm12 + 00000000000013D1: F3 0F 7F 5E 10 movdqu xmmword ptr [rsi+10h],xmm3 + 00000000000013D6: 66 41 0F EF ED pxor xmm5,xmm13 + 00000000000013DB: F3 0F 7F 66 20 movdqu xmmword ptr [rsi+20h],xmm4 + 00000000000013E0: 66 41 0F EF F2 pxor xmm6,xmm10 + 00000000000013E5: F3 0F 7F 6E 30 movdqu xmmword ptr [rsi+30h],xmm5 + 00000000000013EA: F3 0F 7F 76 40 movdqu xmmword ptr [rsi+40h],xmm6 + 00000000000013EF: 48 83 FA 06 cmp rdx,6 + 00000000000013F3: 0F 82 09 01 00 00 jb L$ctr32_done + 00000000000013F9: 44 0F 10 5F 50 movups xmm11,xmmword ptr [rdi+50h] + 00000000000013FE: 41 0F 57 FB xorps xmm7,xmm11 + 0000000000001402: 0F 11 7E 50 movups xmmword ptr [rsi+50h],xmm7 + 0000000000001406: 0F 84 F6 00 00 00 je L$ctr32_done + 000000000000140C: 44 0F 10 67 60 movups xmm12,xmmword ptr [rdi+60h] + 0000000000001411: 45 0F 57 C4 xorps xmm8,xmm12 + 0000000000001415: 44 0F 11 46 60 movups xmmword ptr [rsi+60h],xmm8 + 000000000000141A: E9 E3 00 00 00 jmp L$ctr32_done + 000000000000141F: 90 nop L$ctr32_loop4: - 00000000000015C0: 66 0F 38 DC D1 aesenc xmm2,xmm1 - 00000000000015C5: 48 8D 49 10 lea rcx,[rcx+10h] - 00000000000015C9: FF C8 dec eax - 00000000000015CB: 66 0F 38 DC D9 aesenc xmm3,xmm1 - 00000000000015D0: 66 0F 38 DC E1 aesenc xmm4,xmm1 - 00000000000015D5: 66 0F 38 DC E9 aesenc xmm5,xmm1 - 00000000000015DA: 0F 10 09 movups xmm1,xmmword ptr [rcx] - 00000000000015DD: 0F 85 DD FF FF FF jne L$ctr32_loop4 - 00000000000015E3: 66 0F 38 DD D1 aesenclast xmm2,xmm1 - 00000000000015E8: 66 0F 38 DD D9 aesenclast xmm3,xmm1 - 00000000000015ED: 44 0F 10 17 movups xmm10,xmmword ptr [rdi] - 00000000000015F1: 44 0F 10 5F 10 movups xmm11,xmmword ptr [rdi+10h] - 00000000000015F6: 66 0F 38 DD E1 aesenclast xmm4,xmm1 - 00000000000015FB: 66 0F 38 DD E9 aesenclast xmm5,xmm1 - 0000000000001600: 44 0F 10 67 20 movups xmm12,xmmword ptr [rdi+20h] - 0000000000001605: 44 0F 10 6F 30 movups xmm13,xmmword ptr [rdi+30h] - 000000000000160A: 41 0F 57 D2 xorps xmm2,xmm10 - 000000000000160E: 0F 11 16 movups xmmword ptr [rsi],xmm2 - 0000000000001611: 41 0F 57 DB xorps xmm3,xmm11 - 0000000000001615: 0F 11 5E 10 movups xmmword ptr [rsi+10h],xmm3 - 0000000000001619: 66 41 0F EF E4 pxor xmm4,xmm12 - 000000000000161E: F3 0F 7F 66 20 movdqu xmmword ptr [rsi+20h],xmm4 - 0000000000001623: 66 41 0F EF ED pxor xmm5,xmm13 - 0000000000001628: F3 0F 7F 6E 30 movdqu xmmword ptr [rsi+30h],xmm5 - 000000000000162D: E9 70 00 00 00 jmp L$ctr32_done - 0000000000001632: 90 nop - 0000000000001633: 90 nop - 0000000000001634: 90 nop - 0000000000001635: 90 nop - 0000000000001636: 90 nop - 0000000000001637: 90 nop - 0000000000001638: 90 nop - 0000000000001639: 90 nop - 000000000000163A: 90 nop - 000000000000163B: 90 nop - 000000000000163C: 90 nop - 000000000000163D: 90 nop - 000000000000163E: 90 nop - 000000000000163F: 90 nop + 0000000000001420: 66 0F 38 DC D1 aesenc xmm2,xmm1 + 0000000000001425: 48 8D 49 10 lea rcx,[rcx+10h] + 0000000000001429: FF C8 dec eax + 000000000000142B: 66 0F 38 DC D9 aesenc xmm3,xmm1 + 0000000000001430: 66 0F 38 DC E1 aesenc xmm4,xmm1 + 0000000000001435: 66 0F 38 DC E9 aesenc xmm5,xmm1 + 000000000000143A: 0F 10 09 movups xmm1,xmmword ptr [rcx] + 000000000000143D: 0F 85 DD FF FF FF jne L$ctr32_loop4 + 0000000000001443: 66 0F 38 DD D1 aesenclast xmm2,xmm1 + 0000000000001448: 66 0F 38 DD D9 aesenclast xmm3,xmm1 + 000000000000144D: 44 0F 10 17 movups xmm10,xmmword ptr [rdi] + 0000000000001451: 44 0F 10 5F 10 movups xmm11,xmmword ptr [rdi+10h] + 0000000000001456: 66 0F 38 DD E1 aesenclast xmm4,xmm1 + 000000000000145B: 66 0F 38 DD E9 aesenclast xmm5,xmm1 + 0000000000001460: 44 0F 10 67 20 movups xmm12,xmmword ptr [rdi+20h] + 0000000000001465: 44 0F 10 6F 30 movups xmm13,xmmword ptr [rdi+30h] + 000000000000146A: 41 0F 57 D2 xorps xmm2,xmm10 + 000000000000146E: 0F 11 16 movups xmmword ptr [rsi],xmm2 + 0000000000001471: 41 0F 57 DB xorps xmm3,xmm11 + 0000000000001475: 0F 11 5E 10 movups xmmword ptr [rsi+10h],xmm3 + 0000000000001479: 66 41 0F EF E4 pxor xmm4,xmm12 + 000000000000147E: F3 0F 7F 66 20 movdqu xmmword ptr [rsi+20h],xmm4 + 0000000000001483: 66 41 0F EF ED pxor xmm5,xmm13 + 0000000000001488: F3 0F 7F 6E 30 movdqu xmmword ptr [rsi+30h],xmm5 + 000000000000148D: E9 70 00 00 00 jmp L$ctr32_done + 0000000000001492: 90 nop + 0000000000001493: 90 nop + 0000000000001494: 90 nop + 0000000000001495: 90 nop + 0000000000001496: 90 nop + 0000000000001497: 90 nop + 0000000000001498: 90 nop + 0000000000001499: 90 nop + 000000000000149A: 90 nop + 000000000000149B: 90 nop + 000000000000149C: 90 nop + 000000000000149D: 90 nop + 000000000000149E: 90 nop + 000000000000149F: 90 nop L$ctr32_loop3: - 0000000000001640: 66 0F 38 DC D1 aesenc xmm2,xmm1 - 0000000000001645: 48 8D 49 10 lea rcx,[rcx+10h] - 0000000000001649: FF C8 dec eax - 000000000000164B: 66 0F 38 DC D9 aesenc xmm3,xmm1 - 0000000000001650: 66 0F 38 DC E1 aesenc xmm4,xmm1 - 0000000000001655: 0F 10 09 movups xmm1,xmmword ptr [rcx] - 0000000000001658: 0F 85 E2 FF FF FF jne L$ctr32_loop3 - 000000000000165E: 66 0F 38 DD D1 aesenclast xmm2,xmm1 - 0000000000001663: 66 0F 38 DD D9 aesenclast xmm3,xmm1 - 0000000000001668: 66 0F 38 DD E1 aesenclast xmm4,xmm1 - 000000000000166D: 44 0F 10 17 movups xmm10,xmmword ptr [rdi] - 0000000000001671: 41 0F 57 D2 xorps xmm2,xmm10 - 0000000000001675: 0F 11 16 movups xmmword ptr [rsi],xmm2 - 0000000000001678: 48 83 FA 02 cmp rdx,2 - 000000000000167C: 0F 82 20 00 00 00 jb L$ctr32_done - 0000000000001682: 44 0F 10 5F 10 movups xmm11,xmmword ptr [rdi+10h] - 0000000000001687: 41 0F 57 DB xorps xmm3,xmm11 - 000000000000168B: 0F 11 5E 10 movups xmmword ptr [rsi+10h],xmm3 - 000000000000168F: 0F 84 0D 00 00 00 je L$ctr32_done - 0000000000001695: 44 0F 10 67 20 movups xmm12,xmmword ptr [rdi+20h] - 000000000000169A: 41 0F 57 E4 xorps xmm4,xmm12 - 000000000000169E: 0F 11 66 20 movups xmmword ptr [rsi+20h],xmm4 + 00000000000014A0: 66 0F 38 DC D1 aesenc xmm2,xmm1 + 00000000000014A5: 48 8D 49 10 lea rcx,[rcx+10h] + 00000000000014A9: FF C8 dec eax + 00000000000014AB: 66 0F 38 DC D9 aesenc xmm3,xmm1 + 00000000000014B0: 66 0F 38 DC E1 aesenc xmm4,xmm1 + 00000000000014B5: 0F 10 09 movups xmm1,xmmword ptr [rcx] + 00000000000014B8: 0F 85 E2 FF FF FF jne L$ctr32_loop3 + 00000000000014BE: 66 0F 38 DD D1 aesenclast xmm2,xmm1 + 00000000000014C3: 66 0F 38 DD D9 aesenclast xmm3,xmm1 + 00000000000014C8: 66 0F 38 DD E1 aesenclast xmm4,xmm1 + 00000000000014CD: 44 0F 10 17 movups xmm10,xmmword ptr [rdi] + 00000000000014D1: 41 0F 57 D2 xorps xmm2,xmm10 + 00000000000014D5: 0F 11 16 movups xmmword ptr [rsi],xmm2 + 00000000000014D8: 48 83 FA 02 cmp rdx,2 + 00000000000014DC: 0F 82 20 00 00 00 jb L$ctr32_done + 00000000000014E2: 44 0F 10 5F 10 movups xmm11,xmmword ptr [rdi+10h] + 00000000000014E7: 41 0F 57 DB xorps xmm3,xmm11 + 00000000000014EB: 0F 11 5E 10 movups xmmword ptr [rsi+10h],xmm3 + 00000000000014EF: 0F 84 0D 00 00 00 je L$ctr32_done + 00000000000014F5: 44 0F 10 67 20 movups xmm12,xmmword ptr [rdi+20h] + 00000000000014FA: 41 0F 57 E4 xorps xmm4,xmm12 + 00000000000014FE: 0F 11 66 20 movups xmmword ptr [rsi+20h],xmm4 L$ctr32_done: - 00000000000016A2: 0F 57 C0 xorps xmm0,xmm0 - 00000000000016A5: 31 ED xor ebp,ebp - 00000000000016A7: 66 0F EF C9 pxor xmm1,xmm1 - 00000000000016AB: 66 0F EF D2 pxor xmm2,xmm2 - 00000000000016AF: 66 0F EF DB pxor xmm3,xmm3 - 00000000000016B3: 66 0F EF E4 pxor xmm4,xmm4 - 00000000000016B7: 66 0F EF ED pxor xmm5,xmm5 - 00000000000016BB: 41 0F 28 B3 58 FF movaps xmm6,xmmword ptr [r11-0A8h] + 0000000000001502: 0F 57 C0 xorps xmm0,xmm0 + 0000000000001505: 31 ED xor ebp,ebp + 0000000000001507: 66 0F EF C9 pxor xmm1,xmm1 + 000000000000150B: 66 0F EF D2 pxor xmm2,xmm2 + 000000000000150F: 66 0F EF DB pxor xmm3,xmm3 + 0000000000001513: 66 0F EF E4 pxor xmm4,xmm4 + 0000000000001517: 66 0F EF ED pxor xmm5,xmm5 + 000000000000151B: 41 0F 28 B3 58 FF movaps xmm6,xmmword ptr [r11-0A8h] FF FF - 00000000000016C3: 41 0F 29 83 58 FF movaps xmmword ptr [r11-0A8h],xmm0 + 0000000000001523: 41 0F 29 83 58 FF movaps xmmword ptr [r11-0A8h],xmm0 FF FF - 00000000000016CB: 41 0F 28 BB 68 FF movaps xmm7,xmmword ptr [r11-98h] + 000000000000152B: 41 0F 28 BB 68 FF movaps xmm7,xmmword ptr [r11-98h] FF FF - 00000000000016D3: 41 0F 29 83 68 FF movaps xmmword ptr [r11-98h],xmm0 + 0000000000001533: 41 0F 29 83 68 FF movaps xmmword ptr [r11-98h],xmm0 FF FF - 00000000000016DB: 45 0F 28 83 78 FF movaps xmm8,xmmword ptr [r11-88h] + 000000000000153B: 45 0F 28 83 78 FF movaps xmm8,xmmword ptr [r11-88h] FF FF - 00000000000016E3: 41 0F 29 83 78 FF movaps xmmword ptr [r11-88h],xmm0 + 0000000000001543: 41 0F 29 83 78 FF movaps xmmword ptr [r11-88h],xmm0 FF FF - 00000000000016EB: 45 0F 28 4B 88 movaps xmm9,xmmword ptr [r11-78h] - 00000000000016F0: 41 0F 29 43 88 movaps xmmword ptr [r11-78h],xmm0 - 00000000000016F5: 45 0F 28 53 98 movaps xmm10,xmmword ptr [r11-68h] - 00000000000016FA: 41 0F 29 43 98 movaps xmmword ptr [r11-68h],xmm0 - 00000000000016FF: 45 0F 28 5B A8 movaps xmm11,xmmword ptr [r11-58h] - 0000000000001704: 41 0F 29 43 A8 movaps xmmword ptr [r11-58h],xmm0 - 0000000000001709: 45 0F 28 63 B8 movaps xmm12,xmmword ptr [r11-48h] - 000000000000170E: 41 0F 29 43 B8 movaps xmmword ptr [r11-48h],xmm0 - 0000000000001713: 45 0F 28 6B C8 movaps xmm13,xmmword ptr [r11-38h] - 0000000000001718: 41 0F 29 43 C8 movaps xmmword ptr [r11-38h],xmm0 - 000000000000171D: 45 0F 28 73 D8 movaps xmm14,xmmword ptr [r11-28h] - 0000000000001722: 41 0F 29 43 D8 movaps xmmword ptr [r11-28h],xmm0 - 0000000000001727: 45 0F 28 7B E8 movaps xmm15,xmmword ptr [r11-18h] - 000000000000172C: 41 0F 29 43 E8 movaps xmmword ptr [r11-18h],xmm0 - 0000000000001731: 0F 29 04 24 movaps xmmword ptr [rsp],xmm0 - 0000000000001735: 0F 29 44 24 10 movaps xmmword ptr [rsp+10h],xmm0 - 000000000000173A: 0F 29 44 24 20 movaps xmmword ptr [rsp+20h],xmm0 - 000000000000173F: 0F 29 44 24 30 movaps xmmword ptr [rsp+30h],xmm0 - 0000000000001744: 0F 29 44 24 40 movaps xmmword ptr [rsp+40h],xmm0 - 0000000000001749: 0F 29 44 24 50 movaps xmmword ptr [rsp+50h],xmm0 - 000000000000174E: 0F 29 44 24 60 movaps xmmword ptr [rsp+60h],xmm0 - 0000000000001753: 0F 29 44 24 70 movaps xmmword ptr [rsp+70h],xmm0 - 0000000000001758: 49 8B 6B F8 mov rbp,qword ptr [r11-8] - 000000000000175C: 49 8D 23 lea rsp,[r11] + 000000000000154B: 45 0F 28 4B 88 movaps xmm9,xmmword ptr [r11-78h] + 0000000000001550: 41 0F 29 43 88 movaps xmmword ptr [r11-78h],xmm0 + 0000000000001555: 45 0F 28 53 98 movaps xmm10,xmmword ptr [r11-68h] + 000000000000155A: 41 0F 29 43 98 movaps xmmword ptr [r11-68h],xmm0 + 000000000000155F: 45 0F 28 5B A8 movaps xmm11,xmmword ptr [r11-58h] + 0000000000001564: 41 0F 29 43 A8 movaps xmmword ptr [r11-58h],xmm0 + 0000000000001569: 45 0F 28 63 B8 movaps xmm12,xmmword ptr [r11-48h] + 000000000000156E: 41 0F 29 43 B8 movaps xmmword ptr [r11-48h],xmm0 + 0000000000001573: 45 0F 28 6B C8 movaps xmm13,xmmword ptr [r11-38h] + 0000000000001578: 41 0F 29 43 C8 movaps xmmword ptr [r11-38h],xmm0 + 000000000000157D: 45 0F 28 73 D8 movaps xmm14,xmmword ptr [r11-28h] + 0000000000001582: 41 0F 29 43 D8 movaps xmmword ptr [r11-28h],xmm0 + 0000000000001587: 45 0F 28 7B E8 movaps xmm15,xmmword ptr [r11-18h] + 000000000000158C: 41 0F 29 43 E8 movaps xmmword ptr [r11-18h],xmm0 + 0000000000001591: 0F 29 04 24 movaps xmmword ptr [rsp],xmm0 + 0000000000001595: 0F 29 44 24 10 movaps xmmword ptr [rsp+10h],xmm0 + 000000000000159A: 0F 29 44 24 20 movaps xmmword ptr [rsp+20h],xmm0 + 000000000000159F: 0F 29 44 24 30 movaps xmmword ptr [rsp+30h],xmm0 + 00000000000015A4: 0F 29 44 24 40 movaps xmmword ptr [rsp+40h],xmm0 + 00000000000015A9: 0F 29 44 24 50 movaps xmmword ptr [rsp+50h],xmm0 + 00000000000015AE: 0F 29 44 24 60 movaps xmmword ptr [rsp+60h],xmm0 + 00000000000015B3: 0F 29 44 24 70 movaps xmmword ptr [rsp+70h],xmm0 + 00000000000015B8: 49 8B 6B F8 mov rbp,qword ptr [r11-8] + 00000000000015BC: 49 8D 23 lea rsp,[r11] L$ctr32_epilogue: - 000000000000175F: 48 8B 7C 24 08 mov rdi,qword ptr [rsp+8] - 0000000000001764: 48 8B 74 24 10 mov rsi,qword ptr [rsp+10h] - 0000000000001769: F3 C3 rep ret + 00000000000015BF: 48 8B 7C 24 08 mov rdi,qword ptr [rsp+8] + 00000000000015C4: 48 8B 74 24 10 mov rsi,qword ptr [rsp+10h] + 00000000000015C9: F3 C3 rep ret L$SEH_end_aes_hw_ctr32_encrypt_blocks: - 000000000000176B: 90 nop - 000000000000176C: 90 nop - 000000000000176D: 90 nop - 000000000000176E: 90 nop - 000000000000176F: 90 nop + 00000000000015CB: 90 nop + 00000000000015CC: 90 nop + 00000000000015CD: 90 nop + 00000000000015CE: 90 nop + 00000000000015CF: 90 nop aws_lc_0_21_0_aes_hw_xts_encrypt: - 0000000000001770: 48 89 7C 24 08 mov qword ptr [rsp+8],rdi - 0000000000001775: 48 89 74 24 10 mov qword ptr [rsp+10h],rsi - 000000000000177A: 48 89 E0 mov rax,rsp + 00000000000015D0: 48 89 7C 24 08 mov qword ptr [rsp+8],rdi + 00000000000015D5: 48 89 74 24 10 mov qword ptr [rsp+10h],rsi + 00000000000015DA: 48 89 E0 mov rax,rsp L$SEH_begin_aes_hw_xts_encrypt: - 000000000000177D: 48 89 CF mov rdi,rcx - 0000000000001780: 48 89 D6 mov rsi,rdx - 0000000000001783: 4C 89 C2 mov rdx,r8 - 0000000000001786: 4C 89 C9 mov rcx,r9 - 0000000000001789: 4C 8B 44 24 28 mov r8,qword ptr [rsp+28h] - 000000000000178E: 4C 8B 4C 24 30 mov r9,qword ptr [rsp+30h] - 0000000000001793: 4C 8D 1C 24 lea r11,[rsp] - 0000000000001797: 55 push rbp - 0000000000001798: 48 81 EC 10 01 00 sub rsp,110h + 00000000000015DD: 48 89 CF mov rdi,rcx + 00000000000015E0: 48 89 D6 mov rsi,rdx + 00000000000015E3: 4C 89 C2 mov rdx,r8 + 00000000000015E6: 4C 89 C9 mov rcx,r9 + 00000000000015E9: 4C 8B 44 24 28 mov r8,qword ptr [rsp+28h] + 00000000000015EE: 4C 8B 4C 24 30 mov r9,qword ptr [rsp+30h] + 00000000000015F3: 4C 8D 1C 24 lea r11,[rsp] + 00000000000015F7: 55 push rbp + 00000000000015F8: 48 81 EC 10 01 00 sub rsp,110h 00 - 000000000000179F: 48 83 E4 F0 and rsp,0FFFFFFFFFFFFFFF0h - 00000000000017A3: 41 0F 29 B3 58 FF movaps xmmword ptr [r11-0A8h],xmm6 + 00000000000015FF: 48 83 E4 F0 and rsp,0FFFFFFFFFFFFFFF0h + 0000000000001603: 41 0F 29 B3 58 FF movaps xmmword ptr [r11-0A8h],xmm6 FF FF - 00000000000017AB: 41 0F 29 BB 68 FF movaps xmmword ptr [r11-98h],xmm7 + 000000000000160B: 41 0F 29 BB 68 FF movaps xmmword ptr [r11-98h],xmm7 FF FF - 00000000000017B3: 45 0F 29 83 78 FF movaps xmmword ptr [r11-88h],xmm8 + 0000000000001613: 45 0F 29 83 78 FF movaps xmmword ptr [r11-88h],xmm8 FF FF - 00000000000017BB: 45 0F 29 4B 88 movaps xmmword ptr [r11-78h],xmm9 - 00000000000017C0: 45 0F 29 53 98 movaps xmmword ptr [r11-68h],xmm10 - 00000000000017C5: 45 0F 29 5B A8 movaps xmmword ptr [r11-58h],xmm11 - 00000000000017CA: 45 0F 29 63 B8 movaps xmmword ptr [r11-48h],xmm12 - 00000000000017CF: 45 0F 29 6B C8 movaps xmmword ptr [r11-38h],xmm13 - 00000000000017D4: 45 0F 29 73 D8 movaps xmmword ptr [r11-28h],xmm14 - 00000000000017D9: 45 0F 29 7B E8 movaps xmmword ptr [r11-18h],xmm15 + 000000000000161B: 45 0F 29 4B 88 movaps xmmword ptr [r11-78h],xmm9 + 0000000000001620: 45 0F 29 53 98 movaps xmmword ptr [r11-68h],xmm10 + 0000000000001625: 45 0F 29 5B A8 movaps xmmword ptr [r11-58h],xmm11 + 000000000000162A: 45 0F 29 63 B8 movaps xmmword ptr [r11-48h],xmm12 + 000000000000162F: 45 0F 29 6B C8 movaps xmmword ptr [r11-38h],xmm13 + 0000000000001634: 45 0F 29 73 D8 movaps xmmword ptr [r11-28h],xmm14 + 0000000000001639: 45 0F 29 7B E8 movaps xmmword ptr [r11-18h],xmm15 L$xts_enc_body: - 00000000000017DE: 41 0F 10 11 movups xmm2,xmmword ptr [r9] - 00000000000017E2: 41 8B 80 F0 00 00 mov eax,dword ptr [r8+0F0h] + 000000000000163E: 41 0F 10 11 movups xmm2,xmmword ptr [r9] + 0000000000001642: 41 8B 80 F0 00 00 mov eax,dword ptr [r8+0F0h] 00 - 00000000000017E9: 44 8B 91 F0 00 00 mov r10d,dword ptr [rcx+0F0h] + 0000000000001649: 44 8B 91 F0 00 00 mov r10d,dword ptr [rcx+0F0h] 00 - 00000000000017F0: 41 0F 10 00 movups xmm0,xmmword ptr [r8] - 00000000000017F4: 41 0F 10 48 10 movups xmm1,xmmword ptr [r8+10h] - 00000000000017F9: 4D 8D 40 20 lea r8,[r8+20h] - 00000000000017FD: 0F 57 D0 xorps xmm2,xmm0 + 0000000000001650: 41 0F 10 00 movups xmm0,xmmword ptr [r8] + 0000000000001654: 41 0F 10 48 10 movups xmm1,xmmword ptr [r8+10h] + 0000000000001659: 4D 8D 40 20 lea r8,[r8+20h] + 000000000000165D: 0F 57 D0 xorps xmm2,xmm0 L$oop_enc1_6: - 0000000000001800: 66 0F 38 DC D1 aesenc xmm2,xmm1 - 0000000000001805: FF C8 dec eax - 0000000000001807: 41 0F 10 08 movups xmm1,xmmword ptr [r8] - 000000000000180B: 4D 8D 40 10 lea r8,[r8+10h] - 000000000000180F: 0F 85 EB FF FF FF jne L$oop_enc1_6 - 0000000000001815: 66 0F 38 DD D1 aesenclast xmm2,xmm1 - 000000000000181A: 0F 10 01 movups xmm0,xmmword ptr [rcx] - 000000000000181D: 48 89 CD mov rbp,rcx - 0000000000001820: 44 89 D0 mov eax,r10d - 0000000000001823: 41 C1 E2 04 shl r10d,4 - 0000000000001827: 49 89 D1 mov r9,rdx - 000000000000182A: 48 83 E2 F0 and rdx,0FFFFFFFFFFFFFFF0h - 000000000000182E: 42 0F 10 4C 11 10 movups xmm1,xmmword ptr [rcx+r10+10h] - 0000000000001834: 66 44 0F 6F 05 30 movdqa xmm8,xmmword ptr [.rdata+30h] + 0000000000001660: 66 0F 38 DC D1 aesenc xmm2,xmm1 + 0000000000001665: FF C8 dec eax + 0000000000001667: 41 0F 10 08 movups xmm1,xmmword ptr [r8] + 000000000000166B: 4D 8D 40 10 lea r8,[r8+10h] + 000000000000166F: 0F 85 EB FF FF FF jne L$oop_enc1_6 + 0000000000001675: 66 0F 38 DD D1 aesenclast xmm2,xmm1 + 000000000000167A: 0F 10 01 movups xmm0,xmmword ptr [rcx] + 000000000000167D: 48 89 CD mov rbp,rcx + 0000000000001680: 44 89 D0 mov eax,r10d + 0000000000001683: 41 C1 E2 04 shl r10d,4 + 0000000000001687: 49 89 D1 mov r9,rdx + 000000000000168A: 48 83 E2 F0 and rdx,0FFFFFFFFFFFFFFF0h + 000000000000168E: 42 0F 10 4C 11 10 movups xmm1,xmmword ptr [rcx+r10+10h] + 0000000000001694: 66 44 0F 6F 05 30 movdqa xmm8,xmmword ptr [.rdata+30h] 00 00 00 - 000000000000183D: 66 44 0F 6F FA movdqa xmm15,xmm2 - 0000000000001842: 66 44 0F 70 CA 5F pshufd xmm9,xmm2,5Fh - 0000000000001848: 66 0F EF C8 pxor xmm1,xmm0 - 000000000000184C: 66 45 0F 6F F1 movdqa xmm14,xmm9 - 0000000000001851: 66 45 0F FE C9 paddd xmm9,xmm9 - 0000000000001856: 66 45 0F 6F D7 movdqa xmm10,xmm15 - 000000000000185B: 66 41 0F 72 E6 1F psrad xmm14,1Fh - 0000000000001861: 66 45 0F D4 FF paddq xmm15,xmm15 - 0000000000001866: 66 45 0F DB F0 pand xmm14,xmm8 - 000000000000186B: 66 44 0F EF D0 pxor xmm10,xmm0 - 0000000000001870: 66 45 0F EF FE pxor xmm15,xmm14 - 0000000000001875: 66 45 0F 6F F1 movdqa xmm14,xmm9 - 000000000000187A: 66 45 0F FE C9 paddd xmm9,xmm9 - 000000000000187F: 66 45 0F 6F DF movdqa xmm11,xmm15 - 0000000000001884: 66 41 0F 72 E6 1F psrad xmm14,1Fh - 000000000000188A: 66 45 0F D4 FF paddq xmm15,xmm15 - 000000000000188F: 66 45 0F DB F0 pand xmm14,xmm8 - 0000000000001894: 66 44 0F EF D8 pxor xmm11,xmm0 - 0000000000001899: 66 45 0F EF FE pxor xmm15,xmm14 - 000000000000189E: 66 45 0F 6F F1 movdqa xmm14,xmm9 - 00000000000018A3: 66 45 0F FE C9 paddd xmm9,xmm9 - 00000000000018A8: 66 45 0F 6F E7 movdqa xmm12,xmm15 - 00000000000018AD: 66 41 0F 72 E6 1F psrad xmm14,1Fh - 00000000000018B3: 66 45 0F D4 FF paddq xmm15,xmm15 - 00000000000018B8: 66 45 0F DB F0 pand xmm14,xmm8 - 00000000000018BD: 66 44 0F EF E0 pxor xmm12,xmm0 - 00000000000018C2: 66 45 0F EF FE pxor xmm15,xmm14 - 00000000000018C7: 66 45 0F 6F F1 movdqa xmm14,xmm9 - 00000000000018CC: 66 45 0F FE C9 paddd xmm9,xmm9 - 00000000000018D1: 66 45 0F 6F EF movdqa xmm13,xmm15 - 00000000000018D6: 66 41 0F 72 E6 1F psrad xmm14,1Fh - 00000000000018DC: 66 45 0F D4 FF paddq xmm15,xmm15 - 00000000000018E1: 66 45 0F DB F0 pand xmm14,xmm8 - 00000000000018E6: 66 44 0F EF E8 pxor xmm13,xmm0 - 00000000000018EB: 66 45 0F EF FE pxor xmm15,xmm14 - 00000000000018F0: 66 45 0F 6F F7 movdqa xmm14,xmm15 - 00000000000018F5: 66 41 0F 72 E1 1F psrad xmm9,1Fh - 00000000000018FB: 66 45 0F D4 FF paddq xmm15,xmm15 - 0000000000001900: 66 45 0F DB C8 pand xmm9,xmm8 - 0000000000001905: 66 44 0F EF F0 pxor xmm14,xmm0 - 000000000000190A: 66 45 0F EF F9 pxor xmm15,xmm9 - 000000000000190F: 0F 29 4C 24 60 movaps xmmword ptr [rsp+60h],xmm1 - 0000000000001914: 48 83 EA 60 sub rdx,60h - 0000000000001918: 0F 82 66 03 00 00 jb L$xts_enc_short - 000000000000191E: B8 70 00 00 00 mov eax,70h - 0000000000001923: 4A 8D 4C 15 20 lea rcx,[rbp+r10+20h] - 0000000000001928: 4C 29 D0 sub rax,r10 - 000000000000192B: 0F 10 4D 10 movups xmm1,xmmword ptr [rbp+10h] - 000000000000192F: 49 89 C2 mov r10,rax - 0000000000001932: 4C 8D 05 30 00 00 lea r8,[.rdata+30h] + 000000000000169D: 66 44 0F 6F FA movdqa xmm15,xmm2 + 00000000000016A2: 66 44 0F 70 CA 5F pshufd xmm9,xmm2,5Fh + 00000000000016A8: 66 0F EF C8 pxor xmm1,xmm0 + 00000000000016AC: 66 45 0F 6F F1 movdqa xmm14,xmm9 + 00000000000016B1: 66 45 0F FE C9 paddd xmm9,xmm9 + 00000000000016B6: 66 45 0F 6F D7 movdqa xmm10,xmm15 + 00000000000016BB: 66 41 0F 72 E6 1F psrad xmm14,1Fh + 00000000000016C1: 66 45 0F D4 FF paddq xmm15,xmm15 + 00000000000016C6: 66 45 0F DB F0 pand xmm14,xmm8 + 00000000000016CB: 66 44 0F EF D0 pxor xmm10,xmm0 + 00000000000016D0: 66 45 0F EF FE pxor xmm15,xmm14 + 00000000000016D5: 66 45 0F 6F F1 movdqa xmm14,xmm9 + 00000000000016DA: 66 45 0F FE C9 paddd xmm9,xmm9 + 00000000000016DF: 66 45 0F 6F DF movdqa xmm11,xmm15 + 00000000000016E4: 66 41 0F 72 E6 1F psrad xmm14,1Fh + 00000000000016EA: 66 45 0F D4 FF paddq xmm15,xmm15 + 00000000000016EF: 66 45 0F DB F0 pand xmm14,xmm8 + 00000000000016F4: 66 44 0F EF D8 pxor xmm11,xmm0 + 00000000000016F9: 66 45 0F EF FE pxor xmm15,xmm14 + 00000000000016FE: 66 45 0F 6F F1 movdqa xmm14,xmm9 + 0000000000001703: 66 45 0F FE C9 paddd xmm9,xmm9 + 0000000000001708: 66 45 0F 6F E7 movdqa xmm12,xmm15 + 000000000000170D: 66 41 0F 72 E6 1F psrad xmm14,1Fh + 0000000000001713: 66 45 0F D4 FF paddq xmm15,xmm15 + 0000000000001718: 66 45 0F DB F0 pand xmm14,xmm8 + 000000000000171D: 66 44 0F EF E0 pxor xmm12,xmm0 + 0000000000001722: 66 45 0F EF FE pxor xmm15,xmm14 + 0000000000001727: 66 45 0F 6F F1 movdqa xmm14,xmm9 + 000000000000172C: 66 45 0F FE C9 paddd xmm9,xmm9 + 0000000000001731: 66 45 0F 6F EF movdqa xmm13,xmm15 + 0000000000001736: 66 41 0F 72 E6 1F psrad xmm14,1Fh + 000000000000173C: 66 45 0F D4 FF paddq xmm15,xmm15 + 0000000000001741: 66 45 0F DB F0 pand xmm14,xmm8 + 0000000000001746: 66 44 0F EF E8 pxor xmm13,xmm0 + 000000000000174B: 66 45 0F EF FE pxor xmm15,xmm14 + 0000000000001750: 66 45 0F 6F F7 movdqa xmm14,xmm15 + 0000000000001755: 66 41 0F 72 E1 1F psrad xmm9,1Fh + 000000000000175B: 66 45 0F D4 FF paddq xmm15,xmm15 + 0000000000001760: 66 45 0F DB C8 pand xmm9,xmm8 + 0000000000001765: 66 44 0F EF F0 pxor xmm14,xmm0 + 000000000000176A: 66 45 0F EF F9 pxor xmm15,xmm9 + 000000000000176F: 0F 29 4C 24 60 movaps xmmword ptr [rsp+60h],xmm1 + 0000000000001774: 48 83 EA 60 sub rdx,60h + 0000000000001778: 0F 82 66 03 00 00 jb L$xts_enc_short + 000000000000177E: B8 70 00 00 00 mov eax,70h + 0000000000001783: 4A 8D 4C 15 20 lea rcx,[rbp+r10+20h] + 0000000000001788: 4C 29 D0 sub rax,r10 + 000000000000178B: 0F 10 4D 10 movups xmm1,xmmword ptr [rbp+10h] + 000000000000178F: 49 89 C2 mov r10,rax + 0000000000001792: 4C 8D 05 30 00 00 lea r8,[.rdata+30h] 00 - 0000000000001939: E9 02 00 00 00 jmp L$xts_enc_grandloop - 000000000000193E: 90 nop - 000000000000193F: 90 nop + 0000000000001799: E9 02 00 00 00 jmp L$xts_enc_grandloop + 000000000000179E: 90 nop + 000000000000179F: 90 nop L$xts_enc_grandloop: - 0000000000001940: F3 0F 6F 17 movdqu xmm2,xmmword ptr [rdi] - 0000000000001944: 66 44 0F 6F C0 movdqa xmm8,xmm0 - 0000000000001949: F3 0F 6F 5F 10 movdqu xmm3,xmmword ptr [rdi+10h] - 000000000000194E: 66 41 0F EF D2 pxor xmm2,xmm10 - 0000000000001953: F3 0F 6F 67 20 movdqu xmm4,xmmword ptr [rdi+20h] - 0000000000001958: 66 41 0F EF DB pxor xmm3,xmm11 - 000000000000195D: 66 0F 38 DC D1 aesenc xmm2,xmm1 - 0000000000001962: F3 0F 6F 6F 30 movdqu xmm5,xmmword ptr [rdi+30h] - 0000000000001967: 66 41 0F EF E4 pxor xmm4,xmm12 - 000000000000196C: 66 0F 38 DC D9 aesenc xmm3,xmm1 - 0000000000001971: F3 0F 6F 77 40 movdqu xmm6,xmmword ptr [rdi+40h] - 0000000000001976: 66 41 0F EF ED pxor xmm5,xmm13 - 000000000000197B: 66 0F 38 DC E1 aesenc xmm4,xmm1 - 0000000000001980: F3 0F 6F 7F 50 movdqu xmm7,xmmword ptr [rdi+50h] - 0000000000001985: 66 45 0F EF C7 pxor xmm8,xmm15 - 000000000000198A: 66 44 0F 6F 4C 24 movdqa xmm9,xmmword ptr [rsp+60h] + 00000000000017A0: F3 0F 6F 17 movdqu xmm2,xmmword ptr [rdi] + 00000000000017A4: 66 44 0F 6F C0 movdqa xmm8,xmm0 + 00000000000017A9: F3 0F 6F 5F 10 movdqu xmm3,xmmword ptr [rdi+10h] + 00000000000017AE: 66 41 0F EF D2 pxor xmm2,xmm10 + 00000000000017B3: F3 0F 6F 67 20 movdqu xmm4,xmmword ptr [rdi+20h] + 00000000000017B8: 66 41 0F EF DB pxor xmm3,xmm11 + 00000000000017BD: 66 0F 38 DC D1 aesenc xmm2,xmm1 + 00000000000017C2: F3 0F 6F 6F 30 movdqu xmm5,xmmword ptr [rdi+30h] + 00000000000017C7: 66 41 0F EF E4 pxor xmm4,xmm12 + 00000000000017CC: 66 0F 38 DC D9 aesenc xmm3,xmm1 + 00000000000017D1: F3 0F 6F 77 40 movdqu xmm6,xmmword ptr [rdi+40h] + 00000000000017D6: 66 41 0F EF ED pxor xmm5,xmm13 + 00000000000017DB: 66 0F 38 DC E1 aesenc xmm4,xmm1 + 00000000000017E0: F3 0F 6F 7F 50 movdqu xmm7,xmmword ptr [rdi+50h] + 00000000000017E5: 66 45 0F EF C7 pxor xmm8,xmm15 + 00000000000017EA: 66 44 0F 6F 4C 24 movdqa xmm9,xmmword ptr [rsp+60h] 60 - 0000000000001991: 66 41 0F EF F6 pxor xmm6,xmm14 - 0000000000001996: 66 0F 38 DC E9 aesenc xmm5,xmm1 - 000000000000199B: 0F 10 45 20 movups xmm0,xmmword ptr [rbp+20h] - 000000000000199F: 48 8D 7F 60 lea rdi,[rdi+60h] - 00000000000019A3: 66 41 0F EF F8 pxor xmm7,xmm8 - 00000000000019A8: 66 45 0F EF D1 pxor xmm10,xmm9 - 00000000000019AD: 66 0F 38 DC F1 aesenc xmm6,xmm1 - 00000000000019B2: 66 45 0F EF D9 pxor xmm11,xmm9 - 00000000000019B7: 66 44 0F 7F 14 24 movdqa xmmword ptr [rsp],xmm10 - 00000000000019BD: 66 0F 38 DC F9 aesenc xmm7,xmm1 - 00000000000019C2: 0F 10 4D 30 movups xmm1,xmmword ptr [rbp+30h] - 00000000000019C6: 66 45 0F EF E1 pxor xmm12,xmm9 - 00000000000019CB: 66 0F 38 DC D0 aesenc xmm2,xmm0 - 00000000000019D0: 66 45 0F EF E9 pxor xmm13,xmm9 - 00000000000019D5: 66 44 0F 7F 5C 24 movdqa xmmword ptr [rsp+10h],xmm11 + 00000000000017F1: 66 41 0F EF F6 pxor xmm6,xmm14 + 00000000000017F6: 66 0F 38 DC E9 aesenc xmm5,xmm1 + 00000000000017FB: 0F 10 45 20 movups xmm0,xmmword ptr [rbp+20h] + 00000000000017FF: 48 8D 7F 60 lea rdi,[rdi+60h] + 0000000000001803: 66 41 0F EF F8 pxor xmm7,xmm8 + 0000000000001808: 66 45 0F EF D1 pxor xmm10,xmm9 + 000000000000180D: 66 0F 38 DC F1 aesenc xmm6,xmm1 + 0000000000001812: 66 45 0F EF D9 pxor xmm11,xmm9 + 0000000000001817: 66 44 0F 7F 14 24 movdqa xmmword ptr [rsp],xmm10 + 000000000000181D: 66 0F 38 DC F9 aesenc xmm7,xmm1 + 0000000000001822: 0F 10 4D 30 movups xmm1,xmmword ptr [rbp+30h] + 0000000000001826: 66 45 0F EF E1 pxor xmm12,xmm9 + 000000000000182B: 66 0F 38 DC D0 aesenc xmm2,xmm0 + 0000000000001830: 66 45 0F EF E9 pxor xmm13,xmm9 + 0000000000001835: 66 44 0F 7F 5C 24 movdqa xmmword ptr [rsp+10h],xmm11 10 - 00000000000019DC: 66 0F 38 DC D8 aesenc xmm3,xmm0 - 00000000000019E1: 66 45 0F EF F1 pxor xmm14,xmm9 - 00000000000019E6: 66 44 0F 7F 64 24 movdqa xmmword ptr [rsp+20h],xmm12 + 000000000000183C: 66 0F 38 DC D8 aesenc xmm3,xmm0 + 0000000000001841: 66 45 0F EF F1 pxor xmm14,xmm9 + 0000000000001846: 66 44 0F 7F 64 24 movdqa xmmword ptr [rsp+20h],xmm12 20 - 00000000000019ED: 66 0F 38 DC E0 aesenc xmm4,xmm0 - 00000000000019F2: 66 0F 38 DC E8 aesenc xmm5,xmm0 - 00000000000019F7: 66 45 0F EF C1 pxor xmm8,xmm9 - 00000000000019FC: 66 44 0F 7F 74 24 movdqa xmmword ptr [rsp+40h],xmm14 + 000000000000184D: 66 0F 38 DC E0 aesenc xmm4,xmm0 + 0000000000001852: 66 0F 38 DC E8 aesenc xmm5,xmm0 + 0000000000001857: 66 45 0F EF C1 pxor xmm8,xmm9 + 000000000000185C: 66 44 0F 7F 74 24 movdqa xmmword ptr [rsp+40h],xmm14 40 - 0000000000001A03: 66 0F 38 DC F0 aesenc xmm6,xmm0 - 0000000000001A08: 66 0F 38 DC F8 aesenc xmm7,xmm0 - 0000000000001A0D: 0F 10 45 40 movups xmm0,xmmword ptr [rbp+40h] - 0000000000001A11: 66 44 0F 7F 44 24 movdqa xmmword ptr [rsp+50h],xmm8 + 0000000000001863: 66 0F 38 DC F0 aesenc xmm6,xmm0 + 0000000000001868: 66 0F 38 DC F8 aesenc xmm7,xmm0 + 000000000000186D: 0F 10 45 40 movups xmm0,xmmword ptr [rbp+40h] + 0000000000001871: 66 44 0F 7F 44 24 movdqa xmmword ptr [rsp+50h],xmm8 50 - 0000000000001A18: 66 45 0F 70 CF 5F pshufd xmm9,xmm15,5Fh - 0000000000001A1E: E9 1D 00 00 00 jmp L$xts_enc_loop6 - 0000000000001A23: 90 nop - 0000000000001A24: 90 nop - 0000000000001A25: 90 nop - 0000000000001A26: 90 nop - 0000000000001A27: 90 nop - 0000000000001A28: 90 nop - 0000000000001A29: 90 nop - 0000000000001A2A: 90 nop - 0000000000001A2B: 90 nop - 0000000000001A2C: 90 nop - 0000000000001A2D: 90 nop - 0000000000001A2E: 90 nop - 0000000000001A2F: 90 nop - 0000000000001A30: 90 nop - 0000000000001A31: 90 nop - 0000000000001A32: 90 nop - 0000000000001A33: 90 nop - 0000000000001A34: 90 nop - 0000000000001A35: 90 nop - 0000000000001A36: 90 nop - 0000000000001A37: 90 nop - 0000000000001A38: 90 nop - 0000000000001A39: 90 nop - 0000000000001A3A: 90 nop - 0000000000001A3B: 90 nop - 0000000000001A3C: 90 nop - 0000000000001A3D: 90 nop - 0000000000001A3E: 90 nop - 0000000000001A3F: 90 nop + 0000000000001878: 66 45 0F 70 CF 5F pshufd xmm9,xmm15,5Fh + 000000000000187E: E9 1D 00 00 00 jmp L$xts_enc_loop6 + 0000000000001883: 90 nop + 0000000000001884: 90 nop + 0000000000001885: 90 nop + 0000000000001886: 90 nop + 0000000000001887: 90 nop + 0000000000001888: 90 nop + 0000000000001889: 90 nop + 000000000000188A: 90 nop + 000000000000188B: 90 nop + 000000000000188C: 90 nop + 000000000000188D: 90 nop + 000000000000188E: 90 nop + 000000000000188F: 90 nop + 0000000000001890: 90 nop + 0000000000001891: 90 nop + 0000000000001892: 90 nop + 0000000000001893: 90 nop + 0000000000001894: 90 nop + 0000000000001895: 90 nop + 0000000000001896: 90 nop + 0000000000001897: 90 nop + 0000000000001898: 90 nop + 0000000000001899: 90 nop + 000000000000189A: 90 nop + 000000000000189B: 90 nop + 000000000000189C: 90 nop + 000000000000189D: 90 nop + 000000000000189E: 90 nop + 000000000000189F: 90 nop L$xts_enc_loop6: - 0000000000001A40: 66 0F 38 DC D1 aesenc xmm2,xmm1 - 0000000000001A45: 66 0F 38 DC D9 aesenc xmm3,xmm1 - 0000000000001A4A: 66 0F 38 DC E1 aesenc xmm4,xmm1 - 0000000000001A4F: 66 0F 38 DC E9 aesenc xmm5,xmm1 - 0000000000001A54: 66 0F 38 DC F1 aesenc xmm6,xmm1 - 0000000000001A59: 66 0F 38 DC F9 aesenc xmm7,xmm1 - 0000000000001A5E: 0F 10 4C 01 C0 movups xmm1,xmmword ptr [rcx+rax-40h] - 0000000000001A63: 48 83 C0 20 add rax,20h - 0000000000001A67: 66 0F 38 DC D0 aesenc xmm2,xmm0 - 0000000000001A6C: 66 0F 38 DC D8 aesenc xmm3,xmm0 - 0000000000001A71: 66 0F 38 DC E0 aesenc xmm4,xmm0 - 0000000000001A76: 66 0F 38 DC E8 aesenc xmm5,xmm0 - 0000000000001A7B: 66 0F 38 DC F0 aesenc xmm6,xmm0 - 0000000000001A80: 66 0F 38 DC F8 aesenc xmm7,xmm0 - 0000000000001A85: 0F 10 44 01 B0 movups xmm0,xmmword ptr [rcx+rax-50h] - 0000000000001A8A: 0F 85 B0 FF FF FF jne L$xts_enc_loop6 - 0000000000001A90: 66 45 0F 6F 00 movdqa xmm8,xmmword ptr [r8] - 0000000000001A95: 66 45 0F 6F F1 movdqa xmm14,xmm9 - 0000000000001A9A: 66 45 0F FE C9 paddd xmm9,xmm9 - 0000000000001A9F: 66 0F 38 DC D1 aesenc xmm2,xmm1 - 0000000000001AA4: 66 45 0F D4 FF paddq xmm15,xmm15 - 0000000000001AA9: 66 41 0F 72 E6 1F psrad xmm14,1Fh - 0000000000001AAF: 66 0F 38 DC D9 aesenc xmm3,xmm1 - 0000000000001AB4: 66 45 0F DB F0 pand xmm14,xmm8 - 0000000000001AB9: 44 0F 10 55 00 movups xmm10,xmmword ptr [rbp] - 0000000000001ABE: 66 0F 38 DC E1 aesenc xmm4,xmm1 - 0000000000001AC3: 66 0F 38 DC E9 aesenc xmm5,xmm1 - 0000000000001AC8: 66 0F 38 DC F1 aesenc xmm6,xmm1 - 0000000000001ACD: 66 45 0F EF FE pxor xmm15,xmm14 - 0000000000001AD2: 45 0F 28 DA movaps xmm11,xmm10 - 0000000000001AD6: 66 0F 38 DC F9 aesenc xmm7,xmm1 - 0000000000001ADB: 0F 10 49 C0 movups xmm1,xmmword ptr [rcx-40h] - 0000000000001ADF: 66 45 0F 6F F1 movdqa xmm14,xmm9 - 0000000000001AE4: 66 0F 38 DC D0 aesenc xmm2,xmm0 - 0000000000001AE9: 66 45 0F FE C9 paddd xmm9,xmm9 - 0000000000001AEE: 66 45 0F EF D7 pxor xmm10,xmm15 - 0000000000001AF3: 66 0F 38 DC D8 aesenc xmm3,xmm0 - 0000000000001AF8: 66 41 0F 72 E6 1F psrad xmm14,1Fh - 0000000000001AFE: 66 45 0F D4 FF paddq xmm15,xmm15 - 0000000000001B03: 66 0F 38 DC E0 aesenc xmm4,xmm0 - 0000000000001B08: 66 0F 38 DC E8 aesenc xmm5,xmm0 - 0000000000001B0D: 66 45 0F DB F0 pand xmm14,xmm8 - 0000000000001B12: 45 0F 28 E3 movaps xmm12,xmm11 - 0000000000001B16: 66 0F 38 DC F0 aesenc xmm6,xmm0 - 0000000000001B1B: 66 45 0F EF FE pxor xmm15,xmm14 - 0000000000001B20: 66 45 0F 6F F1 movdqa xmm14,xmm9 - 0000000000001B25: 66 0F 38 DC F8 aesenc xmm7,xmm0 - 0000000000001B2A: 0F 10 41 D0 movups xmm0,xmmword ptr [rcx-30h] - 0000000000001B2E: 66 45 0F FE C9 paddd xmm9,xmm9 - 0000000000001B33: 66 0F 38 DC D1 aesenc xmm2,xmm1 - 0000000000001B38: 66 45 0F EF DF pxor xmm11,xmm15 - 0000000000001B3D: 66 41 0F 72 E6 1F psrad xmm14,1Fh - 0000000000001B43: 66 0F 38 DC D9 aesenc xmm3,xmm1 - 0000000000001B48: 66 45 0F D4 FF paddq xmm15,xmm15 - 0000000000001B4D: 66 45 0F DB F0 pand xmm14,xmm8 - 0000000000001B52: 66 0F 38 DC E1 aesenc xmm4,xmm1 - 0000000000001B57: 66 0F 38 DC E9 aesenc xmm5,xmm1 - 0000000000001B5C: 66 44 0F 7F 6C 24 movdqa xmmword ptr [rsp+30h],xmm13 + 00000000000018A0: 66 0F 38 DC D1 aesenc xmm2,xmm1 + 00000000000018A5: 66 0F 38 DC D9 aesenc xmm3,xmm1 + 00000000000018AA: 66 0F 38 DC E1 aesenc xmm4,xmm1 + 00000000000018AF: 66 0F 38 DC E9 aesenc xmm5,xmm1 + 00000000000018B4: 66 0F 38 DC F1 aesenc xmm6,xmm1 + 00000000000018B9: 66 0F 38 DC F9 aesenc xmm7,xmm1 + 00000000000018BE: 0F 10 4C 01 C0 movups xmm1,xmmword ptr [rcx+rax-40h] + 00000000000018C3: 48 83 C0 20 add rax,20h + 00000000000018C7: 66 0F 38 DC D0 aesenc xmm2,xmm0 + 00000000000018CC: 66 0F 38 DC D8 aesenc xmm3,xmm0 + 00000000000018D1: 66 0F 38 DC E0 aesenc xmm4,xmm0 + 00000000000018D6: 66 0F 38 DC E8 aesenc xmm5,xmm0 + 00000000000018DB: 66 0F 38 DC F0 aesenc xmm6,xmm0 + 00000000000018E0: 66 0F 38 DC F8 aesenc xmm7,xmm0 + 00000000000018E5: 0F 10 44 01 B0 movups xmm0,xmmword ptr [rcx+rax-50h] + 00000000000018EA: 0F 85 B0 FF FF FF jne L$xts_enc_loop6 + 00000000000018F0: 66 45 0F 6F 00 movdqa xmm8,xmmword ptr [r8] + 00000000000018F5: 66 45 0F 6F F1 movdqa xmm14,xmm9 + 00000000000018FA: 66 45 0F FE C9 paddd xmm9,xmm9 + 00000000000018FF: 66 0F 38 DC D1 aesenc xmm2,xmm1 + 0000000000001904: 66 45 0F D4 FF paddq xmm15,xmm15 + 0000000000001909: 66 41 0F 72 E6 1F psrad xmm14,1Fh + 000000000000190F: 66 0F 38 DC D9 aesenc xmm3,xmm1 + 0000000000001914: 66 45 0F DB F0 pand xmm14,xmm8 + 0000000000001919: 44 0F 10 55 00 movups xmm10,xmmword ptr [rbp] + 000000000000191E: 66 0F 38 DC E1 aesenc xmm4,xmm1 + 0000000000001923: 66 0F 38 DC E9 aesenc xmm5,xmm1 + 0000000000001928: 66 0F 38 DC F1 aesenc xmm6,xmm1 + 000000000000192D: 66 45 0F EF FE pxor xmm15,xmm14 + 0000000000001932: 45 0F 28 DA movaps xmm11,xmm10 + 0000000000001936: 66 0F 38 DC F9 aesenc xmm7,xmm1 + 000000000000193B: 0F 10 49 C0 movups xmm1,xmmword ptr [rcx-40h] + 000000000000193F: 66 45 0F 6F F1 movdqa xmm14,xmm9 + 0000000000001944: 66 0F 38 DC D0 aesenc xmm2,xmm0 + 0000000000001949: 66 45 0F FE C9 paddd xmm9,xmm9 + 000000000000194E: 66 45 0F EF D7 pxor xmm10,xmm15 + 0000000000001953: 66 0F 38 DC D8 aesenc xmm3,xmm0 + 0000000000001958: 66 41 0F 72 E6 1F psrad xmm14,1Fh + 000000000000195E: 66 45 0F D4 FF paddq xmm15,xmm15 + 0000000000001963: 66 0F 38 DC E0 aesenc xmm4,xmm0 + 0000000000001968: 66 0F 38 DC E8 aesenc xmm5,xmm0 + 000000000000196D: 66 45 0F DB F0 pand xmm14,xmm8 + 0000000000001972: 45 0F 28 E3 movaps xmm12,xmm11 + 0000000000001976: 66 0F 38 DC F0 aesenc xmm6,xmm0 + 000000000000197B: 66 45 0F EF FE pxor xmm15,xmm14 + 0000000000001980: 66 45 0F 6F F1 movdqa xmm14,xmm9 + 0000000000001985: 66 0F 38 DC F8 aesenc xmm7,xmm0 + 000000000000198A: 0F 10 41 D0 movups xmm0,xmmword ptr [rcx-30h] + 000000000000198E: 66 45 0F FE C9 paddd xmm9,xmm9 + 0000000000001993: 66 0F 38 DC D1 aesenc xmm2,xmm1 + 0000000000001998: 66 45 0F EF DF pxor xmm11,xmm15 + 000000000000199D: 66 41 0F 72 E6 1F psrad xmm14,1Fh + 00000000000019A3: 66 0F 38 DC D9 aesenc xmm3,xmm1 + 00000000000019A8: 66 45 0F D4 FF paddq xmm15,xmm15 + 00000000000019AD: 66 45 0F DB F0 pand xmm14,xmm8 + 00000000000019B2: 66 0F 38 DC E1 aesenc xmm4,xmm1 + 00000000000019B7: 66 0F 38 DC E9 aesenc xmm5,xmm1 + 00000000000019BC: 66 44 0F 7F 6C 24 movdqa xmmword ptr [rsp+30h],xmm13 30 - 0000000000001B63: 66 45 0F EF FE pxor xmm15,xmm14 - 0000000000001B68: 66 0F 38 DC F1 aesenc xmm6,xmm1 - 0000000000001B6D: 45 0F 28 EC movaps xmm13,xmm12 - 0000000000001B71: 66 45 0F 6F F1 movdqa xmm14,xmm9 - 0000000000001B76: 66 0F 38 DC F9 aesenc xmm7,xmm1 - 0000000000001B7B: 0F 10 49 E0 movups xmm1,xmmword ptr [rcx-20h] - 0000000000001B7F: 66 45 0F FE C9 paddd xmm9,xmm9 - 0000000000001B84: 66 0F 38 DC D0 aesenc xmm2,xmm0 - 0000000000001B89: 66 45 0F EF E7 pxor xmm12,xmm15 - 0000000000001B8E: 66 41 0F 72 E6 1F psrad xmm14,1Fh - 0000000000001B94: 66 0F 38 DC D8 aesenc xmm3,xmm0 - 0000000000001B99: 66 45 0F D4 FF paddq xmm15,xmm15 - 0000000000001B9E: 66 45 0F DB F0 pand xmm14,xmm8 - 0000000000001BA3: 66 0F 38 DC E0 aesenc xmm4,xmm0 - 0000000000001BA8: 66 0F 38 DC E8 aesenc xmm5,xmm0 - 0000000000001BAD: 66 0F 38 DC F0 aesenc xmm6,xmm0 - 0000000000001BB2: 66 45 0F EF FE pxor xmm15,xmm14 - 0000000000001BB7: 45 0F 28 F5 movaps xmm14,xmm13 - 0000000000001BBB: 66 0F 38 DC F8 aesenc xmm7,xmm0 - 0000000000001BC0: 66 41 0F 6F C1 movdqa xmm0,xmm9 - 0000000000001BC5: 66 45 0F FE C9 paddd xmm9,xmm9 - 0000000000001BCA: 66 0F 38 DC D1 aesenc xmm2,xmm1 - 0000000000001BCF: 66 45 0F EF EF pxor xmm13,xmm15 - 0000000000001BD4: 66 0F 72 E0 1F psrad xmm0,1Fh - 0000000000001BD9: 66 0F 38 DC D9 aesenc xmm3,xmm1 - 0000000000001BDE: 66 45 0F D4 FF paddq xmm15,xmm15 - 0000000000001BE3: 66 41 0F DB C0 pand xmm0,xmm8 - 0000000000001BE8: 66 0F 38 DC E1 aesenc xmm4,xmm1 - 0000000000001BED: 66 0F 38 DC E9 aesenc xmm5,xmm1 - 0000000000001BF2: 66 44 0F EF F8 pxor xmm15,xmm0 - 0000000000001BF7: 0F 10 45 00 movups xmm0,xmmword ptr [rbp] - 0000000000001BFB: 66 0F 38 DC F1 aesenc xmm6,xmm1 - 0000000000001C00: 66 0F 38 DC F9 aesenc xmm7,xmm1 - 0000000000001C05: 0F 10 4D 10 movups xmm1,xmmword ptr [rbp+10h] - 0000000000001C09: 66 45 0F EF F7 pxor xmm14,xmm15 - 0000000000001C0E: 66 0F 38 DD 54 24 aesenclast xmm2,xmmword ptr [rsp] + 00000000000019C3: 66 45 0F EF FE pxor xmm15,xmm14 + 00000000000019C8: 66 0F 38 DC F1 aesenc xmm6,xmm1 + 00000000000019CD: 45 0F 28 EC movaps xmm13,xmm12 + 00000000000019D1: 66 45 0F 6F F1 movdqa xmm14,xmm9 + 00000000000019D6: 66 0F 38 DC F9 aesenc xmm7,xmm1 + 00000000000019DB: 0F 10 49 E0 movups xmm1,xmmword ptr [rcx-20h] + 00000000000019DF: 66 45 0F FE C9 paddd xmm9,xmm9 + 00000000000019E4: 66 0F 38 DC D0 aesenc xmm2,xmm0 + 00000000000019E9: 66 45 0F EF E7 pxor xmm12,xmm15 + 00000000000019EE: 66 41 0F 72 E6 1F psrad xmm14,1Fh + 00000000000019F4: 66 0F 38 DC D8 aesenc xmm3,xmm0 + 00000000000019F9: 66 45 0F D4 FF paddq xmm15,xmm15 + 00000000000019FE: 66 45 0F DB F0 pand xmm14,xmm8 + 0000000000001A03: 66 0F 38 DC E0 aesenc xmm4,xmm0 + 0000000000001A08: 66 0F 38 DC E8 aesenc xmm5,xmm0 + 0000000000001A0D: 66 0F 38 DC F0 aesenc xmm6,xmm0 + 0000000000001A12: 66 45 0F EF FE pxor xmm15,xmm14 + 0000000000001A17: 45 0F 28 F5 movaps xmm14,xmm13 + 0000000000001A1B: 66 0F 38 DC F8 aesenc xmm7,xmm0 + 0000000000001A20: 66 41 0F 6F C1 movdqa xmm0,xmm9 + 0000000000001A25: 66 45 0F FE C9 paddd xmm9,xmm9 + 0000000000001A2A: 66 0F 38 DC D1 aesenc xmm2,xmm1 + 0000000000001A2F: 66 45 0F EF EF pxor xmm13,xmm15 + 0000000000001A34: 66 0F 72 E0 1F psrad xmm0,1Fh + 0000000000001A39: 66 0F 38 DC D9 aesenc xmm3,xmm1 + 0000000000001A3E: 66 45 0F D4 FF paddq xmm15,xmm15 + 0000000000001A43: 66 41 0F DB C0 pand xmm0,xmm8 + 0000000000001A48: 66 0F 38 DC E1 aesenc xmm4,xmm1 + 0000000000001A4D: 66 0F 38 DC E9 aesenc xmm5,xmm1 + 0000000000001A52: 66 44 0F EF F8 pxor xmm15,xmm0 + 0000000000001A57: 0F 10 45 00 movups xmm0,xmmword ptr [rbp] + 0000000000001A5B: 66 0F 38 DC F1 aesenc xmm6,xmm1 + 0000000000001A60: 66 0F 38 DC F9 aesenc xmm7,xmm1 + 0000000000001A65: 0F 10 4D 10 movups xmm1,xmmword ptr [rbp+10h] + 0000000000001A69: 66 45 0F EF F7 pxor xmm14,xmm15 + 0000000000001A6E: 66 0F 38 DD 54 24 aesenclast xmm2,xmmword ptr [rsp] 00 - 0000000000001C15: 66 41 0F 72 E1 1F psrad xmm9,1Fh - 0000000000001C1B: 66 45 0F D4 FF paddq xmm15,xmm15 - 0000000000001C20: 66 0F 38 DD 5C 24 aesenclast xmm3,xmmword ptr [rsp+10h] + 0000000000001A75: 66 41 0F 72 E1 1F psrad xmm9,1Fh + 0000000000001A7B: 66 45 0F D4 FF paddq xmm15,xmm15 + 0000000000001A80: 66 0F 38 DD 5C 24 aesenclast xmm3,xmmword ptr [rsp+10h] 10 - 0000000000001C27: 66 0F 38 DD 64 24 aesenclast xmm4,xmmword ptr [rsp+20h] + 0000000000001A87: 66 0F 38 DD 64 24 aesenclast xmm4,xmmword ptr [rsp+20h] 20 - 0000000000001C2E: 66 45 0F DB C8 pand xmm9,xmm8 - 0000000000001C33: 4C 89 D0 mov rax,r10 - 0000000000001C36: 66 0F 38 DD 6C 24 aesenclast xmm5,xmmword ptr [rsp+30h] + 0000000000001A8E: 66 45 0F DB C8 pand xmm9,xmm8 + 0000000000001A93: 4C 89 D0 mov rax,r10 + 0000000000001A96: 66 0F 38 DD 6C 24 aesenclast xmm5,xmmword ptr [rsp+30h] 30 - 0000000000001C3D: 66 0F 38 DD 74 24 aesenclast xmm6,xmmword ptr [rsp+40h] + 0000000000001A9D: 66 0F 38 DD 74 24 aesenclast xmm6,xmmword ptr [rsp+40h] 40 - 0000000000001C44: 66 0F 38 DD 7C 24 aesenclast xmm7,xmmword ptr [rsp+50h] + 0000000000001AA4: 66 0F 38 DD 7C 24 aesenclast xmm7,xmmword ptr [rsp+50h] 50 - 0000000000001C4B: 66 45 0F EF F9 pxor xmm15,xmm9 - 0000000000001C50: 48 8D 76 60 lea rsi,[rsi+60h] - 0000000000001C54: 0F 11 56 A0 movups xmmword ptr [rsi-60h],xmm2 - 0000000000001C58: 0F 11 5E B0 movups xmmword ptr [rsi-50h],xmm3 - 0000000000001C5C: 0F 11 66 C0 movups xmmword ptr [rsi-40h],xmm4 - 0000000000001C60: 0F 11 6E D0 movups xmmword ptr [rsi-30h],xmm5 - 0000000000001C64: 0F 11 76 E0 movups xmmword ptr [rsi-20h],xmm6 - 0000000000001C68: 0F 11 7E F0 movups xmmword ptr [rsi-10h],xmm7 - 0000000000001C6C: 48 83 EA 60 sub rdx,60h - 0000000000001C70: 0F 83 CA FC FF FF jae L$xts_enc_grandloop - 0000000000001C76: B8 70 00 00 00 mov eax,70h - 0000000000001C7B: 44 29 D0 sub eax,r10d - 0000000000001C7E: 48 89 E9 mov rcx,rbp - 0000000000001C81: C1 E8 04 shr eax,4 + 0000000000001AAB: 66 45 0F EF F9 pxor xmm15,xmm9 + 0000000000001AB0: 48 8D 76 60 lea rsi,[rsi+60h] + 0000000000001AB4: 0F 11 56 A0 movups xmmword ptr [rsi-60h],xmm2 + 0000000000001AB8: 0F 11 5E B0 movups xmmword ptr [rsi-50h],xmm3 + 0000000000001ABC: 0F 11 66 C0 movups xmmword ptr [rsi-40h],xmm4 + 0000000000001AC0: 0F 11 6E D0 movups xmmword ptr [rsi-30h],xmm5 + 0000000000001AC4: 0F 11 76 E0 movups xmmword ptr [rsi-20h],xmm6 + 0000000000001AC8: 0F 11 7E F0 movups xmmword ptr [rsi-10h],xmm7 + 0000000000001ACC: 48 83 EA 60 sub rdx,60h + 0000000000001AD0: 0F 83 CA FC FF FF jae L$xts_enc_grandloop + 0000000000001AD6: B8 70 00 00 00 mov eax,70h + 0000000000001ADB: 44 29 D0 sub eax,r10d + 0000000000001ADE: 48 89 E9 mov rcx,rbp + 0000000000001AE1: C1 E8 04 shr eax,4 L$xts_enc_short: - 0000000000001C84: 41 89 C2 mov r10d,eax - 0000000000001C87: 66 44 0F EF D0 pxor xmm10,xmm0 - 0000000000001C8C: 48 83 C2 60 add rdx,60h - 0000000000001C90: 0F 84 FA 01 00 00 je L$xts_enc_done - 0000000000001C96: 66 44 0F EF D8 pxor xmm11,xmm0 - 0000000000001C9B: 48 83 FA 20 cmp rdx,20h - 0000000000001C9F: 0F 82 AB 00 00 00 jb L$xts_enc_one - 0000000000001CA5: 66 44 0F EF E0 pxor xmm12,xmm0 - 0000000000001CAA: 0F 84 F0 00 00 00 je L$xts_enc_two - 0000000000001CB0: 66 44 0F EF E8 pxor xmm13,xmm0 - 0000000000001CB5: 48 83 FA 40 cmp rdx,40h - 0000000000001CB9: 0F 82 21 01 00 00 jb L$xts_enc_three - 0000000000001CBF: 66 44 0F EF F0 pxor xmm14,xmm0 - 0000000000001CC4: 0F 84 66 01 00 00 je L$xts_enc_four - 0000000000001CCA: F3 0F 6F 17 movdqu xmm2,xmmword ptr [rdi] - 0000000000001CCE: F3 0F 6F 5F 10 movdqu xmm3,xmmword ptr [rdi+10h] - 0000000000001CD3: F3 0F 6F 67 20 movdqu xmm4,xmmword ptr [rdi+20h] - 0000000000001CD8: 66 41 0F EF D2 pxor xmm2,xmm10 - 0000000000001CDD: F3 0F 6F 6F 30 movdqu xmm5,xmmword ptr [rdi+30h] - 0000000000001CE2: 66 41 0F EF DB pxor xmm3,xmm11 - 0000000000001CE7: F3 0F 6F 77 40 movdqu xmm6,xmmword ptr [rdi+40h] - 0000000000001CEC: 48 8D 7F 50 lea rdi,[rdi+50h] - 0000000000001CF0: 66 41 0F EF E4 pxor xmm4,xmm12 - 0000000000001CF5: 66 41 0F EF ED pxor xmm5,xmm13 - 0000000000001CFA: 66 41 0F EF F6 pxor xmm6,xmm14 - 0000000000001CFF: 66 0F EF FF pxor xmm7,xmm7 - 0000000000001D03: E8 78 E6 FF FF call _aesni_encrypt6 - 0000000000001D08: 41 0F 57 D2 xorps xmm2,xmm10 - 0000000000001D0C: 66 45 0F 6F D7 movdqa xmm10,xmm15 - 0000000000001D11: 41 0F 57 DB xorps xmm3,xmm11 - 0000000000001D15: 41 0F 57 E4 xorps xmm4,xmm12 - 0000000000001D19: F3 0F 7F 16 movdqu xmmword ptr [rsi],xmm2 - 0000000000001D1D: 41 0F 57 ED xorps xmm5,xmm13 - 0000000000001D21: F3 0F 7F 5E 10 movdqu xmmword ptr [rsi+10h],xmm3 - 0000000000001D26: 41 0F 57 F6 xorps xmm6,xmm14 - 0000000000001D2A: F3 0F 7F 66 20 movdqu xmmword ptr [rsi+20h],xmm4 - 0000000000001D2F: F3 0F 7F 6E 30 movdqu xmmword ptr [rsi+30h],xmm5 - 0000000000001D34: F3 0F 7F 76 40 movdqu xmmword ptr [rsi+40h],xmm6 - 0000000000001D39: 48 8D 76 50 lea rsi,[rsi+50h] - 0000000000001D3D: E9 4E 01 00 00 jmp L$xts_enc_done - 0000000000001D42: 90 nop - 0000000000001D43: 90 nop - 0000000000001D44: 90 nop - 0000000000001D45: 90 nop - 0000000000001D46: 90 nop - 0000000000001D47: 90 nop - 0000000000001D48: 90 nop - 0000000000001D49: 90 nop - 0000000000001D4A: 90 nop - 0000000000001D4B: 90 nop - 0000000000001D4C: 90 nop - 0000000000001D4D: 90 nop - 0000000000001D4E: 90 nop - 0000000000001D4F: 90 nop + 0000000000001AE4: 41 89 C2 mov r10d,eax + 0000000000001AE7: 66 44 0F EF D0 pxor xmm10,xmm0 + 0000000000001AEC: 48 83 C2 60 add rdx,60h + 0000000000001AF0: 0F 84 FA 01 00 00 je L$xts_enc_done + 0000000000001AF6: 66 44 0F EF D8 pxor xmm11,xmm0 + 0000000000001AFB: 48 83 FA 20 cmp rdx,20h + 0000000000001AFF: 0F 82 AB 00 00 00 jb L$xts_enc_one + 0000000000001B05: 66 44 0F EF E0 pxor xmm12,xmm0 + 0000000000001B0A: 0F 84 F0 00 00 00 je L$xts_enc_two + 0000000000001B10: 66 44 0F EF E8 pxor xmm13,xmm0 + 0000000000001B15: 48 83 FA 40 cmp rdx,40h + 0000000000001B19: 0F 82 21 01 00 00 jb L$xts_enc_three + 0000000000001B1F: 66 44 0F EF F0 pxor xmm14,xmm0 + 0000000000001B24: 0F 84 66 01 00 00 je L$xts_enc_four + 0000000000001B2A: F3 0F 6F 17 movdqu xmm2,xmmword ptr [rdi] + 0000000000001B2E: F3 0F 6F 5F 10 movdqu xmm3,xmmword ptr [rdi+10h] + 0000000000001B33: F3 0F 6F 67 20 movdqu xmm4,xmmword ptr [rdi+20h] + 0000000000001B38: 66 41 0F EF D2 pxor xmm2,xmm10 + 0000000000001B3D: F3 0F 6F 6F 30 movdqu xmm5,xmmword ptr [rdi+30h] + 0000000000001B42: 66 41 0F EF DB pxor xmm3,xmm11 + 0000000000001B47: F3 0F 6F 77 40 movdqu xmm6,xmmword ptr [rdi+40h] + 0000000000001B4C: 48 8D 7F 50 lea rdi,[rdi+50h] + 0000000000001B50: 66 41 0F EF E4 pxor xmm4,xmm12 + 0000000000001B55: 66 41 0F EF ED pxor xmm5,xmm13 + 0000000000001B5A: 66 41 0F EF F6 pxor xmm6,xmm14 + 0000000000001B5F: 66 0F EF FF pxor xmm7,xmm7 + 0000000000001B63: E8 18 E8 FF FF call _aesni_encrypt6 + 0000000000001B68: 41 0F 57 D2 xorps xmm2,xmm10 + 0000000000001B6C: 66 45 0F 6F D7 movdqa xmm10,xmm15 + 0000000000001B71: 41 0F 57 DB xorps xmm3,xmm11 + 0000000000001B75: 41 0F 57 E4 xorps xmm4,xmm12 + 0000000000001B79: F3 0F 7F 16 movdqu xmmword ptr [rsi],xmm2 + 0000000000001B7D: 41 0F 57 ED xorps xmm5,xmm13 + 0000000000001B81: F3 0F 7F 5E 10 movdqu xmmword ptr [rsi+10h],xmm3 + 0000000000001B86: 41 0F 57 F6 xorps xmm6,xmm14 + 0000000000001B8A: F3 0F 7F 66 20 movdqu xmmword ptr [rsi+20h],xmm4 + 0000000000001B8F: F3 0F 7F 6E 30 movdqu xmmword ptr [rsi+30h],xmm5 + 0000000000001B94: F3 0F 7F 76 40 movdqu xmmword ptr [rsi+40h],xmm6 + 0000000000001B99: 48 8D 76 50 lea rsi,[rsi+50h] + 0000000000001B9D: E9 4E 01 00 00 jmp L$xts_enc_done + 0000000000001BA2: 90 nop + 0000000000001BA3: 90 nop + 0000000000001BA4: 90 nop + 0000000000001BA5: 90 nop + 0000000000001BA6: 90 nop + 0000000000001BA7: 90 nop + 0000000000001BA8: 90 nop + 0000000000001BA9: 90 nop + 0000000000001BAA: 90 nop + 0000000000001BAB: 90 nop + 0000000000001BAC: 90 nop + 0000000000001BAD: 90 nop + 0000000000001BAE: 90 nop + 0000000000001BAF: 90 nop L$xts_enc_one: - 0000000000001D50: 0F 10 17 movups xmm2,xmmword ptr [rdi] - 0000000000001D53: 48 8D 7F 10 lea rdi,[rdi+10h] - 0000000000001D57: 41 0F 57 D2 xorps xmm2,xmm10 - 0000000000001D5B: 0F 10 01 movups xmm0,xmmword ptr [rcx] - 0000000000001D5E: 0F 10 49 10 movups xmm1,xmmword ptr [rcx+10h] - 0000000000001D62: 48 8D 49 20 lea rcx,[rcx+20h] - 0000000000001D66: 0F 57 D0 xorps xmm2,xmm0 + 0000000000001BB0: 0F 10 17 movups xmm2,xmmword ptr [rdi] + 0000000000001BB3: 48 8D 7F 10 lea rdi,[rdi+10h] + 0000000000001BB7: 41 0F 57 D2 xorps xmm2,xmm10 + 0000000000001BBB: 0F 10 01 movups xmm0,xmmword ptr [rcx] + 0000000000001BBE: 0F 10 49 10 movups xmm1,xmmword ptr [rcx+10h] + 0000000000001BC2: 48 8D 49 20 lea rcx,[rcx+20h] + 0000000000001BC6: 0F 57 D0 xorps xmm2,xmm0 L$oop_enc1_7: - 0000000000001D69: 66 0F 38 DC D1 aesenc xmm2,xmm1 - 0000000000001D6E: FF C8 dec eax - 0000000000001D70: 0F 10 09 movups xmm1,xmmword ptr [rcx] - 0000000000001D73: 48 8D 49 10 lea rcx,[rcx+10h] - 0000000000001D77: 0F 85 EC FF FF FF jne L$oop_enc1_7 - 0000000000001D7D: 66 0F 38 DD D1 aesenclast xmm2,xmm1 - 0000000000001D82: 41 0F 57 D2 xorps xmm2,xmm10 - 0000000000001D86: 66 45 0F 6F D3 movdqa xmm10,xmm11 - 0000000000001D8B: 0F 11 16 movups xmmword ptr [rsi],xmm2 - 0000000000001D8E: 48 8D 76 10 lea rsi,[rsi+10h] - 0000000000001D92: E9 F9 00 00 00 jmp L$xts_enc_done - 0000000000001D97: 90 nop - 0000000000001D98: 90 nop - 0000000000001D99: 90 nop - 0000000000001D9A: 90 nop - 0000000000001D9B: 90 nop - 0000000000001D9C: 90 nop - 0000000000001D9D: 90 nop - 0000000000001D9E: 90 nop - 0000000000001D9F: 90 nop + 0000000000001BC9: 66 0F 38 DC D1 aesenc xmm2,xmm1 + 0000000000001BCE: FF C8 dec eax + 0000000000001BD0: 0F 10 09 movups xmm1,xmmword ptr [rcx] + 0000000000001BD3: 48 8D 49 10 lea rcx,[rcx+10h] + 0000000000001BD7: 0F 85 EC FF FF FF jne L$oop_enc1_7 + 0000000000001BDD: 66 0F 38 DD D1 aesenclast xmm2,xmm1 + 0000000000001BE2: 41 0F 57 D2 xorps xmm2,xmm10 + 0000000000001BE6: 66 45 0F 6F D3 movdqa xmm10,xmm11 + 0000000000001BEB: 0F 11 16 movups xmmword ptr [rsi],xmm2 + 0000000000001BEE: 48 8D 76 10 lea rsi,[rsi+10h] + 0000000000001BF2: E9 F9 00 00 00 jmp L$xts_enc_done + 0000000000001BF7: 90 nop + 0000000000001BF8: 90 nop + 0000000000001BF9: 90 nop + 0000000000001BFA: 90 nop + 0000000000001BFB: 90 nop + 0000000000001BFC: 90 nop + 0000000000001BFD: 90 nop + 0000000000001BFE: 90 nop + 0000000000001BFF: 90 nop L$xts_enc_two: - 0000000000001DA0: 0F 10 17 movups xmm2,xmmword ptr [rdi] - 0000000000001DA3: 0F 10 5F 10 movups xmm3,xmmword ptr [rdi+10h] - 0000000000001DA7: 48 8D 7F 20 lea rdi,[rdi+20h] - 0000000000001DAB: 41 0F 57 D2 xorps xmm2,xmm10 - 0000000000001DAF: 41 0F 57 DB xorps xmm3,xmm11 - 0000000000001DB3: E8 E8 E2 FF FF call _aesni_encrypt2 - 0000000000001DB8: 41 0F 57 D2 xorps xmm2,xmm10 - 0000000000001DBC: 66 45 0F 6F D4 movdqa xmm10,xmm12 - 0000000000001DC1: 41 0F 57 DB xorps xmm3,xmm11 - 0000000000001DC5: 0F 11 16 movups xmmword ptr [rsi],xmm2 - 0000000000001DC8: 0F 11 5E 10 movups xmmword ptr [rsi+10h],xmm3 - 0000000000001DCC: 48 8D 76 20 lea rsi,[rsi+20h] - 0000000000001DD0: E9 BB 00 00 00 jmp L$xts_enc_done - 0000000000001DD5: 90 nop - 0000000000001DD6: 90 nop - 0000000000001DD7: 90 nop - 0000000000001DD8: 90 nop - 0000000000001DD9: 90 nop - 0000000000001DDA: 90 nop - 0000000000001DDB: 90 nop - 0000000000001DDC: 90 nop - 0000000000001DDD: 90 nop - 0000000000001DDE: 90 nop - 0000000000001DDF: 90 nop + 0000000000001C00: 0F 10 17 movups xmm2,xmmword ptr [rdi] + 0000000000001C03: 0F 10 5F 10 movups xmm3,xmmword ptr [rdi+10h] + 0000000000001C07: 48 8D 7F 20 lea rdi,[rdi+20h] + 0000000000001C0B: 41 0F 57 D2 xorps xmm2,xmm10 + 0000000000001C0F: 41 0F 57 DB xorps xmm3,xmm11 + 0000000000001C13: E8 88 E4 FF FF call _aesni_encrypt2 + 0000000000001C18: 41 0F 57 D2 xorps xmm2,xmm10 + 0000000000001C1C: 66 45 0F 6F D4 movdqa xmm10,xmm12 + 0000000000001C21: 41 0F 57 DB xorps xmm3,xmm11 + 0000000000001C25: 0F 11 16 movups xmmword ptr [rsi],xmm2 + 0000000000001C28: 0F 11 5E 10 movups xmmword ptr [rsi+10h],xmm3 + 0000000000001C2C: 48 8D 76 20 lea rsi,[rsi+20h] + 0000000000001C30: E9 BB 00 00 00 jmp L$xts_enc_done + 0000000000001C35: 90 nop + 0000000000001C36: 90 nop + 0000000000001C37: 90 nop + 0000000000001C38: 90 nop + 0000000000001C39: 90 nop + 0000000000001C3A: 90 nop + 0000000000001C3B: 90 nop + 0000000000001C3C: 90 nop + 0000000000001C3D: 90 nop + 0000000000001C3E: 90 nop + 0000000000001C3F: 90 nop L$xts_enc_three: - 0000000000001DE0: 0F 10 17 movups xmm2,xmmword ptr [rdi] - 0000000000001DE3: 0F 10 5F 10 movups xmm3,xmmword ptr [rdi+10h] - 0000000000001DE7: 0F 10 67 20 movups xmm4,xmmword ptr [rdi+20h] - 0000000000001DEB: 48 8D 7F 30 lea rdi,[rdi+30h] - 0000000000001DEF: 41 0F 57 D2 xorps xmm2,xmm10 - 0000000000001DF3: 41 0F 57 DB xorps xmm3,xmm11 - 0000000000001DF7: 41 0F 57 E4 xorps xmm4,xmm12 - 0000000000001DFB: E8 60 E3 FF FF call _aesni_encrypt3 - 0000000000001E00: 41 0F 57 D2 xorps xmm2,xmm10 - 0000000000001E04: 66 45 0F 6F D5 movdqa xmm10,xmm13 - 0000000000001E09: 41 0F 57 DB xorps xmm3,xmm11 - 0000000000001E0D: 41 0F 57 E4 xorps xmm4,xmm12 - 0000000000001E11: 0F 11 16 movups xmmword ptr [rsi],xmm2 - 0000000000001E14: 0F 11 5E 10 movups xmmword ptr [rsi+10h],xmm3 - 0000000000001E18: 0F 11 66 20 movups xmmword ptr [rsi+20h],xmm4 - 0000000000001E1C: 48 8D 76 30 lea rsi,[rsi+30h] - 0000000000001E20: E9 6B 00 00 00 jmp L$xts_enc_done - 0000000000001E25: 90 nop - 0000000000001E26: 90 nop - 0000000000001E27: 90 nop - 0000000000001E28: 90 nop - 0000000000001E29: 90 nop - 0000000000001E2A: 90 nop - 0000000000001E2B: 90 nop - 0000000000001E2C: 90 nop - 0000000000001E2D: 90 nop - 0000000000001E2E: 90 nop - 0000000000001E2F: 90 nop + 0000000000001C40: 0F 10 17 movups xmm2,xmmword ptr [rdi] + 0000000000001C43: 0F 10 5F 10 movups xmm3,xmmword ptr [rdi+10h] + 0000000000001C47: 0F 10 67 20 movups xmm4,xmmword ptr [rdi+20h] + 0000000000001C4B: 48 8D 7F 30 lea rdi,[rdi+30h] + 0000000000001C4F: 41 0F 57 D2 xorps xmm2,xmm10 + 0000000000001C53: 41 0F 57 DB xorps xmm3,xmm11 + 0000000000001C57: 41 0F 57 E4 xorps xmm4,xmm12 + 0000000000001C5B: E8 00 E5 FF FF call _aesni_encrypt3 + 0000000000001C60: 41 0F 57 D2 xorps xmm2,xmm10 + 0000000000001C64: 66 45 0F 6F D5 movdqa xmm10,xmm13 + 0000000000001C69: 41 0F 57 DB xorps xmm3,xmm11 + 0000000000001C6D: 41 0F 57 E4 xorps xmm4,xmm12 + 0000000000001C71: 0F 11 16 movups xmmword ptr [rsi],xmm2 + 0000000000001C74: 0F 11 5E 10 movups xmmword ptr [rsi+10h],xmm3 + 0000000000001C78: 0F 11 66 20 movups xmmword ptr [rsi+20h],xmm4 + 0000000000001C7C: 48 8D 76 30 lea rsi,[rsi+30h] + 0000000000001C80: E9 6B 00 00 00 jmp L$xts_enc_done + 0000000000001C85: 90 nop + 0000000000001C86: 90 nop + 0000000000001C87: 90 nop + 0000000000001C88: 90 nop + 0000000000001C89: 90 nop + 0000000000001C8A: 90 nop + 0000000000001C8B: 90 nop + 0000000000001C8C: 90 nop + 0000000000001C8D: 90 nop + 0000000000001C8E: 90 nop + 0000000000001C8F: 90 nop L$xts_enc_four: - 0000000000001E30: 0F 10 17 movups xmm2,xmmword ptr [rdi] - 0000000000001E33: 0F 10 5F 10 movups xmm3,xmmword ptr [rdi+10h] - 0000000000001E37: 0F 10 67 20 movups xmm4,xmmword ptr [rdi+20h] - 0000000000001E3B: 41 0F 57 D2 xorps xmm2,xmm10 - 0000000000001E3F: 0F 10 6F 30 movups xmm5,xmmword ptr [rdi+30h] - 0000000000001E43: 48 8D 7F 40 lea rdi,[rdi+40h] - 0000000000001E47: 41 0F 57 DB xorps xmm3,xmm11 - 0000000000001E4B: 41 0F 57 E4 xorps xmm4,xmm12 - 0000000000001E4F: 41 0F 57 ED xorps xmm5,xmm13 - 0000000000001E53: E8 08 E4 FF FF call _aesni_encrypt4 - 0000000000001E58: 66 41 0F EF D2 pxor xmm2,xmm10 - 0000000000001E5D: 66 45 0F 6F D6 movdqa xmm10,xmm14 - 0000000000001E62: 66 41 0F EF DB pxor xmm3,xmm11 - 0000000000001E67: 66 41 0F EF E4 pxor xmm4,xmm12 - 0000000000001E6C: F3 0F 7F 16 movdqu xmmword ptr [rsi],xmm2 - 0000000000001E70: 66 41 0F EF ED pxor xmm5,xmm13 - 0000000000001E75: F3 0F 7F 5E 10 movdqu xmmword ptr [rsi+10h],xmm3 - 0000000000001E7A: F3 0F 7F 66 20 movdqu xmmword ptr [rsi+20h],xmm4 - 0000000000001E7F: F3 0F 7F 6E 30 movdqu xmmword ptr [rsi+30h],xmm5 - 0000000000001E84: 48 8D 76 40 lea rsi,[rsi+40h] - 0000000000001E88: E9 03 00 00 00 jmp L$xts_enc_done - 0000000000001E8D: 90 nop - 0000000000001E8E: 90 nop - 0000000000001E8F: 90 nop + 0000000000001C90: 0F 10 17 movups xmm2,xmmword ptr [rdi] + 0000000000001C93: 0F 10 5F 10 movups xmm3,xmmword ptr [rdi+10h] + 0000000000001C97: 0F 10 67 20 movups xmm4,xmmword ptr [rdi+20h] + 0000000000001C9B: 41 0F 57 D2 xorps xmm2,xmm10 + 0000000000001C9F: 0F 10 6F 30 movups xmm5,xmmword ptr [rdi+30h] + 0000000000001CA3: 48 8D 7F 40 lea rdi,[rdi+40h] + 0000000000001CA7: 41 0F 57 DB xorps xmm3,xmm11 + 0000000000001CAB: 41 0F 57 E4 xorps xmm4,xmm12 + 0000000000001CAF: 41 0F 57 ED xorps xmm5,xmm13 + 0000000000001CB3: E8 A8 E5 FF FF call _aesni_encrypt4 + 0000000000001CB8: 66 41 0F EF D2 pxor xmm2,xmm10 + 0000000000001CBD: 66 45 0F 6F D6 movdqa xmm10,xmm14 + 0000000000001CC2: 66 41 0F EF DB pxor xmm3,xmm11 + 0000000000001CC7: 66 41 0F EF E4 pxor xmm4,xmm12 + 0000000000001CCC: F3 0F 7F 16 movdqu xmmword ptr [rsi],xmm2 + 0000000000001CD0: 66 41 0F EF ED pxor xmm5,xmm13 + 0000000000001CD5: F3 0F 7F 5E 10 movdqu xmmword ptr [rsi+10h],xmm3 + 0000000000001CDA: F3 0F 7F 66 20 movdqu xmmword ptr [rsi+20h],xmm4 + 0000000000001CDF: F3 0F 7F 6E 30 movdqu xmmword ptr [rsi+30h],xmm5 + 0000000000001CE4: 48 8D 76 40 lea rsi,[rsi+40h] + 0000000000001CE8: E9 03 00 00 00 jmp L$xts_enc_done + 0000000000001CED: 90 nop + 0000000000001CEE: 90 nop + 0000000000001CEF: 90 nop L$xts_enc_done: - 0000000000001E90: 49 83 E1 0F and r9,0Fh - 0000000000001E94: 0F 84 61 00 00 00 je L$xts_enc_ret - 0000000000001E9A: 4C 89 CA mov rdx,r9 + 0000000000001CF0: 49 83 E1 0F and r9,0Fh + 0000000000001CF4: 0F 84 61 00 00 00 je L$xts_enc_ret + 0000000000001CFA: 4C 89 CA mov rdx,r9 L$xts_enc_steal: - 0000000000001E9D: 0F B6 07 movzx eax,byte ptr [rdi] - 0000000000001EA0: 0F B6 4E F0 movzx ecx,byte ptr [rsi-10h] - 0000000000001EA4: 48 8D 7F 01 lea rdi,[rdi+1] - 0000000000001EA8: 88 46 F0 mov byte ptr [rsi-10h],al - 0000000000001EAB: 88 0E mov byte ptr [rsi],cl - 0000000000001EAD: 48 8D 76 01 lea rsi,[rsi+1] - 0000000000001EB1: 48 83 EA 01 sub rdx,1 - 0000000000001EB5: 0F 85 E2 FF FF FF jne L$xts_enc_steal - 0000000000001EBB: 4C 29 CE sub rsi,r9 - 0000000000001EBE: 48 89 E9 mov rcx,rbp - 0000000000001EC1: 44 89 D0 mov eax,r10d - 0000000000001EC4: 0F 10 56 F0 movups xmm2,xmmword ptr [rsi-10h] - 0000000000001EC8: 41 0F 57 D2 xorps xmm2,xmm10 - 0000000000001ECC: 0F 10 01 movups xmm0,xmmword ptr [rcx] - 0000000000001ECF: 0F 10 49 10 movups xmm1,xmmword ptr [rcx+10h] - 0000000000001ED3: 48 8D 49 20 lea rcx,[rcx+20h] - 0000000000001ED7: 0F 57 D0 xorps xmm2,xmm0 + 0000000000001CFD: 0F B6 07 movzx eax,byte ptr [rdi] + 0000000000001D00: 0F B6 4E F0 movzx ecx,byte ptr [rsi-10h] + 0000000000001D04: 48 8D 7F 01 lea rdi,[rdi+1] + 0000000000001D08: 88 46 F0 mov byte ptr [rsi-10h],al + 0000000000001D0B: 88 0E mov byte ptr [rsi],cl + 0000000000001D0D: 48 8D 76 01 lea rsi,[rsi+1] + 0000000000001D11: 48 83 EA 01 sub rdx,1 + 0000000000001D15: 0F 85 E2 FF FF FF jne L$xts_enc_steal + 0000000000001D1B: 4C 29 CE sub rsi,r9 + 0000000000001D1E: 48 89 E9 mov rcx,rbp + 0000000000001D21: 44 89 D0 mov eax,r10d + 0000000000001D24: 0F 10 56 F0 movups xmm2,xmmword ptr [rsi-10h] + 0000000000001D28: 41 0F 57 D2 xorps xmm2,xmm10 + 0000000000001D2C: 0F 10 01 movups xmm0,xmmword ptr [rcx] + 0000000000001D2F: 0F 10 49 10 movups xmm1,xmmword ptr [rcx+10h] + 0000000000001D33: 48 8D 49 20 lea rcx,[rcx+20h] + 0000000000001D37: 0F 57 D0 xorps xmm2,xmm0 L$oop_enc1_8: - 0000000000001EDA: 66 0F 38 DC D1 aesenc xmm2,xmm1 - 0000000000001EDF: FF C8 dec eax - 0000000000001EE1: 0F 10 09 movups xmm1,xmmword ptr [rcx] - 0000000000001EE4: 48 8D 49 10 lea rcx,[rcx+10h] - 0000000000001EE8: 0F 85 EC FF FF FF jne L$oop_enc1_8 - 0000000000001EEE: 66 0F 38 DD D1 aesenclast xmm2,xmm1 - 0000000000001EF3: 41 0F 57 D2 xorps xmm2,xmm10 - 0000000000001EF7: 0F 11 56 F0 movups xmmword ptr [rsi-10h],xmm2 + 0000000000001D3A: 66 0F 38 DC D1 aesenc xmm2,xmm1 + 0000000000001D3F: FF C8 dec eax + 0000000000001D41: 0F 10 09 movups xmm1,xmmword ptr [rcx] + 0000000000001D44: 48 8D 49 10 lea rcx,[rcx+10h] + 0000000000001D48: 0F 85 EC FF FF FF jne L$oop_enc1_8 + 0000000000001D4E: 66 0F 38 DD D1 aesenclast xmm2,xmm1 + 0000000000001D53: 41 0F 57 D2 xorps xmm2,xmm10 + 0000000000001D57: 0F 11 56 F0 movups xmmword ptr [rsi-10h],xmm2 L$xts_enc_ret: - 0000000000001EFB: 0F 57 C0 xorps xmm0,xmm0 - 0000000000001EFE: 66 0F EF C9 pxor xmm1,xmm1 - 0000000000001F02: 66 0F EF D2 pxor xmm2,xmm2 - 0000000000001F06: 66 0F EF DB pxor xmm3,xmm3 - 0000000000001F0A: 66 0F EF E4 pxor xmm4,xmm4 - 0000000000001F0E: 66 0F EF ED pxor xmm5,xmm5 - 0000000000001F12: 41 0F 28 B3 58 FF movaps xmm6,xmmword ptr [r11-0A8h] + 0000000000001D5B: 0F 57 C0 xorps xmm0,xmm0 + 0000000000001D5E: 66 0F EF C9 pxor xmm1,xmm1 + 0000000000001D62: 66 0F EF D2 pxor xmm2,xmm2 + 0000000000001D66: 66 0F EF DB pxor xmm3,xmm3 + 0000000000001D6A: 66 0F EF E4 pxor xmm4,xmm4 + 0000000000001D6E: 66 0F EF ED pxor xmm5,xmm5 + 0000000000001D72: 41 0F 28 B3 58 FF movaps xmm6,xmmword ptr [r11-0A8h] FF FF - 0000000000001F1A: 41 0F 29 83 58 FF movaps xmmword ptr [r11-0A8h],xmm0 + 0000000000001D7A: 41 0F 29 83 58 FF movaps xmmword ptr [r11-0A8h],xmm0 FF FF - 0000000000001F22: 41 0F 28 BB 68 FF movaps xmm7,xmmword ptr [r11-98h] + 0000000000001D82: 41 0F 28 BB 68 FF movaps xmm7,xmmword ptr [r11-98h] FF FF - 0000000000001F2A: 41 0F 29 83 68 FF movaps xmmword ptr [r11-98h],xmm0 + 0000000000001D8A: 41 0F 29 83 68 FF movaps xmmword ptr [r11-98h],xmm0 FF FF - 0000000000001F32: 45 0F 28 83 78 FF movaps xmm8,xmmword ptr [r11-88h] + 0000000000001D92: 45 0F 28 83 78 FF movaps xmm8,xmmword ptr [r11-88h] FF FF - 0000000000001F3A: 41 0F 29 83 78 FF movaps xmmword ptr [r11-88h],xmm0 + 0000000000001D9A: 41 0F 29 83 78 FF movaps xmmword ptr [r11-88h],xmm0 FF FF - 0000000000001F42: 45 0F 28 4B 88 movaps xmm9,xmmword ptr [r11-78h] - 0000000000001F47: 41 0F 29 43 88 movaps xmmword ptr [r11-78h],xmm0 - 0000000000001F4C: 45 0F 28 53 98 movaps xmm10,xmmword ptr [r11-68h] - 0000000000001F51: 41 0F 29 43 98 movaps xmmword ptr [r11-68h],xmm0 - 0000000000001F56: 45 0F 28 5B A8 movaps xmm11,xmmword ptr [r11-58h] - 0000000000001F5B: 41 0F 29 43 A8 movaps xmmword ptr [r11-58h],xmm0 - 0000000000001F60: 45 0F 28 63 B8 movaps xmm12,xmmword ptr [r11-48h] - 0000000000001F65: 41 0F 29 43 B8 movaps xmmword ptr [r11-48h],xmm0 - 0000000000001F6A: 45 0F 28 6B C8 movaps xmm13,xmmword ptr [r11-38h] - 0000000000001F6F: 41 0F 29 43 C8 movaps xmmword ptr [r11-38h],xmm0 - 0000000000001F74: 45 0F 28 73 D8 movaps xmm14,xmmword ptr [r11-28h] - 0000000000001F79: 41 0F 29 43 D8 movaps xmmword ptr [r11-28h],xmm0 - 0000000000001F7E: 45 0F 28 7B E8 movaps xmm15,xmmword ptr [r11-18h] - 0000000000001F83: 41 0F 29 43 E8 movaps xmmword ptr [r11-18h],xmm0 - 0000000000001F88: 0F 29 04 24 movaps xmmword ptr [rsp],xmm0 - 0000000000001F8C: 0F 29 44 24 10 movaps xmmword ptr [rsp+10h],xmm0 - 0000000000001F91: 0F 29 44 24 20 movaps xmmword ptr [rsp+20h],xmm0 - 0000000000001F96: 0F 29 44 24 30 movaps xmmword ptr [rsp+30h],xmm0 - 0000000000001F9B: 0F 29 44 24 40 movaps xmmword ptr [rsp+40h],xmm0 - 0000000000001FA0: 0F 29 44 24 50 movaps xmmword ptr [rsp+50h],xmm0 - 0000000000001FA5: 0F 29 44 24 60 movaps xmmword ptr [rsp+60h],xmm0 - 0000000000001FAA: 49 8B 6B F8 mov rbp,qword ptr [r11-8] - 0000000000001FAE: 49 8D 23 lea rsp,[r11] + 0000000000001DA2: 45 0F 28 4B 88 movaps xmm9,xmmword ptr [r11-78h] + 0000000000001DA7: 41 0F 29 43 88 movaps xmmword ptr [r11-78h],xmm0 + 0000000000001DAC: 45 0F 28 53 98 movaps xmm10,xmmword ptr [r11-68h] + 0000000000001DB1: 41 0F 29 43 98 movaps xmmword ptr [r11-68h],xmm0 + 0000000000001DB6: 45 0F 28 5B A8 movaps xmm11,xmmword ptr [r11-58h] + 0000000000001DBB: 41 0F 29 43 A8 movaps xmmword ptr [r11-58h],xmm0 + 0000000000001DC0: 45 0F 28 63 B8 movaps xmm12,xmmword ptr [r11-48h] + 0000000000001DC5: 41 0F 29 43 B8 movaps xmmword ptr [r11-48h],xmm0 + 0000000000001DCA: 45 0F 28 6B C8 movaps xmm13,xmmword ptr [r11-38h] + 0000000000001DCF: 41 0F 29 43 C8 movaps xmmword ptr [r11-38h],xmm0 + 0000000000001DD4: 45 0F 28 73 D8 movaps xmm14,xmmword ptr [r11-28h] + 0000000000001DD9: 41 0F 29 43 D8 movaps xmmword ptr [r11-28h],xmm0 + 0000000000001DDE: 45 0F 28 7B E8 movaps xmm15,xmmword ptr [r11-18h] + 0000000000001DE3: 41 0F 29 43 E8 movaps xmmword ptr [r11-18h],xmm0 + 0000000000001DE8: 0F 29 04 24 movaps xmmword ptr [rsp],xmm0 + 0000000000001DEC: 0F 29 44 24 10 movaps xmmword ptr [rsp+10h],xmm0 + 0000000000001DF1: 0F 29 44 24 20 movaps xmmword ptr [rsp+20h],xmm0 + 0000000000001DF6: 0F 29 44 24 30 movaps xmmword ptr [rsp+30h],xmm0 + 0000000000001DFB: 0F 29 44 24 40 movaps xmmword ptr [rsp+40h],xmm0 + 0000000000001E00: 0F 29 44 24 50 movaps xmmword ptr [rsp+50h],xmm0 + 0000000000001E05: 0F 29 44 24 60 movaps xmmword ptr [rsp+60h],xmm0 + 0000000000001E0A: 49 8B 6B F8 mov rbp,qword ptr [r11-8] + 0000000000001E0E: 49 8D 23 lea rsp,[r11] L$xts_enc_epilogue: - 0000000000001FB1: 48 8B 7C 24 08 mov rdi,qword ptr [rsp+8] - 0000000000001FB6: 48 8B 74 24 10 mov rsi,qword ptr [rsp+10h] - 0000000000001FBB: F3 C3 rep ret + 0000000000001E11: 48 8B 7C 24 08 mov rdi,qword ptr [rsp+8] + 0000000000001E16: 48 8B 74 24 10 mov rsi,qword ptr [rsp+10h] + 0000000000001E1B: F3 C3 rep ret L$SEH_end_aes_hw_xts_encrypt: - 0000000000001FBD: 90 nop - 0000000000001FBE: 90 nop - 0000000000001FBF: 90 nop + 0000000000001E1D: 90 nop + 0000000000001E1E: 90 nop + 0000000000001E1F: 90 nop aws_lc_0_21_0_aes_hw_xts_decrypt: - 0000000000001FC0: 48 89 7C 24 08 mov qword ptr [rsp+8],rdi - 0000000000001FC5: 48 89 74 24 10 mov qword ptr [rsp+10h],rsi - 0000000000001FCA: 48 89 E0 mov rax,rsp + 0000000000001E20: 48 89 7C 24 08 mov qword ptr [rsp+8],rdi + 0000000000001E25: 48 89 74 24 10 mov qword ptr [rsp+10h],rsi + 0000000000001E2A: 48 89 E0 mov rax,rsp L$SEH_begin_aes_hw_xts_decrypt: - 0000000000001FCD: 48 89 CF mov rdi,rcx - 0000000000001FD0: 48 89 D6 mov rsi,rdx - 0000000000001FD3: 4C 89 C2 mov rdx,r8 - 0000000000001FD6: 4C 89 C9 mov rcx,r9 - 0000000000001FD9: 4C 8B 44 24 28 mov r8,qword ptr [rsp+28h] - 0000000000001FDE: 4C 8B 4C 24 30 mov r9,qword ptr [rsp+30h] - 0000000000001FE3: 4C 8D 1C 24 lea r11,[rsp] - 0000000000001FE7: 55 push rbp - 0000000000001FE8: 48 81 EC 10 01 00 sub rsp,110h + 0000000000001E2D: 48 89 CF mov rdi,rcx + 0000000000001E30: 48 89 D6 mov rsi,rdx + 0000000000001E33: 4C 89 C2 mov rdx,r8 + 0000000000001E36: 4C 89 C9 mov rcx,r9 + 0000000000001E39: 4C 8B 44 24 28 mov r8,qword ptr [rsp+28h] + 0000000000001E3E: 4C 8B 4C 24 30 mov r9,qword ptr [rsp+30h] + 0000000000001E43: 4C 8D 1C 24 lea r11,[rsp] + 0000000000001E47: 55 push rbp + 0000000000001E48: 48 81 EC 10 01 00 sub rsp,110h 00 - 0000000000001FEF: 48 83 E4 F0 and rsp,0FFFFFFFFFFFFFFF0h - 0000000000001FF3: 41 0F 29 B3 58 FF movaps xmmword ptr [r11-0A8h],xmm6 + 0000000000001E4F: 48 83 E4 F0 and rsp,0FFFFFFFFFFFFFFF0h + 0000000000001E53: 41 0F 29 B3 58 FF movaps xmmword ptr [r11-0A8h],xmm6 FF FF - 0000000000001FFB: 41 0F 29 BB 68 FF movaps xmmword ptr [r11-98h],xmm7 + 0000000000001E5B: 41 0F 29 BB 68 FF movaps xmmword ptr [r11-98h],xmm7 FF FF - 0000000000002003: 45 0F 29 83 78 FF movaps xmmword ptr [r11-88h],xmm8 + 0000000000001E63: 45 0F 29 83 78 FF movaps xmmword ptr [r11-88h],xmm8 FF FF - 000000000000200B: 45 0F 29 4B 88 movaps xmmword ptr [r11-78h],xmm9 - 0000000000002010: 45 0F 29 53 98 movaps xmmword ptr [r11-68h],xmm10 - 0000000000002015: 45 0F 29 5B A8 movaps xmmword ptr [r11-58h],xmm11 - 000000000000201A: 45 0F 29 63 B8 movaps xmmword ptr [r11-48h],xmm12 - 000000000000201F: 45 0F 29 6B C8 movaps xmmword ptr [r11-38h],xmm13 - 0000000000002024: 45 0F 29 73 D8 movaps xmmword ptr [r11-28h],xmm14 - 0000000000002029: 45 0F 29 7B E8 movaps xmmword ptr [r11-18h],xmm15 + 0000000000001E6B: 45 0F 29 4B 88 movaps xmmword ptr [r11-78h],xmm9 + 0000000000001E70: 45 0F 29 53 98 movaps xmmword ptr [r11-68h],xmm10 + 0000000000001E75: 45 0F 29 5B A8 movaps xmmword ptr [r11-58h],xmm11 + 0000000000001E7A: 45 0F 29 63 B8 movaps xmmword ptr [r11-48h],xmm12 + 0000000000001E7F: 45 0F 29 6B C8 movaps xmmword ptr [r11-38h],xmm13 + 0000000000001E84: 45 0F 29 73 D8 movaps xmmword ptr [r11-28h],xmm14 + 0000000000001E89: 45 0F 29 7B E8 movaps xmmword ptr [r11-18h],xmm15 L$xts_dec_body: - 000000000000202E: 41 0F 10 11 movups xmm2,xmmword ptr [r9] - 0000000000002032: 41 8B 80 F0 00 00 mov eax,dword ptr [r8+0F0h] + 0000000000001E8E: 41 0F 10 11 movups xmm2,xmmword ptr [r9] + 0000000000001E92: 41 8B 80 F0 00 00 mov eax,dword ptr [r8+0F0h] 00 - 0000000000002039: 44 8B 91 F0 00 00 mov r10d,dword ptr [rcx+0F0h] + 0000000000001E99: 44 8B 91 F0 00 00 mov r10d,dword ptr [rcx+0F0h] 00 - 0000000000002040: 41 0F 10 00 movups xmm0,xmmword ptr [r8] - 0000000000002044: 41 0F 10 48 10 movups xmm1,xmmword ptr [r8+10h] - 0000000000002049: 4D 8D 40 20 lea r8,[r8+20h] - 000000000000204D: 0F 57 D0 xorps xmm2,xmm0 + 0000000000001EA0: 41 0F 10 00 movups xmm0,xmmword ptr [r8] + 0000000000001EA4: 41 0F 10 48 10 movups xmm1,xmmword ptr [r8+10h] + 0000000000001EA9: 4D 8D 40 20 lea r8,[r8+20h] + 0000000000001EAD: 0F 57 D0 xorps xmm2,xmm0 L$oop_enc1_9: - 0000000000002050: 66 0F 38 DC D1 aesenc xmm2,xmm1 - 0000000000002055: FF C8 dec eax - 0000000000002057: 41 0F 10 08 movups xmm1,xmmword ptr [r8] - 000000000000205B: 4D 8D 40 10 lea r8,[r8+10h] - 000000000000205F: 0F 85 EB FF FF FF jne L$oop_enc1_9 - 0000000000002065: 66 0F 38 DD D1 aesenclast xmm2,xmm1 - 000000000000206A: 31 C0 xor eax,eax - 000000000000206C: 48 F7 C2 0F 00 00 test rdx,0Fh + 0000000000001EB0: 66 0F 38 DC D1 aesenc xmm2,xmm1 + 0000000000001EB5: FF C8 dec eax + 0000000000001EB7: 41 0F 10 08 movups xmm1,xmmword ptr [r8] + 0000000000001EBB: 4D 8D 40 10 lea r8,[r8+10h] + 0000000000001EBF: 0F 85 EB FF FF FF jne L$oop_enc1_9 + 0000000000001EC5: 66 0F 38 DD D1 aesenclast xmm2,xmm1 + 0000000000001ECA: 31 C0 xor eax,eax + 0000000000001ECC: 48 F7 C2 0F 00 00 test rdx,0Fh 00 - 0000000000002073: 0F 95 C0 setne al - 0000000000002076: 48 C1 E0 04 shl rax,4 - 000000000000207A: 48 29 C2 sub rdx,rax - 000000000000207D: 0F 10 01 movups xmm0,xmmword ptr [rcx] - 0000000000002080: 48 89 CD mov rbp,rcx - 0000000000002083: 44 89 D0 mov eax,r10d - 0000000000002086: 41 C1 E2 04 shl r10d,4 - 000000000000208A: 49 89 D1 mov r9,rdx - 000000000000208D: 48 83 E2 F0 and rdx,0FFFFFFFFFFFFFFF0h - 0000000000002091: 42 0F 10 4C 11 10 movups xmm1,xmmword ptr [rcx+r10+10h] - 0000000000002097: 66 44 0F 6F 05 30 movdqa xmm8,xmmword ptr [.rdata+30h] + 0000000000001ED3: 0F 95 C0 setne al + 0000000000001ED6: 48 C1 E0 04 shl rax,4 + 0000000000001EDA: 48 29 C2 sub rdx,rax + 0000000000001EDD: 0F 10 01 movups xmm0,xmmword ptr [rcx] + 0000000000001EE0: 48 89 CD mov rbp,rcx + 0000000000001EE3: 44 89 D0 mov eax,r10d + 0000000000001EE6: 41 C1 E2 04 shl r10d,4 + 0000000000001EEA: 49 89 D1 mov r9,rdx + 0000000000001EED: 48 83 E2 F0 and rdx,0FFFFFFFFFFFFFFF0h + 0000000000001EF1: 42 0F 10 4C 11 10 movups xmm1,xmmword ptr [rcx+r10+10h] + 0000000000001EF7: 66 44 0F 6F 05 30 movdqa xmm8,xmmword ptr [.rdata+30h] 00 00 00 - 00000000000020A0: 66 44 0F 6F FA movdqa xmm15,xmm2 - 00000000000020A5: 66 44 0F 70 CA 5F pshufd xmm9,xmm2,5Fh - 00000000000020AB: 66 0F EF C8 pxor xmm1,xmm0 - 00000000000020AF: 66 45 0F 6F F1 movdqa xmm14,xmm9 - 00000000000020B4: 66 45 0F FE C9 paddd xmm9,xmm9 - 00000000000020B9: 66 45 0F 6F D7 movdqa xmm10,xmm15 - 00000000000020BE: 66 41 0F 72 E6 1F psrad xmm14,1Fh - 00000000000020C4: 66 45 0F D4 FF paddq xmm15,xmm15 - 00000000000020C9: 66 45 0F DB F0 pand xmm14,xmm8 - 00000000000020CE: 66 44 0F EF D0 pxor xmm10,xmm0 - 00000000000020D3: 66 45 0F EF FE pxor xmm15,xmm14 - 00000000000020D8: 66 45 0F 6F F1 movdqa xmm14,xmm9 - 00000000000020DD: 66 45 0F FE C9 paddd xmm9,xmm9 - 00000000000020E2: 66 45 0F 6F DF movdqa xmm11,xmm15 - 00000000000020E7: 66 41 0F 72 E6 1F psrad xmm14,1Fh - 00000000000020ED: 66 45 0F D4 FF paddq xmm15,xmm15 - 00000000000020F2: 66 45 0F DB F0 pand xmm14,xmm8 - 00000000000020F7: 66 44 0F EF D8 pxor xmm11,xmm0 - 00000000000020FC: 66 45 0F EF FE pxor xmm15,xmm14 - 0000000000002101: 66 45 0F 6F F1 movdqa xmm14,xmm9 - 0000000000002106: 66 45 0F FE C9 paddd xmm9,xmm9 - 000000000000210B: 66 45 0F 6F E7 movdqa xmm12,xmm15 - 0000000000002110: 66 41 0F 72 E6 1F psrad xmm14,1Fh - 0000000000002116: 66 45 0F D4 FF paddq xmm15,xmm15 - 000000000000211B: 66 45 0F DB F0 pand xmm14,xmm8 - 0000000000002120: 66 44 0F EF E0 pxor xmm12,xmm0 - 0000000000002125: 66 45 0F EF FE pxor xmm15,xmm14 - 000000000000212A: 66 45 0F 6F F1 movdqa xmm14,xmm9 - 000000000000212F: 66 45 0F FE C9 paddd xmm9,xmm9 - 0000000000002134: 66 45 0F 6F EF movdqa xmm13,xmm15 - 0000000000002139: 66 41 0F 72 E6 1F psrad xmm14,1Fh - 000000000000213F: 66 45 0F D4 FF paddq xmm15,xmm15 - 0000000000002144: 66 45 0F DB F0 pand xmm14,xmm8 - 0000000000002149: 66 44 0F EF E8 pxor xmm13,xmm0 - 000000000000214E: 66 45 0F EF FE pxor xmm15,xmm14 - 0000000000002153: 66 45 0F 6F F7 movdqa xmm14,xmm15 - 0000000000002158: 66 41 0F 72 E1 1F psrad xmm9,1Fh - 000000000000215E: 66 45 0F D4 FF paddq xmm15,xmm15 - 0000000000002163: 66 45 0F DB C8 pand xmm9,xmm8 - 0000000000002168: 66 44 0F EF F0 pxor xmm14,xmm0 - 000000000000216D: 66 45 0F EF F9 pxor xmm15,xmm9 - 0000000000002172: 0F 29 4C 24 60 movaps xmmword ptr [rsp+60h],xmm1 - 0000000000002177: 48 83 EA 60 sub rdx,60h - 000000000000217B: 0F 82 83 03 00 00 jb L$xts_dec_short - 0000000000002181: B8 70 00 00 00 mov eax,70h - 0000000000002186: 4A 8D 4C 15 20 lea rcx,[rbp+r10+20h] - 000000000000218B: 4C 29 D0 sub rax,r10 - 000000000000218E: 0F 10 4D 10 movups xmm1,xmmword ptr [rbp+10h] - 0000000000002192: 49 89 C2 mov r10,rax - 0000000000002195: 4C 8D 05 30 00 00 lea r8,[.rdata+30h] + 0000000000001F00: 66 44 0F 6F FA movdqa xmm15,xmm2 + 0000000000001F05: 66 44 0F 70 CA 5F pshufd xmm9,xmm2,5Fh + 0000000000001F0B: 66 0F EF C8 pxor xmm1,xmm0 + 0000000000001F0F: 66 45 0F 6F F1 movdqa xmm14,xmm9 + 0000000000001F14: 66 45 0F FE C9 paddd xmm9,xmm9 + 0000000000001F19: 66 45 0F 6F D7 movdqa xmm10,xmm15 + 0000000000001F1E: 66 41 0F 72 E6 1F psrad xmm14,1Fh + 0000000000001F24: 66 45 0F D4 FF paddq xmm15,xmm15 + 0000000000001F29: 66 45 0F DB F0 pand xmm14,xmm8 + 0000000000001F2E: 66 44 0F EF D0 pxor xmm10,xmm0 + 0000000000001F33: 66 45 0F EF FE pxor xmm15,xmm14 + 0000000000001F38: 66 45 0F 6F F1 movdqa xmm14,xmm9 + 0000000000001F3D: 66 45 0F FE C9 paddd xmm9,xmm9 + 0000000000001F42: 66 45 0F 6F DF movdqa xmm11,xmm15 + 0000000000001F47: 66 41 0F 72 E6 1F psrad xmm14,1Fh + 0000000000001F4D: 66 45 0F D4 FF paddq xmm15,xmm15 + 0000000000001F52: 66 45 0F DB F0 pand xmm14,xmm8 + 0000000000001F57: 66 44 0F EF D8 pxor xmm11,xmm0 + 0000000000001F5C: 66 45 0F EF FE pxor xmm15,xmm14 + 0000000000001F61: 66 45 0F 6F F1 movdqa xmm14,xmm9 + 0000000000001F66: 66 45 0F FE C9 paddd xmm9,xmm9 + 0000000000001F6B: 66 45 0F 6F E7 movdqa xmm12,xmm15 + 0000000000001F70: 66 41 0F 72 E6 1F psrad xmm14,1Fh + 0000000000001F76: 66 45 0F D4 FF paddq xmm15,xmm15 + 0000000000001F7B: 66 45 0F DB F0 pand xmm14,xmm8 + 0000000000001F80: 66 44 0F EF E0 pxor xmm12,xmm0 + 0000000000001F85: 66 45 0F EF FE pxor xmm15,xmm14 + 0000000000001F8A: 66 45 0F 6F F1 movdqa xmm14,xmm9 + 0000000000001F8F: 66 45 0F FE C9 paddd xmm9,xmm9 + 0000000000001F94: 66 45 0F 6F EF movdqa xmm13,xmm15 + 0000000000001F99: 66 41 0F 72 E6 1F psrad xmm14,1Fh + 0000000000001F9F: 66 45 0F D4 FF paddq xmm15,xmm15 + 0000000000001FA4: 66 45 0F DB F0 pand xmm14,xmm8 + 0000000000001FA9: 66 44 0F EF E8 pxor xmm13,xmm0 + 0000000000001FAE: 66 45 0F EF FE pxor xmm15,xmm14 + 0000000000001FB3: 66 45 0F 6F F7 movdqa xmm14,xmm15 + 0000000000001FB8: 66 41 0F 72 E1 1F psrad xmm9,1Fh + 0000000000001FBE: 66 45 0F D4 FF paddq xmm15,xmm15 + 0000000000001FC3: 66 45 0F DB C8 pand xmm9,xmm8 + 0000000000001FC8: 66 44 0F EF F0 pxor xmm14,xmm0 + 0000000000001FCD: 66 45 0F EF F9 pxor xmm15,xmm9 + 0000000000001FD2: 0F 29 4C 24 60 movaps xmmword ptr [rsp+60h],xmm1 + 0000000000001FD7: 48 83 EA 60 sub rdx,60h + 0000000000001FDB: 0F 82 83 03 00 00 jb L$xts_dec_short + 0000000000001FE1: B8 70 00 00 00 mov eax,70h + 0000000000001FE6: 4A 8D 4C 15 20 lea rcx,[rbp+r10+20h] + 0000000000001FEB: 4C 29 D0 sub rax,r10 + 0000000000001FEE: 0F 10 4D 10 movups xmm1,xmmword ptr [rbp+10h] + 0000000000001FF2: 49 89 C2 mov r10,rax + 0000000000001FF5: 4C 8D 05 30 00 00 lea r8,[.rdata+30h] 00 - 000000000000219C: E9 1F 00 00 00 jmp L$xts_dec_grandloop - 00000000000021A1: 90 nop - 00000000000021A2: 90 nop - 00000000000021A3: 90 nop - 00000000000021A4: 90 nop - 00000000000021A5: 90 nop - 00000000000021A6: 90 nop - 00000000000021A7: 90 nop - 00000000000021A8: 90 nop - 00000000000021A9: 90 nop - 00000000000021AA: 90 nop - 00000000000021AB: 90 nop - 00000000000021AC: 90 nop - 00000000000021AD: 90 nop - 00000000000021AE: 90 nop - 00000000000021AF: 90 nop - 00000000000021B0: 90 nop - 00000000000021B1: 90 nop - 00000000000021B2: 90 nop - 00000000000021B3: 90 nop - 00000000000021B4: 90 nop - 00000000000021B5: 90 nop - 00000000000021B6: 90 nop - 00000000000021B7: 90 nop - 00000000000021B8: 90 nop - 00000000000021B9: 90 nop - 00000000000021BA: 90 nop - 00000000000021BB: 90 nop - 00000000000021BC: 90 nop - 00000000000021BD: 90 nop - 00000000000021BE: 90 nop - 00000000000021BF: 90 nop + 0000000000001FFC: E9 1F 00 00 00 jmp L$xts_dec_grandloop + 0000000000002001: 90 nop + 0000000000002002: 90 nop + 0000000000002003: 90 nop + 0000000000002004: 90 nop + 0000000000002005: 90 nop + 0000000000002006: 90 nop + 0000000000002007: 90 nop + 0000000000002008: 90 nop + 0000000000002009: 90 nop + 000000000000200A: 90 nop + 000000000000200B: 90 nop + 000000000000200C: 90 nop + 000000000000200D: 90 nop + 000000000000200E: 90 nop + 000000000000200F: 90 nop + 0000000000002010: 90 nop + 0000000000002011: 90 nop + 0000000000002012: 90 nop + 0000000000002013: 90 nop + 0000000000002014: 90 nop + 0000000000002015: 90 nop + 0000000000002016: 90 nop + 0000000000002017: 90 nop + 0000000000002018: 90 nop + 0000000000002019: 90 nop + 000000000000201A: 90 nop + 000000000000201B: 90 nop + 000000000000201C: 90 nop + 000000000000201D: 90 nop + 000000000000201E: 90 nop + 000000000000201F: 90 nop L$xts_dec_grandloop: - 00000000000021C0: F3 0F 6F 17 movdqu xmm2,xmmword ptr [rdi] - 00000000000021C4: 66 44 0F 6F C0 movdqa xmm8,xmm0 - 00000000000021C9: F3 0F 6F 5F 10 movdqu xmm3,xmmword ptr [rdi+10h] - 00000000000021CE: 66 41 0F EF D2 pxor xmm2,xmm10 - 00000000000021D3: F3 0F 6F 67 20 movdqu xmm4,xmmword ptr [rdi+20h] - 00000000000021D8: 66 41 0F EF DB pxor xmm3,xmm11 - 00000000000021DD: 66 0F 38 DE D1 aesdec xmm2,xmm1 - 00000000000021E2: F3 0F 6F 6F 30 movdqu xmm5,xmmword ptr [rdi+30h] - 00000000000021E7: 66 41 0F EF E4 pxor xmm4,xmm12 - 00000000000021EC: 66 0F 38 DE D9 aesdec xmm3,xmm1 - 00000000000021F1: F3 0F 6F 77 40 movdqu xmm6,xmmword ptr [rdi+40h] - 00000000000021F6: 66 41 0F EF ED pxor xmm5,xmm13 - 00000000000021FB: 66 0F 38 DE E1 aesdec xmm4,xmm1 - 0000000000002200: F3 0F 6F 7F 50 movdqu xmm7,xmmword ptr [rdi+50h] - 0000000000002205: 66 45 0F EF C7 pxor xmm8,xmm15 - 000000000000220A: 66 44 0F 6F 4C 24 movdqa xmm9,xmmword ptr [rsp+60h] + 0000000000002020: F3 0F 6F 17 movdqu xmm2,xmmword ptr [rdi] + 0000000000002024: 66 44 0F 6F C0 movdqa xmm8,xmm0 + 0000000000002029: F3 0F 6F 5F 10 movdqu xmm3,xmmword ptr [rdi+10h] + 000000000000202E: 66 41 0F EF D2 pxor xmm2,xmm10 + 0000000000002033: F3 0F 6F 67 20 movdqu xmm4,xmmword ptr [rdi+20h] + 0000000000002038: 66 41 0F EF DB pxor xmm3,xmm11 + 000000000000203D: 66 0F 38 DE D1 aesdec xmm2,xmm1 + 0000000000002042: F3 0F 6F 6F 30 movdqu xmm5,xmmword ptr [rdi+30h] + 0000000000002047: 66 41 0F EF E4 pxor xmm4,xmm12 + 000000000000204C: 66 0F 38 DE D9 aesdec xmm3,xmm1 + 0000000000002051: F3 0F 6F 77 40 movdqu xmm6,xmmword ptr [rdi+40h] + 0000000000002056: 66 41 0F EF ED pxor xmm5,xmm13 + 000000000000205B: 66 0F 38 DE E1 aesdec xmm4,xmm1 + 0000000000002060: F3 0F 6F 7F 50 movdqu xmm7,xmmword ptr [rdi+50h] + 0000000000002065: 66 45 0F EF C7 pxor xmm8,xmm15 + 000000000000206A: 66 44 0F 6F 4C 24 movdqa xmm9,xmmword ptr [rsp+60h] 60 - 0000000000002211: 66 41 0F EF F6 pxor xmm6,xmm14 - 0000000000002216: 66 0F 38 DE E9 aesdec xmm5,xmm1 - 000000000000221B: 0F 10 45 20 movups xmm0,xmmword ptr [rbp+20h] - 000000000000221F: 48 8D 7F 60 lea rdi,[rdi+60h] - 0000000000002223: 66 41 0F EF F8 pxor xmm7,xmm8 - 0000000000002228: 66 45 0F EF D1 pxor xmm10,xmm9 - 000000000000222D: 66 0F 38 DE F1 aesdec xmm6,xmm1 - 0000000000002232: 66 45 0F EF D9 pxor xmm11,xmm9 - 0000000000002237: 66 44 0F 7F 14 24 movdqa xmmword ptr [rsp],xmm10 - 000000000000223D: 66 0F 38 DE F9 aesdec xmm7,xmm1 - 0000000000002242: 0F 10 4D 30 movups xmm1,xmmword ptr [rbp+30h] - 0000000000002246: 66 45 0F EF E1 pxor xmm12,xmm9 - 000000000000224B: 66 0F 38 DE D0 aesdec xmm2,xmm0 - 0000000000002250: 66 45 0F EF E9 pxor xmm13,xmm9 - 0000000000002255: 66 44 0F 7F 5C 24 movdqa xmmword ptr [rsp+10h],xmm11 + 0000000000002071: 66 41 0F EF F6 pxor xmm6,xmm14 + 0000000000002076: 66 0F 38 DE E9 aesdec xmm5,xmm1 + 000000000000207B: 0F 10 45 20 movups xmm0,xmmword ptr [rbp+20h] + 000000000000207F: 48 8D 7F 60 lea rdi,[rdi+60h] + 0000000000002083: 66 41 0F EF F8 pxor xmm7,xmm8 + 0000000000002088: 66 45 0F EF D1 pxor xmm10,xmm9 + 000000000000208D: 66 0F 38 DE F1 aesdec xmm6,xmm1 + 0000000000002092: 66 45 0F EF D9 pxor xmm11,xmm9 + 0000000000002097: 66 44 0F 7F 14 24 movdqa xmmword ptr [rsp],xmm10 + 000000000000209D: 66 0F 38 DE F9 aesdec xmm7,xmm1 + 00000000000020A2: 0F 10 4D 30 movups xmm1,xmmword ptr [rbp+30h] + 00000000000020A6: 66 45 0F EF E1 pxor xmm12,xmm9 + 00000000000020AB: 66 0F 38 DE D0 aesdec xmm2,xmm0 + 00000000000020B0: 66 45 0F EF E9 pxor xmm13,xmm9 + 00000000000020B5: 66 44 0F 7F 5C 24 movdqa xmmword ptr [rsp+10h],xmm11 10 - 000000000000225C: 66 0F 38 DE D8 aesdec xmm3,xmm0 - 0000000000002261: 66 45 0F EF F1 pxor xmm14,xmm9 - 0000000000002266: 66 44 0F 7F 64 24 movdqa xmmword ptr [rsp+20h],xmm12 + 00000000000020BC: 66 0F 38 DE D8 aesdec xmm3,xmm0 + 00000000000020C1: 66 45 0F EF F1 pxor xmm14,xmm9 + 00000000000020C6: 66 44 0F 7F 64 24 movdqa xmmword ptr [rsp+20h],xmm12 20 - 000000000000226D: 66 0F 38 DE E0 aesdec xmm4,xmm0 - 0000000000002272: 66 0F 38 DE E8 aesdec xmm5,xmm0 - 0000000000002277: 66 45 0F EF C1 pxor xmm8,xmm9 - 000000000000227C: 66 44 0F 7F 74 24 movdqa xmmword ptr [rsp+40h],xmm14 + 00000000000020CD: 66 0F 38 DE E0 aesdec xmm4,xmm0 + 00000000000020D2: 66 0F 38 DE E8 aesdec xmm5,xmm0 + 00000000000020D7: 66 45 0F EF C1 pxor xmm8,xmm9 + 00000000000020DC: 66 44 0F 7F 74 24 movdqa xmmword ptr [rsp+40h],xmm14 40 - 0000000000002283: 66 0F 38 DE F0 aesdec xmm6,xmm0 - 0000000000002288: 66 0F 38 DE F8 aesdec xmm7,xmm0 - 000000000000228D: 0F 10 45 40 movups xmm0,xmmword ptr [rbp+40h] - 0000000000002291: 66 44 0F 7F 44 24 movdqa xmmword ptr [rsp+50h],xmm8 + 00000000000020E3: 66 0F 38 DE F0 aesdec xmm6,xmm0 + 00000000000020E8: 66 0F 38 DE F8 aesdec xmm7,xmm0 + 00000000000020ED: 0F 10 45 40 movups xmm0,xmmword ptr [rbp+40h] + 00000000000020F1: 66 44 0F 7F 44 24 movdqa xmmword ptr [rsp+50h],xmm8 50 - 0000000000002298: 66 45 0F 70 CF 5F pshufd xmm9,xmm15,5Fh - 000000000000229E: E9 1D 00 00 00 jmp L$xts_dec_loop6 - 00000000000022A3: 90 nop - 00000000000022A4: 90 nop - 00000000000022A5: 90 nop - 00000000000022A6: 90 nop - 00000000000022A7: 90 nop - 00000000000022A8: 90 nop - 00000000000022A9: 90 nop - 00000000000022AA: 90 nop - 00000000000022AB: 90 nop - 00000000000022AC: 90 nop - 00000000000022AD: 90 nop - 00000000000022AE: 90 nop - 00000000000022AF: 90 nop - 00000000000022B0: 90 nop - 00000000000022B1: 90 nop - 00000000000022B2: 90 nop - 00000000000022B3: 90 nop - 00000000000022B4: 90 nop - 00000000000022B5: 90 nop - 00000000000022B6: 90 nop - 00000000000022B7: 90 nop - 00000000000022B8: 90 nop - 00000000000022B9: 90 nop - 00000000000022BA: 90 nop - 00000000000022BB: 90 nop - 00000000000022BC: 90 nop - 00000000000022BD: 90 nop - 00000000000022BE: 90 nop - 00000000000022BF: 90 nop + 00000000000020F8: 66 45 0F 70 CF 5F pshufd xmm9,xmm15,5Fh + 00000000000020FE: E9 1D 00 00 00 jmp L$xts_dec_loop6 + 0000000000002103: 90 nop + 0000000000002104: 90 nop + 0000000000002105: 90 nop + 0000000000002106: 90 nop + 0000000000002107: 90 nop + 0000000000002108: 90 nop + 0000000000002109: 90 nop + 000000000000210A: 90 nop + 000000000000210B: 90 nop + 000000000000210C: 90 nop + 000000000000210D: 90 nop + 000000000000210E: 90 nop + 000000000000210F: 90 nop + 0000000000002110: 90 nop + 0000000000002111: 90 nop + 0000000000002112: 90 nop + 0000000000002113: 90 nop + 0000000000002114: 90 nop + 0000000000002115: 90 nop + 0000000000002116: 90 nop + 0000000000002117: 90 nop + 0000000000002118: 90 nop + 0000000000002119: 90 nop + 000000000000211A: 90 nop + 000000000000211B: 90 nop + 000000000000211C: 90 nop + 000000000000211D: 90 nop + 000000000000211E: 90 nop + 000000000000211F: 90 nop L$xts_dec_loop6: - 00000000000022C0: 66 0F 38 DE D1 aesdec xmm2,xmm1 - 00000000000022C5: 66 0F 38 DE D9 aesdec xmm3,xmm1 - 00000000000022CA: 66 0F 38 DE E1 aesdec xmm4,xmm1 - 00000000000022CF: 66 0F 38 DE E9 aesdec xmm5,xmm1 - 00000000000022D4: 66 0F 38 DE F1 aesdec xmm6,xmm1 - 00000000000022D9: 66 0F 38 DE F9 aesdec xmm7,xmm1 - 00000000000022DE: 0F 10 4C 01 C0 movups xmm1,xmmword ptr [rcx+rax-40h] - 00000000000022E3: 48 83 C0 20 add rax,20h - 00000000000022E7: 66 0F 38 DE D0 aesdec xmm2,xmm0 - 00000000000022EC: 66 0F 38 DE D8 aesdec xmm3,xmm0 - 00000000000022F1: 66 0F 38 DE E0 aesdec xmm4,xmm0 - 00000000000022F6: 66 0F 38 DE E8 aesdec xmm5,xmm0 - 00000000000022FB: 66 0F 38 DE F0 aesdec xmm6,xmm0 - 0000000000002300: 66 0F 38 DE F8 aesdec xmm7,xmm0 - 0000000000002305: 0F 10 44 01 B0 movups xmm0,xmmword ptr [rcx+rax-50h] - 000000000000230A: 0F 85 B0 FF FF FF jne L$xts_dec_loop6 - 0000000000002310: 66 45 0F 6F 00 movdqa xmm8,xmmword ptr [r8] - 0000000000002315: 66 45 0F 6F F1 movdqa xmm14,xmm9 - 000000000000231A: 66 45 0F FE C9 paddd xmm9,xmm9 - 000000000000231F: 66 0F 38 DE D1 aesdec xmm2,xmm1 - 0000000000002324: 66 45 0F D4 FF paddq xmm15,xmm15 - 0000000000002329: 66 41 0F 72 E6 1F psrad xmm14,1Fh - 000000000000232F: 66 0F 38 DE D9 aesdec xmm3,xmm1 - 0000000000002334: 66 45 0F DB F0 pand xmm14,xmm8 - 0000000000002339: 44 0F 10 55 00 movups xmm10,xmmword ptr [rbp] - 000000000000233E: 66 0F 38 DE E1 aesdec xmm4,xmm1 - 0000000000002343: 66 0F 38 DE E9 aesdec xmm5,xmm1 - 0000000000002348: 66 0F 38 DE F1 aesdec xmm6,xmm1 - 000000000000234D: 66 45 0F EF FE pxor xmm15,xmm14 - 0000000000002352: 45 0F 28 DA movaps xmm11,xmm10 - 0000000000002356: 66 0F 38 DE F9 aesdec xmm7,xmm1 - 000000000000235B: 0F 10 49 C0 movups xmm1,xmmword ptr [rcx-40h] - 000000000000235F: 66 45 0F 6F F1 movdqa xmm14,xmm9 - 0000000000002364: 66 0F 38 DE D0 aesdec xmm2,xmm0 - 0000000000002369: 66 45 0F FE C9 paddd xmm9,xmm9 - 000000000000236E: 66 45 0F EF D7 pxor xmm10,xmm15 - 0000000000002373: 66 0F 38 DE D8 aesdec xmm3,xmm0 - 0000000000002378: 66 41 0F 72 E6 1F psrad xmm14,1Fh - 000000000000237E: 66 45 0F D4 FF paddq xmm15,xmm15 - 0000000000002383: 66 0F 38 DE E0 aesdec xmm4,xmm0 - 0000000000002388: 66 0F 38 DE E8 aesdec xmm5,xmm0 - 000000000000238D: 66 45 0F DB F0 pand xmm14,xmm8 - 0000000000002392: 45 0F 28 E3 movaps xmm12,xmm11 - 0000000000002396: 66 0F 38 DE F0 aesdec xmm6,xmm0 - 000000000000239B: 66 45 0F EF FE pxor xmm15,xmm14 - 00000000000023A0: 66 45 0F 6F F1 movdqa xmm14,xmm9 - 00000000000023A5: 66 0F 38 DE F8 aesdec xmm7,xmm0 - 00000000000023AA: 0F 10 41 D0 movups xmm0,xmmword ptr [rcx-30h] - 00000000000023AE: 66 45 0F FE C9 paddd xmm9,xmm9 - 00000000000023B3: 66 0F 38 DE D1 aesdec xmm2,xmm1 - 00000000000023B8: 66 45 0F EF DF pxor xmm11,xmm15 - 00000000000023BD: 66 41 0F 72 E6 1F psrad xmm14,1Fh - 00000000000023C3: 66 0F 38 DE D9 aesdec xmm3,xmm1 - 00000000000023C8: 66 45 0F D4 FF paddq xmm15,xmm15 - 00000000000023CD: 66 45 0F DB F0 pand xmm14,xmm8 - 00000000000023D2: 66 0F 38 DE E1 aesdec xmm4,xmm1 - 00000000000023D7: 66 0F 38 DE E9 aesdec xmm5,xmm1 - 00000000000023DC: 66 44 0F 7F 6C 24 movdqa xmmword ptr [rsp+30h],xmm13 + 0000000000002120: 66 0F 38 DE D1 aesdec xmm2,xmm1 + 0000000000002125: 66 0F 38 DE D9 aesdec xmm3,xmm1 + 000000000000212A: 66 0F 38 DE E1 aesdec xmm4,xmm1 + 000000000000212F: 66 0F 38 DE E9 aesdec xmm5,xmm1 + 0000000000002134: 66 0F 38 DE F1 aesdec xmm6,xmm1 + 0000000000002139: 66 0F 38 DE F9 aesdec xmm7,xmm1 + 000000000000213E: 0F 10 4C 01 C0 movups xmm1,xmmword ptr [rcx+rax-40h] + 0000000000002143: 48 83 C0 20 add rax,20h + 0000000000002147: 66 0F 38 DE D0 aesdec xmm2,xmm0 + 000000000000214C: 66 0F 38 DE D8 aesdec xmm3,xmm0 + 0000000000002151: 66 0F 38 DE E0 aesdec xmm4,xmm0 + 0000000000002156: 66 0F 38 DE E8 aesdec xmm5,xmm0 + 000000000000215B: 66 0F 38 DE F0 aesdec xmm6,xmm0 + 0000000000002160: 66 0F 38 DE F8 aesdec xmm7,xmm0 + 0000000000002165: 0F 10 44 01 B0 movups xmm0,xmmword ptr [rcx+rax-50h] + 000000000000216A: 0F 85 B0 FF FF FF jne L$xts_dec_loop6 + 0000000000002170: 66 45 0F 6F 00 movdqa xmm8,xmmword ptr [r8] + 0000000000002175: 66 45 0F 6F F1 movdqa xmm14,xmm9 + 000000000000217A: 66 45 0F FE C9 paddd xmm9,xmm9 + 000000000000217F: 66 0F 38 DE D1 aesdec xmm2,xmm1 + 0000000000002184: 66 45 0F D4 FF paddq xmm15,xmm15 + 0000000000002189: 66 41 0F 72 E6 1F psrad xmm14,1Fh + 000000000000218F: 66 0F 38 DE D9 aesdec xmm3,xmm1 + 0000000000002194: 66 45 0F DB F0 pand xmm14,xmm8 + 0000000000002199: 44 0F 10 55 00 movups xmm10,xmmword ptr [rbp] + 000000000000219E: 66 0F 38 DE E1 aesdec xmm4,xmm1 + 00000000000021A3: 66 0F 38 DE E9 aesdec xmm5,xmm1 + 00000000000021A8: 66 0F 38 DE F1 aesdec xmm6,xmm1 + 00000000000021AD: 66 45 0F EF FE pxor xmm15,xmm14 + 00000000000021B2: 45 0F 28 DA movaps xmm11,xmm10 + 00000000000021B6: 66 0F 38 DE F9 aesdec xmm7,xmm1 + 00000000000021BB: 0F 10 49 C0 movups xmm1,xmmword ptr [rcx-40h] + 00000000000021BF: 66 45 0F 6F F1 movdqa xmm14,xmm9 + 00000000000021C4: 66 0F 38 DE D0 aesdec xmm2,xmm0 + 00000000000021C9: 66 45 0F FE C9 paddd xmm9,xmm9 + 00000000000021CE: 66 45 0F EF D7 pxor xmm10,xmm15 + 00000000000021D3: 66 0F 38 DE D8 aesdec xmm3,xmm0 + 00000000000021D8: 66 41 0F 72 E6 1F psrad xmm14,1Fh + 00000000000021DE: 66 45 0F D4 FF paddq xmm15,xmm15 + 00000000000021E3: 66 0F 38 DE E0 aesdec xmm4,xmm0 + 00000000000021E8: 66 0F 38 DE E8 aesdec xmm5,xmm0 + 00000000000021ED: 66 45 0F DB F0 pand xmm14,xmm8 + 00000000000021F2: 45 0F 28 E3 movaps xmm12,xmm11 + 00000000000021F6: 66 0F 38 DE F0 aesdec xmm6,xmm0 + 00000000000021FB: 66 45 0F EF FE pxor xmm15,xmm14 + 0000000000002200: 66 45 0F 6F F1 movdqa xmm14,xmm9 + 0000000000002205: 66 0F 38 DE F8 aesdec xmm7,xmm0 + 000000000000220A: 0F 10 41 D0 movups xmm0,xmmword ptr [rcx-30h] + 000000000000220E: 66 45 0F FE C9 paddd xmm9,xmm9 + 0000000000002213: 66 0F 38 DE D1 aesdec xmm2,xmm1 + 0000000000002218: 66 45 0F EF DF pxor xmm11,xmm15 + 000000000000221D: 66 41 0F 72 E6 1F psrad xmm14,1Fh + 0000000000002223: 66 0F 38 DE D9 aesdec xmm3,xmm1 + 0000000000002228: 66 45 0F D4 FF paddq xmm15,xmm15 + 000000000000222D: 66 45 0F DB F0 pand xmm14,xmm8 + 0000000000002232: 66 0F 38 DE E1 aesdec xmm4,xmm1 + 0000000000002237: 66 0F 38 DE E9 aesdec xmm5,xmm1 + 000000000000223C: 66 44 0F 7F 6C 24 movdqa xmmword ptr [rsp+30h],xmm13 30 - 00000000000023E3: 66 45 0F EF FE pxor xmm15,xmm14 - 00000000000023E8: 66 0F 38 DE F1 aesdec xmm6,xmm1 - 00000000000023ED: 45 0F 28 EC movaps xmm13,xmm12 - 00000000000023F1: 66 45 0F 6F F1 movdqa xmm14,xmm9 - 00000000000023F6: 66 0F 38 DE F9 aesdec xmm7,xmm1 - 00000000000023FB: 0F 10 49 E0 movups xmm1,xmmword ptr [rcx-20h] - 00000000000023FF: 66 45 0F FE C9 paddd xmm9,xmm9 - 0000000000002404: 66 0F 38 DE D0 aesdec xmm2,xmm0 - 0000000000002409: 66 45 0F EF E7 pxor xmm12,xmm15 - 000000000000240E: 66 41 0F 72 E6 1F psrad xmm14,1Fh - 0000000000002414: 66 0F 38 DE D8 aesdec xmm3,xmm0 - 0000000000002419: 66 45 0F D4 FF paddq xmm15,xmm15 - 000000000000241E: 66 45 0F DB F0 pand xmm14,xmm8 - 0000000000002423: 66 0F 38 DE E0 aesdec xmm4,xmm0 - 0000000000002428: 66 0F 38 DE E8 aesdec xmm5,xmm0 - 000000000000242D: 66 0F 38 DE F0 aesdec xmm6,xmm0 - 0000000000002432: 66 45 0F EF FE pxor xmm15,xmm14 - 0000000000002437: 45 0F 28 F5 movaps xmm14,xmm13 - 000000000000243B: 66 0F 38 DE F8 aesdec xmm7,xmm0 - 0000000000002440: 66 41 0F 6F C1 movdqa xmm0,xmm9 - 0000000000002445: 66 45 0F FE C9 paddd xmm9,xmm9 - 000000000000244A: 66 0F 38 DE D1 aesdec xmm2,xmm1 - 000000000000244F: 66 45 0F EF EF pxor xmm13,xmm15 - 0000000000002454: 66 0F 72 E0 1F psrad xmm0,1Fh - 0000000000002459: 66 0F 38 DE D9 aesdec xmm3,xmm1 - 000000000000245E: 66 45 0F D4 FF paddq xmm15,xmm15 - 0000000000002463: 66 41 0F DB C0 pand xmm0,xmm8 - 0000000000002468: 66 0F 38 DE E1 aesdec xmm4,xmm1 - 000000000000246D: 66 0F 38 DE E9 aesdec xmm5,xmm1 - 0000000000002472: 66 44 0F EF F8 pxor xmm15,xmm0 - 0000000000002477: 0F 10 45 00 movups xmm0,xmmword ptr [rbp] - 000000000000247B: 66 0F 38 DE F1 aesdec xmm6,xmm1 - 0000000000002480: 66 0F 38 DE F9 aesdec xmm7,xmm1 - 0000000000002485: 0F 10 4D 10 movups xmm1,xmmword ptr [rbp+10h] - 0000000000002489: 66 45 0F EF F7 pxor xmm14,xmm15 - 000000000000248E: 66 0F 38 DF 54 24 aesdeclast xmm2,xmmword ptr [rsp] + 0000000000002243: 66 45 0F EF FE pxor xmm15,xmm14 + 0000000000002248: 66 0F 38 DE F1 aesdec xmm6,xmm1 + 000000000000224D: 45 0F 28 EC movaps xmm13,xmm12 + 0000000000002251: 66 45 0F 6F F1 movdqa xmm14,xmm9 + 0000000000002256: 66 0F 38 DE F9 aesdec xmm7,xmm1 + 000000000000225B: 0F 10 49 E0 movups xmm1,xmmword ptr [rcx-20h] + 000000000000225F: 66 45 0F FE C9 paddd xmm9,xmm9 + 0000000000002264: 66 0F 38 DE D0 aesdec xmm2,xmm0 + 0000000000002269: 66 45 0F EF E7 pxor xmm12,xmm15 + 000000000000226E: 66 41 0F 72 E6 1F psrad xmm14,1Fh + 0000000000002274: 66 0F 38 DE D8 aesdec xmm3,xmm0 + 0000000000002279: 66 45 0F D4 FF paddq xmm15,xmm15 + 000000000000227E: 66 45 0F DB F0 pand xmm14,xmm8 + 0000000000002283: 66 0F 38 DE E0 aesdec xmm4,xmm0 + 0000000000002288: 66 0F 38 DE E8 aesdec xmm5,xmm0 + 000000000000228D: 66 0F 38 DE F0 aesdec xmm6,xmm0 + 0000000000002292: 66 45 0F EF FE pxor xmm15,xmm14 + 0000000000002297: 45 0F 28 F5 movaps xmm14,xmm13 + 000000000000229B: 66 0F 38 DE F8 aesdec xmm7,xmm0 + 00000000000022A0: 66 41 0F 6F C1 movdqa xmm0,xmm9 + 00000000000022A5: 66 45 0F FE C9 paddd xmm9,xmm9 + 00000000000022AA: 66 0F 38 DE D1 aesdec xmm2,xmm1 + 00000000000022AF: 66 45 0F EF EF pxor xmm13,xmm15 + 00000000000022B4: 66 0F 72 E0 1F psrad xmm0,1Fh + 00000000000022B9: 66 0F 38 DE D9 aesdec xmm3,xmm1 + 00000000000022BE: 66 45 0F D4 FF paddq xmm15,xmm15 + 00000000000022C3: 66 41 0F DB C0 pand xmm0,xmm8 + 00000000000022C8: 66 0F 38 DE E1 aesdec xmm4,xmm1 + 00000000000022CD: 66 0F 38 DE E9 aesdec xmm5,xmm1 + 00000000000022D2: 66 44 0F EF F8 pxor xmm15,xmm0 + 00000000000022D7: 0F 10 45 00 movups xmm0,xmmword ptr [rbp] + 00000000000022DB: 66 0F 38 DE F1 aesdec xmm6,xmm1 + 00000000000022E0: 66 0F 38 DE F9 aesdec xmm7,xmm1 + 00000000000022E5: 0F 10 4D 10 movups xmm1,xmmword ptr [rbp+10h] + 00000000000022E9: 66 45 0F EF F7 pxor xmm14,xmm15 + 00000000000022EE: 66 0F 38 DF 54 24 aesdeclast xmm2,xmmword ptr [rsp] 00 - 0000000000002495: 66 41 0F 72 E1 1F psrad xmm9,1Fh - 000000000000249B: 66 45 0F D4 FF paddq xmm15,xmm15 - 00000000000024A0: 66 0F 38 DF 5C 24 aesdeclast xmm3,xmmword ptr [rsp+10h] + 00000000000022F5: 66 41 0F 72 E1 1F psrad xmm9,1Fh + 00000000000022FB: 66 45 0F D4 FF paddq xmm15,xmm15 + 0000000000002300: 66 0F 38 DF 5C 24 aesdeclast xmm3,xmmword ptr [rsp+10h] 10 - 00000000000024A7: 66 0F 38 DF 64 24 aesdeclast xmm4,xmmword ptr [rsp+20h] + 0000000000002307: 66 0F 38 DF 64 24 aesdeclast xmm4,xmmword ptr [rsp+20h] 20 - 00000000000024AE: 66 45 0F DB C8 pand xmm9,xmm8 - 00000000000024B3: 4C 89 D0 mov rax,r10 - 00000000000024B6: 66 0F 38 DF 6C 24 aesdeclast xmm5,xmmword ptr [rsp+30h] + 000000000000230E: 66 45 0F DB C8 pand xmm9,xmm8 + 0000000000002313: 4C 89 D0 mov rax,r10 + 0000000000002316: 66 0F 38 DF 6C 24 aesdeclast xmm5,xmmword ptr [rsp+30h] 30 - 00000000000024BD: 66 0F 38 DF 74 24 aesdeclast xmm6,xmmword ptr [rsp+40h] + 000000000000231D: 66 0F 38 DF 74 24 aesdeclast xmm6,xmmword ptr [rsp+40h] 40 - 00000000000024C4: 66 0F 38 DF 7C 24 aesdeclast xmm7,xmmword ptr [rsp+50h] + 0000000000002324: 66 0F 38 DF 7C 24 aesdeclast xmm7,xmmword ptr [rsp+50h] 50 - 00000000000024CB: 66 45 0F EF F9 pxor xmm15,xmm9 - 00000000000024D0: 48 8D 76 60 lea rsi,[rsi+60h] - 00000000000024D4: 0F 11 56 A0 movups xmmword ptr [rsi-60h],xmm2 - 00000000000024D8: 0F 11 5E B0 movups xmmword ptr [rsi-50h],xmm3 - 00000000000024DC: 0F 11 66 C0 movups xmmword ptr [rsi-40h],xmm4 - 00000000000024E0: 0F 11 6E D0 movups xmmword ptr [rsi-30h],xmm5 - 00000000000024E4: 0F 11 76 E0 movups xmmword ptr [rsi-20h],xmm6 - 00000000000024E8: 0F 11 7E F0 movups xmmword ptr [rsi-10h],xmm7 - 00000000000024EC: 48 83 EA 60 sub rdx,60h - 00000000000024F0: 0F 83 CA FC FF FF jae L$xts_dec_grandloop - 00000000000024F6: B8 70 00 00 00 mov eax,70h - 00000000000024FB: 44 29 D0 sub eax,r10d - 00000000000024FE: 48 89 E9 mov rcx,rbp - 0000000000002501: C1 E8 04 shr eax,4 + 000000000000232B: 66 45 0F EF F9 pxor xmm15,xmm9 + 0000000000002330: 48 8D 76 60 lea rsi,[rsi+60h] + 0000000000002334: 0F 11 56 A0 movups xmmword ptr [rsi-60h],xmm2 + 0000000000002338: 0F 11 5E B0 movups xmmword ptr [rsi-50h],xmm3 + 000000000000233C: 0F 11 66 C0 movups xmmword ptr [rsi-40h],xmm4 + 0000000000002340: 0F 11 6E D0 movups xmmword ptr [rsi-30h],xmm5 + 0000000000002344: 0F 11 76 E0 movups xmmword ptr [rsi-20h],xmm6 + 0000000000002348: 0F 11 7E F0 movups xmmword ptr [rsi-10h],xmm7 + 000000000000234C: 48 83 EA 60 sub rdx,60h + 0000000000002350: 0F 83 CA FC FF FF jae L$xts_dec_grandloop + 0000000000002356: B8 70 00 00 00 mov eax,70h + 000000000000235B: 44 29 D0 sub eax,r10d + 000000000000235E: 48 89 E9 mov rcx,rbp + 0000000000002361: C1 E8 04 shr eax,4 L$xts_dec_short: - 0000000000002504: 41 89 C2 mov r10d,eax - 0000000000002507: 66 44 0F EF D0 pxor xmm10,xmm0 - 000000000000250C: 66 44 0F EF D8 pxor xmm11,xmm0 - 0000000000002511: 48 83 C2 60 add rdx,60h - 0000000000002515: 0F 84 25 02 00 00 je L$xts_dec_done - 000000000000251B: 66 44 0F EF E0 pxor xmm12,xmm0 - 0000000000002520: 48 83 FA 20 cmp rdx,20h - 0000000000002524: 0F 82 C6 00 00 00 jb L$xts_dec_one - 000000000000252A: 66 44 0F EF E8 pxor xmm13,xmm0 - 000000000000252F: 0F 84 0B 01 00 00 je L$xts_dec_two - 0000000000002535: 66 44 0F EF F0 pxor xmm14,xmm0 - 000000000000253A: 48 83 FA 40 cmp rdx,40h - 000000000000253E: 0F 82 3C 01 00 00 jb L$xts_dec_three - 0000000000002544: 0F 84 86 01 00 00 je L$xts_dec_four - 000000000000254A: F3 0F 6F 17 movdqu xmm2,xmmword ptr [rdi] - 000000000000254E: F3 0F 6F 5F 10 movdqu xmm3,xmmword ptr [rdi+10h] - 0000000000002553: F3 0F 6F 67 20 movdqu xmm4,xmmword ptr [rdi+20h] - 0000000000002558: 66 41 0F EF D2 pxor xmm2,xmm10 - 000000000000255D: F3 0F 6F 6F 30 movdqu xmm5,xmmword ptr [rdi+30h] - 0000000000002562: 66 41 0F EF DB pxor xmm3,xmm11 - 0000000000002567: F3 0F 6F 77 40 movdqu xmm6,xmmword ptr [rdi+40h] - 000000000000256C: 48 8D 7F 50 lea rdi,[rdi+50h] - 0000000000002570: 66 41 0F EF E4 pxor xmm4,xmm12 - 0000000000002575: 66 41 0F EF ED pxor xmm5,xmm13 - 000000000000257A: 66 41 0F EF F6 pxor xmm6,xmm14 - 000000000000257F: E8 DC DE FF FF call _aesni_decrypt6 - 0000000000002584: 41 0F 57 D2 xorps xmm2,xmm10 - 0000000000002588: 41 0F 57 DB xorps xmm3,xmm11 - 000000000000258C: 41 0F 57 E4 xorps xmm4,xmm12 - 0000000000002590: F3 0F 7F 16 movdqu xmmword ptr [rsi],xmm2 - 0000000000002594: 41 0F 57 ED xorps xmm5,xmm13 - 0000000000002598: F3 0F 7F 5E 10 movdqu xmmword ptr [rsi+10h],xmm3 - 000000000000259D: 41 0F 57 F6 xorps xmm6,xmm14 - 00000000000025A1: F3 0F 7F 66 20 movdqu xmmword ptr [rsi+20h],xmm4 - 00000000000025A6: 66 45 0F EF F6 pxor xmm14,xmm14 - 00000000000025AB: F3 0F 7F 6E 30 movdqu xmmword ptr [rsi+30h],xmm5 - 00000000000025B0: 66 45 0F 66 F7 pcmpgtd xmm14,xmm15 - 00000000000025B5: F3 0F 7F 76 40 movdqu xmmword ptr [rsi+40h],xmm6 - 00000000000025BA: 48 8D 76 50 lea rsi,[rsi+50h] - 00000000000025BE: 66 45 0F 70 DE 13 pshufd xmm11,xmm14,13h - 00000000000025C4: 49 83 E1 0F and r9,0Fh - 00000000000025C8: 0F 84 16 02 00 00 je L$xts_dec_ret - 00000000000025CE: 66 45 0F 6F D7 movdqa xmm10,xmm15 - 00000000000025D3: 66 45 0F D4 FF paddq xmm15,xmm15 - 00000000000025D8: 66 45 0F DB D8 pand xmm11,xmm8 - 00000000000025DD: 66 45 0F EF DF pxor xmm11,xmm15 - 00000000000025E2: E9 63 01 00 00 jmp L$xts_dec_done2 - 00000000000025E7: 90 nop - 00000000000025E8: 90 nop - 00000000000025E9: 90 nop - 00000000000025EA: 90 nop - 00000000000025EB: 90 nop - 00000000000025EC: 90 nop - 00000000000025ED: 90 nop - 00000000000025EE: 90 nop - 00000000000025EF: 90 nop + 0000000000002364: 41 89 C2 mov r10d,eax + 0000000000002367: 66 44 0F EF D0 pxor xmm10,xmm0 + 000000000000236C: 66 44 0F EF D8 pxor xmm11,xmm0 + 0000000000002371: 48 83 C2 60 add rdx,60h + 0000000000002375: 0F 84 25 02 00 00 je L$xts_dec_done + 000000000000237B: 66 44 0F EF E0 pxor xmm12,xmm0 + 0000000000002380: 48 83 FA 20 cmp rdx,20h + 0000000000002384: 0F 82 C6 00 00 00 jb L$xts_dec_one + 000000000000238A: 66 44 0F EF E8 pxor xmm13,xmm0 + 000000000000238F: 0F 84 0B 01 00 00 je L$xts_dec_two + 0000000000002395: 66 44 0F EF F0 pxor xmm14,xmm0 + 000000000000239A: 48 83 FA 40 cmp rdx,40h + 000000000000239E: 0F 82 3C 01 00 00 jb L$xts_dec_three + 00000000000023A4: 0F 84 86 01 00 00 je L$xts_dec_four + 00000000000023AA: F3 0F 6F 17 movdqu xmm2,xmmword ptr [rdi] + 00000000000023AE: F3 0F 6F 5F 10 movdqu xmm3,xmmword ptr [rdi+10h] + 00000000000023B3: F3 0F 6F 67 20 movdqu xmm4,xmmword ptr [rdi+20h] + 00000000000023B8: 66 41 0F EF D2 pxor xmm2,xmm10 + 00000000000023BD: F3 0F 6F 6F 30 movdqu xmm5,xmmword ptr [rdi+30h] + 00000000000023C2: 66 41 0F EF DB pxor xmm3,xmm11 + 00000000000023C7: F3 0F 6F 77 40 movdqu xmm6,xmmword ptr [rdi+40h] + 00000000000023CC: 48 8D 7F 50 lea rdi,[rdi+50h] + 00000000000023D0: 66 41 0F EF E4 pxor xmm4,xmm12 + 00000000000023D5: 66 41 0F EF ED pxor xmm5,xmm13 + 00000000000023DA: 66 41 0F EF F6 pxor xmm6,xmm14 + 00000000000023DF: E8 7C E0 FF FF call _aesni_decrypt6 + 00000000000023E4: 41 0F 57 D2 xorps xmm2,xmm10 + 00000000000023E8: 41 0F 57 DB xorps xmm3,xmm11 + 00000000000023EC: 41 0F 57 E4 xorps xmm4,xmm12 + 00000000000023F0: F3 0F 7F 16 movdqu xmmword ptr [rsi],xmm2 + 00000000000023F4: 41 0F 57 ED xorps xmm5,xmm13 + 00000000000023F8: F3 0F 7F 5E 10 movdqu xmmword ptr [rsi+10h],xmm3 + 00000000000023FD: 41 0F 57 F6 xorps xmm6,xmm14 + 0000000000002401: F3 0F 7F 66 20 movdqu xmmword ptr [rsi+20h],xmm4 + 0000000000002406: 66 45 0F EF F6 pxor xmm14,xmm14 + 000000000000240B: F3 0F 7F 6E 30 movdqu xmmword ptr [rsi+30h],xmm5 + 0000000000002410: 66 45 0F 66 F7 pcmpgtd xmm14,xmm15 + 0000000000002415: F3 0F 7F 76 40 movdqu xmmword ptr [rsi+40h],xmm6 + 000000000000241A: 48 8D 76 50 lea rsi,[rsi+50h] + 000000000000241E: 66 45 0F 70 DE 13 pshufd xmm11,xmm14,13h + 0000000000002424: 49 83 E1 0F and r9,0Fh + 0000000000002428: 0F 84 16 02 00 00 je L$xts_dec_ret + 000000000000242E: 66 45 0F 6F D7 movdqa xmm10,xmm15 + 0000000000002433: 66 45 0F D4 FF paddq xmm15,xmm15 + 0000000000002438: 66 45 0F DB D8 pand xmm11,xmm8 + 000000000000243D: 66 45 0F EF DF pxor xmm11,xmm15 + 0000000000002442: E9 63 01 00 00 jmp L$xts_dec_done2 + 0000000000002447: 90 nop + 0000000000002448: 90 nop + 0000000000002449: 90 nop + 000000000000244A: 90 nop + 000000000000244B: 90 nop + 000000000000244C: 90 nop + 000000000000244D: 90 nop + 000000000000244E: 90 nop + 000000000000244F: 90 nop L$xts_dec_one: - 00000000000025F0: 0F 10 17 movups xmm2,xmmword ptr [rdi] - 00000000000025F3: 48 8D 7F 10 lea rdi,[rdi+10h] - 00000000000025F7: 41 0F 57 D2 xorps xmm2,xmm10 - 00000000000025FB: 0F 10 01 movups xmm0,xmmword ptr [rcx] - 00000000000025FE: 0F 10 49 10 movups xmm1,xmmword ptr [rcx+10h] - 0000000000002602: 48 8D 49 20 lea rcx,[rcx+20h] - 0000000000002606: 0F 57 D0 xorps xmm2,xmm0 + 0000000000002450: 0F 10 17 movups xmm2,xmmword ptr [rdi] + 0000000000002453: 48 8D 7F 10 lea rdi,[rdi+10h] + 0000000000002457: 41 0F 57 D2 xorps xmm2,xmm10 + 000000000000245B: 0F 10 01 movups xmm0,xmmword ptr [rcx] + 000000000000245E: 0F 10 49 10 movups xmm1,xmmword ptr [rcx+10h] + 0000000000002462: 48 8D 49 20 lea rcx,[rcx+20h] + 0000000000002466: 0F 57 D0 xorps xmm2,xmm0 L$oop_dec1_10: - 0000000000002609: 66 0F 38 DE D1 aesdec xmm2,xmm1 - 000000000000260E: FF C8 dec eax - 0000000000002610: 0F 10 09 movups xmm1,xmmword ptr [rcx] - 0000000000002613: 48 8D 49 10 lea rcx,[rcx+10h] - 0000000000002617: 0F 85 EC FF FF FF jne L$oop_dec1_10 - 000000000000261D: 66 0F 38 DF D1 aesdeclast xmm2,xmm1 - 0000000000002622: 41 0F 57 D2 xorps xmm2,xmm10 - 0000000000002626: 66 45 0F 6F D3 movdqa xmm10,xmm11 - 000000000000262B: 0F 11 16 movups xmmword ptr [rsi],xmm2 - 000000000000262E: 66 45 0F 6F DC movdqa xmm11,xmm12 - 0000000000002633: 48 8D 76 10 lea rsi,[rsi+10h] - 0000000000002637: E9 04 01 00 00 jmp L$xts_dec_done - 000000000000263C: 90 nop - 000000000000263D: 90 nop - 000000000000263E: 90 nop - 000000000000263F: 90 nop + 0000000000002469: 66 0F 38 DE D1 aesdec xmm2,xmm1 + 000000000000246E: FF C8 dec eax + 0000000000002470: 0F 10 09 movups xmm1,xmmword ptr [rcx] + 0000000000002473: 48 8D 49 10 lea rcx,[rcx+10h] + 0000000000002477: 0F 85 EC FF FF FF jne L$oop_dec1_10 + 000000000000247D: 66 0F 38 DF D1 aesdeclast xmm2,xmm1 + 0000000000002482: 41 0F 57 D2 xorps xmm2,xmm10 + 0000000000002486: 66 45 0F 6F D3 movdqa xmm10,xmm11 + 000000000000248B: 0F 11 16 movups xmmword ptr [rsi],xmm2 + 000000000000248E: 66 45 0F 6F DC movdqa xmm11,xmm12 + 0000000000002493: 48 8D 76 10 lea rsi,[rsi+10h] + 0000000000002497: E9 04 01 00 00 jmp L$xts_dec_done + 000000000000249C: 90 nop + 000000000000249D: 90 nop + 000000000000249E: 90 nop + 000000000000249F: 90 nop L$xts_dec_two: - 0000000000002640: 0F 10 17 movups xmm2,xmmword ptr [rdi] - 0000000000002643: 0F 10 5F 10 movups xmm3,xmmword ptr [rdi+10h] - 0000000000002647: 48 8D 7F 20 lea rdi,[rdi+20h] - 000000000000264B: 41 0F 57 D2 xorps xmm2,xmm10 - 000000000000264F: 41 0F 57 DB xorps xmm3,xmm11 - 0000000000002653: E8 A8 DA FF FF call _aesni_decrypt2 - 0000000000002658: 41 0F 57 D2 xorps xmm2,xmm10 - 000000000000265C: 66 45 0F 6F D4 movdqa xmm10,xmm12 - 0000000000002661: 41 0F 57 DB xorps xmm3,xmm11 - 0000000000002665: 66 45 0F 6F DD movdqa xmm11,xmm13 - 000000000000266A: 0F 11 16 movups xmmword ptr [rsi],xmm2 - 000000000000266D: 0F 11 5E 10 movups xmmword ptr [rsi+10h],xmm3 - 0000000000002671: 48 8D 76 20 lea rsi,[rsi+20h] - 0000000000002675: E9 C6 00 00 00 jmp L$xts_dec_done - 000000000000267A: 90 nop - 000000000000267B: 90 nop - 000000000000267C: 90 nop - 000000000000267D: 90 nop - 000000000000267E: 90 nop - 000000000000267F: 90 nop + 00000000000024A0: 0F 10 17 movups xmm2,xmmword ptr [rdi] + 00000000000024A3: 0F 10 5F 10 movups xmm3,xmmword ptr [rdi+10h] + 00000000000024A7: 48 8D 7F 20 lea rdi,[rdi+20h] + 00000000000024AB: 41 0F 57 D2 xorps xmm2,xmm10 + 00000000000024AF: 41 0F 57 DB xorps xmm3,xmm11 + 00000000000024B3: E8 48 DC FF FF call _aesni_decrypt2 + 00000000000024B8: 41 0F 57 D2 xorps xmm2,xmm10 + 00000000000024BC: 66 45 0F 6F D4 movdqa xmm10,xmm12 + 00000000000024C1: 41 0F 57 DB xorps xmm3,xmm11 + 00000000000024C5: 66 45 0F 6F DD movdqa xmm11,xmm13 + 00000000000024CA: 0F 11 16 movups xmmword ptr [rsi],xmm2 + 00000000000024CD: 0F 11 5E 10 movups xmmword ptr [rsi+10h],xmm3 + 00000000000024D1: 48 8D 76 20 lea rsi,[rsi+20h] + 00000000000024D5: E9 C6 00 00 00 jmp L$xts_dec_done + 00000000000024DA: 90 nop + 00000000000024DB: 90 nop + 00000000000024DC: 90 nop + 00000000000024DD: 90 nop + 00000000000024DE: 90 nop + 00000000000024DF: 90 nop L$xts_dec_three: - 0000000000002680: 0F 10 17 movups xmm2,xmmword ptr [rdi] - 0000000000002683: 0F 10 5F 10 movups xmm3,xmmword ptr [rdi+10h] - 0000000000002687: 0F 10 67 20 movups xmm4,xmmword ptr [rdi+20h] - 000000000000268B: 48 8D 7F 30 lea rdi,[rdi+30h] - 000000000000268F: 41 0F 57 D2 xorps xmm2,xmm10 - 0000000000002693: 41 0F 57 DB xorps xmm3,xmm11 - 0000000000002697: 41 0F 57 E4 xorps xmm4,xmm12 - 000000000000269B: E8 40 DB FF FF call _aesni_decrypt3 - 00000000000026A0: 41 0F 57 D2 xorps xmm2,xmm10 - 00000000000026A4: 66 45 0F 6F D5 movdqa xmm10,xmm13 - 00000000000026A9: 41 0F 57 DB xorps xmm3,xmm11 - 00000000000026AD: 66 45 0F 6F DE movdqa xmm11,xmm14 - 00000000000026B2: 41 0F 57 E4 xorps xmm4,xmm12 - 00000000000026B6: 0F 11 16 movups xmmword ptr [rsi],xmm2 - 00000000000026B9: 0F 11 5E 10 movups xmmword ptr [rsi+10h],xmm3 - 00000000000026BD: 0F 11 66 20 movups xmmword ptr [rsi+20h],xmm4 - 00000000000026C1: 48 8D 76 30 lea rsi,[rsi+30h] - 00000000000026C5: E9 76 00 00 00 jmp L$xts_dec_done - 00000000000026CA: 90 nop - 00000000000026CB: 90 nop - 00000000000026CC: 90 nop - 00000000000026CD: 90 nop - 00000000000026CE: 90 nop - 00000000000026CF: 90 nop + 00000000000024E0: 0F 10 17 movups xmm2,xmmword ptr [rdi] + 00000000000024E3: 0F 10 5F 10 movups xmm3,xmmword ptr [rdi+10h] + 00000000000024E7: 0F 10 67 20 movups xmm4,xmmword ptr [rdi+20h] + 00000000000024EB: 48 8D 7F 30 lea rdi,[rdi+30h] + 00000000000024EF: 41 0F 57 D2 xorps xmm2,xmm10 + 00000000000024F3: 41 0F 57 DB xorps xmm3,xmm11 + 00000000000024F7: 41 0F 57 E4 xorps xmm4,xmm12 + 00000000000024FB: E8 E0 DC FF FF call _aesni_decrypt3 + 0000000000002500: 41 0F 57 D2 xorps xmm2,xmm10 + 0000000000002504: 66 45 0F 6F D5 movdqa xmm10,xmm13 + 0000000000002509: 41 0F 57 DB xorps xmm3,xmm11 + 000000000000250D: 66 45 0F 6F DE movdqa xmm11,xmm14 + 0000000000002512: 41 0F 57 E4 xorps xmm4,xmm12 + 0000000000002516: 0F 11 16 movups xmmword ptr [rsi],xmm2 + 0000000000002519: 0F 11 5E 10 movups xmmword ptr [rsi+10h],xmm3 + 000000000000251D: 0F 11 66 20 movups xmmword ptr [rsi+20h],xmm4 + 0000000000002521: 48 8D 76 30 lea rsi,[rsi+30h] + 0000000000002525: E9 76 00 00 00 jmp L$xts_dec_done + 000000000000252A: 90 nop + 000000000000252B: 90 nop + 000000000000252C: 90 nop + 000000000000252D: 90 nop + 000000000000252E: 90 nop + 000000000000252F: 90 nop L$xts_dec_four: - 00000000000026D0: 0F 10 17 movups xmm2,xmmword ptr [rdi] - 00000000000026D3: 0F 10 5F 10 movups xmm3,xmmword ptr [rdi+10h] - 00000000000026D7: 0F 10 67 20 movups xmm4,xmmword ptr [rdi+20h] - 00000000000026DB: 41 0F 57 D2 xorps xmm2,xmm10 - 00000000000026DF: 0F 10 6F 30 movups xmm5,xmmword ptr [rdi+30h] - 00000000000026E3: 48 8D 7F 40 lea rdi,[rdi+40h] - 00000000000026E7: 41 0F 57 DB xorps xmm3,xmm11 - 00000000000026EB: 41 0F 57 E4 xorps xmm4,xmm12 - 00000000000026EF: 41 0F 57 ED xorps xmm5,xmm13 - 00000000000026F3: E8 F8 DB FF FF call _aesni_decrypt4 - 00000000000026F8: 66 41 0F EF D2 pxor xmm2,xmm10 - 00000000000026FD: 66 45 0F 6F D6 movdqa xmm10,xmm14 - 0000000000002702: 66 41 0F EF DB pxor xmm3,xmm11 - 0000000000002707: 66 45 0F 6F DF movdqa xmm11,xmm15 - 000000000000270C: 66 41 0F EF E4 pxor xmm4,xmm12 - 0000000000002711: F3 0F 7F 16 movdqu xmmword ptr [rsi],xmm2 - 0000000000002715: 66 41 0F EF ED pxor xmm5,xmm13 - 000000000000271A: F3 0F 7F 5E 10 movdqu xmmword ptr [rsi+10h],xmm3 - 000000000000271F: F3 0F 7F 66 20 movdqu xmmword ptr [rsi+20h],xmm4 - 0000000000002724: F3 0F 7F 6E 30 movdqu xmmword ptr [rsi+30h],xmm5 - 0000000000002729: 48 8D 76 40 lea rsi,[rsi+40h] - 000000000000272D: E9 0E 00 00 00 jmp L$xts_dec_done - 0000000000002732: 90 nop - 0000000000002733: 90 nop - 0000000000002734: 90 nop - 0000000000002735: 90 nop - 0000000000002736: 90 nop - 0000000000002737: 90 nop - 0000000000002738: 90 nop - 0000000000002739: 90 nop - 000000000000273A: 90 nop - 000000000000273B: 90 nop - 000000000000273C: 90 nop - 000000000000273D: 90 nop - 000000000000273E: 90 nop - 000000000000273F: 90 nop + 0000000000002530: 0F 10 17 movups xmm2,xmmword ptr [rdi] + 0000000000002533: 0F 10 5F 10 movups xmm3,xmmword ptr [rdi+10h] + 0000000000002537: 0F 10 67 20 movups xmm4,xmmword ptr [rdi+20h] + 000000000000253B: 41 0F 57 D2 xorps xmm2,xmm10 + 000000000000253F: 0F 10 6F 30 movups xmm5,xmmword ptr [rdi+30h] + 0000000000002543: 48 8D 7F 40 lea rdi,[rdi+40h] + 0000000000002547: 41 0F 57 DB xorps xmm3,xmm11 + 000000000000254B: 41 0F 57 E4 xorps xmm4,xmm12 + 000000000000254F: 41 0F 57 ED xorps xmm5,xmm13 + 0000000000002553: E8 98 DD FF FF call _aesni_decrypt4 + 0000000000002558: 66 41 0F EF D2 pxor xmm2,xmm10 + 000000000000255D: 66 45 0F 6F D6 movdqa xmm10,xmm14 + 0000000000002562: 66 41 0F EF DB pxor xmm3,xmm11 + 0000000000002567: 66 45 0F 6F DF movdqa xmm11,xmm15 + 000000000000256C: 66 41 0F EF E4 pxor xmm4,xmm12 + 0000000000002571: F3 0F 7F 16 movdqu xmmword ptr [rsi],xmm2 + 0000000000002575: 66 41 0F EF ED pxor xmm5,xmm13 + 000000000000257A: F3 0F 7F 5E 10 movdqu xmmword ptr [rsi+10h],xmm3 + 000000000000257F: F3 0F 7F 66 20 movdqu xmmword ptr [rsi+20h],xmm4 + 0000000000002584: F3 0F 7F 6E 30 movdqu xmmword ptr [rsi+30h],xmm5 + 0000000000002589: 48 8D 76 40 lea rsi,[rsi+40h] + 000000000000258D: E9 0E 00 00 00 jmp L$xts_dec_done + 0000000000002592: 90 nop + 0000000000002593: 90 nop + 0000000000002594: 90 nop + 0000000000002595: 90 nop + 0000000000002596: 90 nop + 0000000000002597: 90 nop + 0000000000002598: 90 nop + 0000000000002599: 90 nop + 000000000000259A: 90 nop + 000000000000259B: 90 nop + 000000000000259C: 90 nop + 000000000000259D: 90 nop + 000000000000259E: 90 nop + 000000000000259F: 90 nop L$xts_dec_done: - 0000000000002740: 49 83 E1 0F and r9,0Fh - 0000000000002744: 0F 84 9A 00 00 00 je L$xts_dec_ret + 00000000000025A0: 49 83 E1 0F and r9,0Fh + 00000000000025A4: 0F 84 9A 00 00 00 je L$xts_dec_ret L$xts_dec_done2: - 000000000000274A: 4C 89 CA mov rdx,r9 - 000000000000274D: 48 89 E9 mov rcx,rbp - 0000000000002750: 44 89 D0 mov eax,r10d - 0000000000002753: 0F 10 17 movups xmm2,xmmword ptr [rdi] - 0000000000002756: 41 0F 57 D3 xorps xmm2,xmm11 - 000000000000275A: 0F 10 01 movups xmm0,xmmword ptr [rcx] - 000000000000275D: 0F 10 49 10 movups xmm1,xmmword ptr [rcx+10h] - 0000000000002761: 48 8D 49 20 lea rcx,[rcx+20h] - 0000000000002765: 0F 57 D0 xorps xmm2,xmm0 + 00000000000025AA: 4C 89 CA mov rdx,r9 + 00000000000025AD: 48 89 E9 mov rcx,rbp + 00000000000025B0: 44 89 D0 mov eax,r10d + 00000000000025B3: 0F 10 17 movups xmm2,xmmword ptr [rdi] + 00000000000025B6: 41 0F 57 D3 xorps xmm2,xmm11 + 00000000000025BA: 0F 10 01 movups xmm0,xmmword ptr [rcx] + 00000000000025BD: 0F 10 49 10 movups xmm1,xmmword ptr [rcx+10h] + 00000000000025C1: 48 8D 49 20 lea rcx,[rcx+20h] + 00000000000025C5: 0F 57 D0 xorps xmm2,xmm0 L$oop_dec1_11: - 0000000000002768: 66 0F 38 DE D1 aesdec xmm2,xmm1 - 000000000000276D: FF C8 dec eax - 000000000000276F: 0F 10 09 movups xmm1,xmmword ptr [rcx] - 0000000000002772: 48 8D 49 10 lea rcx,[rcx+10h] - 0000000000002776: 0F 85 EC FF FF FF jne L$oop_dec1_11 - 000000000000277C: 66 0F 38 DF D1 aesdeclast xmm2,xmm1 - 0000000000002781: 41 0F 57 D3 xorps xmm2,xmm11 - 0000000000002785: 0F 11 16 movups xmmword ptr [rsi],xmm2 + 00000000000025C8: 66 0F 38 DE D1 aesdec xmm2,xmm1 + 00000000000025CD: FF C8 dec eax + 00000000000025CF: 0F 10 09 movups xmm1,xmmword ptr [rcx] + 00000000000025D2: 48 8D 49 10 lea rcx,[rcx+10h] + 00000000000025D6: 0F 85 EC FF FF FF jne L$oop_dec1_11 + 00000000000025DC: 66 0F 38 DF D1 aesdeclast xmm2,xmm1 + 00000000000025E1: 41 0F 57 D3 xorps xmm2,xmm11 + 00000000000025E5: 0F 11 16 movups xmmword ptr [rsi],xmm2 L$xts_dec_steal: - 0000000000002788: 0F B6 47 10 movzx eax,byte ptr [rdi+10h] - 000000000000278C: 0F B6 0E movzx ecx,byte ptr [rsi] - 000000000000278F: 48 8D 7F 01 lea rdi,[rdi+1] - 0000000000002793: 88 06 mov byte ptr [rsi],al - 0000000000002795: 88 4E 10 mov byte ptr [rsi+10h],cl - 0000000000002798: 48 8D 76 01 lea rsi,[rsi+1] - 000000000000279C: 48 83 EA 01 sub rdx,1 - 00000000000027A0: 0F 85 E2 FF FF FF jne L$xts_dec_steal - 00000000000027A6: 4C 29 CE sub rsi,r9 - 00000000000027A9: 48 89 E9 mov rcx,rbp - 00000000000027AC: 44 89 D0 mov eax,r10d - 00000000000027AF: 0F 10 16 movups xmm2,xmmword ptr [rsi] - 00000000000027B2: 41 0F 57 D2 xorps xmm2,xmm10 - 00000000000027B6: 0F 10 01 movups xmm0,xmmword ptr [rcx] - 00000000000027B9: 0F 10 49 10 movups xmm1,xmmword ptr [rcx+10h] - 00000000000027BD: 48 8D 49 20 lea rcx,[rcx+20h] - 00000000000027C1: 0F 57 D0 xorps xmm2,xmm0 + 00000000000025E8: 0F B6 47 10 movzx eax,byte ptr [rdi+10h] + 00000000000025EC: 0F B6 0E movzx ecx,byte ptr [rsi] + 00000000000025EF: 48 8D 7F 01 lea rdi,[rdi+1] + 00000000000025F3: 88 06 mov byte ptr [rsi],al + 00000000000025F5: 88 4E 10 mov byte ptr [rsi+10h],cl + 00000000000025F8: 48 8D 76 01 lea rsi,[rsi+1] + 00000000000025FC: 48 83 EA 01 sub rdx,1 + 0000000000002600: 0F 85 E2 FF FF FF jne L$xts_dec_steal + 0000000000002606: 4C 29 CE sub rsi,r9 + 0000000000002609: 48 89 E9 mov rcx,rbp + 000000000000260C: 44 89 D0 mov eax,r10d + 000000000000260F: 0F 10 16 movups xmm2,xmmword ptr [rsi] + 0000000000002612: 41 0F 57 D2 xorps xmm2,xmm10 + 0000000000002616: 0F 10 01 movups xmm0,xmmword ptr [rcx] + 0000000000002619: 0F 10 49 10 movups xmm1,xmmword ptr [rcx+10h] + 000000000000261D: 48 8D 49 20 lea rcx,[rcx+20h] + 0000000000002621: 0F 57 D0 xorps xmm2,xmm0 L$oop_dec1_12: - 00000000000027C4: 66 0F 38 DE D1 aesdec xmm2,xmm1 - 00000000000027C9: FF C8 dec eax - 00000000000027CB: 0F 10 09 movups xmm1,xmmword ptr [rcx] - 00000000000027CE: 48 8D 49 10 lea rcx,[rcx+10h] - 00000000000027D2: 0F 85 EC FF FF FF jne L$oop_dec1_12 - 00000000000027D8: 66 0F 38 DF D1 aesdeclast xmm2,xmm1 - 00000000000027DD: 41 0F 57 D2 xorps xmm2,xmm10 - 00000000000027E1: 0F 11 16 movups xmmword ptr [rsi],xmm2 + 0000000000002624: 66 0F 38 DE D1 aesdec xmm2,xmm1 + 0000000000002629: FF C8 dec eax + 000000000000262B: 0F 10 09 movups xmm1,xmmword ptr [rcx] + 000000000000262E: 48 8D 49 10 lea rcx,[rcx+10h] + 0000000000002632: 0F 85 EC FF FF FF jne L$oop_dec1_12 + 0000000000002638: 66 0F 38 DF D1 aesdeclast xmm2,xmm1 + 000000000000263D: 41 0F 57 D2 xorps xmm2,xmm10 + 0000000000002641: 0F 11 16 movups xmmword ptr [rsi],xmm2 L$xts_dec_ret: - 00000000000027E4: 0F 57 C0 xorps xmm0,xmm0 - 00000000000027E7: 66 0F EF C9 pxor xmm1,xmm1 - 00000000000027EB: 66 0F EF D2 pxor xmm2,xmm2 - 00000000000027EF: 66 0F EF DB pxor xmm3,xmm3 - 00000000000027F3: 66 0F EF E4 pxor xmm4,xmm4 - 00000000000027F7: 66 0F EF ED pxor xmm5,xmm5 - 00000000000027FB: 41 0F 28 B3 58 FF movaps xmm6,xmmword ptr [r11-0A8h] + 0000000000002644: 0F 57 C0 xorps xmm0,xmm0 + 0000000000002647: 66 0F EF C9 pxor xmm1,xmm1 + 000000000000264B: 66 0F EF D2 pxor xmm2,xmm2 + 000000000000264F: 66 0F EF DB pxor xmm3,xmm3 + 0000000000002653: 66 0F EF E4 pxor xmm4,xmm4 + 0000000000002657: 66 0F EF ED pxor xmm5,xmm5 + 000000000000265B: 41 0F 28 B3 58 FF movaps xmm6,xmmword ptr [r11-0A8h] FF FF - 0000000000002803: 41 0F 29 83 58 FF movaps xmmword ptr [r11-0A8h],xmm0 + 0000000000002663: 41 0F 29 83 58 FF movaps xmmword ptr [r11-0A8h],xmm0 FF FF - 000000000000280B: 41 0F 28 BB 68 FF movaps xmm7,xmmword ptr [r11-98h] + 000000000000266B: 41 0F 28 BB 68 FF movaps xmm7,xmmword ptr [r11-98h] FF FF - 0000000000002813: 41 0F 29 83 68 FF movaps xmmword ptr [r11-98h],xmm0 + 0000000000002673: 41 0F 29 83 68 FF movaps xmmword ptr [r11-98h],xmm0 FF FF - 000000000000281B: 45 0F 28 83 78 FF movaps xmm8,xmmword ptr [r11-88h] + 000000000000267B: 45 0F 28 83 78 FF movaps xmm8,xmmword ptr [r11-88h] FF FF - 0000000000002823: 41 0F 29 83 78 FF movaps xmmword ptr [r11-88h],xmm0 + 0000000000002683: 41 0F 29 83 78 FF movaps xmmword ptr [r11-88h],xmm0 FF FF - 000000000000282B: 45 0F 28 4B 88 movaps xmm9,xmmword ptr [r11-78h] - 0000000000002830: 41 0F 29 43 88 movaps xmmword ptr [r11-78h],xmm0 - 0000000000002835: 45 0F 28 53 98 movaps xmm10,xmmword ptr [r11-68h] - 000000000000283A: 41 0F 29 43 98 movaps xmmword ptr [r11-68h],xmm0 - 000000000000283F: 45 0F 28 5B A8 movaps xmm11,xmmword ptr [r11-58h] - 0000000000002844: 41 0F 29 43 A8 movaps xmmword ptr [r11-58h],xmm0 - 0000000000002849: 45 0F 28 63 B8 movaps xmm12,xmmword ptr [r11-48h] - 000000000000284E: 41 0F 29 43 B8 movaps xmmword ptr [r11-48h],xmm0 - 0000000000002853: 45 0F 28 6B C8 movaps xmm13,xmmword ptr [r11-38h] - 0000000000002858: 41 0F 29 43 C8 movaps xmmword ptr [r11-38h],xmm0 - 000000000000285D: 45 0F 28 73 D8 movaps xmm14,xmmword ptr [r11-28h] - 0000000000002862: 41 0F 29 43 D8 movaps xmmword ptr [r11-28h],xmm0 - 0000000000002867: 45 0F 28 7B E8 movaps xmm15,xmmword ptr [r11-18h] - 000000000000286C: 41 0F 29 43 E8 movaps xmmword ptr [r11-18h],xmm0 - 0000000000002871: 0F 29 04 24 movaps xmmword ptr [rsp],xmm0 - 0000000000002875: 0F 29 44 24 10 movaps xmmword ptr [rsp+10h],xmm0 - 000000000000287A: 0F 29 44 24 20 movaps xmmword ptr [rsp+20h],xmm0 - 000000000000287F: 0F 29 44 24 30 movaps xmmword ptr [rsp+30h],xmm0 - 0000000000002884: 0F 29 44 24 40 movaps xmmword ptr [rsp+40h],xmm0 - 0000000000002889: 0F 29 44 24 50 movaps xmmword ptr [rsp+50h],xmm0 - 000000000000288E: 0F 29 44 24 60 movaps xmmword ptr [rsp+60h],xmm0 - 0000000000002893: 49 8B 6B F8 mov rbp,qword ptr [r11-8] - 0000000000002897: 49 8D 23 lea rsp,[r11] + 000000000000268B: 45 0F 28 4B 88 movaps xmm9,xmmword ptr [r11-78h] + 0000000000002690: 41 0F 29 43 88 movaps xmmword ptr [r11-78h],xmm0 + 0000000000002695: 45 0F 28 53 98 movaps xmm10,xmmword ptr [r11-68h] + 000000000000269A: 41 0F 29 43 98 movaps xmmword ptr [r11-68h],xmm0 + 000000000000269F: 45 0F 28 5B A8 movaps xmm11,xmmword ptr [r11-58h] + 00000000000026A4: 41 0F 29 43 A8 movaps xmmword ptr [r11-58h],xmm0 + 00000000000026A9: 45 0F 28 63 B8 movaps xmm12,xmmword ptr [r11-48h] + 00000000000026AE: 41 0F 29 43 B8 movaps xmmword ptr [r11-48h],xmm0 + 00000000000026B3: 45 0F 28 6B C8 movaps xmm13,xmmword ptr [r11-38h] + 00000000000026B8: 41 0F 29 43 C8 movaps xmmword ptr [r11-38h],xmm0 + 00000000000026BD: 45 0F 28 73 D8 movaps xmm14,xmmword ptr [r11-28h] + 00000000000026C2: 41 0F 29 43 D8 movaps xmmword ptr [r11-28h],xmm0 + 00000000000026C7: 45 0F 28 7B E8 movaps xmm15,xmmword ptr [r11-18h] + 00000000000026CC: 41 0F 29 43 E8 movaps xmmword ptr [r11-18h],xmm0 + 00000000000026D1: 0F 29 04 24 movaps xmmword ptr [rsp],xmm0 + 00000000000026D5: 0F 29 44 24 10 movaps xmmword ptr [rsp+10h],xmm0 + 00000000000026DA: 0F 29 44 24 20 movaps xmmword ptr [rsp+20h],xmm0 + 00000000000026DF: 0F 29 44 24 30 movaps xmmword ptr [rsp+30h],xmm0 + 00000000000026E4: 0F 29 44 24 40 movaps xmmword ptr [rsp+40h],xmm0 + 00000000000026E9: 0F 29 44 24 50 movaps xmmword ptr [rsp+50h],xmm0 + 00000000000026EE: 0F 29 44 24 60 movaps xmmword ptr [rsp+60h],xmm0 + 00000000000026F3: 49 8B 6B F8 mov rbp,qword ptr [r11-8] + 00000000000026F7: 49 8D 23 lea rsp,[r11] L$xts_dec_epilogue: - 000000000000289A: 48 8B 7C 24 08 mov rdi,qword ptr [rsp+8] - 000000000000289F: 48 8B 74 24 10 mov rsi,qword ptr [rsp+10h] - 00000000000028A4: F3 C3 rep ret + 00000000000026FA: 48 8B 7C 24 08 mov rdi,qword ptr [rsp+8] + 00000000000026FF: 48 8B 74 24 10 mov rsi,qword ptr [rsp+10h] + 0000000000002704: F3 C3 rep ret L$SEH_end_aes_hw_xts_decrypt: - 00000000000028A6: 90 nop - 00000000000028A7: 90 nop - 00000000000028A8: 90 nop - 00000000000028A9: 90 nop - 00000000000028AA: 90 nop - 00000000000028AB: 90 nop - 00000000000028AC: 90 nop - 00000000000028AD: 90 nop - 00000000000028AE: 90 nop - 00000000000028AF: 90 nop + 0000000000002706: 90 nop + 0000000000002707: 90 nop + 0000000000002708: 90 nop + 0000000000002709: 90 nop + 000000000000270A: 90 nop + 000000000000270B: 90 nop + 000000000000270C: 90 nop + 000000000000270D: 90 nop + 000000000000270E: 90 nop + 000000000000270F: 90 nop aws_lc_0_21_0_aes_hw_cbc_encrypt: - 00000000000028B0: 48 89 7C 24 08 mov qword ptr [rsp+8],rdi - 00000000000028B5: 48 89 74 24 10 mov qword ptr [rsp+10h],rsi - 00000000000028BA: 48 89 E0 mov rax,rsp + 0000000000002710: 48 89 7C 24 08 mov qword ptr [rsp+8],rdi + 0000000000002715: 48 89 74 24 10 mov qword ptr [rsp+10h],rsi + 000000000000271A: 48 89 E0 mov rax,rsp L$SEH_begin_aes_hw_cbc_encrypt: - 00000000000028BD: 48 89 CF mov rdi,rcx - 00000000000028C0: 48 89 D6 mov rsi,rdx - 00000000000028C3: 4C 89 C2 mov rdx,r8 - 00000000000028C6: 4C 89 C9 mov rcx,r9 - 00000000000028C9: 4C 8B 44 24 28 mov r8,qword ptr [rsp+28h] - 00000000000028CE: 4C 8B 4C 24 30 mov r9,qword ptr [rsp+30h] - 00000000000028D3: 48 85 D2 test rdx,rdx - 00000000000028D6: 0F 84 30 0A 00 00 je L$cbc_ret - 00000000000028DC: 44 8B 91 F0 00 00 mov r10d,dword ptr [rcx+0F0h] + 000000000000271D: 48 89 CF mov rdi,rcx + 0000000000002720: 48 89 D6 mov rsi,rdx + 0000000000002723: 4C 89 C2 mov rdx,r8 + 0000000000002726: 4C 89 C9 mov rcx,r9 + 0000000000002729: 4C 8B 44 24 28 mov r8,qword ptr [rsp+28h] + 000000000000272E: 4C 8B 4C 24 30 mov r9,qword ptr [rsp+30h] + 0000000000002733: 48 85 D2 test rdx,rdx + 0000000000002736: 0F 84 50 09 00 00 je L$cbc_ret + 000000000000273C: 44 8B 91 F0 00 00 mov r10d,dword ptr [rcx+0F0h] 00 - 00000000000028E3: 49 89 CB mov r11,rcx - 00000000000028E6: 45 85 C9 test r9d,r9d - 00000000000028E9: 0F 84 C1 00 00 00 je L$cbc_decrypt - 00000000000028EF: 41 0F 10 10 movups xmm2,xmmword ptr [r8] - 00000000000028F3: 44 89 D0 mov eax,r10d - 00000000000028F6: 48 83 FA 10 cmp rdx,10h - 00000000000028FA: 0F 82 7B 00 00 00 jb L$cbc_enc_tail - 0000000000002900: 48 83 EA 10 sub rdx,10h - 0000000000002904: E9 07 00 00 00 jmp L$cbc_enc_loop - 0000000000002909: 90 nop - 000000000000290A: 90 nop - 000000000000290B: 90 nop - 000000000000290C: 90 nop - 000000000000290D: 90 nop - 000000000000290E: 90 nop - 000000000000290F: 90 nop + 0000000000002743: 49 89 CB mov r11,rcx + 0000000000002746: 45 85 C9 test r9d,r9d + 0000000000002749: 0F 84 C1 00 00 00 je L$cbc_decrypt + 000000000000274F: 41 0F 10 10 movups xmm2,xmmword ptr [r8] + 0000000000002753: 44 89 D0 mov eax,r10d + 0000000000002756: 48 83 FA 10 cmp rdx,10h + 000000000000275A: 0F 82 7B 00 00 00 jb L$cbc_enc_tail + 0000000000002760: 48 83 EA 10 sub rdx,10h + 0000000000002764: E9 07 00 00 00 jmp L$cbc_enc_loop + 0000000000002769: 90 nop + 000000000000276A: 90 nop + 000000000000276B: 90 nop + 000000000000276C: 90 nop + 000000000000276D: 90 nop + 000000000000276E: 90 nop + 000000000000276F: 90 nop L$cbc_enc_loop: - 0000000000002910: 0F 10 1F movups xmm3,xmmword ptr [rdi] - 0000000000002913: 48 8D 7F 10 lea rdi,[rdi+10h] - 0000000000002917: 0F 10 01 movups xmm0,xmmword ptr [rcx] - 000000000000291A: 0F 10 49 10 movups xmm1,xmmword ptr [rcx+10h] - 000000000000291E: 0F 57 D8 xorps xmm3,xmm0 - 0000000000002921: 48 8D 49 20 lea rcx,[rcx+20h] - 0000000000002925: 0F 57 D3 xorps xmm2,xmm3 + 0000000000002770: 0F 10 1F movups xmm3,xmmword ptr [rdi] + 0000000000002773: 48 8D 7F 10 lea rdi,[rdi+10h] + 0000000000002777: 0F 10 01 movups xmm0,xmmword ptr [rcx] + 000000000000277A: 0F 10 49 10 movups xmm1,xmmword ptr [rcx+10h] + 000000000000277E: 0F 57 D8 xorps xmm3,xmm0 + 0000000000002781: 48 8D 49 20 lea rcx,[rcx+20h] + 0000000000002785: 0F 57 D3 xorps xmm2,xmm3 L$oop_enc1_13: - 0000000000002928: 66 0F 38 DC D1 aesenc xmm2,xmm1 - 000000000000292D: FF C8 dec eax - 000000000000292F: 0F 10 09 movups xmm1,xmmword ptr [rcx] - 0000000000002932: 48 8D 49 10 lea rcx,[rcx+10h] - 0000000000002936: 0F 85 EC FF FF FF jne L$oop_enc1_13 - 000000000000293C: 66 0F 38 DD D1 aesenclast xmm2,xmm1 - 0000000000002941: 44 89 D0 mov eax,r10d - 0000000000002944: 4C 89 D9 mov rcx,r11 - 0000000000002947: 0F 11 16 movups xmmword ptr [rsi],xmm2 - 000000000000294A: 48 8D 76 10 lea rsi,[rsi+10h] - 000000000000294E: 48 83 EA 10 sub rdx,10h - 0000000000002952: 0F 83 B8 FF FF FF jae L$cbc_enc_loop - 0000000000002958: 48 83 C2 10 add rdx,10h - 000000000000295C: 0F 85 19 00 00 00 jne L$cbc_enc_tail - 0000000000002962: 66 0F EF C0 pxor xmm0,xmm0 - 0000000000002966: 66 0F EF C9 pxor xmm1,xmm1 - 000000000000296A: 41 0F 11 10 movups xmmword ptr [r8],xmm2 - 000000000000296E: 66 0F EF D2 pxor xmm2,xmm2 - 0000000000002972: 66 0F EF DB pxor xmm3,xmm3 - 0000000000002976: E9 91 09 00 00 jmp L$cbc_ret + 0000000000002788: 66 0F 38 DC D1 aesenc xmm2,xmm1 + 000000000000278D: FF C8 dec eax + 000000000000278F: 0F 10 09 movups xmm1,xmmword ptr [rcx] + 0000000000002792: 48 8D 49 10 lea rcx,[rcx+10h] + 0000000000002796: 0F 85 EC FF FF FF jne L$oop_enc1_13 + 000000000000279C: 66 0F 38 DD D1 aesenclast xmm2,xmm1 + 00000000000027A1: 44 89 D0 mov eax,r10d + 00000000000027A4: 4C 89 D9 mov rcx,r11 + 00000000000027A7: 0F 11 16 movups xmmword ptr [rsi],xmm2 + 00000000000027AA: 48 8D 76 10 lea rsi,[rsi+10h] + 00000000000027AE: 48 83 EA 10 sub rdx,10h + 00000000000027B2: 0F 83 B8 FF FF FF jae L$cbc_enc_loop + 00000000000027B8: 48 83 C2 10 add rdx,10h + 00000000000027BC: 0F 85 19 00 00 00 jne L$cbc_enc_tail + 00000000000027C2: 66 0F EF C0 pxor xmm0,xmm0 + 00000000000027C6: 66 0F EF C9 pxor xmm1,xmm1 + 00000000000027CA: 41 0F 11 10 movups xmmword ptr [r8],xmm2 + 00000000000027CE: 66 0F EF D2 pxor xmm2,xmm2 + 00000000000027D2: 66 0F EF DB pxor xmm3,xmm3 + 00000000000027D6: E9 B1 08 00 00 jmp L$cbc_ret L$cbc_enc_tail: - 000000000000297B: 48 89 D1 mov rcx,rdx - 000000000000297E: 48 87 F7 xchg rsi,rdi - 0000000000002981: F3 A4 rep movs byte ptr [rdi],byte ptr [rsi] - 0000000000002983: 66 90 nop - 0000000000002985: B9 10 00 00 00 mov ecx,10h - 000000000000298A: 48 29 D1 sub rcx,rdx - 000000000000298D: 31 C0 xor eax,eax - 000000000000298F: F3 AA rep stos byte ptr [rdi] - 0000000000002991: 66 90 nop - 0000000000002993: 48 8D 7F F0 lea rdi,[rdi-10h] - 0000000000002997: 44 89 D0 mov eax,r10d - 000000000000299A: 48 89 FE mov rsi,rdi - 000000000000299D: 4C 89 D9 mov rcx,r11 - 00000000000029A0: 48 31 D2 xor rdx,rdx - 00000000000029A3: E9 68 FF FF FF jmp L$cbc_enc_loop - 00000000000029A8: 90 nop - 00000000000029A9: 90 nop - 00000000000029AA: 90 nop - 00000000000029AB: 90 nop - 00000000000029AC: 90 nop - 00000000000029AD: 90 nop - 00000000000029AE: 90 nop - 00000000000029AF: 90 nop + 00000000000027DB: 48 89 D1 mov rcx,rdx + 00000000000027DE: 48 87 F7 xchg rsi,rdi + 00000000000027E1: F3 A4 rep movs byte ptr [rdi],byte ptr [rsi] + 00000000000027E3: 66 90 nop + 00000000000027E5: B9 10 00 00 00 mov ecx,10h + 00000000000027EA: 48 29 D1 sub rcx,rdx + 00000000000027ED: 31 C0 xor eax,eax + 00000000000027EF: F3 AA rep stos byte ptr [rdi] + 00000000000027F1: 66 90 nop + 00000000000027F3: 48 8D 7F F0 lea rdi,[rdi-10h] + 00000000000027F7: 44 89 D0 mov eax,r10d + 00000000000027FA: 48 89 FE mov rsi,rdi + 00000000000027FD: 4C 89 D9 mov rcx,r11 + 0000000000002800: 48 31 D2 xor rdx,rdx + 0000000000002803: E9 68 FF FF FF jmp L$cbc_enc_loop + 0000000000002808: 90 nop + 0000000000002809: 90 nop + 000000000000280A: 90 nop + 000000000000280B: 90 nop + 000000000000280C: 90 nop + 000000000000280D: 90 nop + 000000000000280E: 90 nop + 000000000000280F: 90 nop L$cbc_decrypt: - 00000000000029B0: 48 83 FA 10 cmp rdx,10h - 00000000000029B4: 0F 85 56 00 00 00 jne L$cbc_decrypt_bulk - 00000000000029BA: F3 0F 6F 17 movdqu xmm2,xmmword ptr [rdi] - 00000000000029BE: F3 41 0F 6F 18 movdqu xmm3,xmmword ptr [r8] - 00000000000029C3: 66 0F 6F E2 movdqa xmm4,xmm2 - 00000000000029C7: 0F 10 01 movups xmm0,xmmword ptr [rcx] - 00000000000029CA: 0F 10 49 10 movups xmm1,xmmword ptr [rcx+10h] - 00000000000029CE: 48 8D 49 20 lea rcx,[rcx+20h] - 00000000000029D2: 0F 57 D0 xorps xmm2,xmm0 + 0000000000002810: 48 83 FA 10 cmp rdx,10h + 0000000000002814: 0F 85 56 00 00 00 jne L$cbc_decrypt_bulk + 000000000000281A: F3 0F 6F 17 movdqu xmm2,xmmword ptr [rdi] + 000000000000281E: F3 41 0F 6F 18 movdqu xmm3,xmmword ptr [r8] + 0000000000002823: 66 0F 6F E2 movdqa xmm4,xmm2 + 0000000000002827: 0F 10 01 movups xmm0,xmmword ptr [rcx] + 000000000000282A: 0F 10 49 10 movups xmm1,xmmword ptr [rcx+10h] + 000000000000282E: 48 8D 49 20 lea rcx,[rcx+20h] + 0000000000002832: 0F 57 D0 xorps xmm2,xmm0 L$oop_dec1_14: - 00000000000029D5: 66 0F 38 DE D1 aesdec xmm2,xmm1 - 00000000000029DA: 41 FF CA dec r10d - 00000000000029DD: 0F 10 09 movups xmm1,xmmword ptr [rcx] - 00000000000029E0: 48 8D 49 10 lea rcx,[rcx+10h] - 00000000000029E4: 0F 85 EB FF FF FF jne L$oop_dec1_14 - 00000000000029EA: 66 0F 38 DF D1 aesdeclast xmm2,xmm1 - 00000000000029EF: 66 0F EF C0 pxor xmm0,xmm0 - 00000000000029F3: 66 0F EF C9 pxor xmm1,xmm1 - 00000000000029F7: F3 41 0F 7F 20 movdqu xmmword ptr [r8],xmm4 - 00000000000029FC: 0F 57 D3 xorps xmm2,xmm3 - 00000000000029FF: 66 0F EF DB pxor xmm3,xmm3 - 0000000000002A03: 0F 11 16 movups xmmword ptr [rsi],xmm2 - 0000000000002A06: 66 0F EF D2 pxor xmm2,xmm2 - 0000000000002A0A: E9 FD 08 00 00 jmp L$cbc_ret - 0000000000002A0F: 90 nop + 0000000000002835: 66 0F 38 DE D1 aesdec xmm2,xmm1 + 000000000000283A: 41 FF CA dec r10d + 000000000000283D: 0F 10 09 movups xmm1,xmmword ptr [rcx] + 0000000000002840: 48 8D 49 10 lea rcx,[rcx+10h] + 0000000000002844: 0F 85 EB FF FF FF jne L$oop_dec1_14 + 000000000000284A: 66 0F 38 DF D1 aesdeclast xmm2,xmm1 + 000000000000284F: 66 0F EF C0 pxor xmm0,xmm0 + 0000000000002853: 66 0F EF C9 pxor xmm1,xmm1 + 0000000000002857: F3 41 0F 7F 20 movdqu xmmword ptr [r8],xmm4 + 000000000000285C: 0F 57 D3 xorps xmm2,xmm3 + 000000000000285F: 66 0F EF DB pxor xmm3,xmm3 + 0000000000002863: 0F 11 16 movups xmmword ptr [rsi],xmm2 + 0000000000002866: 66 0F EF D2 pxor xmm2,xmm2 + 000000000000286A: E9 1D 08 00 00 jmp L$cbc_ret + 000000000000286F: 90 nop L$cbc_decrypt_bulk: - 0000000000002A10: 4C 8D 1C 24 lea r11,[rsp] - 0000000000002A14: 55 push rbp - 0000000000002A15: 48 81 EC B0 00 00 sub rsp,0B0h + 0000000000002870: 4C 8D 1C 24 lea r11,[rsp] + 0000000000002874: 55 push rbp + 0000000000002875: 48 81 EC B0 00 00 sub rsp,0B0h 00 - 0000000000002A1C: 48 83 E4 F0 and rsp,0FFFFFFFFFFFFFFF0h - 0000000000002A20: 0F 29 74 24 10 movaps xmmword ptr [rsp+10h],xmm6 - 0000000000002A25: 0F 29 7C 24 20 movaps xmmword ptr [rsp+20h],xmm7 - 0000000000002A2A: 44 0F 29 44 24 30 movaps xmmword ptr [rsp+30h],xmm8 - 0000000000002A30: 44 0F 29 4C 24 40 movaps xmmword ptr [rsp+40h],xmm9 - 0000000000002A36: 44 0F 29 54 24 50 movaps xmmword ptr [rsp+50h],xmm10 - 0000000000002A3C: 44 0F 29 5C 24 60 movaps xmmword ptr [rsp+60h],xmm11 - 0000000000002A42: 44 0F 29 64 24 70 movaps xmmword ptr [rsp+70h],xmm12 - 0000000000002A48: 44 0F 29 AC 24 80 movaps xmmword ptr [rsp+80h],xmm13 + 000000000000287C: 48 83 E4 F0 and rsp,0FFFFFFFFFFFFFFF0h + 0000000000002880: 0F 29 74 24 10 movaps xmmword ptr [rsp+10h],xmm6 + 0000000000002885: 0F 29 7C 24 20 movaps xmmword ptr [rsp+20h],xmm7 + 000000000000288A: 44 0F 29 44 24 30 movaps xmmword ptr [rsp+30h],xmm8 + 0000000000002890: 44 0F 29 4C 24 40 movaps xmmword ptr [rsp+40h],xmm9 + 0000000000002896: 44 0F 29 54 24 50 movaps xmmword ptr [rsp+50h],xmm10 + 000000000000289C: 44 0F 29 5C 24 60 movaps xmmword ptr [rsp+60h],xmm11 + 00000000000028A2: 44 0F 29 64 24 70 movaps xmmword ptr [rsp+70h],xmm12 + 00000000000028A8: 44 0F 29 AC 24 80 movaps xmmword ptr [rsp+80h],xmm13 00 00 00 - 0000000000002A51: 44 0F 29 B4 24 90 movaps xmmword ptr [rsp+90h],xmm14 + 00000000000028B1: 44 0F 29 B4 24 90 movaps xmmword ptr [rsp+90h],xmm14 00 00 00 - 0000000000002A5A: 44 0F 29 BC 24 A0 movaps xmmword ptr [rsp+0A0h],xmm15 + 00000000000028BA: 44 0F 29 BC 24 A0 movaps xmmword ptr [rsp+0A0h],xmm15 00 00 00 L$cbc_decrypt_body: - 0000000000002A63: 48 89 CD mov rbp,rcx - 0000000000002A66: 45 0F 10 10 movups xmm10,xmmword ptr [r8] - 0000000000002A6A: 44 89 D0 mov eax,r10d - 0000000000002A6D: 48 83 FA 50 cmp rdx,50h - 0000000000002A71: 0F 86 08 06 00 00 jbe L$cbc_dec_tail - 0000000000002A77: 0F 10 01 movups xmm0,xmmword ptr [rcx] - 0000000000002A7A: F3 0F 6F 17 movdqu xmm2,xmmword ptr [rdi] - 0000000000002A7E: F3 0F 6F 5F 10 movdqu xmm3,xmmword ptr [rdi+10h] - 0000000000002A83: 66 44 0F 6F DA movdqa xmm11,xmm2 - 0000000000002A88: F3 0F 6F 67 20 movdqu xmm4,xmmword ptr [rdi+20h] - 0000000000002A8D: 66 44 0F 6F E3 movdqa xmm12,xmm3 - 0000000000002A92: F3 0F 6F 6F 30 movdqu xmm5,xmmword ptr [rdi+30h] - 0000000000002A97: 66 44 0F 6F EC movdqa xmm13,xmm4 - 0000000000002A9C: F3 0F 6F 77 40 movdqu xmm6,xmmword ptr [rdi+40h] - 0000000000002AA1: 66 44 0F 6F F5 movdqa xmm14,xmm5 - 0000000000002AA6: F3 0F 6F 7F 50 movdqu xmm7,xmmword ptr [rdi+50h] - 0000000000002AAB: 66 44 0F 6F FE movdqa xmm15,xmm6 - 0000000000002AB0: 4C 8D 0D 00 00 00 lea r9,[aws_lc_0_21_0_OPENSSL_ia32cap_P] - 00 - 0000000000002AB7: 45 8B 49 04 mov r9d,dword ptr [r9+4] - 0000000000002ABB: 48 83 FA 70 cmp rdx,70h - 0000000000002ABF: 0F 86 01 04 00 00 jbe L$cbc_dec_six_or_seven - 0000000000002AC5: 41 81 E1 00 00 40 and r9d,4400000h - 04 - 0000000000002ACC: 48 83 EA 50 sub rdx,50h - 0000000000002AD0: 41 81 F9 00 00 40 cmp r9d,400000h - 00 - 0000000000002AD7: 0F 84 30 05 00 00 je L$cbc_dec_loop6_enter - 0000000000002ADD: 48 83 EA 20 sub rdx,20h - 0000000000002AE1: 48 8D 49 70 lea rcx,[rcx+70h] - 0000000000002AE5: E9 0E 00 00 00 jmp L$cbc_dec_loop8_enter - 0000000000002AEA: 90 nop - 0000000000002AEB: 90 nop - 0000000000002AEC: 90 nop - 0000000000002AED: 90 nop - 0000000000002AEE: 90 nop - 0000000000002AEF: 90 nop + 00000000000028C3: 48 89 CD mov rbp,rcx + 00000000000028C6: 45 0F 10 10 movups xmm10,xmmword ptr [r8] + 00000000000028CA: 44 89 D0 mov eax,r10d + 00000000000028CD: 48 83 FA 50 cmp rdx,50h + 00000000000028D1: 0F 86 2D 05 00 00 jbe L$cbc_dec_tail + 00000000000028D7: 0F 10 01 movups xmm0,xmmword ptr [rcx] + 00000000000028DA: F3 0F 6F 17 movdqu xmm2,xmmword ptr [rdi] + 00000000000028DE: F3 0F 6F 5F 10 movdqu xmm3,xmmword ptr [rdi+10h] + 00000000000028E3: 66 44 0F 6F DA movdqa xmm11,xmm2 + 00000000000028E8: F3 0F 6F 67 20 movdqu xmm4,xmmword ptr [rdi+20h] + 00000000000028ED: 66 44 0F 6F E3 movdqa xmm12,xmm3 + 00000000000028F2: F3 0F 6F 6F 30 movdqu xmm5,xmmword ptr [rdi+30h] + 00000000000028F7: 66 44 0F 6F EC movdqa xmm13,xmm4 + 00000000000028FC: F3 0F 6F 77 40 movdqu xmm6,xmmword ptr [rdi+40h] + 0000000000002901: 66 44 0F 6F F5 movdqa xmm14,xmm5 + 0000000000002906: F3 0F 6F 7F 50 movdqu xmm7,xmmword ptr [rdi+50h] + 000000000000290B: 66 44 0F 6F FE movdqa xmm15,xmm6 + 0000000000002910: 48 83 FA 70 cmp rdx,70h + 0000000000002914: 0F 86 EC 03 00 00 jbe L$cbc_dec_six_or_seven + 000000000000291A: 48 83 EA 70 sub rdx,70h + 000000000000291E: 48 8D 49 70 lea rcx,[rcx+70h] + 0000000000002922: E9 11 00 00 00 jmp L$cbc_dec_loop8_enter + 0000000000002927: 90 nop + 0000000000002928: 90 nop + 0000000000002929: 90 nop + 000000000000292A: 90 nop + 000000000000292B: 90 nop + 000000000000292C: 90 nop + 000000000000292D: 90 nop + 000000000000292E: 90 nop + 000000000000292F: 90 nop L$cbc_dec_loop8: - 0000000000002AF0: 44 0F 11 0E movups xmmword ptr [rsi],xmm9 - 0000000000002AF4: 48 8D 76 10 lea rsi,[rsi+10h] + 0000000000002930: 44 0F 11 0E movups xmmword ptr [rsi],xmm9 + 0000000000002934: 48 8D 76 10 lea rsi,[rsi+10h] L$cbc_dec_loop8_enter: - 0000000000002AF8: F3 44 0F 6F 47 60 movdqu xmm8,xmmword ptr [rdi+60h] - 0000000000002AFE: 66 0F EF D0 pxor xmm2,xmm0 - 0000000000002B02: F3 44 0F 6F 4F 70 movdqu xmm9,xmmword ptr [rdi+70h] - 0000000000002B08: 66 0F EF D8 pxor xmm3,xmm0 - 0000000000002B0C: 0F 10 49 A0 movups xmm1,xmmword ptr [rcx-60h] - 0000000000002B10: 66 0F EF E0 pxor xmm4,xmm0 - 0000000000002B14: 48 C7 C5 FF FF FF mov rbp,0FFFFFFFFFFFFFFFFh + 0000000000002938: F3 44 0F 6F 47 60 movdqu xmm8,xmmword ptr [rdi+60h] + 000000000000293E: 66 0F EF D0 pxor xmm2,xmm0 + 0000000000002942: F3 44 0F 6F 4F 70 movdqu xmm9,xmmword ptr [rdi+70h] + 0000000000002948: 66 0F EF D8 pxor xmm3,xmm0 + 000000000000294C: 0F 10 49 A0 movups xmm1,xmmword ptr [rcx-60h] + 0000000000002950: 66 0F EF E0 pxor xmm4,xmm0 + 0000000000002954: 48 C7 C5 FF FF FF mov rbp,0FFFFFFFFFFFFFFFFh FF - 0000000000002B1B: 48 83 FA 70 cmp rdx,70h - 0000000000002B1F: 66 0F EF E8 pxor xmm5,xmm0 - 0000000000002B23: 66 0F EF F0 pxor xmm6,xmm0 - 0000000000002B27: 66 0F EF F8 pxor xmm7,xmm0 - 0000000000002B2B: 66 44 0F EF C0 pxor xmm8,xmm0 - 0000000000002B30: 66 0F 38 DE D1 aesdec xmm2,xmm1 - 0000000000002B35: 66 44 0F EF C8 pxor xmm9,xmm0 - 0000000000002B3A: 0F 10 41 B0 movups xmm0,xmmword ptr [rcx-50h] - 0000000000002B3E: 66 0F 38 DE D9 aesdec xmm3,xmm1 - 0000000000002B43: 66 0F 38 DE E1 aesdec xmm4,xmm1 - 0000000000002B48: 66 0F 38 DE E9 aesdec xmm5,xmm1 - 0000000000002B4D: 66 0F 38 DE F1 aesdec xmm6,xmm1 - 0000000000002B52: 66 0F 38 DE F9 aesdec xmm7,xmm1 - 0000000000002B57: 66 44 0F 38 DE C1 aesdec xmm8,xmm1 - 0000000000002B5D: 48 83 D5 00 adc rbp,0 - 0000000000002B61: 48 81 E5 80 00 00 and rbp,80h + 000000000000295B: 48 83 FA 70 cmp rdx,70h + 000000000000295F: 66 0F EF E8 pxor xmm5,xmm0 + 0000000000002963: 66 0F EF F0 pxor xmm6,xmm0 + 0000000000002967: 66 0F EF F8 pxor xmm7,xmm0 + 000000000000296B: 66 44 0F EF C0 pxor xmm8,xmm0 + 0000000000002970: 66 0F 38 DE D1 aesdec xmm2,xmm1 + 0000000000002975: 66 44 0F EF C8 pxor xmm9,xmm0 + 000000000000297A: 0F 10 41 B0 movups xmm0,xmmword ptr [rcx-50h] + 000000000000297E: 66 0F 38 DE D9 aesdec xmm3,xmm1 + 0000000000002983: 66 0F 38 DE E1 aesdec xmm4,xmm1 + 0000000000002988: 66 0F 38 DE E9 aesdec xmm5,xmm1 + 000000000000298D: 66 0F 38 DE F1 aesdec xmm6,xmm1 + 0000000000002992: 66 0F 38 DE F9 aesdec xmm7,xmm1 + 0000000000002997: 66 44 0F 38 DE C1 aesdec xmm8,xmm1 + 000000000000299D: 48 83 D5 00 adc rbp,0 + 00000000000029A1: 48 81 E5 80 00 00 and rbp,80h 00 - 0000000000002B68: 66 44 0F 38 DE C9 aesdec xmm9,xmm1 - 0000000000002B6E: 48 01 FD add rbp,rdi - 0000000000002B71: 0F 10 49 C0 movups xmm1,xmmword ptr [rcx-40h] - 0000000000002B75: 66 0F 38 DE D0 aesdec xmm2,xmm0 - 0000000000002B7A: 66 0F 38 DE D8 aesdec xmm3,xmm0 - 0000000000002B7F: 66 0F 38 DE E0 aesdec xmm4,xmm0 - 0000000000002B84: 66 0F 38 DE E8 aesdec xmm5,xmm0 - 0000000000002B89: 66 0F 38 DE F0 aesdec xmm6,xmm0 - 0000000000002B8E: 66 0F 38 DE F8 aesdec xmm7,xmm0 - 0000000000002B93: 66 44 0F 38 DE C0 aesdec xmm8,xmm0 - 0000000000002B99: 66 44 0F 38 DE C8 aesdec xmm9,xmm0 - 0000000000002B9F: 0F 10 41 D0 movups xmm0,xmmword ptr [rcx-30h] - 0000000000002BA3: 90 nop - 0000000000002BA4: 66 0F 38 DE D1 aesdec xmm2,xmm1 - 0000000000002BA9: 66 0F 38 DE D9 aesdec xmm3,xmm1 - 0000000000002BAE: 66 0F 38 DE E1 aesdec xmm4,xmm1 - 0000000000002BB3: 66 0F 38 DE E9 aesdec xmm5,xmm1 - 0000000000002BB8: 66 0F 38 DE F1 aesdec xmm6,xmm1 - 0000000000002BBD: 66 0F 38 DE F9 aesdec xmm7,xmm1 - 0000000000002BC2: 66 44 0F 38 DE C1 aesdec xmm8,xmm1 - 0000000000002BC8: 66 44 0F 38 DE C9 aesdec xmm9,xmm1 - 0000000000002BCE: 0F 10 49 E0 movups xmm1,xmmword ptr [rcx-20h] - 0000000000002BD2: 90 nop - 0000000000002BD3: 66 0F 38 DE D0 aesdec xmm2,xmm0 - 0000000000002BD8: 66 0F 38 DE D8 aesdec xmm3,xmm0 - 0000000000002BDD: 66 0F 38 DE E0 aesdec xmm4,xmm0 - 0000000000002BE2: 66 0F 38 DE E8 aesdec xmm5,xmm0 - 0000000000002BE7: 66 0F 38 DE F0 aesdec xmm6,xmm0 - 0000000000002BEC: 66 0F 38 DE F8 aesdec xmm7,xmm0 - 0000000000002BF1: 66 44 0F 38 DE C0 aesdec xmm8,xmm0 - 0000000000002BF7: 66 44 0F 38 DE C8 aesdec xmm9,xmm0 - 0000000000002BFD: 0F 10 41 F0 movups xmm0,xmmword ptr [rcx-10h] - 0000000000002C01: 90 nop - 0000000000002C02: 66 0F 38 DE D1 aesdec xmm2,xmm1 - 0000000000002C07: 66 0F 38 DE D9 aesdec xmm3,xmm1 - 0000000000002C0C: 66 0F 38 DE E1 aesdec xmm4,xmm1 - 0000000000002C11: 66 0F 38 DE E9 aesdec xmm5,xmm1 - 0000000000002C16: 66 0F 38 DE F1 aesdec xmm6,xmm1 - 0000000000002C1B: 66 0F 38 DE F9 aesdec xmm7,xmm1 - 0000000000002C20: 66 44 0F 38 DE C1 aesdec xmm8,xmm1 - 0000000000002C26: 66 44 0F 38 DE C9 aesdec xmm9,xmm1 - 0000000000002C2C: 0F 10 09 movups xmm1,xmmword ptr [rcx] - 0000000000002C2F: 90 nop - 0000000000002C30: 66 0F 38 DE D0 aesdec xmm2,xmm0 - 0000000000002C35: 66 0F 38 DE D8 aesdec xmm3,xmm0 - 0000000000002C3A: 66 0F 38 DE E0 aesdec xmm4,xmm0 - 0000000000002C3F: 66 0F 38 DE E8 aesdec xmm5,xmm0 - 0000000000002C44: 66 0F 38 DE F0 aesdec xmm6,xmm0 - 0000000000002C49: 66 0F 38 DE F8 aesdec xmm7,xmm0 - 0000000000002C4E: 66 44 0F 38 DE C0 aesdec xmm8,xmm0 - 0000000000002C54: 66 44 0F 38 DE C8 aesdec xmm9,xmm0 - 0000000000002C5A: 0F 10 41 10 movups xmm0,xmmword ptr [rcx+10h] - 0000000000002C5E: 90 nop - 0000000000002C5F: 66 0F 38 DE D1 aesdec xmm2,xmm1 - 0000000000002C64: 66 0F 38 DE D9 aesdec xmm3,xmm1 - 0000000000002C69: 66 0F 38 DE E1 aesdec xmm4,xmm1 - 0000000000002C6E: 66 0F 38 DE E9 aesdec xmm5,xmm1 - 0000000000002C73: 66 0F 38 DE F1 aesdec xmm6,xmm1 - 0000000000002C78: 66 0F 38 DE F9 aesdec xmm7,xmm1 - 0000000000002C7D: 66 44 0F 38 DE C1 aesdec xmm8,xmm1 - 0000000000002C83: 66 44 0F 38 DE C9 aesdec xmm9,xmm1 - 0000000000002C89: 0F 10 49 20 movups xmm1,xmmword ptr [rcx+20h] - 0000000000002C8D: 83 F8 0B cmp eax,0Bh - 0000000000002C90: 66 0F 38 DE D0 aesdec xmm2,xmm0 - 0000000000002C95: 66 0F 38 DE D8 aesdec xmm3,xmm0 - 0000000000002C9A: 66 0F 38 DE E0 aesdec xmm4,xmm0 - 0000000000002C9F: 66 0F 38 DE E8 aesdec xmm5,xmm0 - 0000000000002CA4: 66 0F 38 DE F0 aesdec xmm6,xmm0 - 0000000000002CA9: 66 0F 38 DE F8 aesdec xmm7,xmm0 - 0000000000002CAE: 66 44 0F 38 DE C0 aesdec xmm8,xmm0 - 0000000000002CB4: 66 44 0F 38 DE C8 aesdec xmm9,xmm0 - 0000000000002CBA: 0F 10 41 30 movups xmm0,xmmword ptr [rcx+30h] - 0000000000002CBE: 0F 82 CC 00 00 00 jb L$cbc_dec_done - 0000000000002CC4: 66 0F 38 DE D1 aesdec xmm2,xmm1 - 0000000000002CC9: 66 0F 38 DE D9 aesdec xmm3,xmm1 - 0000000000002CCE: 66 0F 38 DE E1 aesdec xmm4,xmm1 - 0000000000002CD3: 66 0F 38 DE E9 aesdec xmm5,xmm1 - 0000000000002CD8: 66 0F 38 DE F1 aesdec xmm6,xmm1 - 0000000000002CDD: 66 0F 38 DE F9 aesdec xmm7,xmm1 - 0000000000002CE2: 66 44 0F 38 DE C1 aesdec xmm8,xmm1 - 0000000000002CE8: 66 44 0F 38 DE C9 aesdec xmm9,xmm1 - 0000000000002CEE: 0F 10 49 40 movups xmm1,xmmword ptr [rcx+40h] - 0000000000002CF2: 90 nop - 0000000000002CF3: 66 0F 38 DE D0 aesdec xmm2,xmm0 - 0000000000002CF8: 66 0F 38 DE D8 aesdec xmm3,xmm0 - 0000000000002CFD: 66 0F 38 DE E0 aesdec xmm4,xmm0 - 0000000000002D02: 66 0F 38 DE E8 aesdec xmm5,xmm0 - 0000000000002D07: 66 0F 38 DE F0 aesdec xmm6,xmm0 - 0000000000002D0C: 66 0F 38 DE F8 aesdec xmm7,xmm0 - 0000000000002D11: 66 44 0F 38 DE C0 aesdec xmm8,xmm0 - 0000000000002D17: 66 44 0F 38 DE C8 aesdec xmm9,xmm0 - 0000000000002D1D: 0F 10 41 50 movups xmm0,xmmword ptr [rcx+50h] - 0000000000002D21: 0F 84 69 00 00 00 je L$cbc_dec_done - 0000000000002D27: 66 0F 38 DE D1 aesdec xmm2,xmm1 - 0000000000002D2C: 66 0F 38 DE D9 aesdec xmm3,xmm1 - 0000000000002D31: 66 0F 38 DE E1 aesdec xmm4,xmm1 - 0000000000002D36: 66 0F 38 DE E9 aesdec xmm5,xmm1 - 0000000000002D3B: 66 0F 38 DE F1 aesdec xmm6,xmm1 - 0000000000002D40: 66 0F 38 DE F9 aesdec xmm7,xmm1 - 0000000000002D45: 66 44 0F 38 DE C1 aesdec xmm8,xmm1 - 0000000000002D4B: 66 44 0F 38 DE C9 aesdec xmm9,xmm1 - 0000000000002D51: 0F 10 49 60 movups xmm1,xmmword ptr [rcx+60h] - 0000000000002D55: 90 nop - 0000000000002D56: 66 0F 38 DE D0 aesdec xmm2,xmm0 - 0000000000002D5B: 66 0F 38 DE D8 aesdec xmm3,xmm0 - 0000000000002D60: 66 0F 38 DE E0 aesdec xmm4,xmm0 - 0000000000002D65: 66 0F 38 DE E8 aesdec xmm5,xmm0 - 0000000000002D6A: 66 0F 38 DE F0 aesdec xmm6,xmm0 - 0000000000002D6F: 66 0F 38 DE F8 aesdec xmm7,xmm0 - 0000000000002D74: 66 44 0F 38 DE C0 aesdec xmm8,xmm0 - 0000000000002D7A: 66 44 0F 38 DE C8 aesdec xmm9,xmm0 - 0000000000002D80: 0F 10 41 70 movups xmm0,xmmword ptr [rcx+70h] - 0000000000002D84: E9 07 00 00 00 jmp L$cbc_dec_done - 0000000000002D89: 90 nop - 0000000000002D8A: 90 nop - 0000000000002D8B: 90 nop - 0000000000002D8C: 90 nop - 0000000000002D8D: 90 nop - 0000000000002D8E: 90 nop - 0000000000002D8F: 90 nop + 00000000000029A8: 66 44 0F 38 DE C9 aesdec xmm9,xmm1 + 00000000000029AE: 48 01 FD add rbp,rdi + 00000000000029B1: 0F 10 49 C0 movups xmm1,xmmword ptr [rcx-40h] + 00000000000029B5: 66 0F 38 DE D0 aesdec xmm2,xmm0 + 00000000000029BA: 66 0F 38 DE D8 aesdec xmm3,xmm0 + 00000000000029BF: 66 0F 38 DE E0 aesdec xmm4,xmm0 + 00000000000029C4: 66 0F 38 DE E8 aesdec xmm5,xmm0 + 00000000000029C9: 66 0F 38 DE F0 aesdec xmm6,xmm0 + 00000000000029CE: 66 0F 38 DE F8 aesdec xmm7,xmm0 + 00000000000029D3: 66 44 0F 38 DE C0 aesdec xmm8,xmm0 + 00000000000029D9: 66 44 0F 38 DE C8 aesdec xmm9,xmm0 + 00000000000029DF: 0F 10 41 D0 movups xmm0,xmmword ptr [rcx-30h] + 00000000000029E3: 90 nop + 00000000000029E4: 66 0F 38 DE D1 aesdec xmm2,xmm1 + 00000000000029E9: 66 0F 38 DE D9 aesdec xmm3,xmm1 + 00000000000029EE: 66 0F 38 DE E1 aesdec xmm4,xmm1 + 00000000000029F3: 66 0F 38 DE E9 aesdec xmm5,xmm1 + 00000000000029F8: 66 0F 38 DE F1 aesdec xmm6,xmm1 + 00000000000029FD: 66 0F 38 DE F9 aesdec xmm7,xmm1 + 0000000000002A02: 66 44 0F 38 DE C1 aesdec xmm8,xmm1 + 0000000000002A08: 66 44 0F 38 DE C9 aesdec xmm9,xmm1 + 0000000000002A0E: 0F 10 49 E0 movups xmm1,xmmword ptr [rcx-20h] + 0000000000002A12: 90 nop + 0000000000002A13: 66 0F 38 DE D0 aesdec xmm2,xmm0 + 0000000000002A18: 66 0F 38 DE D8 aesdec xmm3,xmm0 + 0000000000002A1D: 66 0F 38 DE E0 aesdec xmm4,xmm0 + 0000000000002A22: 66 0F 38 DE E8 aesdec xmm5,xmm0 + 0000000000002A27: 66 0F 38 DE F0 aesdec xmm6,xmm0 + 0000000000002A2C: 66 0F 38 DE F8 aesdec xmm7,xmm0 + 0000000000002A31: 66 44 0F 38 DE C0 aesdec xmm8,xmm0 + 0000000000002A37: 66 44 0F 38 DE C8 aesdec xmm9,xmm0 + 0000000000002A3D: 0F 10 41 F0 movups xmm0,xmmword ptr [rcx-10h] + 0000000000002A41: 90 nop + 0000000000002A42: 66 0F 38 DE D1 aesdec xmm2,xmm1 + 0000000000002A47: 66 0F 38 DE D9 aesdec xmm3,xmm1 + 0000000000002A4C: 66 0F 38 DE E1 aesdec xmm4,xmm1 + 0000000000002A51: 66 0F 38 DE E9 aesdec xmm5,xmm1 + 0000000000002A56: 66 0F 38 DE F1 aesdec xmm6,xmm1 + 0000000000002A5B: 66 0F 38 DE F9 aesdec xmm7,xmm1 + 0000000000002A60: 66 44 0F 38 DE C1 aesdec xmm8,xmm1 + 0000000000002A66: 66 44 0F 38 DE C9 aesdec xmm9,xmm1 + 0000000000002A6C: 0F 10 09 movups xmm1,xmmword ptr [rcx] + 0000000000002A6F: 90 nop + 0000000000002A70: 66 0F 38 DE D0 aesdec xmm2,xmm0 + 0000000000002A75: 66 0F 38 DE D8 aesdec xmm3,xmm0 + 0000000000002A7A: 66 0F 38 DE E0 aesdec xmm4,xmm0 + 0000000000002A7F: 66 0F 38 DE E8 aesdec xmm5,xmm0 + 0000000000002A84: 66 0F 38 DE F0 aesdec xmm6,xmm0 + 0000000000002A89: 66 0F 38 DE F8 aesdec xmm7,xmm0 + 0000000000002A8E: 66 44 0F 38 DE C0 aesdec xmm8,xmm0 + 0000000000002A94: 66 44 0F 38 DE C8 aesdec xmm9,xmm0 + 0000000000002A9A: 0F 10 41 10 movups xmm0,xmmword ptr [rcx+10h] + 0000000000002A9E: 90 nop + 0000000000002A9F: 66 0F 38 DE D1 aesdec xmm2,xmm1 + 0000000000002AA4: 66 0F 38 DE D9 aesdec xmm3,xmm1 + 0000000000002AA9: 66 0F 38 DE E1 aesdec xmm4,xmm1 + 0000000000002AAE: 66 0F 38 DE E9 aesdec xmm5,xmm1 + 0000000000002AB3: 66 0F 38 DE F1 aesdec xmm6,xmm1 + 0000000000002AB8: 66 0F 38 DE F9 aesdec xmm7,xmm1 + 0000000000002ABD: 66 44 0F 38 DE C1 aesdec xmm8,xmm1 + 0000000000002AC3: 66 44 0F 38 DE C9 aesdec xmm9,xmm1 + 0000000000002AC9: 0F 10 49 20 movups xmm1,xmmword ptr [rcx+20h] + 0000000000002ACD: 83 F8 0B cmp eax,0Bh + 0000000000002AD0: 66 0F 38 DE D0 aesdec xmm2,xmm0 + 0000000000002AD5: 66 0F 38 DE D8 aesdec xmm3,xmm0 + 0000000000002ADA: 66 0F 38 DE E0 aesdec xmm4,xmm0 + 0000000000002ADF: 66 0F 38 DE E8 aesdec xmm5,xmm0 + 0000000000002AE4: 66 0F 38 DE F0 aesdec xmm6,xmm0 + 0000000000002AE9: 66 0F 38 DE F8 aesdec xmm7,xmm0 + 0000000000002AEE: 66 44 0F 38 DE C0 aesdec xmm8,xmm0 + 0000000000002AF4: 66 44 0F 38 DE C8 aesdec xmm9,xmm0 + 0000000000002AFA: 0F 10 41 30 movups xmm0,xmmword ptr [rcx+30h] + 0000000000002AFE: 0F 82 CC 00 00 00 jb L$cbc_dec_done + 0000000000002B04: 66 0F 38 DE D1 aesdec xmm2,xmm1 + 0000000000002B09: 66 0F 38 DE D9 aesdec xmm3,xmm1 + 0000000000002B0E: 66 0F 38 DE E1 aesdec xmm4,xmm1 + 0000000000002B13: 66 0F 38 DE E9 aesdec xmm5,xmm1 + 0000000000002B18: 66 0F 38 DE F1 aesdec xmm6,xmm1 + 0000000000002B1D: 66 0F 38 DE F9 aesdec xmm7,xmm1 + 0000000000002B22: 66 44 0F 38 DE C1 aesdec xmm8,xmm1 + 0000000000002B28: 66 44 0F 38 DE C9 aesdec xmm9,xmm1 + 0000000000002B2E: 0F 10 49 40 movups xmm1,xmmword ptr [rcx+40h] + 0000000000002B32: 90 nop + 0000000000002B33: 66 0F 38 DE D0 aesdec xmm2,xmm0 + 0000000000002B38: 66 0F 38 DE D8 aesdec xmm3,xmm0 + 0000000000002B3D: 66 0F 38 DE E0 aesdec xmm4,xmm0 + 0000000000002B42: 66 0F 38 DE E8 aesdec xmm5,xmm0 + 0000000000002B47: 66 0F 38 DE F0 aesdec xmm6,xmm0 + 0000000000002B4C: 66 0F 38 DE F8 aesdec xmm7,xmm0 + 0000000000002B51: 66 44 0F 38 DE C0 aesdec xmm8,xmm0 + 0000000000002B57: 66 44 0F 38 DE C8 aesdec xmm9,xmm0 + 0000000000002B5D: 0F 10 41 50 movups xmm0,xmmword ptr [rcx+50h] + 0000000000002B61: 0F 84 69 00 00 00 je L$cbc_dec_done + 0000000000002B67: 66 0F 38 DE D1 aesdec xmm2,xmm1 + 0000000000002B6C: 66 0F 38 DE D9 aesdec xmm3,xmm1 + 0000000000002B71: 66 0F 38 DE E1 aesdec xmm4,xmm1 + 0000000000002B76: 66 0F 38 DE E9 aesdec xmm5,xmm1 + 0000000000002B7B: 66 0F 38 DE F1 aesdec xmm6,xmm1 + 0000000000002B80: 66 0F 38 DE F9 aesdec xmm7,xmm1 + 0000000000002B85: 66 44 0F 38 DE C1 aesdec xmm8,xmm1 + 0000000000002B8B: 66 44 0F 38 DE C9 aesdec xmm9,xmm1 + 0000000000002B91: 0F 10 49 60 movups xmm1,xmmword ptr [rcx+60h] + 0000000000002B95: 90 nop + 0000000000002B96: 66 0F 38 DE D0 aesdec xmm2,xmm0 + 0000000000002B9B: 66 0F 38 DE D8 aesdec xmm3,xmm0 + 0000000000002BA0: 66 0F 38 DE E0 aesdec xmm4,xmm0 + 0000000000002BA5: 66 0F 38 DE E8 aesdec xmm5,xmm0 + 0000000000002BAA: 66 0F 38 DE F0 aesdec xmm6,xmm0 + 0000000000002BAF: 66 0F 38 DE F8 aesdec xmm7,xmm0 + 0000000000002BB4: 66 44 0F 38 DE C0 aesdec xmm8,xmm0 + 0000000000002BBA: 66 44 0F 38 DE C8 aesdec xmm9,xmm0 + 0000000000002BC0: 0F 10 41 70 movups xmm0,xmmword ptr [rcx+70h] + 0000000000002BC4: E9 07 00 00 00 jmp L$cbc_dec_done + 0000000000002BC9: 90 nop + 0000000000002BCA: 90 nop + 0000000000002BCB: 90 nop + 0000000000002BCC: 90 nop + 0000000000002BCD: 90 nop + 0000000000002BCE: 90 nop + 0000000000002BCF: 90 nop L$cbc_dec_done: - 0000000000002D90: 66 0F 38 DE D1 aesdec xmm2,xmm1 - 0000000000002D95: 66 0F 38 DE D9 aesdec xmm3,xmm1 - 0000000000002D9A: 66 44 0F EF D0 pxor xmm10,xmm0 - 0000000000002D9F: 66 44 0F EF D8 pxor xmm11,xmm0 - 0000000000002DA4: 66 0F 38 DE E1 aesdec xmm4,xmm1 - 0000000000002DA9: 66 0F 38 DE E9 aesdec xmm5,xmm1 - 0000000000002DAE: 66 44 0F EF E0 pxor xmm12,xmm0 - 0000000000002DB3: 66 44 0F EF E8 pxor xmm13,xmm0 - 0000000000002DB8: 66 0F 38 DE F1 aesdec xmm6,xmm1 - 0000000000002DBD: 66 0F 38 DE F9 aesdec xmm7,xmm1 - 0000000000002DC2: 66 44 0F EF F0 pxor xmm14,xmm0 - 0000000000002DC7: 66 44 0F EF F8 pxor xmm15,xmm0 - 0000000000002DCC: 66 44 0F 38 DE C1 aesdec xmm8,xmm1 - 0000000000002DD2: 66 44 0F 38 DE C9 aesdec xmm9,xmm1 - 0000000000002DD8: F3 0F 6F 4F 50 movdqu xmm1,xmmword ptr [rdi+50h] - 0000000000002DDD: 66 41 0F 38 DF D2 aesdeclast xmm2,xmm10 - 0000000000002DE3: F3 44 0F 6F 57 60 movdqu xmm10,xmmword ptr [rdi+60h] - 0000000000002DE9: 66 0F EF C8 pxor xmm1,xmm0 - 0000000000002DED: 66 41 0F 38 DF DB aesdeclast xmm3,xmm11 - 0000000000002DF3: 66 44 0F EF D0 pxor xmm10,xmm0 - 0000000000002DF8: F3 0F 6F 47 70 movdqu xmm0,xmmword ptr [rdi+70h] - 0000000000002DFD: 66 41 0F 38 DF E4 aesdeclast xmm4,xmm12 - 0000000000002E03: 48 8D BF 80 00 00 lea rdi,[rdi+80h] + 0000000000002BD0: 66 0F 38 DE D1 aesdec xmm2,xmm1 + 0000000000002BD5: 66 0F 38 DE D9 aesdec xmm3,xmm1 + 0000000000002BDA: 66 44 0F EF D0 pxor xmm10,xmm0 + 0000000000002BDF: 66 44 0F EF D8 pxor xmm11,xmm0 + 0000000000002BE4: 66 0F 38 DE E1 aesdec xmm4,xmm1 + 0000000000002BE9: 66 0F 38 DE E9 aesdec xmm5,xmm1 + 0000000000002BEE: 66 44 0F EF E0 pxor xmm12,xmm0 + 0000000000002BF3: 66 44 0F EF E8 pxor xmm13,xmm0 + 0000000000002BF8: 66 0F 38 DE F1 aesdec xmm6,xmm1 + 0000000000002BFD: 66 0F 38 DE F9 aesdec xmm7,xmm1 + 0000000000002C02: 66 44 0F EF F0 pxor xmm14,xmm0 + 0000000000002C07: 66 44 0F EF F8 pxor xmm15,xmm0 + 0000000000002C0C: 66 44 0F 38 DE C1 aesdec xmm8,xmm1 + 0000000000002C12: 66 44 0F 38 DE C9 aesdec xmm9,xmm1 + 0000000000002C18: F3 0F 6F 4F 50 movdqu xmm1,xmmword ptr [rdi+50h] + 0000000000002C1D: 66 41 0F 38 DF D2 aesdeclast xmm2,xmm10 + 0000000000002C23: F3 44 0F 6F 57 60 movdqu xmm10,xmmword ptr [rdi+60h] + 0000000000002C29: 66 0F EF C8 pxor xmm1,xmm0 + 0000000000002C2D: 66 41 0F 38 DF DB aesdeclast xmm3,xmm11 + 0000000000002C33: 66 44 0F EF D0 pxor xmm10,xmm0 + 0000000000002C38: F3 0F 6F 47 70 movdqu xmm0,xmmword ptr [rdi+70h] + 0000000000002C3D: 66 41 0F 38 DF E4 aesdeclast xmm4,xmm12 + 0000000000002C43: 48 8D BF 80 00 00 lea rdi,[rdi+80h] 00 - 0000000000002E0A: F3 44 0F 6F 5D 00 movdqu xmm11,xmmword ptr [rbp] - 0000000000002E10: 66 41 0F 38 DF ED aesdeclast xmm5,xmm13 - 0000000000002E16: 66 41 0F 38 DF F6 aesdeclast xmm6,xmm14 - 0000000000002E1C: F3 44 0F 6F 65 10 movdqu xmm12,xmmword ptr [rbp+10h] - 0000000000002E22: F3 44 0F 6F 6D 20 movdqu xmm13,xmmword ptr [rbp+20h] - 0000000000002E28: 66 41 0F 38 DF FF aesdeclast xmm7,xmm15 - 0000000000002E2E: 66 44 0F 38 DF C1 aesdeclast xmm8,xmm1 - 0000000000002E34: F3 44 0F 6F 75 30 movdqu xmm14,xmmword ptr [rbp+30h] - 0000000000002E3A: F3 44 0F 6F 7D 40 movdqu xmm15,xmmword ptr [rbp+40h] - 0000000000002E40: 66 45 0F 38 DF CA aesdeclast xmm9,xmm10 - 0000000000002E46: 66 44 0F 6F D0 movdqa xmm10,xmm0 - 0000000000002E4B: F3 0F 6F 4D 50 movdqu xmm1,xmmword ptr [rbp+50h] - 0000000000002E50: 0F 10 41 90 movups xmm0,xmmword ptr [rcx-70h] - 0000000000002E54: 0F 11 16 movups xmmword ptr [rsi],xmm2 - 0000000000002E57: 66 41 0F 6F D3 movdqa xmm2,xmm11 - 0000000000002E5C: 0F 11 5E 10 movups xmmword ptr [rsi+10h],xmm3 - 0000000000002E60: 66 41 0F 6F DC movdqa xmm3,xmm12 - 0000000000002E65: 0F 11 66 20 movups xmmword ptr [rsi+20h],xmm4 - 0000000000002E69: 66 41 0F 6F E5 movdqa xmm4,xmm13 - 0000000000002E6E: 0F 11 6E 30 movups xmmword ptr [rsi+30h],xmm5 - 0000000000002E72: 66 41 0F 6F EE movdqa xmm5,xmm14 - 0000000000002E77: 0F 11 76 40 movups xmmword ptr [rsi+40h],xmm6 - 0000000000002E7B: 66 41 0F 6F F7 movdqa xmm6,xmm15 - 0000000000002E80: 0F 11 7E 50 movups xmmword ptr [rsi+50h],xmm7 - 0000000000002E84: 66 0F 6F F9 movdqa xmm7,xmm1 - 0000000000002E88: 44 0F 11 46 60 movups xmmword ptr [rsi+60h],xmm8 - 0000000000002E8D: 48 8D 76 70 lea rsi,[rsi+70h] - 0000000000002E91: 48 81 EA 80 00 00 sub rdx,80h + 0000000000002C4A: F3 44 0F 6F 5D 00 movdqu xmm11,xmmword ptr [rbp] + 0000000000002C50: 66 41 0F 38 DF ED aesdeclast xmm5,xmm13 + 0000000000002C56: 66 41 0F 38 DF F6 aesdeclast xmm6,xmm14 + 0000000000002C5C: F3 44 0F 6F 65 10 movdqu xmm12,xmmword ptr [rbp+10h] + 0000000000002C62: F3 44 0F 6F 6D 20 movdqu xmm13,xmmword ptr [rbp+20h] + 0000000000002C68: 66 41 0F 38 DF FF aesdeclast xmm7,xmm15 + 0000000000002C6E: 66 44 0F 38 DF C1 aesdeclast xmm8,xmm1 + 0000000000002C74: F3 44 0F 6F 75 30 movdqu xmm14,xmmword ptr [rbp+30h] + 0000000000002C7A: F3 44 0F 6F 7D 40 movdqu xmm15,xmmword ptr [rbp+40h] + 0000000000002C80: 66 45 0F 38 DF CA aesdeclast xmm9,xmm10 + 0000000000002C86: 66 44 0F 6F D0 movdqa xmm10,xmm0 + 0000000000002C8B: F3 0F 6F 4D 50 movdqu xmm1,xmmword ptr [rbp+50h] + 0000000000002C90: 0F 10 41 90 movups xmm0,xmmword ptr [rcx-70h] + 0000000000002C94: 0F 11 16 movups xmmword ptr [rsi],xmm2 + 0000000000002C97: 66 41 0F 6F D3 movdqa xmm2,xmm11 + 0000000000002C9C: 0F 11 5E 10 movups xmmword ptr [rsi+10h],xmm3 + 0000000000002CA0: 66 41 0F 6F DC movdqa xmm3,xmm12 + 0000000000002CA5: 0F 11 66 20 movups xmmword ptr [rsi+20h],xmm4 + 0000000000002CA9: 66 41 0F 6F E5 movdqa xmm4,xmm13 + 0000000000002CAE: 0F 11 6E 30 movups xmmword ptr [rsi+30h],xmm5 + 0000000000002CB2: 66 41 0F 6F EE movdqa xmm5,xmm14 + 0000000000002CB7: 0F 11 76 40 movups xmmword ptr [rsi+40h],xmm6 + 0000000000002CBB: 66 41 0F 6F F7 movdqa xmm6,xmm15 + 0000000000002CC0: 0F 11 7E 50 movups xmmword ptr [rsi+50h],xmm7 + 0000000000002CC4: 66 0F 6F F9 movdqa xmm7,xmm1 + 0000000000002CC8: 44 0F 11 46 60 movups xmmword ptr [rsi+60h],xmm8 + 0000000000002CCD: 48 8D 76 70 lea rsi,[rsi+70h] + 0000000000002CD1: 48 81 EA 80 00 00 sub rdx,80h 00 - 0000000000002E98: 0F 87 52 FC FF FF ja L$cbc_dec_loop8 - 0000000000002E9E: 41 0F 28 D1 movaps xmm2,xmm9 - 0000000000002EA2: 48 8D 49 90 lea rcx,[rcx-70h] - 0000000000002EA6: 48 83 C2 70 add rdx,70h - 0000000000002EAA: 0F 8E 80 03 00 00 jle L$cbc_dec_clear_tail_collected - 0000000000002EB0: 44 0F 11 0E movups xmmword ptr [rsi],xmm9 - 0000000000002EB4: 48 8D 76 10 lea rsi,[rsi+10h] - 0000000000002EB8: 48 83 FA 50 cmp rdx,50h - 0000000000002EBC: 0F 86 BD 01 00 00 jbe L$cbc_dec_tail - 0000000000002EC2: 41 0F 28 D3 movaps xmm2,xmm11 + 0000000000002CD8: 0F 87 52 FC FF FF ja L$cbc_dec_loop8 + 0000000000002CDE: 41 0F 28 D1 movaps xmm2,xmm9 + 0000000000002CE2: 48 8D 49 90 lea rcx,[rcx-70h] + 0000000000002CE6: 48 83 C2 70 add rdx,70h + 0000000000002CEA: 0F 8E C0 02 00 00 jle L$cbc_dec_clear_tail_collected + 0000000000002CF0: 44 0F 11 0E movups xmmword ptr [rsi],xmm9 + 0000000000002CF4: 48 8D 76 10 lea rsi,[rsi+10h] + 0000000000002CF8: 48 83 FA 50 cmp rdx,50h + 0000000000002CFC: 0F 86 02 01 00 00 jbe L$cbc_dec_tail + 0000000000002D02: 41 0F 28 D3 movaps xmm2,xmm11 L$cbc_dec_six_or_seven: - 0000000000002EC6: 48 83 FA 60 cmp rdx,60h - 0000000000002ECA: 0F 87 70 00 00 00 ja L$cbc_dec_seven - 0000000000002ED0: 44 0F 28 C7 movaps xmm8,xmm7 - 0000000000002ED4: E8 87 D5 FF FF call _aesni_decrypt6 - 0000000000002ED9: 66 41 0F EF D2 pxor xmm2,xmm10 - 0000000000002EDE: 45 0F 28 D0 movaps xmm10,xmm8 - 0000000000002EE2: 66 41 0F EF DB pxor xmm3,xmm11 - 0000000000002EE7: F3 0F 7F 16 movdqu xmmword ptr [rsi],xmm2 - 0000000000002EEB: 66 41 0F EF E4 pxor xmm4,xmm12 - 0000000000002EF0: F3 0F 7F 5E 10 movdqu xmmword ptr [rsi+10h],xmm3 - 0000000000002EF5: 66 0F EF DB pxor xmm3,xmm3 - 0000000000002EF9: 66 41 0F EF ED pxor xmm5,xmm13 - 0000000000002EFE: F3 0F 7F 66 20 movdqu xmmword ptr [rsi+20h],xmm4 - 0000000000002F03: 66 0F EF E4 pxor xmm4,xmm4 - 0000000000002F07: 66 41 0F EF F6 pxor xmm6,xmm14 - 0000000000002F0C: F3 0F 7F 6E 30 movdqu xmmword ptr [rsi+30h],xmm5 - 0000000000002F11: 66 0F EF ED pxor xmm5,xmm5 - 0000000000002F15: 66 41 0F EF FF pxor xmm7,xmm15 - 0000000000002F1A: F3 0F 7F 76 40 movdqu xmmword ptr [rsi+40h],xmm6 - 0000000000002F1F: 66 0F EF F6 pxor xmm6,xmm6 - 0000000000002F23: 48 8D 76 50 lea rsi,[rsi+50h] - 0000000000002F27: 66 0F 6F D7 movdqa xmm2,xmm7 - 0000000000002F2B: 66 0F EF FF pxor xmm7,xmm7 - 0000000000002F2F: E9 08 03 00 00 jmp L$cbc_dec_tail_collected - 0000000000002F34: 90 nop - 0000000000002F35: 90 nop - 0000000000002F36: 90 nop - 0000000000002F37: 90 nop - 0000000000002F38: 90 nop - 0000000000002F39: 90 nop - 0000000000002F3A: 90 nop - 0000000000002F3B: 90 nop - 0000000000002F3C: 90 nop - 0000000000002F3D: 90 nop - 0000000000002F3E: 90 nop - 0000000000002F3F: 90 nop + 0000000000002D06: 48 83 FA 60 cmp rdx,60h + 0000000000002D0A: 0F 87 70 00 00 00 ja L$cbc_dec_seven + 0000000000002D10: 44 0F 28 C7 movaps xmm8,xmm7 + 0000000000002D14: E8 47 D7 FF FF call _aesni_decrypt6 + 0000000000002D19: 66 41 0F EF D2 pxor xmm2,xmm10 + 0000000000002D1E: 45 0F 28 D0 movaps xmm10,xmm8 + 0000000000002D22: 66 41 0F EF DB pxor xmm3,xmm11 + 0000000000002D27: F3 0F 7F 16 movdqu xmmword ptr [rsi],xmm2 + 0000000000002D2B: 66 41 0F EF E4 pxor xmm4,xmm12 + 0000000000002D30: F3 0F 7F 5E 10 movdqu xmmword ptr [rsi+10h],xmm3 + 0000000000002D35: 66 0F EF DB pxor xmm3,xmm3 + 0000000000002D39: 66 41 0F EF ED pxor xmm5,xmm13 + 0000000000002D3E: F3 0F 7F 66 20 movdqu xmmword ptr [rsi+20h],xmm4 + 0000000000002D43: 66 0F EF E4 pxor xmm4,xmm4 + 0000000000002D47: 66 41 0F EF F6 pxor xmm6,xmm14 + 0000000000002D4C: F3 0F 7F 6E 30 movdqu xmmword ptr [rsi+30h],xmm5 + 0000000000002D51: 66 0F EF ED pxor xmm5,xmm5 + 0000000000002D55: 66 41 0F EF FF pxor xmm7,xmm15 + 0000000000002D5A: F3 0F 7F 76 40 movdqu xmmword ptr [rsi+40h],xmm6 + 0000000000002D5F: 66 0F EF F6 pxor xmm6,xmm6 + 0000000000002D63: 48 8D 76 50 lea rsi,[rsi+50h] + 0000000000002D67: 66 0F 6F D7 movdqa xmm2,xmm7 + 0000000000002D6B: 66 0F EF FF pxor xmm7,xmm7 + 0000000000002D6F: E9 48 02 00 00 jmp L$cbc_dec_tail_collected + 0000000000002D74: 90 nop + 0000000000002D75: 90 nop + 0000000000002D76: 90 nop + 0000000000002D77: 90 nop + 0000000000002D78: 90 nop + 0000000000002D79: 90 nop + 0000000000002D7A: 90 nop + 0000000000002D7B: 90 nop + 0000000000002D7C: 90 nop + 0000000000002D7D: 90 nop + 0000000000002D7E: 90 nop + 0000000000002D7F: 90 nop L$cbc_dec_seven: - 0000000000002F40: 44 0F 10 47 60 movups xmm8,xmmword ptr [rdi+60h] - 0000000000002F45: 45 0F 57 C9 xorps xmm9,xmm9 - 0000000000002F49: E8 02 D7 FF FF call _aesni_decrypt8 - 0000000000002F4E: 44 0F 10 4F 50 movups xmm9,xmmword ptr [rdi+50h] - 0000000000002F53: 66 41 0F EF D2 pxor xmm2,xmm10 - 0000000000002F58: 44 0F 10 57 60 movups xmm10,xmmword ptr [rdi+60h] - 0000000000002F5D: 66 41 0F EF DB pxor xmm3,xmm11 - 0000000000002F62: F3 0F 7F 16 movdqu xmmword ptr [rsi],xmm2 - 0000000000002F66: 66 41 0F EF E4 pxor xmm4,xmm12 - 0000000000002F6B: F3 0F 7F 5E 10 movdqu xmmword ptr [rsi+10h],xmm3 - 0000000000002F70: 66 0F EF DB pxor xmm3,xmm3 - 0000000000002F74: 66 41 0F EF ED pxor xmm5,xmm13 - 0000000000002F79: F3 0F 7F 66 20 movdqu xmmword ptr [rsi+20h],xmm4 - 0000000000002F7E: 66 0F EF E4 pxor xmm4,xmm4 - 0000000000002F82: 66 41 0F EF F6 pxor xmm6,xmm14 - 0000000000002F87: F3 0F 7F 6E 30 movdqu xmmword ptr [rsi+30h],xmm5 - 0000000000002F8C: 66 0F EF ED pxor xmm5,xmm5 - 0000000000002F90: 66 41 0F EF FF pxor xmm7,xmm15 - 0000000000002F95: F3 0F 7F 76 40 movdqu xmmword ptr [rsi+40h],xmm6 - 0000000000002F9A: 66 0F EF F6 pxor xmm6,xmm6 - 0000000000002F9E: 66 45 0F EF C1 pxor xmm8,xmm9 - 0000000000002FA3: F3 0F 7F 7E 50 movdqu xmmword ptr [rsi+50h],xmm7 - 0000000000002FA8: 66 0F EF FF pxor xmm7,xmm7 - 0000000000002FAC: 48 8D 76 60 lea rsi,[rsi+60h] - 0000000000002FB0: 66 41 0F 6F D0 movdqa xmm2,xmm8 - 0000000000002FB5: 66 45 0F EF C0 pxor xmm8,xmm8 - 0000000000002FBA: 66 45 0F EF C9 pxor xmm9,xmm9 - 0000000000002FBF: E9 78 02 00 00 jmp L$cbc_dec_tail_collected - 0000000000002FC4: 90 nop - 0000000000002FC5: 90 nop - 0000000000002FC6: 90 nop - 0000000000002FC7: 90 nop - 0000000000002FC8: 90 nop - 0000000000002FC9: 90 nop - 0000000000002FCA: 90 nop - 0000000000002FCB: 90 nop - 0000000000002FCC: 90 nop - 0000000000002FCD: 90 nop - 0000000000002FCE: 90 nop - 0000000000002FCF: 90 nop -L$cbc_dec_loop6: - 0000000000002FD0: 0F 11 3E movups xmmword ptr [rsi],xmm7 - 0000000000002FD3: 48 8D 76 10 lea rsi,[rsi+10h] - 0000000000002FD7: F3 0F 6F 17 movdqu xmm2,xmmword ptr [rdi] - 0000000000002FDB: F3 0F 6F 5F 10 movdqu xmm3,xmmword ptr [rdi+10h] - 0000000000002FE0: 66 44 0F 6F DA movdqa xmm11,xmm2 - 0000000000002FE5: F3 0F 6F 67 20 movdqu xmm4,xmmword ptr [rdi+20h] - 0000000000002FEA: 66 44 0F 6F E3 movdqa xmm12,xmm3 - 0000000000002FEF: F3 0F 6F 6F 30 movdqu xmm5,xmmword ptr [rdi+30h] - 0000000000002FF4: 66 44 0F 6F EC movdqa xmm13,xmm4 - 0000000000002FF9: F3 0F 6F 77 40 movdqu xmm6,xmmword ptr [rdi+40h] - 0000000000002FFE: 66 44 0F 6F F5 movdqa xmm14,xmm5 - 0000000000003003: F3 0F 6F 7F 50 movdqu xmm7,xmmword ptr [rdi+50h] - 0000000000003008: 66 44 0F 6F FE movdqa xmm15,xmm6 -L$cbc_dec_loop6_enter: - 000000000000300D: 48 8D 7F 60 lea rdi,[rdi+60h] - 0000000000003011: 66 44 0F 6F C7 movdqa xmm8,xmm7 - 0000000000003016: E8 45 D4 FF FF call _aesni_decrypt6 - 000000000000301B: 66 41 0F EF D2 pxor xmm2,xmm10 - 0000000000003020: 66 45 0F 6F D0 movdqa xmm10,xmm8 - 0000000000003025: 66 41 0F EF DB pxor xmm3,xmm11 - 000000000000302A: F3 0F 7F 16 movdqu xmmword ptr [rsi],xmm2 - 000000000000302E: 66 41 0F EF E4 pxor xmm4,xmm12 - 0000000000003033: F3 0F 7F 5E 10 movdqu xmmword ptr [rsi+10h],xmm3 - 0000000000003038: 66 41 0F EF ED pxor xmm5,xmm13 - 000000000000303D: F3 0F 7F 66 20 movdqu xmmword ptr [rsi+20h],xmm4 - 0000000000003042: 66 41 0F EF F6 pxor xmm6,xmm14 - 0000000000003047: 48 89 E9 mov rcx,rbp - 000000000000304A: F3 0F 7F 6E 30 movdqu xmmword ptr [rsi+30h],xmm5 - 000000000000304F: 66 41 0F EF FF pxor xmm7,xmm15 - 0000000000003054: 44 89 D0 mov eax,r10d - 0000000000003057: F3 0F 7F 76 40 movdqu xmmword ptr [rsi+40h],xmm6 - 000000000000305C: 48 8D 76 50 lea rsi,[rsi+50h] - 0000000000003060: 48 83 EA 60 sub rdx,60h - 0000000000003064: 0F 87 66 FF FF FF ja L$cbc_dec_loop6 - 000000000000306A: 66 0F 6F D7 movdqa xmm2,xmm7 - 000000000000306E: 48 83 C2 50 add rdx,50h - 0000000000003072: 0F 8E B8 01 00 00 jle L$cbc_dec_clear_tail_collected - 0000000000003078: 0F 11 3E movups xmmword ptr [rsi],xmm7 - 000000000000307B: 48 8D 76 10 lea rsi,[rsi+10h] + 0000000000002D80: 44 0F 10 47 60 movups xmm8,xmmword ptr [rdi+60h] + 0000000000002D85: 45 0F 57 C9 xorps xmm9,xmm9 + 0000000000002D89: E8 C2 D8 FF FF call _aesni_decrypt8 + 0000000000002D8E: 44 0F 10 4F 50 movups xmm9,xmmword ptr [rdi+50h] + 0000000000002D93: 66 41 0F EF D2 pxor xmm2,xmm10 + 0000000000002D98: 44 0F 10 57 60 movups xmm10,xmmword ptr [rdi+60h] + 0000000000002D9D: 66 41 0F EF DB pxor xmm3,xmm11 + 0000000000002DA2: F3 0F 7F 16 movdqu xmmword ptr [rsi],xmm2 + 0000000000002DA6: 66 41 0F EF E4 pxor xmm4,xmm12 + 0000000000002DAB: F3 0F 7F 5E 10 movdqu xmmword ptr [rsi+10h],xmm3 + 0000000000002DB0: 66 0F EF DB pxor xmm3,xmm3 + 0000000000002DB4: 66 41 0F EF ED pxor xmm5,xmm13 + 0000000000002DB9: F3 0F 7F 66 20 movdqu xmmword ptr [rsi+20h],xmm4 + 0000000000002DBE: 66 0F EF E4 pxor xmm4,xmm4 + 0000000000002DC2: 66 41 0F EF F6 pxor xmm6,xmm14 + 0000000000002DC7: F3 0F 7F 6E 30 movdqu xmmword ptr [rsi+30h],xmm5 + 0000000000002DCC: 66 0F EF ED pxor xmm5,xmm5 + 0000000000002DD0: 66 41 0F EF FF pxor xmm7,xmm15 + 0000000000002DD5: F3 0F 7F 76 40 movdqu xmmword ptr [rsi+40h],xmm6 + 0000000000002DDA: 66 0F EF F6 pxor xmm6,xmm6 + 0000000000002DDE: 66 45 0F EF C1 pxor xmm8,xmm9 + 0000000000002DE3: F3 0F 7F 7E 50 movdqu xmmword ptr [rsi+50h],xmm7 + 0000000000002DE8: 66 0F EF FF pxor xmm7,xmm7 + 0000000000002DEC: 48 8D 76 60 lea rsi,[rsi+60h] + 0000000000002DF0: 66 41 0F 6F D0 movdqa xmm2,xmm8 + 0000000000002DF5: 66 45 0F EF C0 pxor xmm8,xmm8 + 0000000000002DFA: 66 45 0F EF C9 pxor xmm9,xmm9 + 0000000000002DFF: E9 B8 01 00 00 jmp L$cbc_dec_tail_collected L$cbc_dec_tail: - 000000000000307F: 0F 10 17 movups xmm2,xmmword ptr [rdi] - 0000000000003082: 48 83 EA 10 sub rdx,10h - 0000000000003086: 0F 86 A4 00 00 00 jbe L$cbc_dec_one - 000000000000308C: 0F 10 5F 10 movups xmm3,xmmword ptr [rdi+10h] - 0000000000003090: 44 0F 28 DA movaps xmm11,xmm2 - 0000000000003094: 48 83 EA 10 sub rdx,10h - 0000000000003098: 0F 86 D2 00 00 00 jbe L$cbc_dec_two - 000000000000309E: 0F 10 67 20 movups xmm4,xmmword ptr [rdi+20h] - 00000000000030A2: 44 0F 28 E3 movaps xmm12,xmm3 - 00000000000030A6: 48 83 EA 10 sub rdx,10h - 00000000000030AA: 0F 86 F0 00 00 00 jbe L$cbc_dec_three - 00000000000030B0: 0F 10 6F 30 movups xmm5,xmmword ptr [rdi+30h] - 00000000000030B4: 44 0F 28 EC movaps xmm13,xmm4 - 00000000000030B8: 48 83 EA 10 sub rdx,10h - 00000000000030BC: 0F 86 1E 01 00 00 jbe L$cbc_dec_four - 00000000000030C2: 0F 10 77 40 movups xmm6,xmmword ptr [rdi+40h] - 00000000000030C6: 44 0F 28 F5 movaps xmm14,xmm5 - 00000000000030CA: 44 0F 28 FE movaps xmm15,xmm6 - 00000000000030CE: 0F 57 FF xorps xmm7,xmm7 - 00000000000030D1: E8 8A D3 FF FF call _aesni_decrypt6 - 00000000000030D6: 66 41 0F EF D2 pxor xmm2,xmm10 - 00000000000030DB: 45 0F 28 D7 movaps xmm10,xmm15 - 00000000000030DF: 66 41 0F EF DB pxor xmm3,xmm11 - 00000000000030E4: F3 0F 7F 16 movdqu xmmword ptr [rsi],xmm2 - 00000000000030E8: 66 41 0F EF E4 pxor xmm4,xmm12 - 00000000000030ED: F3 0F 7F 5E 10 movdqu xmmword ptr [rsi+10h],xmm3 - 00000000000030F2: 66 0F EF DB pxor xmm3,xmm3 - 00000000000030F6: 66 41 0F EF ED pxor xmm5,xmm13 - 00000000000030FB: F3 0F 7F 66 20 movdqu xmmword ptr [rsi+20h],xmm4 - 0000000000003100: 66 0F EF E4 pxor xmm4,xmm4 - 0000000000003104: 66 41 0F EF F6 pxor xmm6,xmm14 - 0000000000003109: F3 0F 7F 6E 30 movdqu xmmword ptr [rsi+30h],xmm5 - 000000000000310E: 66 0F EF ED pxor xmm5,xmm5 - 0000000000003112: 48 8D 76 40 lea rsi,[rsi+40h] - 0000000000003116: 66 0F 6F D6 movdqa xmm2,xmm6 - 000000000000311A: 66 0F EF F6 pxor xmm6,xmm6 - 000000000000311E: 66 0F EF FF pxor xmm7,xmm7 - 0000000000003122: 48 83 EA 10 sub rdx,10h - 0000000000003126: E9 11 01 00 00 jmp L$cbc_dec_tail_collected - 000000000000312B: 90 nop - 000000000000312C: 90 nop - 000000000000312D: 90 nop - 000000000000312E: 90 nop - 000000000000312F: 90 nop + 0000000000002E04: 0F 10 17 movups xmm2,xmmword ptr [rdi] + 0000000000002E07: 48 83 EA 10 sub rdx,10h + 0000000000002E0B: 0F 86 9F 00 00 00 jbe L$cbc_dec_one + 0000000000002E11: 0F 10 5F 10 movups xmm3,xmmword ptr [rdi+10h] + 0000000000002E15: 44 0F 28 DA movaps xmm11,xmm2 + 0000000000002E19: 48 83 EA 10 sub rdx,10h + 0000000000002E1D: 0F 86 CD 00 00 00 jbe L$cbc_dec_two + 0000000000002E23: 0F 10 67 20 movups xmm4,xmmword ptr [rdi+20h] + 0000000000002E27: 44 0F 28 E3 movaps xmm12,xmm3 + 0000000000002E2B: 48 83 EA 10 sub rdx,10h + 0000000000002E2F: 0F 86 EB 00 00 00 jbe L$cbc_dec_three + 0000000000002E35: 0F 10 6F 30 movups xmm5,xmmword ptr [rdi+30h] + 0000000000002E39: 44 0F 28 EC movaps xmm13,xmm4 + 0000000000002E3D: 48 83 EA 10 sub rdx,10h + 0000000000002E41: 0F 86 19 01 00 00 jbe L$cbc_dec_four + 0000000000002E47: 0F 10 77 40 movups xmm6,xmmword ptr [rdi+40h] + 0000000000002E4B: 44 0F 28 F5 movaps xmm14,xmm5 + 0000000000002E4F: 44 0F 28 FE movaps xmm15,xmm6 + 0000000000002E53: 0F 57 FF xorps xmm7,xmm7 + 0000000000002E56: E8 05 D6 FF FF call _aesni_decrypt6 + 0000000000002E5B: 66 41 0F EF D2 pxor xmm2,xmm10 + 0000000000002E60: 45 0F 28 D7 movaps xmm10,xmm15 + 0000000000002E64: 66 41 0F EF DB pxor xmm3,xmm11 + 0000000000002E69: F3 0F 7F 16 movdqu xmmword ptr [rsi],xmm2 + 0000000000002E6D: 66 41 0F EF E4 pxor xmm4,xmm12 + 0000000000002E72: F3 0F 7F 5E 10 movdqu xmmword ptr [rsi+10h],xmm3 + 0000000000002E77: 66 0F EF DB pxor xmm3,xmm3 + 0000000000002E7B: 66 41 0F EF ED pxor xmm5,xmm13 + 0000000000002E80: F3 0F 7F 66 20 movdqu xmmword ptr [rsi+20h],xmm4 + 0000000000002E85: 66 0F EF E4 pxor xmm4,xmm4 + 0000000000002E89: 66 41 0F EF F6 pxor xmm6,xmm14 + 0000000000002E8E: F3 0F 7F 6E 30 movdqu xmmword ptr [rsi+30h],xmm5 + 0000000000002E93: 66 0F EF ED pxor xmm5,xmm5 + 0000000000002E97: 48 8D 76 40 lea rsi,[rsi+40h] + 0000000000002E9B: 66 0F 6F D6 movdqa xmm2,xmm6 + 0000000000002E9F: 66 0F EF F6 pxor xmm6,xmm6 + 0000000000002EA3: 66 0F EF FF pxor xmm7,xmm7 + 0000000000002EA7: 48 83 EA 10 sub rdx,10h + 0000000000002EAB: E9 0C 01 00 00 jmp L$cbc_dec_tail_collected L$cbc_dec_one: - 0000000000003130: 44 0F 28 DA movaps xmm11,xmm2 - 0000000000003134: 0F 10 01 movups xmm0,xmmword ptr [rcx] - 0000000000003137: 0F 10 49 10 movups xmm1,xmmword ptr [rcx+10h] - 000000000000313B: 48 8D 49 20 lea rcx,[rcx+20h] - 000000000000313F: 0F 57 D0 xorps xmm2,xmm0 + 0000000000002EB0: 44 0F 28 DA movaps xmm11,xmm2 + 0000000000002EB4: 0F 10 01 movups xmm0,xmmword ptr [rcx] + 0000000000002EB7: 0F 10 49 10 movups xmm1,xmmword ptr [rcx+10h] + 0000000000002EBB: 48 8D 49 20 lea rcx,[rcx+20h] + 0000000000002EBF: 0F 57 D0 xorps xmm2,xmm0 L$oop_dec1_15: - 0000000000003142: 66 0F 38 DE D1 aesdec xmm2,xmm1 - 0000000000003147: FF C8 dec eax - 0000000000003149: 0F 10 09 movups xmm1,xmmword ptr [rcx] - 000000000000314C: 48 8D 49 10 lea rcx,[rcx+10h] - 0000000000003150: 0F 85 EC FF FF FF jne L$oop_dec1_15 - 0000000000003156: 66 0F 38 DF D1 aesdeclast xmm2,xmm1 - 000000000000315B: 41 0F 57 D2 xorps xmm2,xmm10 - 000000000000315F: 45 0F 28 D3 movaps xmm10,xmm11 - 0000000000003163: E9 D4 00 00 00 jmp L$cbc_dec_tail_collected - 0000000000003168: 90 nop - 0000000000003169: 90 nop - 000000000000316A: 90 nop - 000000000000316B: 90 nop - 000000000000316C: 90 nop - 000000000000316D: 90 nop - 000000000000316E: 90 nop - 000000000000316F: 90 nop + 0000000000002EC2: 66 0F 38 DE D1 aesdec xmm2,xmm1 + 0000000000002EC7: FF C8 dec eax + 0000000000002EC9: 0F 10 09 movups xmm1,xmmword ptr [rcx] + 0000000000002ECC: 48 8D 49 10 lea rcx,[rcx+10h] + 0000000000002ED0: 0F 85 EC FF FF FF jne L$oop_dec1_15 + 0000000000002ED6: 66 0F 38 DF D1 aesdeclast xmm2,xmm1 + 0000000000002EDB: 41 0F 57 D2 xorps xmm2,xmm10 + 0000000000002EDF: 45 0F 28 D3 movaps xmm10,xmm11 + 0000000000002EE3: E9 D4 00 00 00 jmp L$cbc_dec_tail_collected + 0000000000002EE8: 90 nop + 0000000000002EE9: 90 nop + 0000000000002EEA: 90 nop + 0000000000002EEB: 90 nop + 0000000000002EEC: 90 nop + 0000000000002EED: 90 nop + 0000000000002EEE: 90 nop + 0000000000002EEF: 90 nop L$cbc_dec_two: - 0000000000003170: 44 0F 28 E3 movaps xmm12,xmm3 - 0000000000003174: E8 87 CF FF FF call _aesni_decrypt2 - 0000000000003179: 66 41 0F EF D2 pxor xmm2,xmm10 - 000000000000317E: 45 0F 28 D4 movaps xmm10,xmm12 - 0000000000003182: 66 41 0F EF DB pxor xmm3,xmm11 - 0000000000003187: F3 0F 7F 16 movdqu xmmword ptr [rsi],xmm2 - 000000000000318B: 66 0F 6F D3 movdqa xmm2,xmm3 - 000000000000318F: 66 0F EF DB pxor xmm3,xmm3 - 0000000000003193: 48 8D 76 10 lea rsi,[rsi+10h] - 0000000000003197: E9 A0 00 00 00 jmp L$cbc_dec_tail_collected - 000000000000319C: 90 nop - 000000000000319D: 90 nop - 000000000000319E: 90 nop - 000000000000319F: 90 nop + 0000000000002EF0: 44 0F 28 E3 movaps xmm12,xmm3 + 0000000000002EF4: E8 07 D2 FF FF call _aesni_decrypt2 + 0000000000002EF9: 66 41 0F EF D2 pxor xmm2,xmm10 + 0000000000002EFE: 45 0F 28 D4 movaps xmm10,xmm12 + 0000000000002F02: 66 41 0F EF DB pxor xmm3,xmm11 + 0000000000002F07: F3 0F 7F 16 movdqu xmmword ptr [rsi],xmm2 + 0000000000002F0B: 66 0F 6F D3 movdqa xmm2,xmm3 + 0000000000002F0F: 66 0F EF DB pxor xmm3,xmm3 + 0000000000002F13: 48 8D 76 10 lea rsi,[rsi+10h] + 0000000000002F17: E9 A0 00 00 00 jmp L$cbc_dec_tail_collected + 0000000000002F1C: 90 nop + 0000000000002F1D: 90 nop + 0000000000002F1E: 90 nop + 0000000000002F1F: 90 nop L$cbc_dec_three: - 00000000000031A0: 44 0F 28 EC movaps xmm13,xmm4 - 00000000000031A4: E8 37 D0 FF FF call _aesni_decrypt3 - 00000000000031A9: 66 41 0F EF D2 pxor xmm2,xmm10 - 00000000000031AE: 45 0F 28 D5 movaps xmm10,xmm13 - 00000000000031B2: 66 41 0F EF DB pxor xmm3,xmm11 - 00000000000031B7: F3 0F 7F 16 movdqu xmmword ptr [rsi],xmm2 - 00000000000031BB: 66 41 0F EF E4 pxor xmm4,xmm12 - 00000000000031C0: F3 0F 7F 5E 10 movdqu xmmword ptr [rsi+10h],xmm3 - 00000000000031C5: 66 0F EF DB pxor xmm3,xmm3 - 00000000000031C9: 66 0F 6F D4 movdqa xmm2,xmm4 - 00000000000031CD: 66 0F EF E4 pxor xmm4,xmm4 - 00000000000031D1: 48 8D 76 20 lea rsi,[rsi+20h] - 00000000000031D5: E9 62 00 00 00 jmp L$cbc_dec_tail_collected - 00000000000031DA: 90 nop - 00000000000031DB: 90 nop - 00000000000031DC: 90 nop - 00000000000031DD: 90 nop - 00000000000031DE: 90 nop - 00000000000031DF: 90 nop + 0000000000002F20: 44 0F 28 EC movaps xmm13,xmm4 + 0000000000002F24: E8 B7 D2 FF FF call _aesni_decrypt3 + 0000000000002F29: 66 41 0F EF D2 pxor xmm2,xmm10 + 0000000000002F2E: 45 0F 28 D5 movaps xmm10,xmm13 + 0000000000002F32: 66 41 0F EF DB pxor xmm3,xmm11 + 0000000000002F37: F3 0F 7F 16 movdqu xmmword ptr [rsi],xmm2 + 0000000000002F3B: 66 41 0F EF E4 pxor xmm4,xmm12 + 0000000000002F40: F3 0F 7F 5E 10 movdqu xmmword ptr [rsi+10h],xmm3 + 0000000000002F45: 66 0F EF DB pxor xmm3,xmm3 + 0000000000002F49: 66 0F 6F D4 movdqa xmm2,xmm4 + 0000000000002F4D: 66 0F EF E4 pxor xmm4,xmm4 + 0000000000002F51: 48 8D 76 20 lea rsi,[rsi+20h] + 0000000000002F55: E9 62 00 00 00 jmp L$cbc_dec_tail_collected + 0000000000002F5A: 90 nop + 0000000000002F5B: 90 nop + 0000000000002F5C: 90 nop + 0000000000002F5D: 90 nop + 0000000000002F5E: 90 nop + 0000000000002F5F: 90 nop L$cbc_dec_four: - 00000000000031E0: 44 0F 28 F5 movaps xmm14,xmm5 - 00000000000031E4: E8 07 D1 FF FF call _aesni_decrypt4 - 00000000000031E9: 66 41 0F EF D2 pxor xmm2,xmm10 - 00000000000031EE: 45 0F 28 D6 movaps xmm10,xmm14 - 00000000000031F2: 66 41 0F EF DB pxor xmm3,xmm11 - 00000000000031F7: F3 0F 7F 16 movdqu xmmword ptr [rsi],xmm2 - 00000000000031FB: 66 41 0F EF E4 pxor xmm4,xmm12 - 0000000000003200: F3 0F 7F 5E 10 movdqu xmmword ptr [rsi+10h],xmm3 - 0000000000003205: 66 0F EF DB pxor xmm3,xmm3 - 0000000000003209: 66 41 0F EF ED pxor xmm5,xmm13 - 000000000000320E: F3 0F 7F 66 20 movdqu xmmword ptr [rsi+20h],xmm4 - 0000000000003213: 66 0F EF E4 pxor xmm4,xmm4 - 0000000000003217: 66 0F 6F D5 movdqa xmm2,xmm5 - 000000000000321B: 66 0F EF ED pxor xmm5,xmm5 - 000000000000321F: 48 8D 76 30 lea rsi,[rsi+30h] - 0000000000003223: E9 14 00 00 00 jmp L$cbc_dec_tail_collected - 0000000000003228: 90 nop - 0000000000003229: 90 nop - 000000000000322A: 90 nop - 000000000000322B: 90 nop - 000000000000322C: 90 nop - 000000000000322D: 90 nop - 000000000000322E: 90 nop - 000000000000322F: 90 nop + 0000000000002F60: 44 0F 28 F5 movaps xmm14,xmm5 + 0000000000002F64: E8 87 D3 FF FF call _aesni_decrypt4 + 0000000000002F69: 66 41 0F EF D2 pxor xmm2,xmm10 + 0000000000002F6E: 45 0F 28 D6 movaps xmm10,xmm14 + 0000000000002F72: 66 41 0F EF DB pxor xmm3,xmm11 + 0000000000002F77: F3 0F 7F 16 movdqu xmmword ptr [rsi],xmm2 + 0000000000002F7B: 66 41 0F EF E4 pxor xmm4,xmm12 + 0000000000002F80: F3 0F 7F 5E 10 movdqu xmmword ptr [rsi+10h],xmm3 + 0000000000002F85: 66 0F EF DB pxor xmm3,xmm3 + 0000000000002F89: 66 41 0F EF ED pxor xmm5,xmm13 + 0000000000002F8E: F3 0F 7F 66 20 movdqu xmmword ptr [rsi+20h],xmm4 + 0000000000002F93: 66 0F EF E4 pxor xmm4,xmm4 + 0000000000002F97: 66 0F 6F D5 movdqa xmm2,xmm5 + 0000000000002F9B: 66 0F EF ED pxor xmm5,xmm5 + 0000000000002F9F: 48 8D 76 30 lea rsi,[rsi+30h] + 0000000000002FA3: E9 14 00 00 00 jmp L$cbc_dec_tail_collected + 0000000000002FA8: 90 nop + 0000000000002FA9: 90 nop + 0000000000002FAA: 90 nop + 0000000000002FAB: 90 nop + 0000000000002FAC: 90 nop + 0000000000002FAD: 90 nop + 0000000000002FAE: 90 nop + 0000000000002FAF: 90 nop L$cbc_dec_clear_tail_collected: - 0000000000003230: 66 0F EF DB pxor xmm3,xmm3 - 0000000000003234: 66 0F EF E4 pxor xmm4,xmm4 - 0000000000003238: 66 0F EF ED pxor xmm5,xmm5 + 0000000000002FB0: 66 0F EF DB pxor xmm3,xmm3 + 0000000000002FB4: 66 0F EF E4 pxor xmm4,xmm4 + 0000000000002FB8: 66 0F EF ED pxor xmm5,xmm5 L$cbc_dec_tail_collected: - 000000000000323C: 45 0F 11 10 movups xmmword ptr [r8],xmm10 - 0000000000003240: 48 83 E2 0F and rdx,0Fh - 0000000000003244: 0F 85 16 00 00 00 jne L$cbc_dec_tail_partial - 000000000000324A: 0F 11 16 movups xmmword ptr [rsi],xmm2 - 000000000000324D: 66 0F EF D2 pxor xmm2,xmm2 - 0000000000003251: E9 2A 00 00 00 jmp L$cbc_dec_ret - 0000000000003256: 90 nop - 0000000000003257: 90 nop - 0000000000003258: 90 nop - 0000000000003259: 90 nop - 000000000000325A: 90 nop - 000000000000325B: 90 nop - 000000000000325C: 90 nop - 000000000000325D: 90 nop - 000000000000325E: 90 nop - 000000000000325F: 90 nop + 0000000000002FBC: 45 0F 11 10 movups xmmword ptr [r8],xmm10 + 0000000000002FC0: 48 83 E2 0F and rdx,0Fh + 0000000000002FC4: 0F 85 16 00 00 00 jne L$cbc_dec_tail_partial + 0000000000002FCA: 0F 11 16 movups xmmword ptr [rsi],xmm2 + 0000000000002FCD: 66 0F EF D2 pxor xmm2,xmm2 + 0000000000002FD1: E9 2A 00 00 00 jmp L$cbc_dec_ret + 0000000000002FD6: 90 nop + 0000000000002FD7: 90 nop + 0000000000002FD8: 90 nop + 0000000000002FD9: 90 nop + 0000000000002FDA: 90 nop + 0000000000002FDB: 90 nop + 0000000000002FDC: 90 nop + 0000000000002FDD: 90 nop + 0000000000002FDE: 90 nop + 0000000000002FDF: 90 nop L$cbc_dec_tail_partial: - 0000000000003260: 0F 29 14 24 movaps xmmword ptr [rsp],xmm2 - 0000000000003264: 66 0F EF D2 pxor xmm2,xmm2 - 0000000000003268: B9 10 00 00 00 mov ecx,10h - 000000000000326D: 48 89 F7 mov rdi,rsi - 0000000000003270: 48 29 D1 sub rcx,rdx - 0000000000003273: 48 8D 34 24 lea rsi,[rsp] - 0000000000003277: F3 A4 rep movs byte ptr [rdi],byte ptr [rsi] - 0000000000003279: 66 90 nop - 000000000000327B: 66 0F 7F 14 24 movdqa xmmword ptr [rsp],xmm2 + 0000000000002FE0: 0F 29 14 24 movaps xmmword ptr [rsp],xmm2 + 0000000000002FE4: 66 0F EF D2 pxor xmm2,xmm2 + 0000000000002FE8: B9 10 00 00 00 mov ecx,10h + 0000000000002FED: 48 89 F7 mov rdi,rsi + 0000000000002FF0: 48 29 D1 sub rcx,rdx + 0000000000002FF3: 48 8D 34 24 lea rsi,[rsp] + 0000000000002FF7: F3 A4 rep movs byte ptr [rdi],byte ptr [rsi] + 0000000000002FF9: 66 90 nop + 0000000000002FFB: 66 0F 7F 14 24 movdqa xmmword ptr [rsp],xmm2 L$cbc_dec_ret: - 0000000000003280: 0F 57 C0 xorps xmm0,xmm0 - 0000000000003283: 66 0F EF C9 pxor xmm1,xmm1 - 0000000000003287: 0F 28 74 24 10 movaps xmm6,xmmword ptr [rsp+10h] - 000000000000328C: 0F 29 44 24 10 movaps xmmword ptr [rsp+10h],xmm0 - 0000000000003291: 0F 28 7C 24 20 movaps xmm7,xmmword ptr [rsp+20h] - 0000000000003296: 0F 29 44 24 20 movaps xmmword ptr [rsp+20h],xmm0 - 000000000000329B: 44 0F 28 44 24 30 movaps xmm8,xmmword ptr [rsp+30h] - 00000000000032A1: 0F 29 44 24 30 movaps xmmword ptr [rsp+30h],xmm0 - 00000000000032A6: 44 0F 28 4C 24 40 movaps xmm9,xmmword ptr [rsp+40h] - 00000000000032AC: 0F 29 44 24 40 movaps xmmword ptr [rsp+40h],xmm0 - 00000000000032B1: 44 0F 28 54 24 50 movaps xmm10,xmmword ptr [rsp+50h] - 00000000000032B7: 0F 29 44 24 50 movaps xmmword ptr [rsp+50h],xmm0 - 00000000000032BC: 44 0F 28 5C 24 60 movaps xmm11,xmmword ptr [rsp+60h] - 00000000000032C2: 0F 29 44 24 60 movaps xmmword ptr [rsp+60h],xmm0 - 00000000000032C7: 44 0F 28 64 24 70 movaps xmm12,xmmword ptr [rsp+70h] - 00000000000032CD: 0F 29 44 24 70 movaps xmmword ptr [rsp+70h],xmm0 - 00000000000032D2: 44 0F 28 AC 24 80 movaps xmm13,xmmword ptr [rsp+80h] + 0000000000003000: 0F 57 C0 xorps xmm0,xmm0 + 0000000000003003: 66 0F EF C9 pxor xmm1,xmm1 + 0000000000003007: 0F 28 74 24 10 movaps xmm6,xmmword ptr [rsp+10h] + 000000000000300C: 0F 29 44 24 10 movaps xmmword ptr [rsp+10h],xmm0 + 0000000000003011: 0F 28 7C 24 20 movaps xmm7,xmmword ptr [rsp+20h] + 0000000000003016: 0F 29 44 24 20 movaps xmmword ptr [rsp+20h],xmm0 + 000000000000301B: 44 0F 28 44 24 30 movaps xmm8,xmmword ptr [rsp+30h] + 0000000000003021: 0F 29 44 24 30 movaps xmmword ptr [rsp+30h],xmm0 + 0000000000003026: 44 0F 28 4C 24 40 movaps xmm9,xmmword ptr [rsp+40h] + 000000000000302C: 0F 29 44 24 40 movaps xmmword ptr [rsp+40h],xmm0 + 0000000000003031: 44 0F 28 54 24 50 movaps xmm10,xmmword ptr [rsp+50h] + 0000000000003037: 0F 29 44 24 50 movaps xmmword ptr [rsp+50h],xmm0 + 000000000000303C: 44 0F 28 5C 24 60 movaps xmm11,xmmword ptr [rsp+60h] + 0000000000003042: 0F 29 44 24 60 movaps xmmword ptr [rsp+60h],xmm0 + 0000000000003047: 44 0F 28 64 24 70 movaps xmm12,xmmword ptr [rsp+70h] + 000000000000304D: 0F 29 44 24 70 movaps xmmword ptr [rsp+70h],xmm0 + 0000000000003052: 44 0F 28 AC 24 80 movaps xmm13,xmmword ptr [rsp+80h] 00 00 00 - 00000000000032DB: 0F 29 84 24 80 00 movaps xmmword ptr [rsp+80h],xmm0 + 000000000000305B: 0F 29 84 24 80 00 movaps xmmword ptr [rsp+80h],xmm0 00 00 - 00000000000032E3: 44 0F 28 B4 24 90 movaps xmm14,xmmword ptr [rsp+90h] + 0000000000003063: 44 0F 28 B4 24 90 movaps xmm14,xmmword ptr [rsp+90h] 00 00 00 - 00000000000032EC: 0F 29 84 24 90 00 movaps xmmword ptr [rsp+90h],xmm0 + 000000000000306C: 0F 29 84 24 90 00 movaps xmmword ptr [rsp+90h],xmm0 00 00 - 00000000000032F4: 44 0F 28 BC 24 A0 movaps xmm15,xmmword ptr [rsp+0A0h] + 0000000000003074: 44 0F 28 BC 24 A0 movaps xmm15,xmmword ptr [rsp+0A0h] 00 00 00 - 00000000000032FD: 0F 29 84 24 A0 00 movaps xmmword ptr [rsp+0A0h],xmm0 + 000000000000307D: 0F 29 84 24 A0 00 movaps xmmword ptr [rsp+0A0h],xmm0 00 00 - 0000000000003305: 49 8B 6B F8 mov rbp,qword ptr [r11-8] - 0000000000003309: 49 8D 23 lea rsp,[r11] + 0000000000003085: 49 8B 6B F8 mov rbp,qword ptr [r11-8] + 0000000000003089: 49 8D 23 lea rsp,[r11] L$cbc_ret: - 000000000000330C: 48 8B 7C 24 08 mov rdi,qword ptr [rsp+8] - 0000000000003311: 48 8B 74 24 10 mov rsi,qword ptr [rsp+10h] - 0000000000003316: F3 C3 rep ret + 000000000000308C: 48 8B 7C 24 08 mov rdi,qword ptr [rsp+8] + 0000000000003091: 48 8B 74 24 10 mov rsi,qword ptr [rsp+10h] + 0000000000003096: F3 C3 rep ret L$SEH_end_aes_hw_cbc_encrypt: - 0000000000003318: 90 nop - 0000000000003319: 90 nop - 000000000000331A: 90 nop - 000000000000331B: 90 nop - 000000000000331C: 90 nop - 000000000000331D: 90 nop - 000000000000331E: 90 nop - 000000000000331F: 90 nop + 0000000000003098: 90 nop + 0000000000003099: 90 nop + 000000000000309A: 90 nop + 000000000000309B: 90 nop + 000000000000309C: 90 nop + 000000000000309D: 90 nop + 000000000000309E: 90 nop + 000000000000309F: 90 nop aws_lc_0_21_0_aes_hw_set_decrypt_key: - 0000000000003320: 48 83 EC 08 sub rsp,8 - 0000000000003324: E8 77 00 00 00 call aws_lc_0_21_0_aes_hw_set_encrypt_key - 0000000000003329: C1 E2 04 shl edx,4 - 000000000000332C: 85 C0 test eax,eax - 000000000000332E: 0F 85 5A 00 00 00 jne L$dec_key_ret - 0000000000003334: 49 8D 4C 10 10 lea rcx,[r8+rdx+10h] - 0000000000003339: 41 0F 10 00 movups xmm0,xmmword ptr [r8] - 000000000000333D: 0F 10 09 movups xmm1,xmmword ptr [rcx] - 0000000000003340: 0F 11 01 movups xmmword ptr [rcx],xmm0 - 0000000000003343: 41 0F 11 08 movups xmmword ptr [r8],xmm1 - 0000000000003347: 4D 8D 40 10 lea r8,[r8+10h] - 000000000000334B: 48 8D 49 F0 lea rcx,[rcx-10h] + 00000000000030A0: 48 83 EC 08 sub rsp,8 + 00000000000030A4: E8 77 00 00 00 call aws_lc_0_21_0_aes_hw_set_encrypt_key + 00000000000030A9: C1 E2 04 shl edx,4 + 00000000000030AC: 85 C0 test eax,eax + 00000000000030AE: 0F 85 5A 00 00 00 jne L$dec_key_ret + 00000000000030B4: 49 8D 4C 10 10 lea rcx,[r8+rdx+10h] + 00000000000030B9: 41 0F 10 00 movups xmm0,xmmword ptr [r8] + 00000000000030BD: 0F 10 09 movups xmm1,xmmword ptr [rcx] + 00000000000030C0: 0F 11 01 movups xmmword ptr [rcx],xmm0 + 00000000000030C3: 41 0F 11 08 movups xmmword ptr [r8],xmm1 + 00000000000030C7: 4D 8D 40 10 lea r8,[r8+10h] + 00000000000030CB: 48 8D 49 F0 lea rcx,[rcx-10h] L$dec_key_inverse: - 000000000000334F: 41 0F 10 00 movups xmm0,xmmword ptr [r8] - 0000000000003353: 0F 10 09 movups xmm1,xmmword ptr [rcx] - 0000000000003356: 66 0F 38 DB C0 aesimc xmm0,xmm0 - 000000000000335B: 66 0F 38 DB C9 aesimc xmm1,xmm1 - 0000000000003360: 4D 8D 40 10 lea r8,[r8+10h] - 0000000000003364: 48 8D 49 F0 lea rcx,[rcx-10h] - 0000000000003368: 0F 11 41 10 movups xmmword ptr [rcx+10h],xmm0 - 000000000000336C: 41 0F 11 48 F0 movups xmmword ptr [r8-10h],xmm1 - 0000000000003371: 4C 39 C1 cmp rcx,r8 - 0000000000003374: 0F 87 D5 FF FF FF ja L$dec_key_inverse - 000000000000337A: 41 0F 10 00 movups xmm0,xmmword ptr [r8] - 000000000000337E: 66 0F 38 DB C0 aesimc xmm0,xmm0 - 0000000000003383: 66 0F EF C9 pxor xmm1,xmm1 - 0000000000003387: 0F 11 01 movups xmmword ptr [rcx],xmm0 - 000000000000338A: 66 0F EF C0 pxor xmm0,xmm0 + 00000000000030CF: 41 0F 10 00 movups xmm0,xmmword ptr [r8] + 00000000000030D3: 0F 10 09 movups xmm1,xmmword ptr [rcx] + 00000000000030D6: 66 0F 38 DB C0 aesimc xmm0,xmm0 + 00000000000030DB: 66 0F 38 DB C9 aesimc xmm1,xmm1 + 00000000000030E0: 4D 8D 40 10 lea r8,[r8+10h] + 00000000000030E4: 48 8D 49 F0 lea rcx,[rcx-10h] + 00000000000030E8: 0F 11 41 10 movups xmmword ptr [rcx+10h],xmm0 + 00000000000030EC: 41 0F 11 48 F0 movups xmmword ptr [r8-10h],xmm1 + 00000000000030F1: 4C 39 C1 cmp rcx,r8 + 00000000000030F4: 0F 87 D5 FF FF FF ja L$dec_key_inverse + 00000000000030FA: 41 0F 10 00 movups xmm0,xmmword ptr [r8] + 00000000000030FE: 66 0F 38 DB C0 aesimc xmm0,xmm0 + 0000000000003103: 66 0F EF C9 pxor xmm1,xmm1 + 0000000000003107: 0F 11 01 movups xmmword ptr [rcx],xmm0 + 000000000000310A: 66 0F EF C0 pxor xmm0,xmm0 L$dec_key_ret: - 000000000000338E: 48 83 C4 08 add rsp,8 - 0000000000003392: F3 C3 rep ret + 000000000000310E: 48 83 C4 08 add rsp,8 + 0000000000003112: F3 C3 rep ret L$SEH_end_set_decrypt_key: - 0000000000003394: 90 nop - 0000000000003395: 90 nop - 0000000000003396: 90 nop - 0000000000003397: 90 nop - 0000000000003398: 90 nop - 0000000000003399: 90 nop - 000000000000339A: 90 nop - 000000000000339B: 90 nop - 000000000000339C: 90 nop - 000000000000339D: 90 nop - 000000000000339E: 90 nop - 000000000000339F: 90 nop + 0000000000003114: 90 nop + 0000000000003115: 90 nop + 0000000000003116: 90 nop + 0000000000003117: 90 nop + 0000000000003118: 90 nop + 0000000000003119: 90 nop + 000000000000311A: 90 nop + 000000000000311B: 90 nop + 000000000000311C: 90 nop + 000000000000311D: 90 nop + 000000000000311E: 90 nop + 000000000000311F: 90 nop aws_lc_0_21_0_aes_hw_set_encrypt_key: - 00000000000033A0: 48 83 EC 08 sub rsp,8 - 00000000000033A4: 48 C7 C0 FF FF FF mov rax,0FFFFFFFFFFFFFFFFh + 0000000000003120: 48 83 EC 08 sub rsp,8 + 0000000000003124: 48 C7 C0 FF FF FF mov rax,0FFFFFFFFFFFFFFFFh FF - 00000000000033AB: 48 85 C9 test rcx,rcx - 00000000000033AE: 0F 84 83 04 00 00 je L$enc_key_ret - 00000000000033B4: 4D 85 C0 test r8,r8 - 00000000000033B7: 0F 84 7A 04 00 00 je L$enc_key_ret - 00000000000033BD: 0F 10 01 movups xmm0,xmmword ptr [rcx] - 00000000000033C0: 0F 57 E4 xorps xmm4,xmm4 - 00000000000033C3: 4C 8D 15 00 00 00 lea r10,[aws_lc_0_21_0_OPENSSL_ia32cap_P] + 000000000000312B: 48 85 C9 test rcx,rcx + 000000000000312E: 0F 84 83 04 00 00 je L$enc_key_ret + 0000000000003134: 4D 85 C0 test r8,r8 + 0000000000003137: 0F 84 7A 04 00 00 je L$enc_key_ret + 000000000000313D: 0F 10 01 movups xmm0,xmmword ptr [rcx] + 0000000000003140: 0F 57 E4 xorps xmm4,xmm4 + 0000000000003143: 4C 8D 15 00 00 00 lea r10,[aws_lc_0_21_0_OPENSSL_ia32cap_P] 00 - 00000000000033CA: 45 8B 52 04 mov r10d,dword ptr [r10+4] - 00000000000033CE: 41 81 E2 00 08 00 and r10d,10000800h + 000000000000314A: 45 8B 52 04 mov r10d,dword ptr [r10+4] + 000000000000314E: 41 81 E2 00 08 00 and r10d,10000800h 10 - 00000000000033D5: 49 8D 40 10 lea rax,[r8+10h] - 00000000000033D9: 81 FA 00 01 00 00 cmp edx,100h - 00000000000033DF: 0F 84 CB 02 00 00 je L$14rounds - 00000000000033E5: 81 FA C0 00 00 00 cmp edx,0C0h - 00000000000033EB: 0F 84 9F 01 00 00 je L$12rounds - 00000000000033F1: 81 FA 80 00 00 00 cmp edx,80h - 00000000000033F7: 0F 85 33 04 00 00 jne L$bad_keybits + 0000000000003155: 49 8D 40 10 lea rax,[r8+10h] + 0000000000003159: 81 FA 00 01 00 00 cmp edx,100h + 000000000000315F: 0F 84 CB 02 00 00 je L$14rounds + 0000000000003165: 81 FA C0 00 00 00 cmp edx,0C0h + 000000000000316B: 0F 84 9F 01 00 00 je L$12rounds + 0000000000003171: 81 FA 80 00 00 00 cmp edx,80h + 0000000000003177: 0F 85 33 04 00 00 jne L$bad_keybits L$10rounds: - 00000000000033FD: BA 09 00 00 00 mov edx,9 - 0000000000003402: 41 81 FA 00 00 00 cmp r10d,10000000h + 000000000000317D: BA 09 00 00 00 mov edx,9 + 0000000000003182: 41 81 FA 00 00 00 cmp r10d,10000000h 10 - 0000000000003409: 0F 84 81 00 00 00 je L$10rounds_alt - 000000000000340F: 41 0F 11 00 movups xmmword ptr [r8],xmm0 - 0000000000003413: 66 0F 3A DF C8 01 aeskeygenassist xmm1,xmm0,1 - 0000000000003419: E8 49 04 00 00 call L$key_expansion_128_cold - 000000000000341E: 66 0F 3A DF C8 02 aeskeygenassist xmm1,xmm0,2 - 0000000000003424: E8 37 04 00 00 call L$key_expansion_128 - 0000000000003429: 66 0F 3A DF C8 04 aeskeygenassist xmm1,xmm0,4 - 000000000000342F: E8 2C 04 00 00 call L$key_expansion_128 - 0000000000003434: 66 0F 3A DF C8 08 aeskeygenassist xmm1,xmm0,8 - 000000000000343A: E8 21 04 00 00 call L$key_expansion_128 - 000000000000343F: 66 0F 3A DF C8 10 aeskeygenassist xmm1,xmm0,10h - 0000000000003445: E8 16 04 00 00 call L$key_expansion_128 - 000000000000344A: 66 0F 3A DF C8 20 aeskeygenassist xmm1,xmm0,20h - 0000000000003450: E8 0B 04 00 00 call L$key_expansion_128 - 0000000000003455: 66 0F 3A DF C8 40 aeskeygenassist xmm1,xmm0,40h - 000000000000345B: E8 00 04 00 00 call L$key_expansion_128 - 0000000000003460: 66 0F 3A DF C8 80 aeskeygenassist xmm1,xmm0,80h - 0000000000003466: E8 F5 03 00 00 call L$key_expansion_128 - 000000000000346B: 66 0F 3A DF C8 1B aeskeygenassist xmm1,xmm0,1Bh - 0000000000003471: E8 EA 03 00 00 call L$key_expansion_128 - 0000000000003476: 66 0F 3A DF C8 36 aeskeygenassist xmm1,xmm0,36h - 000000000000347C: E8 DF 03 00 00 call L$key_expansion_128 - 0000000000003481: 0F 11 00 movups xmmword ptr [rax],xmm0 - 0000000000003484: 89 50 50 mov dword ptr [rax+50h],edx - 0000000000003487: 31 C0 xor eax,eax - 0000000000003489: E9 A9 03 00 00 jmp L$enc_key_ret - 000000000000348E: 90 nop - 000000000000348F: 90 nop + 0000000000003189: 0F 84 81 00 00 00 je L$10rounds_alt + 000000000000318F: 41 0F 11 00 movups xmmword ptr [r8],xmm0 + 0000000000003193: 66 0F 3A DF C8 01 aeskeygenassist xmm1,xmm0,1 + 0000000000003199: E8 49 04 00 00 call L$key_expansion_128_cold + 000000000000319E: 66 0F 3A DF C8 02 aeskeygenassist xmm1,xmm0,2 + 00000000000031A4: E8 37 04 00 00 call L$key_expansion_128 + 00000000000031A9: 66 0F 3A DF C8 04 aeskeygenassist xmm1,xmm0,4 + 00000000000031AF: E8 2C 04 00 00 call L$key_expansion_128 + 00000000000031B4: 66 0F 3A DF C8 08 aeskeygenassist xmm1,xmm0,8 + 00000000000031BA: E8 21 04 00 00 call L$key_expansion_128 + 00000000000031BF: 66 0F 3A DF C8 10 aeskeygenassist xmm1,xmm0,10h + 00000000000031C5: E8 16 04 00 00 call L$key_expansion_128 + 00000000000031CA: 66 0F 3A DF C8 20 aeskeygenassist xmm1,xmm0,20h + 00000000000031D0: E8 0B 04 00 00 call L$key_expansion_128 + 00000000000031D5: 66 0F 3A DF C8 40 aeskeygenassist xmm1,xmm0,40h + 00000000000031DB: E8 00 04 00 00 call L$key_expansion_128 + 00000000000031E0: 66 0F 3A DF C8 80 aeskeygenassist xmm1,xmm0,80h + 00000000000031E6: E8 F5 03 00 00 call L$key_expansion_128 + 00000000000031EB: 66 0F 3A DF C8 1B aeskeygenassist xmm1,xmm0,1Bh + 00000000000031F1: E8 EA 03 00 00 call L$key_expansion_128 + 00000000000031F6: 66 0F 3A DF C8 36 aeskeygenassist xmm1,xmm0,36h + 00000000000031FC: E8 DF 03 00 00 call L$key_expansion_128 + 0000000000003201: 0F 11 00 movups xmmword ptr [rax],xmm0 + 0000000000003204: 89 50 50 mov dword ptr [rax+50h],edx + 0000000000003207: 31 C0 xor eax,eax + 0000000000003209: E9 A9 03 00 00 jmp L$enc_key_ret + 000000000000320E: 90 nop + 000000000000320F: 90 nop L$10rounds_alt: - 0000000000003490: 66 0F 6F 2D 50 00 movdqa xmm5,xmmword ptr [.rdata+50h] + 0000000000003210: 66 0F 6F 2D 50 00 movdqa xmm5,xmmword ptr [.rdata+50h] 00 00 - 0000000000003498: 41 BA 08 00 00 00 mov r10d,8 - 000000000000349E: 66 0F 6F 25 70 00 movdqa xmm4,xmmword ptr [.rdata+70h] + 0000000000003218: 41 BA 08 00 00 00 mov r10d,8 + 000000000000321E: 66 0F 6F 25 70 00 movdqa xmm4,xmmword ptr [.rdata+70h] 00 00 - 00000000000034A6: 66 0F 6F D0 movdqa xmm2,xmm0 - 00000000000034AA: F3 41 0F 7F 00 movdqu xmmword ptr [r8],xmm0 - 00000000000034AF: E9 0C 00 00 00 jmp L$oop_key128 - 00000000000034B4: 90 nop - 00000000000034B5: 90 nop - 00000000000034B6: 90 nop - 00000000000034B7: 90 nop - 00000000000034B8: 90 nop - 00000000000034B9: 90 nop - 00000000000034BA: 90 nop - 00000000000034BB: 90 nop - 00000000000034BC: 90 nop - 00000000000034BD: 90 nop - 00000000000034BE: 90 nop - 00000000000034BF: 90 nop + 0000000000003226: 66 0F 6F D0 movdqa xmm2,xmm0 + 000000000000322A: F3 41 0F 7F 00 movdqu xmmword ptr [r8],xmm0 + 000000000000322F: E9 0C 00 00 00 jmp L$oop_key128 + 0000000000003234: 90 nop + 0000000000003235: 90 nop + 0000000000003236: 90 nop + 0000000000003237: 90 nop + 0000000000003238: 90 nop + 0000000000003239: 90 nop + 000000000000323A: 90 nop + 000000000000323B: 90 nop + 000000000000323C: 90 nop + 000000000000323D: 90 nop + 000000000000323E: 90 nop + 000000000000323F: 90 nop L$oop_key128: - 00000000000034C0: 66 0F 38 00 C5 pshufb xmm0,xmm5 - 00000000000034C5: 66 0F 38 DD C4 aesenclast xmm0,xmm4 - 00000000000034CA: 66 0F 72 F4 01 pslld xmm4,1 - 00000000000034CF: 48 8D 40 10 lea rax,[rax+10h] - 00000000000034D3: 66 0F 6F DA movdqa xmm3,xmm2 - 00000000000034D7: 66 0F 73 FA 04 pslldq xmm2,4 - 00000000000034DC: 66 0F EF DA pxor xmm3,xmm2 - 00000000000034E0: 66 0F 73 FA 04 pslldq xmm2,4 - 00000000000034E5: 66 0F EF DA pxor xmm3,xmm2 - 00000000000034E9: 66 0F 73 FA 04 pslldq xmm2,4 - 00000000000034EE: 66 0F EF D3 pxor xmm2,xmm3 - 00000000000034F2: 66 0F EF C2 pxor xmm0,xmm2 - 00000000000034F6: F3 0F 7F 40 F0 movdqu xmmword ptr [rax-10h],xmm0 - 00000000000034FB: 66 0F 6F D0 movdqa xmm2,xmm0 - 00000000000034FF: 41 FF CA dec r10d - 0000000000003502: 0F 85 B8 FF FF FF jne L$oop_key128 - 0000000000003508: 66 0F 6F 25 80 00 movdqa xmm4,xmmword ptr [.rdata+80h] + 0000000000003240: 66 0F 38 00 C5 pshufb xmm0,xmm5 + 0000000000003245: 66 0F 38 DD C4 aesenclast xmm0,xmm4 + 000000000000324A: 66 0F 72 F4 01 pslld xmm4,1 + 000000000000324F: 48 8D 40 10 lea rax,[rax+10h] + 0000000000003253: 66 0F 6F DA movdqa xmm3,xmm2 + 0000000000003257: 66 0F 73 FA 04 pslldq xmm2,4 + 000000000000325C: 66 0F EF DA pxor xmm3,xmm2 + 0000000000003260: 66 0F 73 FA 04 pslldq xmm2,4 + 0000000000003265: 66 0F EF DA pxor xmm3,xmm2 + 0000000000003269: 66 0F 73 FA 04 pslldq xmm2,4 + 000000000000326E: 66 0F EF D3 pxor xmm2,xmm3 + 0000000000003272: 66 0F EF C2 pxor xmm0,xmm2 + 0000000000003276: F3 0F 7F 40 F0 movdqu xmmword ptr [rax-10h],xmm0 + 000000000000327B: 66 0F 6F D0 movdqa xmm2,xmm0 + 000000000000327F: 41 FF CA dec r10d + 0000000000003282: 0F 85 B8 FF FF FF jne L$oop_key128 + 0000000000003288: 66 0F 6F 25 80 00 movdqa xmm4,xmmword ptr [.rdata+80h] 00 00 - 0000000000003510: 66 0F 38 00 C5 pshufb xmm0,xmm5 - 0000000000003515: 66 0F 38 DD C4 aesenclast xmm0,xmm4 - 000000000000351A: 66 0F 72 F4 01 pslld xmm4,1 - 000000000000351F: 66 0F 6F DA movdqa xmm3,xmm2 - 0000000000003523: 66 0F 73 FA 04 pslldq xmm2,4 - 0000000000003528: 66 0F EF DA pxor xmm3,xmm2 - 000000000000352C: 66 0F 73 FA 04 pslldq xmm2,4 - 0000000000003531: 66 0F EF DA pxor xmm3,xmm2 - 0000000000003535: 66 0F 73 FA 04 pslldq xmm2,4 - 000000000000353A: 66 0F EF D3 pxor xmm2,xmm3 - 000000000000353E: 66 0F EF C2 pxor xmm0,xmm2 - 0000000000003542: F3 0F 7F 00 movdqu xmmword ptr [rax],xmm0 - 0000000000003546: 66 0F 6F D0 movdqa xmm2,xmm0 - 000000000000354A: 66 0F 38 00 C5 pshufb xmm0,xmm5 - 000000000000354F: 66 0F 38 DD C4 aesenclast xmm0,xmm4 - 0000000000003554: 66 0F 6F DA movdqa xmm3,xmm2 - 0000000000003558: 66 0F 73 FA 04 pslldq xmm2,4 - 000000000000355D: 66 0F EF DA pxor xmm3,xmm2 - 0000000000003561: 66 0F 73 FA 04 pslldq xmm2,4 - 0000000000003566: 66 0F EF DA pxor xmm3,xmm2 - 000000000000356A: 66 0F 73 FA 04 pslldq xmm2,4 - 000000000000356F: 66 0F EF D3 pxor xmm2,xmm3 - 0000000000003573: 66 0F EF C2 pxor xmm0,xmm2 - 0000000000003577: F3 0F 7F 40 10 movdqu xmmword ptr [rax+10h],xmm0 - 000000000000357C: 89 50 60 mov dword ptr [rax+60h],edx - 000000000000357F: 31 C0 xor eax,eax - 0000000000003581: E9 B1 02 00 00 jmp L$enc_key_ret - 0000000000003586: 90 nop - 0000000000003587: 90 nop - 0000000000003588: 90 nop - 0000000000003589: 90 nop - 000000000000358A: 90 nop - 000000000000358B: 90 nop - 000000000000358C: 90 nop - 000000000000358D: 90 nop - 000000000000358E: 90 nop - 000000000000358F: 90 nop + 0000000000003290: 66 0F 38 00 C5 pshufb xmm0,xmm5 + 0000000000003295: 66 0F 38 DD C4 aesenclast xmm0,xmm4 + 000000000000329A: 66 0F 72 F4 01 pslld xmm4,1 + 000000000000329F: 66 0F 6F DA movdqa xmm3,xmm2 + 00000000000032A3: 66 0F 73 FA 04 pslldq xmm2,4 + 00000000000032A8: 66 0F EF DA pxor xmm3,xmm2 + 00000000000032AC: 66 0F 73 FA 04 pslldq xmm2,4 + 00000000000032B1: 66 0F EF DA pxor xmm3,xmm2 + 00000000000032B5: 66 0F 73 FA 04 pslldq xmm2,4 + 00000000000032BA: 66 0F EF D3 pxor xmm2,xmm3 + 00000000000032BE: 66 0F EF C2 pxor xmm0,xmm2 + 00000000000032C2: F3 0F 7F 00 movdqu xmmword ptr [rax],xmm0 + 00000000000032C6: 66 0F 6F D0 movdqa xmm2,xmm0 + 00000000000032CA: 66 0F 38 00 C5 pshufb xmm0,xmm5 + 00000000000032CF: 66 0F 38 DD C4 aesenclast xmm0,xmm4 + 00000000000032D4: 66 0F 6F DA movdqa xmm3,xmm2 + 00000000000032D8: 66 0F 73 FA 04 pslldq xmm2,4 + 00000000000032DD: 66 0F EF DA pxor xmm3,xmm2 + 00000000000032E1: 66 0F 73 FA 04 pslldq xmm2,4 + 00000000000032E6: 66 0F EF DA pxor xmm3,xmm2 + 00000000000032EA: 66 0F 73 FA 04 pslldq xmm2,4 + 00000000000032EF: 66 0F EF D3 pxor xmm2,xmm3 + 00000000000032F3: 66 0F EF C2 pxor xmm0,xmm2 + 00000000000032F7: F3 0F 7F 40 10 movdqu xmmword ptr [rax+10h],xmm0 + 00000000000032FC: 89 50 60 mov dword ptr [rax+60h],edx + 00000000000032FF: 31 C0 xor eax,eax + 0000000000003301: E9 B1 02 00 00 jmp L$enc_key_ret + 0000000000003306: 90 nop + 0000000000003307: 90 nop + 0000000000003308: 90 nop + 0000000000003309: 90 nop + 000000000000330A: 90 nop + 000000000000330B: 90 nop + 000000000000330C: 90 nop + 000000000000330D: 90 nop + 000000000000330E: 90 nop + 000000000000330F: 90 nop L$12rounds: - 0000000000003590: F3 0F 7E 51 10 movq xmm2,mmword ptr [rcx+10h] - 0000000000003595: BA 0B 00 00 00 mov edx,0Bh - 000000000000359A: 41 81 FA 00 00 00 cmp r10d,10000000h + 0000000000003310: F3 0F 7E 51 10 movq xmm2,mmword ptr [rcx+10h] + 0000000000003315: BA 0B 00 00 00 mov edx,0Bh + 000000000000331A: 41 81 FA 00 00 00 cmp r10d,10000000h 10 - 00000000000035A1: 0F 84 79 00 00 00 je L$12rounds_alt - 00000000000035A7: 41 0F 11 00 movups xmmword ptr [r8],xmm0 - 00000000000035AB: 66 0F 3A DF CA 01 aeskeygenassist xmm1,xmm2,1 - 00000000000035B1: E8 D1 02 00 00 call L$key_expansion_192a_cold - 00000000000035B6: 66 0F 3A DF CA 02 aeskeygenassist xmm1,xmm2,2 - 00000000000035BC: E8 FF 02 00 00 call L$key_expansion_192b - 00000000000035C1: 66 0F 3A DF CA 04 aeskeygenassist xmm1,xmm2,4 - 00000000000035C7: E8 B4 02 00 00 call L$key_expansion_192a - 00000000000035CC: 66 0F 3A DF CA 08 aeskeygenassist xmm1,xmm2,8 - 00000000000035D2: E8 E9 02 00 00 call L$key_expansion_192b - 00000000000035D7: 66 0F 3A DF CA 10 aeskeygenassist xmm1,xmm2,10h - 00000000000035DD: E8 9E 02 00 00 call L$key_expansion_192a - 00000000000035E2: 66 0F 3A DF CA 20 aeskeygenassist xmm1,xmm2,20h - 00000000000035E8: E8 D3 02 00 00 call L$key_expansion_192b - 00000000000035ED: 66 0F 3A DF CA 40 aeskeygenassist xmm1,xmm2,40h - 00000000000035F3: E8 88 02 00 00 call L$key_expansion_192a - 00000000000035F8: 66 0F 3A DF CA 80 aeskeygenassist xmm1,xmm2,80h - 00000000000035FE: E8 BD 02 00 00 call L$key_expansion_192b - 0000000000003603: 0F 11 00 movups xmmword ptr [rax],xmm0 - 0000000000003606: 89 50 30 mov dword ptr [rax+30h],edx - 0000000000003609: 48 31 C0 xor rax,rax - 000000000000360C: E9 26 02 00 00 jmp L$enc_key_ret - 0000000000003611: 90 nop - 0000000000003612: 90 nop - 0000000000003613: 90 nop - 0000000000003614: 90 nop - 0000000000003615: 90 nop - 0000000000003616: 90 nop - 0000000000003617: 90 nop - 0000000000003618: 90 nop - 0000000000003619: 90 nop - 000000000000361A: 90 nop - 000000000000361B: 90 nop - 000000000000361C: 90 nop - 000000000000361D: 90 nop - 000000000000361E: 90 nop - 000000000000361F: 90 nop + 0000000000003321: 0F 84 79 00 00 00 je L$12rounds_alt + 0000000000003327: 41 0F 11 00 movups xmmword ptr [r8],xmm0 + 000000000000332B: 66 0F 3A DF CA 01 aeskeygenassist xmm1,xmm2,1 + 0000000000003331: E8 D1 02 00 00 call L$key_expansion_192a_cold + 0000000000003336: 66 0F 3A DF CA 02 aeskeygenassist xmm1,xmm2,2 + 000000000000333C: E8 FF 02 00 00 call L$key_expansion_192b + 0000000000003341: 66 0F 3A DF CA 04 aeskeygenassist xmm1,xmm2,4 + 0000000000003347: E8 B4 02 00 00 call L$key_expansion_192a + 000000000000334C: 66 0F 3A DF CA 08 aeskeygenassist xmm1,xmm2,8 + 0000000000003352: E8 E9 02 00 00 call L$key_expansion_192b + 0000000000003357: 66 0F 3A DF CA 10 aeskeygenassist xmm1,xmm2,10h + 000000000000335D: E8 9E 02 00 00 call L$key_expansion_192a + 0000000000003362: 66 0F 3A DF CA 20 aeskeygenassist xmm1,xmm2,20h + 0000000000003368: E8 D3 02 00 00 call L$key_expansion_192b + 000000000000336D: 66 0F 3A DF CA 40 aeskeygenassist xmm1,xmm2,40h + 0000000000003373: E8 88 02 00 00 call L$key_expansion_192a + 0000000000003378: 66 0F 3A DF CA 80 aeskeygenassist xmm1,xmm2,80h + 000000000000337E: E8 BD 02 00 00 call L$key_expansion_192b + 0000000000003383: 0F 11 00 movups xmmword ptr [rax],xmm0 + 0000000000003386: 89 50 30 mov dword ptr [rax+30h],edx + 0000000000003389: 48 31 C0 xor rax,rax + 000000000000338C: E9 26 02 00 00 jmp L$enc_key_ret + 0000000000003391: 90 nop + 0000000000003392: 90 nop + 0000000000003393: 90 nop + 0000000000003394: 90 nop + 0000000000003395: 90 nop + 0000000000003396: 90 nop + 0000000000003397: 90 nop + 0000000000003398: 90 nop + 0000000000003399: 90 nop + 000000000000339A: 90 nop + 000000000000339B: 90 nop + 000000000000339C: 90 nop + 000000000000339D: 90 nop + 000000000000339E: 90 nop + 000000000000339F: 90 nop L$12rounds_alt: - 0000000000003620: 66 0F 6F 2D 60 00 movdqa xmm5,xmmword ptr [.rdata+60h] + 00000000000033A0: 66 0F 6F 2D 60 00 movdqa xmm5,xmmword ptr [.rdata+60h] 00 00 - 0000000000003628: 66 0F 6F 25 70 00 movdqa xmm4,xmmword ptr [.rdata+70h] + 00000000000033A8: 66 0F 6F 25 70 00 movdqa xmm4,xmmword ptr [.rdata+70h] 00 00 - 0000000000003630: 41 BA 08 00 00 00 mov r10d,8 - 0000000000003636: F3 41 0F 7F 00 movdqu xmmword ptr [r8],xmm0 - 000000000000363B: E9 00 00 00 00 jmp L$oop_key192 + 00000000000033B0: 41 BA 08 00 00 00 mov r10d,8 + 00000000000033B6: F3 41 0F 7F 00 movdqu xmmword ptr [r8],xmm0 + 00000000000033BB: E9 00 00 00 00 jmp L$oop_key192 L$oop_key192: - 0000000000003640: 66 0F D6 10 movq mmword ptr [rax],xmm2 - 0000000000003644: 66 0F 6F CA movdqa xmm1,xmm2 - 0000000000003648: 66 0F 38 00 D5 pshufb xmm2,xmm5 - 000000000000364D: 66 0F 38 DD D4 aesenclast xmm2,xmm4 - 0000000000003652: 66 0F 72 F4 01 pslld xmm4,1 - 0000000000003657: 48 8D 40 18 lea rax,[rax+18h] - 000000000000365B: 66 0F 6F D8 movdqa xmm3,xmm0 - 000000000000365F: 66 0F 73 F8 04 pslldq xmm0,4 - 0000000000003664: 66 0F EF D8 pxor xmm3,xmm0 - 0000000000003668: 66 0F 73 F8 04 pslldq xmm0,4 - 000000000000366D: 66 0F EF D8 pxor xmm3,xmm0 - 0000000000003671: 66 0F 73 F8 04 pslldq xmm0,4 - 0000000000003676: 66 0F EF C3 pxor xmm0,xmm3 - 000000000000367A: 66 0F 70 D8 FF pshufd xmm3,xmm0,0FFh - 000000000000367F: 66 0F EF D9 pxor xmm3,xmm1 - 0000000000003683: 66 0F 73 F9 04 pslldq xmm1,4 - 0000000000003688: 66 0F EF D9 pxor xmm3,xmm1 - 000000000000368C: 66 0F EF C2 pxor xmm0,xmm2 - 0000000000003690: 66 0F EF D3 pxor xmm2,xmm3 - 0000000000003694: F3 0F 7F 40 F0 movdqu xmmword ptr [rax-10h],xmm0 - 0000000000003699: 41 FF CA dec r10d - 000000000000369C: 0F 85 9E FF FF FF jne L$oop_key192 - 00000000000036A2: 89 50 20 mov dword ptr [rax+20h],edx - 00000000000036A5: 31 C0 xor eax,eax - 00000000000036A7: E9 8B 01 00 00 jmp L$enc_key_ret - 00000000000036AC: 90 nop - 00000000000036AD: 90 nop - 00000000000036AE: 90 nop - 00000000000036AF: 90 nop + 00000000000033C0: 66 0F D6 10 movq mmword ptr [rax],xmm2 + 00000000000033C4: 66 0F 6F CA movdqa xmm1,xmm2 + 00000000000033C8: 66 0F 38 00 D5 pshufb xmm2,xmm5 + 00000000000033CD: 66 0F 38 DD D4 aesenclast xmm2,xmm4 + 00000000000033D2: 66 0F 72 F4 01 pslld xmm4,1 + 00000000000033D7: 48 8D 40 18 lea rax,[rax+18h] + 00000000000033DB: 66 0F 6F D8 movdqa xmm3,xmm0 + 00000000000033DF: 66 0F 73 F8 04 pslldq xmm0,4 + 00000000000033E4: 66 0F EF D8 pxor xmm3,xmm0 + 00000000000033E8: 66 0F 73 F8 04 pslldq xmm0,4 + 00000000000033ED: 66 0F EF D8 pxor xmm3,xmm0 + 00000000000033F1: 66 0F 73 F8 04 pslldq xmm0,4 + 00000000000033F6: 66 0F EF C3 pxor xmm0,xmm3 + 00000000000033FA: 66 0F 70 D8 FF pshufd xmm3,xmm0,0FFh + 00000000000033FF: 66 0F EF D9 pxor xmm3,xmm1 + 0000000000003403: 66 0F 73 F9 04 pslldq xmm1,4 + 0000000000003408: 66 0F EF D9 pxor xmm3,xmm1 + 000000000000340C: 66 0F EF C2 pxor xmm0,xmm2 + 0000000000003410: 66 0F EF D3 pxor xmm2,xmm3 + 0000000000003414: F3 0F 7F 40 F0 movdqu xmmword ptr [rax-10h],xmm0 + 0000000000003419: 41 FF CA dec r10d + 000000000000341C: 0F 85 9E FF FF FF jne L$oop_key192 + 0000000000003422: 89 50 20 mov dword ptr [rax+20h],edx + 0000000000003425: 31 C0 xor eax,eax + 0000000000003427: E9 8B 01 00 00 jmp L$enc_key_ret + 000000000000342C: 90 nop + 000000000000342D: 90 nop + 000000000000342E: 90 nop + 000000000000342F: 90 nop L$14rounds: - 00000000000036B0: 0F 10 51 10 movups xmm2,xmmword ptr [rcx+10h] - 00000000000036B4: BA 0D 00 00 00 mov edx,0Dh - 00000000000036B9: 48 8D 40 10 lea rax,[rax+10h] - 00000000000036BD: 41 81 FA 00 00 00 cmp r10d,10000000h + 0000000000003430: 0F 10 51 10 movups xmm2,xmmword ptr [rcx+10h] + 0000000000003434: BA 0D 00 00 00 mov edx,0Dh + 0000000000003439: 48 8D 40 10 lea rax,[rax+10h] + 000000000000343D: 41 81 FA 00 00 00 cmp r10d,10000000h 10 - 00000000000036C4: 0F 84 A6 00 00 00 je L$14rounds_alt - 00000000000036CA: 41 0F 11 00 movups xmmword ptr [r8],xmm0 - 00000000000036CE: 41 0F 11 50 10 movups xmmword ptr [r8+10h],xmm2 - 00000000000036D3: 66 0F 3A DF CA 01 aeskeygenassist xmm1,xmm2,1 - 00000000000036D9: E8 09 02 00 00 call L$key_expansion_256a_cold - 00000000000036DE: 66 0F 3A DF C8 01 aeskeygenassist xmm1,xmm0,1 - 00000000000036E4: E8 17 02 00 00 call L$key_expansion_256b - 00000000000036E9: 66 0F 3A DF CA 02 aeskeygenassist xmm1,xmm2,2 - 00000000000036EF: E8 EC 01 00 00 call L$key_expansion_256a - 00000000000036F4: 66 0F 3A DF C8 02 aeskeygenassist xmm1,xmm0,2 - 00000000000036FA: E8 01 02 00 00 call L$key_expansion_256b - 00000000000036FF: 66 0F 3A DF CA 04 aeskeygenassist xmm1,xmm2,4 - 0000000000003705: E8 D6 01 00 00 call L$key_expansion_256a - 000000000000370A: 66 0F 3A DF C8 04 aeskeygenassist xmm1,xmm0,4 - 0000000000003710: E8 EB 01 00 00 call L$key_expansion_256b - 0000000000003715: 66 0F 3A DF CA 08 aeskeygenassist xmm1,xmm2,8 - 000000000000371B: E8 C0 01 00 00 call L$key_expansion_256a - 0000000000003720: 66 0F 3A DF C8 08 aeskeygenassist xmm1,xmm0,8 - 0000000000003726: E8 D5 01 00 00 call L$key_expansion_256b - 000000000000372B: 66 0F 3A DF CA 10 aeskeygenassist xmm1,xmm2,10h - 0000000000003731: E8 AA 01 00 00 call L$key_expansion_256a - 0000000000003736: 66 0F 3A DF C8 10 aeskeygenassist xmm1,xmm0,10h - 000000000000373C: E8 BF 01 00 00 call L$key_expansion_256b - 0000000000003741: 66 0F 3A DF CA 20 aeskeygenassist xmm1,xmm2,20h - 0000000000003747: E8 94 01 00 00 call L$key_expansion_256a - 000000000000374C: 66 0F 3A DF C8 20 aeskeygenassist xmm1,xmm0,20h - 0000000000003752: E8 A9 01 00 00 call L$key_expansion_256b - 0000000000003757: 66 0F 3A DF CA 40 aeskeygenassist xmm1,xmm2,40h - 000000000000375D: E8 7E 01 00 00 call L$key_expansion_256a - 0000000000003762: 0F 11 00 movups xmmword ptr [rax],xmm0 - 0000000000003765: 89 50 10 mov dword ptr [rax+10h],edx - 0000000000003768: 48 31 C0 xor rax,rax - 000000000000376B: E9 C7 00 00 00 jmp L$enc_key_ret + 0000000000003444: 0F 84 A6 00 00 00 je L$14rounds_alt + 000000000000344A: 41 0F 11 00 movups xmmword ptr [r8],xmm0 + 000000000000344E: 41 0F 11 50 10 movups xmmword ptr [r8+10h],xmm2 + 0000000000003453: 66 0F 3A DF CA 01 aeskeygenassist xmm1,xmm2,1 + 0000000000003459: E8 09 02 00 00 call L$key_expansion_256a_cold + 000000000000345E: 66 0F 3A DF C8 01 aeskeygenassist xmm1,xmm0,1 + 0000000000003464: E8 17 02 00 00 call L$key_expansion_256b + 0000000000003469: 66 0F 3A DF CA 02 aeskeygenassist xmm1,xmm2,2 + 000000000000346F: E8 EC 01 00 00 call L$key_expansion_256a + 0000000000003474: 66 0F 3A DF C8 02 aeskeygenassist xmm1,xmm0,2 + 000000000000347A: E8 01 02 00 00 call L$key_expansion_256b + 000000000000347F: 66 0F 3A DF CA 04 aeskeygenassist xmm1,xmm2,4 + 0000000000003485: E8 D6 01 00 00 call L$key_expansion_256a + 000000000000348A: 66 0F 3A DF C8 04 aeskeygenassist xmm1,xmm0,4 + 0000000000003490: E8 EB 01 00 00 call L$key_expansion_256b + 0000000000003495: 66 0F 3A DF CA 08 aeskeygenassist xmm1,xmm2,8 + 000000000000349B: E8 C0 01 00 00 call L$key_expansion_256a + 00000000000034A0: 66 0F 3A DF C8 08 aeskeygenassist xmm1,xmm0,8 + 00000000000034A6: E8 D5 01 00 00 call L$key_expansion_256b + 00000000000034AB: 66 0F 3A DF CA 10 aeskeygenassist xmm1,xmm2,10h + 00000000000034B1: E8 AA 01 00 00 call L$key_expansion_256a + 00000000000034B6: 66 0F 3A DF C8 10 aeskeygenassist xmm1,xmm0,10h + 00000000000034BC: E8 BF 01 00 00 call L$key_expansion_256b + 00000000000034C1: 66 0F 3A DF CA 20 aeskeygenassist xmm1,xmm2,20h + 00000000000034C7: E8 94 01 00 00 call L$key_expansion_256a + 00000000000034CC: 66 0F 3A DF C8 20 aeskeygenassist xmm1,xmm0,20h + 00000000000034D2: E8 A9 01 00 00 call L$key_expansion_256b + 00000000000034D7: 66 0F 3A DF CA 40 aeskeygenassist xmm1,xmm2,40h + 00000000000034DD: E8 7E 01 00 00 call L$key_expansion_256a + 00000000000034E2: 0F 11 00 movups xmmword ptr [rax],xmm0 + 00000000000034E5: 89 50 10 mov dword ptr [rax+10h],edx + 00000000000034E8: 48 31 C0 xor rax,rax + 00000000000034EB: E9 C7 00 00 00 jmp L$enc_key_ret L$14rounds_alt: - 0000000000003770: 66 0F 6F 2D 50 00 movdqa xmm5,xmmword ptr [.rdata+50h] + 00000000000034F0: 66 0F 6F 2D 50 00 movdqa xmm5,xmmword ptr [.rdata+50h] 00 00 - 0000000000003778: 66 0F 6F 25 70 00 movdqa xmm4,xmmword ptr [.rdata+70h] + 00000000000034F8: 66 0F 6F 25 70 00 movdqa xmm4,xmmword ptr [.rdata+70h] 00 00 - 0000000000003780: 41 BA 07 00 00 00 mov r10d,7 - 0000000000003786: F3 41 0F 7F 00 movdqu xmmword ptr [r8],xmm0 - 000000000000378B: 66 0F 6F CA movdqa xmm1,xmm2 - 000000000000378F: F3 41 0F 7F 50 10 movdqu xmmword ptr [r8+10h],xmm2 - 0000000000003795: E9 06 00 00 00 jmp L$oop_key256 - 000000000000379A: 90 nop - 000000000000379B: 90 nop - 000000000000379C: 90 nop - 000000000000379D: 90 nop - 000000000000379E: 90 nop - 000000000000379F: 90 nop + 0000000000003500: 41 BA 07 00 00 00 mov r10d,7 + 0000000000003506: F3 41 0F 7F 00 movdqu xmmword ptr [r8],xmm0 + 000000000000350B: 66 0F 6F CA movdqa xmm1,xmm2 + 000000000000350F: F3 41 0F 7F 50 10 movdqu xmmword ptr [r8+10h],xmm2 + 0000000000003515: E9 06 00 00 00 jmp L$oop_key256 + 000000000000351A: 90 nop + 000000000000351B: 90 nop + 000000000000351C: 90 nop + 000000000000351D: 90 nop + 000000000000351E: 90 nop + 000000000000351F: 90 nop L$oop_key256: - 00000000000037A0: 66 0F 38 00 D5 pshufb xmm2,xmm5 - 00000000000037A5: 66 0F 38 DD D4 aesenclast xmm2,xmm4 - 00000000000037AA: 66 0F 6F D8 movdqa xmm3,xmm0 - 00000000000037AE: 66 0F 73 F8 04 pslldq xmm0,4 - 00000000000037B3: 66 0F EF D8 pxor xmm3,xmm0 - 00000000000037B7: 66 0F 73 F8 04 pslldq xmm0,4 - 00000000000037BC: 66 0F EF D8 pxor xmm3,xmm0 - 00000000000037C0: 66 0F 73 F8 04 pslldq xmm0,4 - 00000000000037C5: 66 0F EF C3 pxor xmm0,xmm3 - 00000000000037C9: 66 0F 72 F4 01 pslld xmm4,1 - 00000000000037CE: 66 0F EF C2 pxor xmm0,xmm2 - 00000000000037D2: F3 0F 7F 00 movdqu xmmword ptr [rax],xmm0 - 00000000000037D6: 41 FF CA dec r10d - 00000000000037D9: 0F 84 43 00 00 00 je L$done_key256 - 00000000000037DF: 66 0F 70 D0 FF pshufd xmm2,xmm0,0FFh - 00000000000037E4: 66 0F EF DB pxor xmm3,xmm3 - 00000000000037E8: 66 0F 38 DD D3 aesenclast xmm2,xmm3 - 00000000000037ED: 66 0F 6F D9 movdqa xmm3,xmm1 - 00000000000037F1: 66 0F 73 F9 04 pslldq xmm1,4 - 00000000000037F6: 66 0F EF D9 pxor xmm3,xmm1 - 00000000000037FA: 66 0F 73 F9 04 pslldq xmm1,4 - 00000000000037FF: 66 0F EF D9 pxor xmm3,xmm1 - 0000000000003803: 66 0F 73 F9 04 pslldq xmm1,4 - 0000000000003808: 66 0F EF CB pxor xmm1,xmm3 - 000000000000380C: 66 0F EF D1 pxor xmm2,xmm1 - 0000000000003810: F3 0F 7F 50 10 movdqu xmmword ptr [rax+10h],xmm2 - 0000000000003815: 48 8D 40 20 lea rax,[rax+20h] - 0000000000003819: 66 0F 6F CA movdqa xmm1,xmm2 - 000000000000381D: E9 7E FF FF FF jmp L$oop_key256 + 0000000000003520: 66 0F 38 00 D5 pshufb xmm2,xmm5 + 0000000000003525: 66 0F 38 DD D4 aesenclast xmm2,xmm4 + 000000000000352A: 66 0F 6F D8 movdqa xmm3,xmm0 + 000000000000352E: 66 0F 73 F8 04 pslldq xmm0,4 + 0000000000003533: 66 0F EF D8 pxor xmm3,xmm0 + 0000000000003537: 66 0F 73 F8 04 pslldq xmm0,4 + 000000000000353C: 66 0F EF D8 pxor xmm3,xmm0 + 0000000000003540: 66 0F 73 F8 04 pslldq xmm0,4 + 0000000000003545: 66 0F EF C3 pxor xmm0,xmm3 + 0000000000003549: 66 0F 72 F4 01 pslld xmm4,1 + 000000000000354E: 66 0F EF C2 pxor xmm0,xmm2 + 0000000000003552: F3 0F 7F 00 movdqu xmmword ptr [rax],xmm0 + 0000000000003556: 41 FF CA dec r10d + 0000000000003559: 0F 84 43 00 00 00 je L$done_key256 + 000000000000355F: 66 0F 70 D0 FF pshufd xmm2,xmm0,0FFh + 0000000000003564: 66 0F EF DB pxor xmm3,xmm3 + 0000000000003568: 66 0F 38 DD D3 aesenclast xmm2,xmm3 + 000000000000356D: 66 0F 6F D9 movdqa xmm3,xmm1 + 0000000000003571: 66 0F 73 F9 04 pslldq xmm1,4 + 0000000000003576: 66 0F EF D9 pxor xmm3,xmm1 + 000000000000357A: 66 0F 73 F9 04 pslldq xmm1,4 + 000000000000357F: 66 0F EF D9 pxor xmm3,xmm1 + 0000000000003583: 66 0F 73 F9 04 pslldq xmm1,4 + 0000000000003588: 66 0F EF CB pxor xmm1,xmm3 + 000000000000358C: 66 0F EF D1 pxor xmm2,xmm1 + 0000000000003590: F3 0F 7F 50 10 movdqu xmmword ptr [rax+10h],xmm2 + 0000000000003595: 48 8D 40 20 lea rax,[rax+20h] + 0000000000003599: 66 0F 6F CA movdqa xmm1,xmm2 + 000000000000359D: E9 7E FF FF FF jmp L$oop_key256 L$done_key256: - 0000000000003822: 89 50 10 mov dword ptr [rax+10h],edx - 0000000000003825: 31 C0 xor eax,eax - 0000000000003827: E9 0B 00 00 00 jmp L$enc_key_ret - 000000000000382C: 90 nop - 000000000000382D: 90 nop - 000000000000382E: 90 nop - 000000000000382F: 90 nop + 00000000000035A2: 89 50 10 mov dword ptr [rax+10h],edx + 00000000000035A5: 31 C0 xor eax,eax + 00000000000035A7: E9 0B 00 00 00 jmp L$enc_key_ret + 00000000000035AC: 90 nop + 00000000000035AD: 90 nop + 00000000000035AE: 90 nop + 00000000000035AF: 90 nop L$bad_keybits: - 0000000000003830: 48 C7 C0 FE FF FF mov rax,0FFFFFFFFFFFFFFFEh + 00000000000035B0: 48 C7 C0 FE FF FF mov rax,0FFFFFFFFFFFFFFFEh FF L$enc_key_ret: - 0000000000003837: 66 0F EF C0 pxor xmm0,xmm0 - 000000000000383B: 66 0F EF C9 pxor xmm1,xmm1 - 000000000000383F: 66 0F EF D2 pxor xmm2,xmm2 - 0000000000003843: 66 0F EF DB pxor xmm3,xmm3 - 0000000000003847: 66 0F EF E4 pxor xmm4,xmm4 - 000000000000384B: 66 0F EF ED pxor xmm5,xmm5 - 000000000000384F: 48 83 C4 08 add rsp,8 - 0000000000003853: F3 C3 rep ret + 00000000000035B7: 66 0F EF C0 pxor xmm0,xmm0 + 00000000000035BB: 66 0F EF C9 pxor xmm1,xmm1 + 00000000000035BF: 66 0F EF D2 pxor xmm2,xmm2 + 00000000000035C3: 66 0F EF DB pxor xmm3,xmm3 + 00000000000035C7: 66 0F EF E4 pxor xmm4,xmm4 + 00000000000035CB: 66 0F EF ED pxor xmm5,xmm5 + 00000000000035CF: 48 83 C4 08 add rsp,8 + 00000000000035D3: F3 C3 rep ret L$SEH_end_set_encrypt_key: - 0000000000003855: 90 nop - 0000000000003856: 90 nop - 0000000000003857: 90 nop - 0000000000003858: 90 nop - 0000000000003859: 90 nop - 000000000000385A: 90 nop - 000000000000385B: 90 nop - 000000000000385C: 90 nop - 000000000000385D: 90 nop - 000000000000385E: 90 nop - 000000000000385F: 90 nop + 00000000000035D5: 90 nop + 00000000000035D6: 90 nop + 00000000000035D7: 90 nop + 00000000000035D8: 90 nop + 00000000000035D9: 90 nop + 00000000000035DA: 90 nop + 00000000000035DB: 90 nop + 00000000000035DC: 90 nop + 00000000000035DD: 90 nop + 00000000000035DE: 90 nop + 00000000000035DF: 90 nop L$key_expansion_128: - 0000000000003860: 0F 11 00 movups xmmword ptr [rax],xmm0 - 0000000000003863: 48 8D 40 10 lea rax,[rax+10h] + 00000000000035E0: 0F 11 00 movups xmmword ptr [rax],xmm0 + 00000000000035E3: 48 8D 40 10 lea rax,[rax+10h] L$key_expansion_128_cold: - 0000000000003867: 0F C6 E0 10 shufps xmm4,xmm0,10h - 000000000000386B: 0F 57 C4 xorps xmm0,xmm4 - 000000000000386E: 0F C6 E0 8C shufps xmm4,xmm0,8Ch - 0000000000003872: 0F 57 C4 xorps xmm0,xmm4 - 0000000000003875: 0F C6 C9 FF shufps xmm1,xmm1,0FFh - 0000000000003879: 0F 57 C1 xorps xmm0,xmm1 - 000000000000387C: F3 C3 rep ret - 000000000000387E: 90 nop - 000000000000387F: 90 nop + 00000000000035E7: 0F C6 E0 10 shufps xmm4,xmm0,10h + 00000000000035EB: 0F 57 C4 xorps xmm0,xmm4 + 00000000000035EE: 0F C6 E0 8C shufps xmm4,xmm0,8Ch + 00000000000035F2: 0F 57 C4 xorps xmm0,xmm4 + 00000000000035F5: 0F C6 C9 FF shufps xmm1,xmm1,0FFh + 00000000000035F9: 0F 57 C1 xorps xmm0,xmm1 + 00000000000035FC: F3 C3 rep ret + 00000000000035FE: 90 nop + 00000000000035FF: 90 nop L$key_expansion_192a: - 0000000000003880: 0F 11 00 movups xmmword ptr [rax],xmm0 - 0000000000003883: 48 8D 40 10 lea rax,[rax+10h] + 0000000000003600: 0F 11 00 movups xmmword ptr [rax],xmm0 + 0000000000003603: 48 8D 40 10 lea rax,[rax+10h] L$key_expansion_192a_cold: - 0000000000003887: 0F 28 EA movaps xmm5,xmm2 + 0000000000003607: 0F 28 EA movaps xmm5,xmm2 L$key_expansion_192b_warm: - 000000000000388A: 0F C6 E0 10 shufps xmm4,xmm0,10h - 000000000000388E: 66 0F 6F DA movdqa xmm3,xmm2 - 0000000000003892: 0F 57 C4 xorps xmm0,xmm4 - 0000000000003895: 0F C6 E0 8C shufps xmm4,xmm0,8Ch - 0000000000003899: 66 0F 73 FB 04 pslldq xmm3,4 - 000000000000389E: 0F 57 C4 xorps xmm0,xmm4 - 00000000000038A1: 66 0F 70 C9 55 pshufd xmm1,xmm1,55h - 00000000000038A6: 66 0F EF D3 pxor xmm2,xmm3 - 00000000000038AA: 66 0F EF C1 pxor xmm0,xmm1 - 00000000000038AE: 66 0F 70 D8 FF pshufd xmm3,xmm0,0FFh - 00000000000038B3: 66 0F EF D3 pxor xmm2,xmm3 - 00000000000038B7: F3 C3 rep ret - 00000000000038B9: 90 nop - 00000000000038BA: 90 nop - 00000000000038BB: 90 nop - 00000000000038BC: 90 nop - 00000000000038BD: 90 nop - 00000000000038BE: 90 nop - 00000000000038BF: 90 nop + 000000000000360A: 0F C6 E0 10 shufps xmm4,xmm0,10h + 000000000000360E: 66 0F 6F DA movdqa xmm3,xmm2 + 0000000000003612: 0F 57 C4 xorps xmm0,xmm4 + 0000000000003615: 0F C6 E0 8C shufps xmm4,xmm0,8Ch + 0000000000003619: 66 0F 73 FB 04 pslldq xmm3,4 + 000000000000361E: 0F 57 C4 xorps xmm0,xmm4 + 0000000000003621: 66 0F 70 C9 55 pshufd xmm1,xmm1,55h + 0000000000003626: 66 0F EF D3 pxor xmm2,xmm3 + 000000000000362A: 66 0F EF C1 pxor xmm0,xmm1 + 000000000000362E: 66 0F 70 D8 FF pshufd xmm3,xmm0,0FFh + 0000000000003633: 66 0F EF D3 pxor xmm2,xmm3 + 0000000000003637: F3 C3 rep ret + 0000000000003639: 90 nop + 000000000000363A: 90 nop + 000000000000363B: 90 nop + 000000000000363C: 90 nop + 000000000000363D: 90 nop + 000000000000363E: 90 nop + 000000000000363F: 90 nop L$key_expansion_192b: - 00000000000038C0: 0F 28 D8 movaps xmm3,xmm0 - 00000000000038C3: 0F C6 E8 44 shufps xmm5,xmm0,44h - 00000000000038C7: 0F 11 28 movups xmmword ptr [rax],xmm5 - 00000000000038CA: 0F C6 DA 4E shufps xmm3,xmm2,4Eh - 00000000000038CE: 0F 11 58 10 movups xmmword ptr [rax+10h],xmm3 - 00000000000038D2: 48 8D 40 20 lea rax,[rax+20h] - 00000000000038D6: E9 AF FF FF FF jmp L$key_expansion_192b_warm - 00000000000038DB: 90 nop - 00000000000038DC: 90 nop - 00000000000038DD: 90 nop - 00000000000038DE: 90 nop - 00000000000038DF: 90 nop + 0000000000003640: 0F 28 D8 movaps xmm3,xmm0 + 0000000000003643: 0F C6 E8 44 shufps xmm5,xmm0,44h + 0000000000003647: 0F 11 28 movups xmmword ptr [rax],xmm5 + 000000000000364A: 0F C6 DA 4E shufps xmm3,xmm2,4Eh + 000000000000364E: 0F 11 58 10 movups xmmword ptr [rax+10h],xmm3 + 0000000000003652: 48 8D 40 20 lea rax,[rax+20h] + 0000000000003656: E9 AF FF FF FF jmp L$key_expansion_192b_warm + 000000000000365B: 90 nop + 000000000000365C: 90 nop + 000000000000365D: 90 nop + 000000000000365E: 90 nop + 000000000000365F: 90 nop L$key_expansion_256a: - 00000000000038E0: 0F 11 10 movups xmmword ptr [rax],xmm2 - 00000000000038E3: 48 8D 40 10 lea rax,[rax+10h] + 0000000000003660: 0F 11 10 movups xmmword ptr [rax],xmm2 + 0000000000003663: 48 8D 40 10 lea rax,[rax+10h] L$key_expansion_256a_cold: - 00000000000038E7: 0F C6 E0 10 shufps xmm4,xmm0,10h - 00000000000038EB: 0F 57 C4 xorps xmm0,xmm4 - 00000000000038EE: 0F C6 E0 8C shufps xmm4,xmm0,8Ch - 00000000000038F2: 0F 57 C4 xorps xmm0,xmm4 - 00000000000038F5: 0F C6 C9 FF shufps xmm1,xmm1,0FFh - 00000000000038F9: 0F 57 C1 xorps xmm0,xmm1 - 00000000000038FC: F3 C3 rep ret - 00000000000038FE: 90 nop - 00000000000038FF: 90 nop + 0000000000003667: 0F C6 E0 10 shufps xmm4,xmm0,10h + 000000000000366B: 0F 57 C4 xorps xmm0,xmm4 + 000000000000366E: 0F C6 E0 8C shufps xmm4,xmm0,8Ch + 0000000000003672: 0F 57 C4 xorps xmm0,xmm4 + 0000000000003675: 0F C6 C9 FF shufps xmm1,xmm1,0FFh + 0000000000003679: 0F 57 C1 xorps xmm0,xmm1 + 000000000000367C: F3 C3 rep ret + 000000000000367E: 90 nop + 000000000000367F: 90 nop L$key_expansion_256b: - 0000000000003900: 0F 11 00 movups xmmword ptr [rax],xmm0 - 0000000000003903: 48 8D 40 10 lea rax,[rax+10h] - 0000000000003907: 0F C6 E2 10 shufps xmm4,xmm2,10h - 000000000000390B: 0F 57 D4 xorps xmm2,xmm4 - 000000000000390E: 0F C6 E2 8C shufps xmm4,xmm2,8Ch - 0000000000003912: 0F 57 D4 xorps xmm2,xmm4 - 0000000000003915: 0F C6 C9 AA shufps xmm1,xmm1,0AAh - 0000000000003919: 0F 57 D1 xorps xmm2,xmm1 - 000000000000391C: F3 C3 rep ret - 000000000000391E: 90 nop - 000000000000391F: 90 nop + 0000000000003680: 0F 11 00 movups xmmword ptr [rax],xmm0 + 0000000000003683: 48 8D 40 10 lea rax,[rax+10h] + 0000000000003687: 0F C6 E2 10 shufps xmm4,xmm2,10h + 000000000000368B: 0F 57 D4 xorps xmm2,xmm4 + 000000000000368E: 0F C6 E2 8C shufps xmm4,xmm2,8Ch + 0000000000003692: 0F 57 D4 xorps xmm2,xmm4 + 0000000000003695: 0F C6 C9 AA shufps xmm1,xmm1,0AAh + 0000000000003699: 0F 57 D1 xorps xmm2,xmm1 + 000000000000369C: F3 C3 rep ret + 000000000000369E: 90 nop + 000000000000369F: 90 nop ecb_ccm64_se_handler: - 0000000000003920: 56 push rsi - 0000000000003921: 57 push rdi - 0000000000003922: 53 push rbx - 0000000000003923: 55 push rbp - 0000000000003924: 41 54 push r12 - 0000000000003926: 41 55 push r13 - 0000000000003928: 41 56 push r14 - 000000000000392A: 41 57 push r15 - 000000000000392C: 9C pushfq - 000000000000392D: 48 83 EC 40 sub rsp,40h - 0000000000003931: 49 8B 40 78 mov rax,qword ptr [r8+78h] - 0000000000003935: 49 8B 98 F8 00 00 mov rbx,qword ptr [r8+0F8h] + 00000000000036A0: 56 push rsi + 00000000000036A1: 57 push rdi + 00000000000036A2: 53 push rbx + 00000000000036A3: 55 push rbp + 00000000000036A4: 41 54 push r12 + 00000000000036A6: 41 55 push r13 + 00000000000036A8: 41 56 push r14 + 00000000000036AA: 41 57 push r15 + 00000000000036AC: 9C pushfq + 00000000000036AD: 48 83 EC 40 sub rsp,40h + 00000000000036B1: 49 8B 40 78 mov rax,qword ptr [r8+78h] + 00000000000036B5: 49 8B 98 F8 00 00 mov rbx,qword ptr [r8+0F8h] 00 - 000000000000393C: 49 8B 71 08 mov rsi,qword ptr [r9+8] - 0000000000003940: 4D 8B 59 38 mov r11,qword ptr [r9+38h] - 0000000000003944: 45 8B 13 mov r10d,dword ptr [r11] - 0000000000003947: 4E 8D 14 16 lea r10,[rsi+r10] - 000000000000394B: 4C 39 D3 cmp rbx,r10 - 000000000000394E: 0F 82 3C 01 00 00 jb L$common_seh_tail - 0000000000003954: 49 8B 80 98 00 00 mov rax,qword ptr [r8+98h] + 00000000000036BC: 49 8B 71 08 mov rsi,qword ptr [r9+8] + 00000000000036C0: 4D 8B 59 38 mov r11,qword ptr [r9+38h] + 00000000000036C4: 45 8B 13 mov r10d,dword ptr [r11] + 00000000000036C7: 4E 8D 14 16 lea r10,[rsi+r10] + 00000000000036CB: 4C 39 D3 cmp rbx,r10 + 00000000000036CE: 0F 82 3C 01 00 00 jb L$common_seh_tail + 00000000000036D4: 49 8B 80 98 00 00 mov rax,qword ptr [r8+98h] 00 - 000000000000395B: 45 8B 53 04 mov r10d,dword ptr [r11+4] - 000000000000395F: 4E 8D 14 16 lea r10,[rsi+r10] - 0000000000003963: 4C 39 D3 cmp rbx,r10 - 0000000000003966: 0F 83 24 01 00 00 jae L$common_seh_tail - 000000000000396C: 48 8D 30 lea rsi,[rax] - 000000000000396F: 49 8D B8 00 02 00 lea rdi,[r8+200h] + 00000000000036DB: 45 8B 53 04 mov r10d,dword ptr [r11+4] + 00000000000036DF: 4E 8D 14 16 lea r10,[rsi+r10] + 00000000000036E3: 4C 39 D3 cmp rbx,r10 + 00000000000036E6: 0F 83 24 01 00 00 jae L$common_seh_tail + 00000000000036EC: 48 8D 30 lea rsi,[rax] + 00000000000036EF: 49 8D B8 00 02 00 lea rdi,[r8+200h] 00 - 0000000000003976: B9 08 00 00 00 mov ecx,8 - 000000000000397B: FC cld - 000000000000397C: F3 48 A5 rep movs qword ptr [rdi],qword ptr [rsi] - 000000000000397F: 48 8D 40 58 lea rax,[rax+58h] - 0000000000003983: E9 08 01 00 00 jmp L$common_seh_tail - 0000000000003988: 90 nop - 0000000000003989: 90 nop - 000000000000398A: 90 nop - 000000000000398B: 90 nop - 000000000000398C: 90 nop - 000000000000398D: 90 nop - 000000000000398E: 90 nop - 000000000000398F: 90 nop + 00000000000036F6: B9 08 00 00 00 mov ecx,8 + 00000000000036FB: FC cld + 00000000000036FC: F3 48 A5 rep movs qword ptr [rdi],qword ptr [rsi] + 00000000000036FF: 48 8D 40 58 lea rax,[rax+58h] + 0000000000003703: E9 08 01 00 00 jmp L$common_seh_tail + 0000000000003708: 90 nop + 0000000000003709: 90 nop + 000000000000370A: 90 nop + 000000000000370B: 90 nop + 000000000000370C: 90 nop + 000000000000370D: 90 nop + 000000000000370E: 90 nop + 000000000000370F: 90 nop ctr_xts_se_handler: - 0000000000003990: 56 push rsi - 0000000000003991: 57 push rdi - 0000000000003992: 53 push rbx - 0000000000003993: 55 push rbp - 0000000000003994: 41 54 push r12 - 0000000000003996: 41 55 push r13 - 0000000000003998: 41 56 push r14 - 000000000000399A: 41 57 push r15 - 000000000000399C: 9C pushfq - 000000000000399D: 48 83 EC 40 sub rsp,40h - 00000000000039A1: 49 8B 40 78 mov rax,qword ptr [r8+78h] - 00000000000039A5: 49 8B 98 F8 00 00 mov rbx,qword ptr [r8+0F8h] + 0000000000003710: 56 push rsi + 0000000000003711: 57 push rdi + 0000000000003712: 53 push rbx + 0000000000003713: 55 push rbp + 0000000000003714: 41 54 push r12 + 0000000000003716: 41 55 push r13 + 0000000000003718: 41 56 push r14 + 000000000000371A: 41 57 push r15 + 000000000000371C: 9C pushfq + 000000000000371D: 48 83 EC 40 sub rsp,40h + 0000000000003721: 49 8B 40 78 mov rax,qword ptr [r8+78h] + 0000000000003725: 49 8B 98 F8 00 00 mov rbx,qword ptr [r8+0F8h] 00 - 00000000000039AC: 49 8B 71 08 mov rsi,qword ptr [r9+8] - 00000000000039B0: 4D 8B 59 38 mov r11,qword ptr [r9+38h] - 00000000000039B4: 45 8B 13 mov r10d,dword ptr [r11] - 00000000000039B7: 4E 8D 14 16 lea r10,[rsi+r10] - 00000000000039BB: 4C 39 D3 cmp rbx,r10 - 00000000000039BE: 0F 82 CC 00 00 00 jb L$common_seh_tail - 00000000000039C4: 49 8B 80 98 00 00 mov rax,qword ptr [r8+98h] + 000000000000372C: 49 8B 71 08 mov rsi,qword ptr [r9+8] + 0000000000003730: 4D 8B 59 38 mov r11,qword ptr [r9+38h] + 0000000000003734: 45 8B 13 mov r10d,dword ptr [r11] + 0000000000003737: 4E 8D 14 16 lea r10,[rsi+r10] + 000000000000373B: 4C 39 D3 cmp rbx,r10 + 000000000000373E: 0F 82 CC 00 00 00 jb L$common_seh_tail + 0000000000003744: 49 8B 80 98 00 00 mov rax,qword ptr [r8+98h] 00 - 00000000000039CB: 45 8B 53 04 mov r10d,dword ptr [r11+4] - 00000000000039CF: 4E 8D 14 16 lea r10,[rsi+r10] - 00000000000039D3: 4C 39 D3 cmp rbx,r10 - 00000000000039D6: 0F 83 B4 00 00 00 jae L$common_seh_tail - 00000000000039DC: 49 8B 80 D0 00 00 mov rax,qword ptr [r8+0D0h] + 000000000000374B: 45 8B 53 04 mov r10d,dword ptr [r11+4] + 000000000000374F: 4E 8D 14 16 lea r10,[rsi+r10] + 0000000000003753: 4C 39 D3 cmp rbx,r10 + 0000000000003756: 0F 83 B4 00 00 00 jae L$common_seh_tail + 000000000000375C: 49 8B 80 D0 00 00 mov rax,qword ptr [r8+0D0h] 00 - 00000000000039E3: 48 8D B0 58 FF FF lea rsi,[rax-0A8h] + 0000000000003763: 48 8D B0 58 FF FF lea rsi,[rax-0A8h] FF - 00000000000039EA: 49 8D B8 00 02 00 lea rdi,[r8+200h] + 000000000000376A: 49 8D B8 00 02 00 lea rdi,[r8+200h] 00 - 00000000000039F1: B9 14 00 00 00 mov ecx,14h - 00000000000039F6: FC cld - 00000000000039F7: F3 48 A5 rep movs qword ptr [rdi],qword ptr [rsi] - 00000000000039FA: 48 8B 68 F8 mov rbp,qword ptr [rax-8] - 00000000000039FE: 49 89 A8 A0 00 00 mov qword ptr [r8+0A0h],rbp + 0000000000003771: B9 14 00 00 00 mov ecx,14h + 0000000000003776: FC cld + 0000000000003777: F3 48 A5 rep movs qword ptr [rdi],qword ptr [rsi] + 000000000000377A: 48 8B 68 F8 mov rbp,qword ptr [rax-8] + 000000000000377E: 49 89 A8 A0 00 00 mov qword ptr [r8+0A0h],rbp 00 - 0000000000003A05: E9 86 00 00 00 jmp L$common_seh_tail - 0000000000003A0A: 90 nop - 0000000000003A0B: 90 nop - 0000000000003A0C: 90 nop - 0000000000003A0D: 90 nop - 0000000000003A0E: 90 nop - 0000000000003A0F: 90 nop + 0000000000003785: E9 86 00 00 00 jmp L$common_seh_tail + 000000000000378A: 90 nop + 000000000000378B: 90 nop + 000000000000378C: 90 nop + 000000000000378D: 90 nop + 000000000000378E: 90 nop + 000000000000378F: 90 nop cbc_se_handler: - 0000000000003A10: 56 push rsi - 0000000000003A11: 57 push rdi - 0000000000003A12: 53 push rbx - 0000000000003A13: 55 push rbp - 0000000000003A14: 41 54 push r12 - 0000000000003A16: 41 55 push r13 - 0000000000003A18: 41 56 push r14 - 0000000000003A1A: 41 57 push r15 - 0000000000003A1C: 9C pushfq - 0000000000003A1D: 48 83 EC 40 sub rsp,40h - 0000000000003A21: 49 8B 80 98 00 00 mov rax,qword ptr [r8+98h] + 0000000000003790: 56 push rsi + 0000000000003791: 57 push rdi + 0000000000003792: 53 push rbx + 0000000000003793: 55 push rbp + 0000000000003794: 41 54 push r12 + 0000000000003796: 41 55 push r13 + 0000000000003798: 41 56 push r14 + 000000000000379A: 41 57 push r15 + 000000000000379C: 9C pushfq + 000000000000379D: 48 83 EC 40 sub rsp,40h + 00000000000037A1: 49 8B 80 98 00 00 mov rax,qword ptr [r8+98h] 00 - 0000000000003A28: 49 8B 98 F8 00 00 mov rbx,qword ptr [r8+0F8h] + 00000000000037A8: 49 8B 98 F8 00 00 mov rbx,qword ptr [r8+0F8h] 00 - 0000000000003A2F: 4C 8D 15 DA EF FF lea r10,[L$cbc_decrypt_bulk] + 00000000000037AF: 4C 8D 15 BA F0 FF lea r10,[L$cbc_decrypt_bulk] FF - 0000000000003A36: 4C 39 D3 cmp rbx,r10 - 0000000000003A39: 0F 82 51 00 00 00 jb L$common_seh_tail - 0000000000003A3F: 49 8B 40 78 mov rax,qword ptr [r8+78h] - 0000000000003A43: 4C 8D 15 19 F0 FF lea r10,[L$cbc_decrypt_body] + 00000000000037B6: 4C 39 D3 cmp rbx,r10 + 00000000000037B9: 0F 82 51 00 00 00 jb L$common_seh_tail + 00000000000037BF: 49 8B 40 78 mov rax,qword ptr [r8+78h] + 00000000000037C3: 4C 8D 15 F9 F0 FF lea r10,[L$cbc_decrypt_body] FF - 0000000000003A4A: 4C 39 D3 cmp rbx,r10 - 0000000000003A4D: 0F 82 3D 00 00 00 jb L$common_seh_tail - 0000000000003A53: 49 8B 80 98 00 00 mov rax,qword ptr [r8+98h] + 00000000000037CA: 4C 39 D3 cmp rbx,r10 + 00000000000037CD: 0F 82 3D 00 00 00 jb L$common_seh_tail + 00000000000037D3: 49 8B 80 98 00 00 mov rax,qword ptr [r8+98h] 00 - 0000000000003A5A: 4C 8D 15 AB F8 FF lea r10,[L$cbc_ret] + 00000000000037DA: 4C 8D 15 AB F8 FF lea r10,[L$cbc_ret] FF - 0000000000003A61: 4C 39 D3 cmp rbx,r10 - 0000000000003A64: 0F 83 26 00 00 00 jae L$common_seh_tail - 0000000000003A6A: 48 8D 70 10 lea rsi,[rax+10h] - 0000000000003A6E: 49 8D B8 00 02 00 lea rdi,[r8+200h] + 00000000000037E1: 4C 39 D3 cmp rbx,r10 + 00000000000037E4: 0F 83 26 00 00 00 jae L$common_seh_tail + 00000000000037EA: 48 8D 70 10 lea rsi,[rax+10h] + 00000000000037EE: 49 8D B8 00 02 00 lea rdi,[r8+200h] 00 - 0000000000003A75: B9 14 00 00 00 mov ecx,14h - 0000000000003A7A: FC cld - 0000000000003A7B: F3 48 A5 rep movs qword ptr [rdi],qword ptr [rsi] - 0000000000003A7E: 49 8B 80 D0 00 00 mov rax,qword ptr [r8+0D0h] + 00000000000037F5: B9 14 00 00 00 mov ecx,14h + 00000000000037FA: FC cld + 00000000000037FB: F3 48 A5 rep movs qword ptr [rdi],qword ptr [rsi] + 00000000000037FE: 49 8B 80 D0 00 00 mov rax,qword ptr [r8+0D0h] 00 - 0000000000003A85: 48 8B 68 F8 mov rbp,qword ptr [rax-8] - 0000000000003A89: 49 89 A8 A0 00 00 mov qword ptr [r8+0A0h],rbp + 0000000000003805: 48 8B 68 F8 mov rbp,qword ptr [rax-8] + 0000000000003809: 49 89 A8 A0 00 00 mov qword ptr [r8+0A0h],rbp 00 L$common_seh_tail: - 0000000000003A90: 48 8B 78 08 mov rdi,qword ptr [rax+8] - 0000000000003A94: 48 8B 70 10 mov rsi,qword ptr [rax+10h] - 0000000000003A98: 49 89 80 98 00 00 mov qword ptr [r8+98h],rax + 0000000000003810: 48 8B 78 08 mov rdi,qword ptr [rax+8] + 0000000000003814: 48 8B 70 10 mov rsi,qword ptr [rax+10h] + 0000000000003818: 49 89 80 98 00 00 mov qword ptr [r8+98h],rax 00 - 0000000000003A9F: 49 89 B0 A8 00 00 mov qword ptr [r8+0A8h],rsi + 000000000000381F: 49 89 B0 A8 00 00 mov qword ptr [r8+0A8h],rsi 00 - 0000000000003AA6: 49 89 B8 B0 00 00 mov qword ptr [r8+0B0h],rdi + 0000000000003826: 49 89 B8 B0 00 00 mov qword ptr [r8+0B0h],rdi 00 - 0000000000003AAD: 49 8B 79 28 mov rdi,qword ptr [r9+28h] - 0000000000003AB1: 4C 89 C6 mov rsi,r8 - 0000000000003AB4: B9 9A 00 00 00 mov ecx,9Ah - 0000000000003AB9: FC cld - 0000000000003ABA: F3 48 A5 rep movs qword ptr [rdi],qword ptr [rsi] - 0000000000003ABD: 4C 89 CE mov rsi,r9 - 0000000000003AC0: 48 31 C9 xor rcx,rcx - 0000000000003AC3: 48 8B 56 08 mov rdx,qword ptr [rsi+8] - 0000000000003AC7: 4C 8B 06 mov r8,qword ptr [rsi] - 0000000000003ACA: 4C 8B 4E 10 mov r9,qword ptr [rsi+10h] - 0000000000003ACE: 4C 8B 56 28 mov r10,qword ptr [rsi+28h] - 0000000000003AD2: 4C 8D 5E 38 lea r11,[rsi+38h] - 0000000000003AD6: 4C 8D 66 18 lea r12,[rsi+18h] - 0000000000003ADA: 4C 89 54 24 20 mov qword ptr [rsp+20h],r10 - 0000000000003ADF: 4C 89 5C 24 28 mov qword ptr [rsp+28h],r11 - 0000000000003AE4: 4C 89 64 24 30 mov qword ptr [rsp+30h],r12 - 0000000000003AE9: 48 89 4C 24 38 mov qword ptr [rsp+38h],rcx - 0000000000003AEE: FF 15 00 00 00 00 call qword ptr [__imp_RtlVirtualUnwind] - 0000000000003AF4: B8 01 00 00 00 mov eax,1 - 0000000000003AF9: 48 83 C4 40 add rsp,40h - 0000000000003AFD: 9D popfq - 0000000000003AFE: 41 5F pop r15 - 0000000000003B00: 41 5E pop r14 - 0000000000003B02: 41 5D pop r13 - 0000000000003B04: 41 5C pop r12 - 0000000000003B06: 5D pop rbp - 0000000000003B07: 5B pop rbx - 0000000000003B08: 5F pop rdi - 0000000000003B09: 5E pop rsi - 0000000000003B0A: F3 C3 rep ret + 000000000000382D: 49 8B 79 28 mov rdi,qword ptr [r9+28h] + 0000000000003831: 4C 89 C6 mov rsi,r8 + 0000000000003834: B9 9A 00 00 00 mov ecx,9Ah + 0000000000003839: FC cld + 000000000000383A: F3 48 A5 rep movs qword ptr [rdi],qword ptr [rsi] + 000000000000383D: 4C 89 CE mov rsi,r9 + 0000000000003840: 48 31 C9 xor rcx,rcx + 0000000000003843: 48 8B 56 08 mov rdx,qword ptr [rsi+8] + 0000000000003847: 4C 8B 06 mov r8,qword ptr [rsi] + 000000000000384A: 4C 8B 4E 10 mov r9,qword ptr [rsi+10h] + 000000000000384E: 4C 8B 56 28 mov r10,qword ptr [rsi+28h] + 0000000000003852: 4C 8D 5E 38 lea r11,[rsi+38h] + 0000000000003856: 4C 8D 66 18 lea r12,[rsi+18h] + 000000000000385A: 4C 89 54 24 20 mov qword ptr [rsp+20h],r10 + 000000000000385F: 4C 89 5C 24 28 mov qword ptr [rsp+28h],r11 + 0000000000003864: 4C 89 64 24 30 mov qword ptr [rsp+30h],r12 + 0000000000003869: 48 89 4C 24 38 mov qword ptr [rsp+38h],rcx + 000000000000386E: FF 15 00 00 00 00 call qword ptr [__imp_RtlVirtualUnwind] + 0000000000003874: B8 01 00 00 00 mov eax,1 + 0000000000003879: 48 83 C4 40 add rsp,40h + 000000000000387D: 9D popfq + 000000000000387E: 41 5F pop r15 + 0000000000003880: 41 5E pop r14 + 0000000000003882: 41 5D pop r13 + 0000000000003884: 41 5C pop r12 + 0000000000003886: 5D pop rbp + 0000000000003887: 5B pop rbx + 0000000000003888: 5F pop rdi + 0000000000003889: 5E pop rsi + 000000000000388A: F3 C3 rep ret Summary 1C .debug$T 3C .pdata 100 .rdata - 3B0C .text + 388C .text 30 .xdata diff --git a/aws-lc-sys/builder/prebuilt-nasm/aesni-x86_64.obj b/aws-lc-sys/builder/prebuilt-nasm/aesni-x86_64.obj index 1d74d5cc4ab97f912c4367c562cb1330f3d2dc6d..119221a3dd3f19708a67a7f165604dacb3b304fb 100644 GIT binary patch literal 56081 zcmd4a37k#!A3y$UO;FZ}v}?=MdWm0S<+{aU*|WrA6}lg)w2~{ul5a@#cl+V~&J$`5jKx~{Is7l` zuSI^AaY`Q&J=QmkX8VjYj~uY%5D zKkp>^OY(cASn*25dK}+harNpmW3e87!hfgusT8YJDLeQ0dD2g;>NSm;G-}elbJ2Fq zigxOJOzP64Q_J)&je3+TlUAm5(T>fEc5mIGd4?X_ckb4#QK$5F=}kJPH)`6ob-U(= zhw6NP=c1)cmTpn5Nz>9z)0!*MpizJqu<;ms6A1U+59eqdDZMZpm_N!LMV!x=@Y3w2K zFI>jqzf(^0lp04dc1|o7WE0P2oCSFXt+yZ_&u4yKK>b)JvEV{pL_e{Mc_}YpVW#pb zss*Ka8N;NEwdn*9eE}#yWkvl;(6@M6xz&#OWB=Qum_9LvJFbI zC(E)IE3h{!^8r?)WgpaJ;QwuWkoDP*4cVXf@L@LQ5H{mbwxD$swBaze=WuqUbry8y z2zKXV?9GwvOY1V|Pup)Wh);1CM{^{{@JT++r}+$@=d+x^v3!-!aT1^B6u!U@Ii549 zZ3MG9f%Eth7g1XYmhu&T&DXhslem#@@ds)%*Hq!V}m5-U|!mmgR^)F z&!KHPxPZBN2~T4op3b5?gC&^6t7)4Lu3;Wt&%CV4e7u?V1wk#I#oL*mcd-EPrF}%u zjOVfy3$i`!GlEV$pWS%@d-Fo};Ux?YG?%eIFXuxn#33xqVYH749%B(c!7KSRi}HEe z_XOj46<=X-zRnVSi}p#u6qe#tmgaO`&6zC2&uE_&EM|Ew=QUi#Yq_2kxrx_tE3fBH zR^l(Tj|=wk2L8b+jAeHmVGiENIB#MS?F)l5S)J$bW?sl!m`eM|pfGP`G1g)!)@C`@ zVMW@91~;%StFazy@^;?FJ6NCgu|Y#N;61dj4I1-aHe(uF&^|Y4!zOIcro4~M*pw*_NZ(j?c0^$FT!nVg@JkKEB6J{D__T3A=I*yKz3d z^Go*NQr^!M?8(*a#SL@}2sZNp{=`1q#lGCjfWPrU9%O%J&k>6a;HezQGx!km@nII= zAfC^`yqH6HIfwE}KEe_l#xfkvYxyWEauh4kF(;_Pr+5=bvj)fTRyr01b@&W#=d-+% zW7&w$u?e4NbB<$czQFbz&rW=i-8q51`4R)Z%mI9bgE^5S_!^(!>wKDT@_A0;1ir;r zIhm9AHmC3%e#9x9!S^_e?{h9c;6hI25`M@P{D`YLjT<-&Ci(3&v_Q-vLNU2BF^V!T)-myg2lOzS91}s;g`IgU-3pR<}F;pTe+Nd zxRUkwE$ed?@8)XW!!>NowQSCHY{m6##|^xX-?0n7=l$Hs2e^s-xS0?02R_0dIf7gG zIJa^Pf8sc9=S$qd*SL#saW|*%XMV_EID>mQhkLnz`}igIb14t-8~(;M{GH$N5B|VE zxs88uH~;279^{{lWwpLeaeU(`bj}i-#_Y_)96XyjS&*kNh0bY$OL;1bFwPRp%`!ZV z*U~vpP>E;oMkcWalUbX2cn6&m1r3>x_pksP)45TQ&Vp>i^Vpsjup^x_1)Z6~ZoG*1 z^J4bl=2 zv=slu@Zk`W$xw;+)w9r!QZUPY`Gk_n9OR-N9TOO*}R$O zvIfuRExd>|c^RD(23N2auVQVMVjY&_ZLC1&j6r4AP= zLDo|pznF^;@-+5i9`@&%9KZq`$n*FRQ}{4bIf#Wgm_<2+B{`IpIE+;|oYnX!Z{Y~m z;z-uxDBi)xc_*J>BR^h3okqH}ZY{ z$Pc)UQ@NYd_$#OL06*rRoWWS!ag5nHlezdQPvb1+;T)#$b6(E5EXw&T!38YCFL*5% zvJw~ZMt;c}{EBtBnDx1Y_i!nja~WInYj)%ccIG$i#+B^JZ}|XM@jF-va8Gv?qQJe7a)bpFLW{F`U-AkSeeo7Y>+!b_Ny zh3K_gP?XtOnmKqay_O3q^Hf%)*K|R3=4LIP#=1P6ck&E2qSt&uVGbNM(6atzPovpk>U=(S`pffsTjQ}_li;$&XT zDfC)1n95X6=cSy<%Q%OZa~{1G4HmI5m+}gJ!y;V6E4hKixRF=!M;7NcdhHtQWGU`p zY5q#DWrG7O!#`P;Sx<9(WcdDOdB*9rZg2*#WjRF;CEIWV+i^3!7Z7Y=2X1Euce5k+@;)A*_X>hP*_pA^9XFYsU73sB zcpANz5G1n)&txy=XKxnd1H6#lV+bx`UlwA(qI{60*pKDdpVx5!t8gHz^I_h~L9ENc zyq&|@m?N0Z$JmA=*`ANHBcEVrKFMx;iuZFg`*0ll@dXazcn;^w9LZPs1Sj$tzRKtL z8pqRn9Kp+cgRgQDC((Nz!DLS6yL_7;@Ev~4cR7nw_&ML>0=~~h{D4b1m0$Bie#4Kr zhSRx$Gq{N}xtX)LowK={b9jKCF?NRI7;|whPv<=5<$UJn0-nb&co7%!GA?2fE@N?i z&C*=Xa$La*{D#+aC9CpVR^uw(!qu$JHLS9Y#`R3+2DajN?7)re#7*qR&FsM+ z*pol9H@C14w{ie~;vjD0aBk=0+`%WglViAxW4W6z@@KxpUpSF_IEj1tHh<*@+{bC$ z&zU^H+5C-j`8yZ!4=(1PT*kk+l7DkG4{|+Y*{x4z;g8J9pO}ri=sm1p4^QE5%*BKB zo>q`8$?=P)@^mKi44z5vbp_`z4^xsOSzg5#Se!4j1m9puzC-Wf1@E&oKjhV%!7`l9vizLh;|u1oJQwjA zF6FiSh84J)-UAFa@H%eh_1wlv{F#;cD{tTdR^eZ)%B;y=-!TVo;wkhVVsIL(GY@a( z*{s2Hc?&P3_ZWjz-pVUji^W-+rCEn%={?Ax0_(Ce>#-_t=S{qWx6pf(K^->W9lVow z@h;xWyV;E1!wg!p5i{t$%%C&xWjCg=7aKER6ZU6Q4rDV9VRJspbUse+eFmf1l4IG5 zl-f1w8ow$gdxs+YFf?c_q-ME3>`2%}! zJMZUi_T(P+;sN&NUwnXB^Eloy2m3P4fJuCiXR;sjvp>({0A9p_yqpiQC?94C4rW;n zWd%OM${faWz4Gk7IGVM)$pS$@jv zIEy!OHfwMWYx6VS&d+%l=ki|8V>8ZYD=uIMe!(tW$osj70l(ryT+AU{!Vz4`C%KHz z@N2%n<$Q%J_$I&M6t3hne#=j}igUS|UvdqXb1heM9lzsxZsrDV+o;Z=Rr1N)*Q|+n2jx%oo$(u89aqun2Yz*HHV-N<9v|0`4CUz5T4HAbWI`{ z#UzeqGRHCx$1^Wqp=%bwn>>r}Fh8f#HH_e6p2OKZm-ASV3wa)w&^3-=1ux)gUdRnh z;bvaMpXeG$u#1;)4^#OYFXP{IZ6wHgrsFDevM^6$5$2(5Cc#-O%5zza7qU20Sdy2r z6brL7i|}d|r)w<1)hx?vSdJB0o>h1atJ5`@;8s@PZFDUrsL$)zkk_*@D>0pw*@mvs z1RYqF_whz{rE509{jA15tj_+tnS6%fnjZL|W&G;+R`8!+i zZ?V+c7s?V+xYkf%%xh{OrhrypNaAHK?EnJF^tK@LG0d6?Wq-?9Mvu z!8>?A?`BV?u@{@OH(T=oc3>ZNW?%MTzz6ss`>`J%W`91y0ep-D`2-*0(|nlEa}XzR zFkj^mPU29$%SSks!#JIf@)M5a9FF3AKF%*VhKuDKVW%I z<#qgsH*gwn=5*HK$Gn|0co#q6J)FtLoW*p`W=qatTYkn2e$K9(%buLa2RNSr7qCCS z;KN+VAzZ}a{EClr3CD6N$8#Ac@@u}q<$Rkf_&&ekG_K^Q{Fa|{6~EwWF6J68=UT4f zI
ZsG?1#P7I^-*YcF@;7ec-`vb>`5mvAi$C&oZec!dWdZ)g^SO-|b2~5R4qnNf zEWuqY!`-aFpIMo|@FwozE!@jG{FQfb9~*K%8}k6u`5W8tcV_SpcHv*_!N1vuv7FWi zU2_cvF)N2M8y{tMj${swp=+|ibIiqYjB^5AqYYl=X`IB<`7Y1kR3`CbCUX|^a4z$5 zA@gww&*Tca#v82W+1$YV+{^;}iRbWVp38l7Ejajt=kXxVXSM>4bIipQo=(?_gS@<$ z`FRP?XDTn|rM!%;B?m=Vh{ai$SMv&1pli%QWnRgfSd_Q280+#XHehi!VhJ{5Nw#7s zwr6SHN7tx>9xTH?EX)2Z$8mJ+I(UiK@-ocWsLFeJGt*d$jaiRPcqg0kUN&PhHfJlQ zvprj|6I-$yU9%5*u{8s>;Xt_U3B3S0Gr=zTCusTlpY&(me#hUiRm29KgRhklD_49AqxK z#~?VJgP50tnV&;gkVBcmVZ4;Xc?BQkRUE<6e2nEelGkw*tMGAF=M%h@PqHqbVgrt5 zLylo%KFxGK!`2+j4t$PX`8<1Z9K#!vU*N+W&*6NLqd0+2@+FSt%bdVh_&O(YGGF5q zzRsz9gVXsYXL1tf@GZ{cWG>{}T+Da4f>XGf?{OX9=Xd;on>dX>ayqy3WA5e*?&D1U z!B2URvzVix<0<2u!(@KWvpARMa2_w@e5P^%ui!!!<06*gmn_GxSdoi)1DCKGm$D|8 zu@1lH9bC@4xq@l@hRygbTX8kpaSiX|T6X0+-p}=XfE)NAzvDyvo!4DRAA?&jzGne(}aUve)O^H(n8K7PafT+0Lep1<)2 z{?2XugFE>rf8k%;&w~tans={Dkd0Y+3bQdcvonb~n2+v-2@3F3p2s*ZVs2ha_s9f= zcsj4-87$5uUQPGT1eKVNRd^<=@hsj#_tXTnnV+8D7cfS(Gob7+>L4e4WMl7Tx0$ zyvtIY%B%S?-SZR7Vp+~*IWA;*F6K2{PWJ=_t5|{SS&^G~9k=j$?qFr^W)<#bRsK%* z5Cwm+I>Qe?+|2B(!CbtBxmlB^^H%0zEuKa990dh=8!up8Uc`D#rF)TrLafg#*??E^ zPL|?bEX%uj4IA-#x@Re<%zIgtX{^r1ti>j*$EIw+W^Bk7yq7K6l&#o;t=Wcc*nw@? ziS5{v?tu#Wu>*%NgCpslsNiYd$MNjMSLhz8;0<=++w98s>7J=z8oP5Qd+;;5hbmaW zp8Sfv_%(a;TRy;b?8A-h%PkDJoe%P7_TxVG=N}xv@WUztnS&28&WCvh2Qv>J;n^I< zf*j8CIf^NKf|v41UcskWlw(+&PqP%CVHvu&D=5#gypGSY3SVS3zQpQ$g|+G4ub>`Z zWkbHkW_+D(`35`kO?KrZ_T*da%gG$Tw>g;aa5&vF7L4S39K-iHjvsIWr}9;P$T#^B zCv!UA~z%Td{7jg#| z@n?R;{anJ>g^owe!DY{x3U+1V)%inZ5+t$9Ks!Zlsox2cX15e zn-@IKpE-fQ@Kx^NB<|(A{FPI=k2AQRvw48?_!}4TcP`~0{DyyVHUH*!jODUEn1$Pz zl{@KPz~C2V=daAcKbezRQVhlv#+l08EX>nbjHj~{&tN$wu_E1D7~H@-tj4^oN%tBC zxA9EY=UHq>_Z|j~nV;z_z&1RG_t8CxK{pm;FP_J~bdO@tpBHctQ#gzlaU?J1Q@n&@ znac6JlrPggjlt_I#K|no_jm=Tvj{)smHeDVxroKMlP+X&Y{MGt$eQfRTiKJf*q83v3A%)z#dvmMW12j*i23$P>4=Y70{omhzONezm!3rn&q%d#6Qusf@;2dndb z-pZc5jlEc(z1fftFpYiLoB><&L3Ut2c42?s&jIYif$YzRIEW8(7zc4A2lFWo;WHe{ zadeMt@DhjfH9pF>ID%977(e7l&fqA{=Hr~lC%A}Daw(tUHyq8?bgyl&flqTYpW#-H z-$;5f!E@%oOZa6Hf8i_FIfJex1^e7?+7x_37y!ig--*I1gbvmD=G1-{8j zoW!bpi`6-qHTgE{@Ez9Y6gK30yqE8@2|r+SPGd_>XFGn(`#6JL`3ZaRQwE&H0i4Yt zoWn=?8K2->KFxW2j`KNz3-}rrauOHuU4F@_{E8oQF=ufJ=W;0*av2x%YcA(2T=WMds!!bPsp%I#1_YJcI8t znNyjU)0vN-(mme6XFQ7wcs3U?KbNoom-8I1VnJ@;`P|40_#-dmHl}bFFXA3v%>BHC zfACVqF7^73+3DW#;8Ygo>AZq@S%hcvN}faamIvpv7%$>gyp+Xx1>JKV6lZCc;?*q6 zGQ5^$c|FUq3d^$^ui-7cmbF=d^>`icWF_9i%52IT*plvP58AOR@8gZ^%A44e)!3KS zIe<5FFl%ra-2)$tk=?UFP`4 zob1R`c^^+>Cnm8A^Rg??W;dS0?mVA8coFYsDtoaod$R~1U@`V#N%mzq2CT>jS(*J< zl>=Fg5Aha0%-S5pdK}CK9Kwbi%4U3oZ8?mcIh?)tDEo5+hw?Fw;7C5fQGA+@^LakO z34D^T@+nT@XuiuaoXV&9F`wZqKFhfr%Y}T7OZYsOa~xOk1+M3KZsLpF$_d=bm$-*7 zb3Z5YcfQVpe1q99cl=^bzQbfr;aPl-=kk4?q|hrEOz@iIyO!?=czaxF)49iQZSKFbY!f!}cgzvnC5$k(`ulen4h@CQ!ikDSgeoW-sD zoIh~^xA9AE=Th$A3hv};{>*j!h2L=xH*+t4;;-DnecZ+U+`|Lh&)@hvf9GHPgRw%6 zPt3-@n2QIQ%q(%QhnbbbJ>OknZfhekr%KFeFi4z%8S{XmoQ)| z2l7%5;bj~_pOp!oWFbDw!W_>lIFUv8Hm~GI^qHDqHm~C6EY1b=8Jl1cOL7TI@f%*v zRV>4GEX$27$1N<+9lVCW&}Vak{j9)0S&>-^J3cWduV-%h>`su($~==d@LX2q1@xJo z;9}my%UO-Zc{5A12FtM~uj8$}fwfqjwONxs3l!AhZM>az*^u>^#@pG9cd#Yvvn?C2 zBky8Y-p!tD$Ubbu{`A?RU=Z)+Fs5-N8}lhP;aE213v9-T^jV}}64UuMTkt)$zTog^x39h6Yt|zcH&NU<{oz80e0nI?8dBDIG!;V zd+-e2&%Er(eC)*n?9KD(Gg86D?8D31msc`i2|mcO?8l1i&&nLY8#s{F_z-LIVcy0; ztk1!0$RTXZp=`lN*p9=P!Qt%4N7hEXMa(lJBz=KVUgdWkr6- z8~72caT;rKI&b60Y`_`3ho7(sXR;+fWjoH|eVom1oWoxHi~&FAK+fe*&f{a8&nLKm zPx1>s!-X8jMSO{0@-=?Nx44*7xP%{ZDQ9vS=kROJ=W;IQH(bt@T*Ys>o~yWttGShH zxRYzShwFHN>-iTqFzc0$w>*X4^E7T`UT$ImZsz&?k(Y1_3v(-r@+X$!HkRXdR^$#= z;ZD}zF4p00*5}V`#9!Eyd)SJ5*@3^Z3-_@n_cP!DKE&TRl)rNX|KQ{Ni%;=yKFfm~ z$5?L5pIP`SvvLx%@f~L82lN@kU>b9BCQsoU=Hfj1>|wBoaW3I$T*=e9j!FEU$^3yn zn;87Wyxh%v+{-h0fIhPr{K>PKwW#ATbMjoqS&+#*pJ&o%8iR9qAunJGFXlzOoENhQ zFJW<}@@ihn^1O`K@p4vSAy#8y*5nnujYW6|ujJh<$}|>ZGhW4(EY7wp!3>sU7nWwg zG91XV9L#bY&hi|^YdD%dgBgrv1&(J$zRc_RINaU3`SU z@G{ex8hnnoZ~|-cRo=?CSc_9wn;)?bKjCfs zjCHwy^|+X~b2;zeYS!llHsBAuliPR~f9BoX$AI=itoyR!p( zuoHW-8+)-Ad$TY5upj$!5Fg|S_U98Ez^6Ho&+}ov$U&UQ!F+>5_%?^~JwC#ZIE*v+ zC}(j5Kj%m;;3$5@$N4p%e-0uORLvy^iD zU{1coWWK_)IFaY_RbIr`csbu-5x&V1oWwGGixoJTmH9TS@g3IWyR6G8Y{2(;58r1~ ze!y0o%J%$_o%s=aa2oq?I{WiuKExRu%uo0TXYw)5;yBLXM1ID}{G9J|E~jxGXL2Fu za1rP6OD^J9T*}4#hD*4b%ebCja}$?y3s-Olzv0hZ$$k8mzjHMYat*VUcAQ`?uH$Lk zz+`^MGx=`8S8~AV<)5JOocL3!hqPDPvLat;-@^7a~bDC=H^oRu880pp3b#AgWofWo0-fl%)@QW%iTPi2k1K`g78a+ z3os|oVQ!wwBo^dZJdfw{0;Vv9m+~TB!An?-sVv1yS(cZv0xxGJ7UGR8%$s=yYw=3f zWl`4WRlJMEnZ}ZAPTy$}v|?$tXBpndvh2ok?8)-%%WK%5*K!am@DX0e5xkyHuoB0x zGRLwC$MYt>#Ad+*5)Uy!`Zxzb6J;PupYnS?OewCT+X|>fsMG4 z_wYxiaT^mw+}?kvR~EKA@05tL^yR^kJ!!al6VzO2E3wfG?GvLEZS zKO1r&8}nf{;~=)=5Vqw|cHkrI#9{2p;k=)ZvNuPt4@WZK$wsj^Ri? z%_sN_$M9J`%dvcpGdPYj`2s)Xc+TRBoXrWG!t7!YpSvFJe~KV>Z@jb~a*8He)Wf;i> zSeLa~pLKXQZ(|zkvN`LqHE(AJ-oY+x!25Y8AE58P3HtDEhF{3vkp0+*19%S~;=O#B zX&l7H9Ly#h!lwM$;XLnI&h27Z@`(RW{CR|(mmo=6gYaYA3ReDOT^e)|7H&0Kg+_`gl`=;&EJEfE?R-#O?;$GyqK_W-= zOhtbNBCTDswBl(cOL#E;v{v2I(mOJCyJ;@V|y{o_>}2-TAgk$6_6GM`4NOy(*vjeiVr zcp8}vk(fs5%%@TM-XX?n}n9gb{E$Mjj?*gn$_bx3QP(fs~nSBrI) z=n^*lay~V1%;=BnlvpmAj{6Kz(4~7u=JVI3Rj2fHf3hW$ z`D>BUwbMzuwCm$Tk@*4&J7vCrqAr;(ps-80fb#uwX?IHRa^hUs2-Ct2$Ly$UriM*3y+iZN z8fK}ZW6iX=H|x@=RLR2)KCNlHjAm^+$4VR>=+MZIYxkKBlKBDU>f_tvp&^@gZPzx_ zdbqh9*RT)ue`sSl_t<$lG7D+VPgtjix}Devj*jdfEBk1NQkl(GG=W3Haf9-;Lbm@F}jr_+h=-57w+gcMH4()<6UpHlZYVert`|uDg zJ2mOhJY3|*Z($_!LW|l|6oqA0FU@4ev;Y6F0oW zole~F4tI%G;W4KsHB%3F>D(o~NxS3M`jJ^Hm-(!PTiUP* z4(uJGe*gVY6pr<9pC`0~a0e3|iZX8pUMLJfjo$z(+b{-Vnm6WZn?ME}1uk!(B=qKMP0at;C59J{;yy<2lLm`Nzl( z&vvG*Cmh-T+g6%(KVX&f1GI@*U2IZPo7VB4&f?^T1(2YoBH8F z9k0_eI;C|^@0Q--__lGRkEm0oqdn=O`M1sE>f@LH;mMq^pFGmx#LeSyr)cvyu0=d0pr8UcF*Dk$Tm-Oa7Yj(_0;&7kgb2z4-OczqrPsb*my0o^7J#LL39!t0} z9Cz9icKENeo3Nk5?Yh{}dCT39;=la8n4)n$%v3*kl~cKrJjW>0(tC7l(xG$fj1Fnx;yJE?pU^pM<;{Ii|Co*7 zAN`as+2r^pa$@&GBRQ@eozPR$wC+thwf~PPHT}2l7U93nN!a~ApN^iI+NGVAC&hb6 zhyK+}ZQ8kela6Wan{;j)J69(kcRbRmwL?sLdwbDRB~RY1Oli&b_~F6>V*4g7TQ@sl zVn@ap9(Io(C|qcrGP*SBlI}=xvQ8y5)qhSc8n9VLhm(vl>~h?q4PT8nYu3I@Y5VxJ zR^b`3gTyh1ALsRH;WId<>oNQKa2It?9qd*A;eWC+pm_*~vRv7N)n*PfkC%qjwm?6p!U?>iT0;J3Eo$v1_F8 zEydii>k=s*t1IP=YV{K-9_uOPi)wumDIOasof*}hOr&`1P03rb#`kt2#ba}%v!mL) zM2g4OOZlVP#zcz8_DKbz+V6=JkL79RJ^ZM4RwBh?g(P1|WExi{Qan~g^7S`r)e_x)<@+6YyA*DvOD-$UmyI%5fIQ>;gqn`~?j#{roipPdaKI)-1GLho3*Cih-PTi4YVCQ>}MQF7a~+K-78 zkNqyWbyw~0M2g4qr@OWh)e0t3JXTtAi=qC?B~m=rSaRE%TJuDT$A(D7quTI9ipM5M z;XB*8V-pi89{WUcYlzzHM2g2YNN!h9+muM=Pjbmz?e9d2$MUssEhVbuPo#LPh~yHQ z{;o=-c&w`AGK*UEM2g4KB$pP{nk7;^cE40Usy&cM@z^NonyB_vBE@5GNY_TS$%zz? zeI`|iYV#Ax^N=b=wM~f>k7a4;x=vKfkx21aLFxLac3~n}&QhhQRxXj^v6@ols8%PD z;<0q;hN#v$k=!IMRf%c?5-A>gTB;h=o=c>7Y>ISaRGXSe@z^5irl__gk>auMrD{>_ zheV3U{*bCiwS$Qik6qHrwWg?cc_PJQcS<#)TBAgY$A(I`M72i~DIR-Ksu|T@Nu+pe znsjSa`y`R#v1L+tEhTsCn?#DowoA36+U`V($8xoH{VJ-RmPqkfiga64OHHJBth`h= zs#Q!R`$VZ;RI8sz@mL$__Ndk&k>at3q&uS8kVJ~dK9K51wP}fDdy^VOwI377KBA55 zWKk_oBE@5uOLs-JB8g-lA>AF-sw7f8cCXYhs=2rnC2dz~6xAL`q7J-II+5(N zrF)~=+li#@N@-DTej>$V>!ij}?fXQE$9|KVM76&X$u`*5^|`2)Kat|GqLQ7VbyOme z;<4(I9gAAcM6%zIY|LuS6Up{%%z zs*Ovecas0rTe1V(nN~Kev~>zwQY$Mk7YH{&QUFABE@6pNnN5^N+QK$ zWu&fA?V3c2$8M9lMYTH;N!yjWN3{-#6psy*dPKFsi4>1LCxzz|xntuKNqd%hMzv{) z6pt;JdPTKw6Dc11OX?lfvRFJ}ipL5|4@9-1i4>33llnxp28k4pwU_!vwfhpuwj~8o zZAc=;W8Fs5UH-oJUBbqS{-D-i9ElWFKC8B9Y>;>C!V%ZDt}l$CRFpY8w+N9{W`q8`XYG zqwHFh~wk5q3)uts6NIqBa!SQ>>wsawVa9Mc}TBD zwIYcWkKH7_7S(DblKp}7dQ|I>NY2-!H=^3`M2g4WlHQDJ?&Uz#1&E=?r;`8{VWOJ2mzh~-Mo7KZR&vU{qM^Hd%h?Dk9Lq~!3Y zdh)HqDy1YfSllA1+?pi^=PBh=8%*{pB_;eN zntAgU*n6#jbR{MedS`q`lCnk9!@dH9P~ zyK9S|-Qh1*_^ty<$=So!p1k#3o9@xgZ$va`Vvxg&G5q!C@Zq>-@7 zb^myN|1vs#pRm%xS~!~ZnLI!HCr{DpJG8QnU4!-^yAHId8tpm5^(oCevJUecU5Cbe zbVrrg48q!>^=GhhYd(!0=l^f(GU|6`^k{m~dL8rM>-Ct)nE1b}<8Z`lqtUOOcjEd! z`SJ)C`qAZK{r}7I__q~g^6R4IvF_OA@h|H>oZ)rR46pmg^7tPo6R!Hj;e%CeZx=q; zG7qoa(HF%V0d)4-@1A57nKLkx^dvlqya6m zdbj1l--ED2zr7y!BxU6Hla}nEWr~N4;vTwJ^3b==o~lV1)f$J7wL4ZH_DMKY^#^|n z*&4p=J!bD=|Cs0OnuEVJSpKSm7boSpHymMFa#Efa;YeGiB<1N4jyR)uQl4(%$h%ic z%G0Ng(6>(2q&zo86RFl%tYu2?hm$yNvRfAYdGKIj+DZLKXo!cV7fvXeUW;f7;mE`B zMx#7-WYr&>6^=7$z+KL1l9KaR@Be#BQorzZYf`eg91xz#CndK`QLmKLFFfB&N;a

su#jz)tDV(z!9I!Tc>(nL9HS&Q17?!zX*(tZe<>sncj#bue|R3Z-g2~`qy`7KO#JPHUc#rbHC1n0hGyO|T-;l;9Uaf%XL+QRotfqTe=AG3 zm=h!Xzudka_~YO~XRO(dw6RAHwK02}rP_74X2sQ2!?xYRsp76p;Y#L?a0zi=xFC2i zYI`kiw8M@XV3_77n)H!YxXdy+(h5gLttxDV^P+UP6|RbY3tM3<>iuvlyg2$TY=w79 zRg;pdHP)D-cKE^X(F!yhOApWS|316XoNg^=oZ%urp?!wu;Qwr&>%;aLPHk(J#9)V4 z|A;NC_nt5>TUQ@lpIe^!^@Q$+=XGoNqV33-4uvhf_MNoeLz_-0aKxUfA>J+w*u zFN-5wb6YDM9el)=UjO^RhgW@4gPF!NKdDf-U(TMIRLH(L+%?-l7qWv+?4=9YONX&| zxD&s#`p|GcKh%Ey`19}o*#GzcJxfx*vbi*)fpyKbrkk9UeBsc?61)5pb}bA3x$2I2 zHP&F6xn3RazZxvv>bt_DMObs#d8v0)e{g$>6nht4ZK^xCqga#BWkILLD2&`PJ7)Z(G7(f7>M%1QHDBxS7f z^Sz&+)NW6;EqSyhd2D?1;H6RMc=NDIS#BOyCu`EYqy;6ml+f!n7q85wnoajcskY5) zF8)4S(!833m)<(8PIkrSsVOD4R8CqDcG;4xayUrecB#d09acR@)xo!?)~uW~U!OS- z9V9E4*s9m6gKMTX(x-k-3HxcMA6>$7?{I;d$1dUgW%N$1^^9-If{B3vm5S}=eTXW~v$k))96;wDiMtXu*dm)3seZ z>~d&Thw0E-4pXKpw^CAgmG1v+3U&UErqI|QusPho!>68>tbOfT9LAO@VO$x;jN)P3 z5XSD6!nh@jed~mAcT#~zXWFB{r`3$L15#}+@r zA+g-r1>rHyE^JwJNEOyZ$0=cRbl?$oMkfKn{zHd?j04eGKy(6d_}Fj%kktPNry14z z&&riFU`DuK9d>gNp6}V2WKZf>BU~;6=2*hsxC&<|+;xO!4|WvEM;DS8hq;oyi4|79 z3t!1Q1BlvS_}0ampZ%5=maGuJ{uVx?HJ@(D^~=G7iFH#seCN&B8&vY7cCFr%)Hi%~ zyEX~VaikrRQyl3RDLifO+bui+&Y9HjRI?aPpibqa27iQ4HEF;;^BYdCu@jIv(X-yV zF>EB!42MtdpnZJwM#SOf?nsn0aIHg!dUzBnxAt2j$RCb3e41;+jbiQAaGWU~GK!m) zvzfEu73bw82Qiw?dAeel+RtkDGKf#c=wG$#|k!llr9` zdRA#R`$JPr8gTldQp*&jO<@agv@fwEJl^{W8{%p|oBZskoK)!Wp|by>LuR4qkm=Cb z|InecP;}@Fe?N2xEp*Euzf^G?EmUuGm>f(CHJlhGN7O>iriRI3wNP7cs}`=}*jlLb z$}l;=7V70NSGdZS=!_#g*@#Xvq7#hpp;Gwp|CM+C!EqMn9hZ!-O@8p62Zult%B3iY zonlu85|ogpQiJiSm5sn)lZ0T|!KO|Oy4XOVlVX8outtc{bdnC~52DVbDbP%+%uos> zO=QD>ZIV>BF*rDu6n?bt5vLa80LCSDKi~cF?z_?n?4E59y-ak$XtuxH{KCyvz(&#zNM|t})8e}V@sN-cmj%-ut8M^k`|2UK2 zQ%CvOI|d<>1|#i=k^|vLHNrhr2>-Jh;b;}Y1JwxAjPNxj|13zhRg#S<`E@9h<`qDC+5VqD|%q((7zZIn#YYpQ?NiPe)QWL#f-9Tk1tv8mIU+E}ObMtz7GTF-izN~VFsiYt5 zRldb?@>PZIQac!L`sZXI>zJZu!*3wjIG`DWu2G{8*FOw<(}iqrBK{MS_l_}_Ty7TO z{Nhfnjxba)b&X)(3nCC$4tOF?8~gV8w#dE6R3= zdUR~gxEQextV-67o~cwPRdcd;P|-{(ZBNfP%JY&eEU5g~pxSp?eT|gk#|Mb*O8eA- z&^*Tfkmyu1zHA5DhpjFSua|mnY)@t^>1PQUVD=tl>E==X#!*(WF*B|!IYGy_9tkG(9cV^VZUxRG{M-twdUSSn#wKYT>&|%hRi7 zEi}s@AFR~9H?~z4QEogawB69VUKw^yc(m7X-NffZk*Z|uo>O63sJxyZbMVuG4NonI zJ9+O-H@y(#eM*R)DOs|~U95aJpIiG2CcoKq>s@aadF9~!LR#};;IrGKj+a(m_%)2* zfz0tE2X*Y=`Feem&&~HQ(tF`+^sj0?tH%!=w3#cz*2F>kQ++LnZdO};uV2M2jf^TGbmnO?9zIM^XIXMYTjw?Brpk_{VMEN6dY2Y0aaa$9RyE%KkYa-UVH6YW57ZLbA3-ab z{eenQr8AXb9@!s8rkwp@WD4ejmnpVCh9mpK$d}n4w&8;PVcIRn(6t(JSh1Y_F&x_; zR;~REaDLh7a3vX6%hrK8JAG)bVEaN%f-#t*qiJ`$XSAWfd+|>KxN*_DSid!LBg& ziL&j>8!6JK6)9&=u*}Ey$!Ly`u}{Qj7PRd(bI{zmO9jEYPuy;xucP3qJC$V2&tPpTBWi(zTgJV(UW(*^J#na+{8^ zFeeN7^8`+JXoG@lJT6GEx5X9|M>jn5RWsk=W)3cm?JjP~hKDdtd6waP`E*Laz8vJe ztvO-m#Mzpa?{K74Vo&9c*A9MTRo}w}NiuuKyupL_uj-@xG0E6{1jeO#J1g4E^8L+7 zzHtfkX1?L+?=<#NpR3Z@nvaIVD0ek*geP??3};2_ZMDpal;oqGfGL2KNFdxtldHtgo6#*3X)k}QqG+e)>+GOIq}A<=2~*stw`#uPP&Md6A|^H85q zTINlQvixB_YRHe7``B@DKk4|G7mka0OVJ+O9J^{7lG}bL-5!sAnvSmuY^|?8-XhwM zuZVJfe#zB^PBx^TW;%(pB8iR))0L&r)!3W_vmM9XreZ`~tj&zZ5qrv@uD;d8?cogR z3(6+`f;-94i1@6wb{a>t_t7}=s*sgtq+DAxh>mF*M>Y$;p+TR2(ZrJ5II=FBc9@5#L8Wc0 zJcI^hvuR9244T~=|fxN=|h^}m$_;k>q zHtLU8gNWLM&YqV3q&JmRc?Shiz_V2rqlqi$$PO7YG~lkvQ;6(!PX6c9X*+{-PX+1d za+I}~vI~`dmk0X&>A&XacL#cB&eJB9Gz)Db$oi~cJ3$s{1TMO)f7U-)d zB{R4YFvI*pfq~98ok5x1%$D?CE{8N>>$Z#~Gn&aVqcqm~(ap&nyIGz^>ge=ShFY}5 zQNm->$KBtd{L&MHW<8gYw}Go73v~ta&&>_QS{@c!d*6jnHS>Eet!uvZxti%U1unD{ zZar+Sdv!g@fWP(dAOuO**Xh9S*5<}@$&Uj}<{v2eDMr$Dt0Kt^g!DfLwJ$;`K7SdCFu$aEx2b)s;@WXKEOkcsEF~RqwFZtj{(h-6b*xlAPZ?JM7 z5%sT*Ic*Z;5v(<`bm%8!`W})=r@wd)V@VB!2KlWs`}B`-D)7tN5;cdI1Cn)z>(J=L zfQHx>x_{G{n97LUD0@~Vb()eQe#gek$d{Mom;@+vx3yF6??f~5!Q_@p3OI<#wad+l zxOUlIo9=*Ks@y&$J?evX=>tAEJ=MvbAtCLiof|Baw&frb*Ie1Mpr zsN6RSnA2|bVq3zti){;F3VK=!=YCXU4KqgLJ|-dC4zk->`qv#&J4_5bx+*E}LGA3d zCF@=njV|GD;l0bWj%k^DXqoP|BBJ%sbtO_#Ks`D`S4(GI_nQDx5$`s{K{>VQNv@W3 z<#+oEPf7Q~$8^LgX{|@=(x*LIm;T%Zw@*)X!^F@|Pj`E?klydnLiz)b7SpeIw3y!K z(Wdkkf=0assrLz^FWbLSj_KLWkLa?O(Wlg?KwBYqKPIo&w@@c)mj=;Zjg;5*NmE>T zNJ`dG?LNAGM_${R+HK%T=-5rAd~{osG?iP7{tL*i9x44Z7acLf#Xe_|B|2P~Fo98f zwN&!>C_kWjjITS**S4d{(#@LbeEO`HL_(p@Ix>32f7cPFn{2zBVl-|y`#!TPnaftg2bb`S{v)f3kFk3R$vr@#W2z zHDBJmq(=&s~8?U%Lmbly$! z{GP>i9^X(8Ug~XV>3v8SmLAsR_Qt`|KOox`mFc7zVfi@T^7Q;rt-J>;KEzk4ci;-t z;fvO4Zi?>tvqLT2_x2O5+|GxUpi23sGOo(3HIIyOG^MIuLMCYg>~)X*p}|ZJVBHlL zshmzDMwx}lR^Q8j|+SJso|YHrDLtFiH@St(_6@_7AN z)892OYrd-av&~n2_A|?_I{4_{Uq&G zAbiFL`E_V<}P2cu4By&Mx>+E zT{2m{dLq@t{`-->m2Qz{Lcik>n`;rVHiuZ6FA)2DL~|3d{s`GbY%oH;LQFL_`cc^Y z_P!V)1EB2@G6=FELVgG`8X-RgIRViE=M|=KZY4gbiPsr?X?6;nKMtZ%9gsf-DKKmU@)?lpBIJu8 z-;Iz?kS3;qkn1jxMG^8hAms?T52P`J2|3fNUYy?hq=?OZ)CxcLL2!`ssZUqQ_o5i;!=F{3=4e5AreYc?Ql;f_x@IegZNBOE1vu2RS1`PGW{A zI>hSmLm+b^nii0|BIF8?fe2YCKE-@lHw$@R9_a?T`m8+iHITOYJo1kqt0UxJK>8!( zQIOFH*#*+@{yd-Olq*7B2Dv{%YMJM@Mo0pZM#z~U^&iM{o&$1Wgj@h}I6@YIO#NU! z*B3wv4zYT^6GRqZXq|roDMyGNqc=s!R*=0B@(f5}R-Vs`ARms9gCOMynaXVaXoQ>& z(l9&EXEsPR#KD%>>P`r+T$eV1)bqGX$R|7JQ)l42$12Pjt zzCQzUCWyRe24pUX{A32?0uXtc49GQxX{8*BWgixw|#UAB7px#xV2KTd8Nmp;xJSLA`K>i?L#f5GSPfitHB z=hTdMuoYZFWoa(oIb_ryn#*ZJmgfE;`&`oWkJ?H**YkAwl;-ngX)fP+xqRo1%cnG- zFH3XzK9b89h21~#yIMI3MBzC_;h5U-Zp`tH!p<>NsHyin6_=(wzO*Qu<1pUXk8(b7J!3A2J>|(wvXByDJ z^=ZMaOu$s5JdJfA6VgL>F$z6D$If$ zqcEdlQVr5MCz}kEKP0=@1Py-FNv2*tUW3B&8dN;5LB)dxi5X`*wx&u8Dl{=S;=Cj| z6)HKWLLb%QqNXMe=Xp6v^9r`9qV=4EhQ;a4H4Me%8qPZesnSQ|WEV3UbAp>rg&!Nn zjdd;Jrz=H$$@w~((HGLJZyKB1k^2U89PF&<3Q%p$c+X}@Pvu9iWv%HfIGM@V<2gW1 zXF}Xh4ldXDrZ&@$OS4Vwi}Rz!$6ZtVXjNx0aj`iMFyj)u+m`^_<`(m+)3Fl#L{oJf zjrX@=S8Dln@cvr@5|=PO=cMdi`NloVWIkDPj#xs_cssE@1cBsJgf#DGB?QNj;iiH# z??xpAV>00mbsiilrYtgcP7(XFI~l+PpV+nKgfgx`8cTtPD<{) znN-QMVge)Mw`4qJa8^gGAmAPkRj b?m%n%2YBG z$`}d}qEN*1I>(mj>i1vITF+XK<(}93e)f3w{_f$Nz0bLgp1Um4u<=)ob1scU{Ez?3 z*C?q$rzSb7hrdSVb&Et&r-(!rbU$5bE0>HUmJa)?ai+f;g=~W(k^B6d`4{i6V^Y_S zX9`Sr@9BOje0jQqc$#*s4S4hIQH}wM?qtA*oJ-PR&|2Ix|#Sid0>2~w$LW|Uc&p4MA%4R7LgyqWs3P9i~8-a*I*_@tI(1ykxwB!Bk#0U5c zO)KcdlI+J)9LUlfO7jpr&$1jz^Ae0^MUH1>PGA*IW>rq*!+ekCIe4Fsa5f+1$MhV6 zd91+&tjRA~i_7^0SJHC~*046$vko`$DgH#yJ=n#1+{gO-oeg+|mPv4&R%h@Jn=;lQ zS}+w`@-k{KL6og|6)m$Mk!^V`ExX_bw&#uPz-;Wy+t`J9*p>Nc*#?E!jd!s-?_&>^ z;g!2d_sn~$>(YqKw(;sDm;U^e6sHl}qHH0Ln3;&8_HHP%_sfg{+3FR%w+ zWG`BmL0{T_gMoaR!#IX7@)f?su^h`+`3A>vB46V>e4W$z250k4e$2P{8MTdI5hrpf zC-ECGxKw18rWG`-HAKDgz{@lz#+{WSji6gn4 zW4ME_aVOv8&z!_xIF-9NgS$DKd-ySb#r%!SxSuO|fNOb>8)(}LHuDg-^DuYu z5ANfi+|R#wkSBPU|L_P;@^7BvKeVj|kyKzRrsQQz#V8$Pg9N7G)wC@K8F@Kxplv$1 znO8D9(=ivXVqT_aK_;*$ZS%oB%)k=7nq_$nE7HCosLG72!Rz=0ujkXWj|dtvGn+CC zThTrvXwRG2g*USYv$7|%Gj^cK$-cau&oLJVGdG9PJ|=j9cW^ZCtapf}BD7q+m7+b1sW;9*c4Ti}6d^X9cTxH^1jS{E_!^EAQt{KEORJ!Tl`BL$r?z zj<7V3vkW7t9Y>gkm?M+UiBh51;Oh50axvl{QGeP~dc zkFq?gvodS&5kAJpX&)QZW=%dt``Vx$pJqeWWn-cHv5PBqF}&-8qb*Kh!@=Rn@XLA;fN zc{_*jP7Y;34r4J6=e>NM_j4pm(lI9}!P zoW$Qal?OP32RWO+^J5<3XFSZs{DaGRge!TJYj}+7`4>0wZ~nyN{DmjDm;dk}Px1&) z@dP6&t*^@+-*`Elvjpjwni-genRpqq@N#CObDH2brsW-svLLTyF{b0abj}l$WO|lk z0v}=`A7%zVM(0F9ZC=Btcs=XUxlxeBENspj*@`!_EuAw39hi-sc?+N6t?bF$*_XLE zfX=Ccq0GYvu&ZKj(U^a{L6W+xySe#3E4_EMBuHt?C zp7--dI(G}UvIKXsB!6Wo9%N}ArE|OBB+D|@6^>g>WO-gg=X^mXR%B*A#G6=&x3DsE z(m7#}hgF%M53?|%I(e2k-5 zi=$bGFR=k%W)qHKbH2hh9Lu&G$4-2WUHLkD@D29nc#hy(9L)(F!-*WnNgU6~oW!^J zKHuSooXWYJ#(8{~3-}%vb2^vNYl2`EXL2n+;0Dg(M$YC|e#jmCh`Tt4dpVZ}`6>V8 zJRakGp5SMUL> zUdsign3iSfHC<4FSF$S8@ljsIT1?M6^qMcI$3!+}1~#YHfI(Yc!;ZX`UFkJp(36?i zhu3i+ujep&tr(18W{zSOzQP+hjyG{Uy_O6nGApMr8{g$Ee4n>+Hoevi<}wH8@is1C zPA=x{TuQG+gKwCdYnX@Yc?UP~PHtm9?qGiIVgc@@*RH{S7Up3V;h*$cHaNy&Ji)t| zGM(ciFX!Ei(reuyJ@4f;ypP%V0B@t$z(FpSTh%dtEwumUU7 zYv-UEA7TwwVl7r?9adp|dTkxFWi@uY*s@8dd_;Chzj2A1a! ztVHkO1P^l~t8){d;AYn47AA2kn{pdlb35B}2Rm~oyYgpt<1g&NUF^x-?8iME$X_{} zdpU~x_!58PE8Nf5cz_dlkdyd3r|=M`^Dt-f56#{FAA9g5JvtQY3g?#xzXJE9t$hAOq7eBd=l> zdao^Hmn$coyVj7UEQT zuP&IuBK(j=Ifr*~9=(SbEact%iuZ5@@8vhVk89~YzF-3%;3k&f7MA1=mf{|k=029; z?<~tBEXNb{-e8a-(Q%2F@gb&TC07Ds zEXBw8Aid`pRANn5V=X?$C-@|vWLK6crhJ{vIFT(lg)R9Wy|)?6U~7KBHk?E6bp{LAfs5IZE7*yv*qLkDg+H<@ zxAGZoXE*-B?%c~B+|OrufIayKd+{#@{D-}nGK1q1FK1s~#eTeo{dpaqV`h4jc_@8k0<#SwgvFR(ISZI#+Q9zvKH{&zaoB5BL*jaVKZ<7kEKCj_t%*4-`g$tOCUoblt@-{AF9xi5ne#s*Iip9Bv_j4&ra~Uge zIjeF7AK}-m!Eg8kSMq6o%lcf!hFs02T*Fpe%l7<^o%ubxa~%V&=X2b^q5Od(_#;Ph zBgb$PU*l%J#Vwq~t(?kjoWY+so7*{uJ2;O!`2~OG68^$(xQnZ~hwHhQo4AiZ@i+d$ z{oKm~JjjFmlfUyg4>83xjpN$-5az z zfiLiCj;3oE!B}SGcwWcJbWJ0e#v3@3nfVd3a2{{u7j(@dSi+n6HM4RJvvECd;TF0k z68y~U{FOO)fVc4v=Hy>=%_KOK)3vFfJUg%oJMmF=VJ&v$Q+$RE*^N!voh{je z?f5J^vnRW=7Xt?D&)yu&K75{iIg4$N2^$nIe(#Ov5)B zZB!E$_`6*-fY_yMbN79XQ)e?cvN z$fx-c8*&btaxPo(6Sm{0?8JHO%K7ZU&)A0xIDlVp2p95sF5+l@$+7&3uX73C;&M*n z3ck&+IgQ_N23K+xzvUdR;-_5AMO?!bT+6lmjvM(scW@o|ay<`n1OMa?{F^`W6gM*U zb&h{b%gs#BExd+Xc|EuBCjP`*xt+Ij2k+!g7Ua(?%3pX7cd-O_vn=#-vD@-*GqnP?KOCgDLII#IGm|D zl4~t+T zxSe-05A!k~^RoyG@_rU#X%=P$7GY(&_8dIIVtkx;u{MjdKJR8@x;7oO;Js|i``C&1 zvl|~^FS>Re^kYd5W+^_;(j3Jye1&ECI$h%qCh$Q{VR^pC3Y^7?oXdwepRR=m3t5>< z=$d%&HLG$pALcr`MjmY9Bm9Yv@)x>h9_(ce9^_;Eldho$$61q+8@zsG8a}}&U0V+l zSew_cFn9uM9cH>Lz&R5xkZ_vE}!36f? z6b5{cz4-zAa1Q%&KKpSY`|~S4#}ypNRUE|cIhdO`gg?=}1;H;I#@{%chxj~?as*HC z1*XdExW_9vl2>sQGjKGo=S#eqFEcyGuq4N_9AD)_9LI_c-((X` zU`tM9J5FL}PG)z$&Df2~Q`n#Ha4@HG1mERozQ?hg&Nn!N6Zt;h;Y`lp2b|4W{Ft-( z89(GAe#E7m!*4j3Yv>+}U>!fT}5ZCt@T{F?c=l7;y#i*pt4=W3SW8dl(1R^fMil;5)^*Rc-Q zvmrOIDSu!q{>XOR$j;ov?%d2?+{%93#zFjv!?~TKxPz~7Ctv5!oWNf=g}eA3ck=`8 z;T-XCo%CDHGX}?zIWp@@jVGwd~G}>`C|F1ig73`_a8P!2sUKp}dJBcr#yO zHonSR_y%v~BxdJS=HUCx$q#uuKV~j|&fHwgJY3E@xsrLgmif4W`MH?|xSj3+3U;v& z_pvY!vIzfVQT|Q$2nDBj7gOEjILa&No}nNe?_&nu&y0M4H?Rb6VoBb@Qq0NH%)>Iw z&$28+_Z$Ux^FiLv@+{4Ytj0>L&dRLGDy+?_e46f23L3B)8}ku1V|BJ>4Ys9wn1T*` zoLyLx&$1T#@CiQ0Cpm=fbqa>F4qv2uo`RQIm*ZKV6WD-nvmvLk5ogdnQNb)W;aoQ3 zJi13J_<}9?C0lYS-7^(@&DLDSHvFFLxQ*_i3U;s~cd--q(mhqd0e0bGcI8pJ$0|6^ z?u>o-f`5~9` zBYw>}{FZaMmLGFH-J2Ht$a&n#`TU8WaVJ0LZZ6<{e!;_B$fI1ufI+c=az@da+@OWeU%xs&7hGbiyEPUS96=N``FK7PdC z_$l{uJ`ZyN|KyiE!sR^5Z}=Bi@o%o>ajxSD{=k2@g(ta#?)?jPF%5U~avtCnJj}E_ z&L~r5bNu0zOvglC#f(hP%uHZbx|cA>!3@mJtC^42vJf-!Zo0=XD9P(sme;c)Z(tR= z_b{l&8~GUBgBaB0&8*F=tjlanqI(mA=Dd|HnVlV&gPnOByV1Ri!L!W8fVtV1dH5Xf z;9%a#Va&@H=pM)5WftUk7UCqj=P{VZBAmgZoXukVn0N6rx+gMN%)7aa_i!ceDzPFh8rZ2;HL@+|6n%!ADq@kFp}Gvnp$_Iv-;#KF+6ElMPvmP5A^{@kzF4ZFb>P z?9QjzoAvk{-3uBFVFM0lL%zsH9L*$-V`IL_rd+`0T+9|+#+F>kR$R;0+`u;6%(mRl zcHG7G+(-AE2EVf-kFXPuvoj;NI*u_7yE4jWn1S7xiQSonJ(!ixGCO-R7X#*HZx&)7 z-o?JWpZ!>x{rMoDVdEH5af0zhGA`WKS+)UoPfAe#v3{iZ5~rU*b}}%4HnS z<($M7oXW2`ohvzu-*PTjaXwdb5!Y}j*YX>F$2I((>$#4bxSl(>fxGzwf8&q*of~#=XPGp9lU`%c{6`zcK*U#+{L`y%|hJ6yZ9^bc=Shy{DZa`` zTI+==_%_|E9ZY8`&SGkQ#5A1G%ea`Aa|PYg9js!M-|1 z#R6==f^0(fqz5fom~B~vomiCJ zSd6_`oc(wY2l8GH<$WB%`#Fjaa12ZEHM-Y5c$1|#nWZ_6?tKs5XIXy8a{Po3@-vp_ zVpiZ%R^&>$M?P4~%G|&z+)Ve(2iy5DckvM(qqxhe2mBWI8U-BQ|5G>9Z>oX_alONo{hRnxCEX*X{#m2mkO<9ue*$>LF1j$|=mj zcbJ<~nU~X8i0`o^XRs{a=R^E}RXB^)IGfe^5g+FqKFPU!iXXE+KVcF-WmC>)D}Kf{ z{G9E%fSvgTdvGCpa}oP<2~_zqX|U9RB_ ze#Z~^JwM_)e$4fp&kg*7KX5TOav3*q1vhggw{Q)&as#(qoj)3N{)S%}xLFt1}#W@a(o%)59C zi}N<#&0O?ZoggpoV}9PxLVSS5Sc3P_XL*8BEXA@c&GIb6hggthtIJ92e23i@;(k?X%1!u4&fsl$|pID4e2vhL1T_!bH2b=W`Pm zax<553s-V0*Kixx@+WTKc5dblZs$(!;?La2U-&zB@hErmAMRm_J00hkl6!eM_c0xR zV+QVLCLUlG9%MHD&YV2NJ9(J-`3DQ|PZs47-ov9T!DB4TzgUrfvnr3X22b!w{==tv zl685CjTpJo>vZ}oV9=T=*@3Cpm8tnGeMT_o%gZ>3mvb1e;0UJWXhu1fSMm*}<3wJ? zcbJ~jnZVghB&5L%flP zc@vNEX8yyhOqtjFrM#TCFdc7Y24?4V%)y&@8*gDw-p<>3Cv&kNbF&!p@Lt}*lDw1U zn3t89kB=}vA7cSN&VsDXLafKaOkxo>XHm9cF?Qr#?8f2@csKj;9uA_Db9P}1c4tclY{hX@-(qJ@W*1InSH90@IGf!#m)$v!J-CoP`4s~$XK$`zUw+4a{DJ+sh0k$22XGe$ zaxVw*AP4hL4&h%M%99+%RQbJ5&MbU+4Rrz?q!F5BM%;@qNzbhy0MA@FRZCIb6(-xr(21E$4AP=W`=J z<2HWIpSgg)@(Ui|LjJ);{ELful3y}a0mo-v!6m$k%b0=7nTcOB3s*85zvXRQ#XMZi zd|boAT+8D8j`#C>mgYK^=XyTG4SbkCum*o*O>SfzZel%dW+QH4b8cg6{>1j&&aT|S z?%c^<+{HfJ&F8p>L%EkDxR0aw8^>@zU*|!-#osxZhd7mo`9A;TY#!lU9_2h9<3j$; zuXvoxd4enX4_EUf*YOlLGLp{wAxy!Y^qK5nH&gL9rsg50;SpZO=oD5oY3DypH$sdY0e~EX^z| z&l_2hH?cBrW;JHzqXpe2I5+4DaVFEXlDf!&h0J<5-EW@nMce|@&|s)tz5;Qxte>qhQD(ykMcYI!}UyA#PNk``2!QUk=Jk&Z{TL$ z%q`5pt<24B%+H@#gxh%!cd!I^vK)WrL;Qu+xQmZ*H*0eb>+x4M=3choKDOg;?9Bb_ z!2|5ggY3uOIe>>ah=)0xe{uwmatx30b^gW4{F_sGoHKZWvw4yW7`e*+j48OBDful^ zaV^tuJul-XUe0a2fW@dK!u8JTRZ{(f4i3NExi_&*k1oto-AKVn1@gC z4%X+LY|OlD&U|dc{OrJj?7~9q!6NL%qU_CLe2%^|BN)MZIGXozEbrr+yq|Bg1gEhi zXR;JOVrkA}8GgaCT*7kvnh$af%X2*|a5F1%J0Ie1R^o50%)_k0W30-Pe3+?MJ942GjbHOa5S^=CFbPIyn|y{kgu>9$MQbD%2FK1@_dbz`8prv8?4Fk ze2Qlzfq?IGU;X3e)g)UdA_hIVbZ9PGwq7XOy#eCFd|5KW2I^U?LYW z1DDWumZJ5Ta9 z#=cblcBW!3Ud}wcl6NpY@8s3Y%Z$v&87kyVxkcUt5PS$2#)?qIK?8z1E&u=)0D>;IzIf`pIhHLo-zvEUZQ7-7QtS91a`D0afBUPP zqfMK(u?_{jZS=o}ZO($lzLh%?hjZisLi#gd;!F@Fo^ zoV9jl5f-zEJ0`Wi^bA}ux-&Cy!RY=iUvhNe+!arL?usWrcg5>AYu(!1B|GcIFF7r9 z6Z?Zh7fkESJYF!Zf6K{D>ukra_F2zq;_2LdzOl%cjJOlr( zv5Obbznw0%fMPu)zkp(0l3hSL6s%h$+4-xR>;j5UBl!gs>y-Qgig!tN0mZt+7SJ^p zF75V79WS1%*j69waL$hUbkj^~-6*++S@`T&lWpz|JGL)e=uCsJ+n{BehAlco3Z5M( znRcJ-Ajuz4ik{ydPY>CkQ_B{~)?=H?wdYRybpORJXgsH@vF)VT`OD{QhvJdU7mp{l z=o($r1Wpfhaho|ivJ2YA*$#!1dlvC2BscZ8&04l;(kUsD|J*r??NrWLbEn50?r6`f zjsLaB>e{ixnHBgy_E_ikdEUkyb~wGqN`6%q^Ox7o*&Uo2qDlMutsBMG#rfOuna-!z z(m7`Zm2;fw)S+pc_7^npGo3D4NyZ<0iUsT5b^aPZGr&dL>AxK=-cHYSx_CQ1(m%`^Xg=>zO_; zY6r3XQT)i2d^@=N;&u=l;y>C!tn($>L9Ejy+Ci*StR0+pq>C+V9h|8aIKM;qj4s|` z|Jxz?h7g-d@(m%@CHaPMrc0soXW{I;6})&`hz-*r-gqwYd@dN-nb}UZ^~6T@e{MZ` z{y(*zh7F7~e0A{Ot>@f6&ucwlhxp3Ac-h3a--3nDKX*7YNHY6h^K)k2FR{#uoWEhk z#uW}xH-3ycZ?ikE>qRGKVb}PqUvOe}UMGtvcCLNV(~hl@cx%aa?xucbP>1)rZQ9rE zkkmP;_4#e%-##wg>GY;^-nrtLq2itXYnCp#SpRF&Dti99J2SD1_ObtVxOme#(<#1b zo!6SqbZO`>k+zSYs?}}Sre({dh8>d{`MByiN0>8x#-77D{Up19lf#z7|Q(od1F+);tuwKIxp)zQYAO zwKE-KbCdn-RL-8(T{!Ch%dCX69h++8ma`+R8@?)!jq==H&O7ZYSfG8IPOTetIKP>n zsn)IEvg5^vK+`E$sQCG(Zv_h_JD#w5>G9lM=z{SSNp?J8^^)T$RP=)L!`KEITOb#8 zXi&dVtlpqm#}4PW9*Zcx-u`pdoVy&)J4Z6gx=CHz)^FXRS)0~%V~gj!27XcJSSxSj zyG72~2rlU7?n3p?Zz30WKRuH3+R;TlHK^OAe*0GcV@eJFtGh+`pK}uH{y(3No*LL4 zrpu7c+f}FkRnF0%Lznt(>$a-jp@nn!bg@sW|J$jV!&6c#d*H%_F5RtI5zY4e;bI5V zR`r`SYk1Mb{vBiNkbV9@v4z&YO~?8jlN@C()v2JSdg0XK12$~a`VymzbvbX*#@-WX z*sxWxB90Gro5s$j9bnEmba_osH}(w9>3YuLC$@_^r^|V7vovhes+ES*BTJVTwl5H*rlXUb{L>(MWFThIlP+n4*!AQs#KAY?z{v z+ESKyt!|j2k@k|We=;wf!xW7SlYFI++6!TdMkY$Wc1CSVn4*!-C0})-wkS-|$T}%o zy!K<5qLJSvU;UuJKf@G_T+!6EwRkOEn4*!}Bp;2}U+yq@9#W2Yt!$X0k(!c^{_3xG zn4*!6QqFj-YnY;u=cU`@wUJ?pMkY(S;U6(-ABDjBa;3sW@G zNGcVtH4RfV@~l)kUh5sEXk?63CSDsCrfB2?scgLVQJA8UucdPF+Nv-`BR@+I#%p`R z6pj2Xm5hAA4krlos#;~RgBk4gee+nD?JpibqrH9GC`^oue}|nXyj9= za=i9=n4*!jQk8gZeVC$=y;AJD&6SY@VTwjlv~oXCyp|?R(MV>gTD*31m@H@Mk$CN{ zFhwH|OOM8D)x#8xG?A*uYc0a$!$VSyc&%TUqLEjm$Ktiu!W50nlpc@QJ`7Vd@{Lq8 zURxceXyl|+D_%?4`gF3-mY#^$@`WiHsUbZXuhj}uG}2nC9j~@d`}hbbDltgU;n;f}6pieV+QntDH=&-g%69@E)P>Ql0zCEujL9;H1dG-e7sgVOwKK&5%F5>FqvoRg?O!F zn4*zE(u?uhurN7Cl19dBQ^FLDd?t;G*A|A!JWHeFwS8f-kI*1riq{gur0q&C$7_Yc z6pfUZ#>8ut!ekqiUWwQ0g(({8CykBQ28KyHkY0_~=7uR6SuKr=*S-%^H1ezTTD-PD zOwmY!jpOxr?V2z}BPFCa;8*I}r7$^HmL|k& z)5BzcB~6Ui7KbSs`B9n_uWboaG;&Cq9IqV-lXFZP@7wWOx-dl}w@OpuwVYv!M(&Z` ziPs(oQ#4Xtni{Xw3{y1HQkoX8wGC4=(qDQvUK4SK!c9@)-Nwea$?qP~XUY2IZYp;gM z`K0t=ytW`r&UdAc;w8p5cNSJK<(vo;> zN|>UN)PBD#lHzJa(nqdHOce{Ue~IpsPs~tiNN~_Er4kZjKNS+I3@e!}q2{W_3B@<9 zKDAWo3YEl!{(DcII;FUIb>oBs3;Zlg$Z$2*99}fy?7#mU-$hx*g9-hAI6dE+ zOh<1XHpe<|-VmSfgv9?j{w=Wqx12lvEwK@7xnTTZZ@O%ab>4c3@z>mT>8D_@O+Q`y zJYr=-#h=W#7e1LyKj|DkqgdK@-s%`}(eq1o`e)~T%em7JpQq7oxnTO|4xn@RjAQBl zF#Vdl&s_uwStIAKNMngVsZDz>u_$6a7)5+}e3|U>*tADK=Ps1kue)PQCb{Ktsrk9! zNp3lJe$HJqM!w~O`MGFN{hYgyV!vKIKena~ezxhlY4w>_9{WYBJ+Rx)!PqZW_<>^y ziK%0)Ju&v3^pUfh--!62;UH%gW9--8V-J7**8+|85FfvB#~1C)OE21RbOyO-A;)U5 z(QH0;@%ClL&pf{^=RUtJ=RUtJ|LgfBw`{k>p5K;ppWj6*DAq%4#@qGaoPBuGqygZrT?zO3}@G&F`wO0g_}XFc6$98 ztoWuc;*ZPzZ|gGN?}GTF>BZOUEB|}Fo--K}|BrPX8}a7&=r=FDczs`bdBhg_+2vvV z|Htz9uN7qSTjI-O%el+rKh}M0hPT9Lc*_OLiRAgF5C&tT1R>g+bp|7__ePpoNtOEvr1FY>r$NhBeADB_Vf_90|F5 zhbGxPv?<`BOGyvCsvRzy(58I7*yF=(D-8QQHdKY)zs88YM|AGq z!~QWtrpkkUFxYiv2dzrT@N{g1brTaZG>(n5Nw$Oxtz#o@Qy?Kj=h(=*luXFbvzpMW zTG@mQ55^}_zMfdsls<}0;=IZ3{^rD~Q{l7|`i{^LPfss4q4@L~$EOe*d2GD#QJy=p z3cVM`#+lIX3FkBkiPu%=`**g4K28e#VlMl|UKu1LHp!-5GNDiG{52uby!MNoB_$+w zDXCsBq0ff+Z@sD|^xH3;UOMFxYA)NI-`ts@*xbaPaqP*SH!FL#J9Ro|XDeDSv6GVu z!z!M0&XkatR>3LLzSEo9=GDf!XHsn7-FF=QcN%*}UNpK9yH}j;9-D_fZO-p!_q1dG z4u57I_f$IDPeRR8yQlnhQ7^Hlu_uS#b`MFuV{CEnNp*HSXP)K1t?b$q|LACaZPsYlu{A4hEE{Xvjh!kU*cn^N{4KVGcqFzUcq-oZ z8ke)fjyJ$qS{63xe_P>N%jDly_+q?O#aiLgcskPxe~kYYYlV?`?`K-!t?}Ptt+19< zHX*TmJ&h^e4(I$GUx8+0&6zp=zt3)bPWKcy&e$TqsC~xH!7pr|TVw4rHnlw|!okk0 z{t>%3{&CT~?AdsBeeQns&x^XBnb$qB7lHqd>2%oL{m3QzKeHtUb>?y-ECE z7DsH&?YZyl;3IZ-|Gy7>X4NOuTwpxQ5^}}%%c*lD?| zwiB;aVMuI0Kg53i{PXYsvH$P;cZ!7mwal+Zo0yQ8b;t|h&id0T#?ZS$U6x2H;2 zT6xf#D#NO!R&10bTfyC>5|+oh>`qlGHb}3QISN!6Rv}H z^#I3njJqrcP}a0^3N3=^8`QRWDHL{wEt|nEZ2`C0&-dQvnfu&iQd)QaaX078GxvV) z+wcDF+xNNmW`5aBu#uRP>>`<&Q6%cD&TQQRViM|(-DRKxBaVHR0=hCq+A(QL*GvYkePl0pv| ziAsgv>>nA?@^`#hq!W71PwKg_Ue6oTdbZ>myIY%0!6G)p>x0zPIys&RQfe|>+kzDB zBv*fsqIKkYB}hr9xP~==L_%68=`ly;w9ZpGt=FoY)+H*Z^=8VswOL9J+BY1ACbX}g z6m%S>Au`>c?)yx4c1q8|9qS4;#Tl&q25zth#2^Z1e0+(ZQB%U0&Yb()7G* zu9bTa4ZlW?qS}2jy~Aj}60vUTA)TTcmF*zm5|eUBSV76pAo&FON_vRcH|#dFZ#R=` zrZ-Fu$(0OIa$ao0($6NjY0!$L_q|i;7n9tydBxI)-l_B~$&ZsP6-#G|IC9+=kbIJo zS1P^woeEz@>f^^PJmD3tXhW!v?$L6ZJVy7ow;wujyy7#^!Ho<*gp2_L}EwLasMcLd!Dd10_9Ro+AobX(k5dSV`N^zmEBKR$Y$ycMX)Kp?{M&2usXX zLwRuQHar5y%Z3=>_zy$Ua2&Ktb;}{c(hNb1xLNzFwL$wU&_L#o+MwfKweEE{wTX{2 zwbulzJ|n$!Xn&QtTXJdY5W8dGCY+L(&1(~EG78zFofa6H>4Vx@+Wk7dg@R}hyl<*T zyVn)ISh5o;ZIjW?D7nv1%eiZR(5l)E@5KQJ#q}C4C@8Mq;nHhW>#b=-oD{4&0TER| zE)&duTU8A@4j`|JYla{`X=+`3Nu9(9tjdkB25V!1hwbk0g22Q zt7`TuR)0}>CV8~fQx3mNvd)S%-e3*DFm+N&M_8=LW(_!u8`#9e&$@_8*2q#`QQZYfR5P#UOB zyQMZMLv7@@6esoBd+^MJ=cMM|FBfDdbFJt`NpC-r5vy{FBD`=nOvkP8Bo z`UW&)+RTDsgd&561{wmWM_P}Z9?g2>o4USysHyu;$I!wf^TBKvq%xvx33c878D)c2 zM%(+dEVTp?*F1_{e%>4!JD=rEDYNdynx@Xp+L16UK(kTHapF93yu~BGX(0{rG^42H zbsmQ|%Jl+Wd-*G8;@mdEV^@iYOd5=|!wPm02P;L~Q6b{LRf;%NA>weQh=p>*g9_f` zBzsztl@$D@_Flw6*d@KBF;C$rP~g2ZKsCiZT+P2G#ktI!bU%G0EVUL1@o zM)MY2%nG>ZsSFOhb~>QbGC=V%U2FWyy9X~*HbpJ&CRX!WRm57 zv#|JnQ^{zsSNK+z<1d4-)#_d*PgC;v>z_6zdxF(Hnlb1aReFT|!(?x|knK(Qe@pPL z5_8E_RVv-ic5)fj9A>EUDqkkTT2X(h9!Im*wFFH;g`xdXLDjD8$Dw!sVZ^p+Q z`Dwu>Pc4XB`0OeaSX!f0+l1)NpCy~r$)XOnVPPPo$MPcub!@3ewse%5@7D^odl|>lzpC}TT)XrzDwV_P)ajFQ(nV%l$=%ex zCkQ$g;mLMx3LZH=cw|nA0;=!1q;${8MC8!xRkln-F0#{}qyK0tFEOuVg{dC1Z8DC+ z>7u1@n};s&M?otpGm1YRJ~5-W@!542;h|blP2ke{j&sH1GI_&RiY;;NXqW82=a;%|8aTk_{Lx7ULh~ zgV{fXe;nc9F3vxWa42|0{z3L0|KPAP&OdZq-7uh+LaUmHe@HQoe;CC${()LN{^7Jz z<{zj8RfbfV%su{LWQy?*Ba@>GkxV}S81VRqk*~}@Y{NPJVcIR0Vc2TOVZ{ph$AHg2 ztXO6K5lI#D4<}Wbf0U2y9sd{{!#@Ts{}}Z7$DrjOgO+~`{%`P)kadWJd??&C8L}iq z=Z6X{1RWck%p#_(x&)fL(*51(a2>0_{*&5CP$+YId;XV3~m6%MYAl z*UVETvKR~x+j3^?4HmCMxbl2)Bz{u)Xhu4mlK6KH5v6~21>6j5ZnZR~; z)P2@)21gqt!p7qQ3wv8^L2HE|7PLPKIptl3^Z)mdG5oTZ&&EtJ zg?%^6HH&}EAzdSTDt8~;|HCC~9!p4)X`5&C?tf^>8p0M= zo=1E$-|+T#I{TUg-t^Cwd&37lr&Ec_joR-Yvy@e@(zHyxfMsBxxAf*jW8v zh85uMQ#|c1M{7SWieaHQQG3l(h4ifvO3NLwD4Rc-51HskoqOq+azEkNGEW>+=1oa^ zuygdPsSj5DTDm-yYr&erewL_l74u8WCU6)=$Hr_C^{84+y!zjFg*_ z2GKE2!{9pMx76$T%`{7L!{8?HmOiq)EJuf3!;(YvV>-xr(;R6qF!RyPox87KpNK7f z9WJb4Hq8h3w(+_Yjb8>QQ^^z6n$lBS@ihl`=V>UeXgpQ8dwaORLsR<@Wz6wQxFZoB z!Gt?PA;Ai_hDHp@LTd+*D#sklz9Dx@YLOwDi}lSmQokfFd`YQN&z zFb(nd6)x;^@wdD9xQ8<3HOKSWaX2`E_DF z+~k>BSH5dyXoil}xGYk>Vg=y{SqHbR%n_TK8tNew{=o$lbKKU96A~g6CX%vDB$(Dw z*M=|vmXQds%p_%*iGa1lsJyjis@&MVueQK{MOASK#?9N+f1&8z*#tYh3A)}1!4z&h zOfmlj}jM56ve7d^OLcVE?OO=}@ z6h!RyQq#%KM^a`MsF01Ir0P4DYa)^U+stYHCwWKSb7FBpcVITRJ zjyR!E9icUa=OeVH@b95>Q*A*vXiVJN!uAMF6dsDuMB$eank?KGp~=F75t=UCfzzlr zA@%D2@}y7oZ@x{>&OEM{Poqz%QI1?9cK;`?*LP4SYL^DlUX_&BG1C;2?~{^s6x~nP zZ;5NWtaj^ohIs52Q$D&)N}A#wM*j(9SC5qbnTxoar!0H(Md7Je6@@}~hSBI1Z`a_an{2#_qBL&TMSW&#d6EoLJAw@bSYayI zuyal@7 z*Ee-PstZ|$Ah{>C36+ttNd!i=yyjoHN$TFp(-U0*!Z z)cL?#yv4hCSP3eWZz>a3nYCu;Fh_5y>gPx#ZGgRpdrt=YGlQ8F!1`YW!R;RgZtTvp zFxl!yG9bB;(23I6bsN{HiP>q3?d*9#S$00!V{-mlD%-i?F>SZ03fa!*8fR>5?3!1b z?V6PBnv=+O%}ZswuWiV7FF8HS)!$^cb3q+RuIH9Ew>BF_%q?K?Pc}E6On*1CFmr9@ z3z-F9xMtzC`+vo6?N{l5s;26q)3FRn?hbvU@d!TYi-VE}NTN{I%r8i}Ly9E$Np04L7e?v21$F@*DrW+{2@ueze~=F+pBwHhuUt z55B*An*C+0CsOMT2m}yVwIlKad_8MjjXjGVodZI1M$u5a4R!L$f=kz5@m)$^I{T&|R7g?%jeR9E~1^im$ zIm@m)XZZ@breA-<;#+R4o2xkL0~4!%@pXO&Mb7eH80Sg>2uB?0$N!tY@`l@1h7h!l zIFmnR$A^nIefjl^RxYxB)o^09Dbhv2H9ha*u%Aa9{cndxoco)8n~P)gP%Z6iRds*U z7cE}Vvg{Tk(g<~zOjfT^9M#1B!k4}kZjlVG_lAf~H3wfVL~I=W6Wy1*IJemm2x z>-CWP@TtZ|KXRMjmq>a@4`{Q8^n$c|$ge?$JY+Y>L_~8r7eJal zNib|3at+AM9`Y5CpL<9fNSbNDrMeenj)(j`NZvyp1X<%DkAd`f$kQNw9`XW6$wOWS zNpgPTO5YEX_YnQ7;By|Lo|1tkx>PBgLmqMg2$qgxab|)fnao_O&*4ma$Rd!uhvY%l zdPpnCkcV`GOl5ZE%Y66^8=RVN9io59)Y{^Z^*FH|Xb>vR-#!qnJ1)*t`sqJTo8=vtFFVAk&lae7*vb^N>4~&sp&}eJAwMkzI6$yauw?Lv(OFup< zU>&j=M7B;Hav#WA5BUcW+4*#FehMPXo(_2eL^eJh@(hUHnH=&mNVA8$2_g%gF3z8@ zlDB!tM?hqi)5Q@ZkbO>vTm#bUA$gD?4_OT&>zFRp_d)dIt`2!v2!AY524#yLgvB$4 z{01cHA^ji>f><1FZKXZr07%Y5Cc-S5J>(RSyoa0#(&iy&gG7I}XU+uCo1d%2)gXHJ za|o8{&D)fywa4CK74{S2B>8r6eh!i^Qbe=o3FX2nB7*S51 z+m9XQ-4M&$bB6}oTumd3aDHh@6P4z<%jwIZVfhtXE4035%%N1UYvl)rK5GgG0X@rY zqx@l^4mEZ+oL6>iVx7q}ZJ3{|YPg8j?wa!(`x!B>42U_etcF=1)embWIm^m$q1Ld8 zC#Pb?$F#fmnv zDm3Rf@ib5=e8$30Ac>7*jK!2avJDe?_!-E^Y0a?2ed>wjLagoYcEB2U?-k2C!d&Pe5A)XI@vu!`D|rGRkMQOFpZg?@18i~4w3H5$=Tm^19;ut*nC z9BabKg}Z)aG<{(#JKNu*gi(Kw{9!+eyrFg?uQi|)8%Sz_DA0DM$Tz+!!x(0`jH^L< z?Rc|<(!1c$H%5aOg_5cJkJg~DxCZ5qYfyftL43yCm9445oC=LE9Ey=7F%>E}rozap zRYy&YpPXmJB#kTBhAM89v(vD0Iu5%w3$xatZ0az2)PP|QcDf7;P;J#-(b`l_7%4YOrA=a1SxN@o1! zsX0QUDa49BrbC$7D-5$8qMR`75RpIZ5Rtc{;Uy=Wij7%Y8Wj+kSaPuK6w18fY_5Q4 zI;uF@M%y;B3%zWpM7EL~;+HTw<+$00$v!z2u0k;x+G^rOiJ5jA6+M;3`NeG@Z7#3~uHJ>(XI(T1C{b<&k@WvBvXZSjl= zkUgPF;JDF4%Rv>=EFP1Qu@N*nrZWswAw+q^?Ehrz%JzA%_!IMCDq`w&x6B@`v@#!4 zOH0erp31UCQN}%UEq77U+{Yz*)KuQzIrk1Tfco-zm(TO?k@^1Tf6ttI?z!hKGn_GT zdL=QU{m;o&!-VJ~^dG;(r1(+8yayOh#a167DtHL7(^t=E5F)&~8RZ5#%QYg{=_kZl zew{z6Tvk$cmNS8&we>Q--SlK-u!xLUzs$tAtTk=yG02@xS76?k%;-}y2b)*(7BI&O@uWokmpOq*Mj z6_+_IDJwd=ecPC}K`k>9T8>FcPqb1n%{DqAIx{IXDbAJ@9X~21HPQJh+gMx6punKy z_Hpq+@kt47+5`l}M_Wf_6)P2;kU2IZ%Nm`Wl3`1;CXPx?iXJvR&NjTIz9zpoTN=&! zgWvl6vKxe#$F=V#zC8Z|^<}xx5gajC?&IG`X$R zqj}<^DEq1*)-!ZPQVU01v}yl?1Zzh z3;rFu;+q(P?;vf{79vANTY}wj88R%il^BknA#K!oJjKwAxhdvmOEieK7F$se(8H15N*Sg?v?1m}W14m*nOvOIPKG6nXIu1fB zMq>uXBKt~9!c0s-8>S=2pJqe$p*99b<2YnrY7;RBr{XxAi7(@8I3DLB`&yfa6LA4* z{9A;Ra4Am4e!|yqFV4na@pU|cj3w;^ z&cyU0MWbA3>$_eolQb4c|jAWK3#x@O`Y0i}5jB zf{k%0HpLI{Y5WlVa2dA7<=75C!cO=xhT;kgN5;0+3qQd=_$dy+RX7A0^V&=JImY8^ z9ENK!1=nH*atvr$_yfL-Kca@~aT;#GS1}h~$BpbV@CT2+VKP2j4N;puEMRj z2Djr^xC7VWPF#;a;U?ULTW~k-z&-dg?#2DM4-evgJcbAGByvn@XYf}%j|b6#hwu;N zSk-Rg5xj%PQIr?r1Xjd+tb!-8I-bH>Sb+8LH*AQf@d-SG-uOHE;8}bcFJTB?#|Zob zqwr7chc|H`-p0Xr2VcZ{7>`^Gv|(5dQ;~Cn_BX7AqtO$`p$VsAHJpi@Gql&R2F^t@ zzKu2UJ>*=XEx|gt9P8pr(micjJx^u{yT z6ffXY=)h)p136b|f1xjWR1l&$Rzl8QS~YBmHPH|2V=H_DIj3n)VE{gjf#`>=F%UV| zX>GABcEWZTitVu{at_pbV+ZVy9dR&r!WXeK#v|uQEd{$`8it?^LopjUcWM){J5I+i zd=a4{qZ<*F4j)sK>Qt_!;APl zUPsQ++ASQ6cW?-LROEVsm2oImMb6=x8DGSD_!2h6ShQdqdSg8LVgk0rL=40v48~;a zio-A*hhs0~TA&TU5jYq};)|Gu@yIno8;({?!wk&AzhMq$;zZ;cqD{jroQ0!sE{?|e z$hAd#53_MG=HN0Mhb!@AT#e)LOPqk~kZX{(0X5u=lW;pu#$7lC_v2JNgwyaiPR9bA ziD&T@yo9gfb)1Da@in}Qv$0$yt}9pt|Bf|q4%WiCSP$R8$M8*TjBjBxoQEy&ZETJ2 zU^`rZ9q~QviVHCu-^VCij0129zJN>dCHw&6@Iy?*WjGv{V;X*pnYaQ+<0m){KgCJ7 z3TNPF_!@qWb8!vM!!Ph%{3kBLFL5b;g&*P9_zAAX)%Xp5iQnS4xDJ2B?{Fi2kDGBl zZpRJyGv?wx+=##8COnFHn2&ZmjhpctZox~q6|dtqyouZK4(`BmmARf^W!#6=aX;3^ z1K0q6!N>6+Ho-&K3=d;-Jc0pu6x-o3?2IQc6!Wngp2Qw_3Zt+9d*g4|AJ1Scp2b8w zhbed-)A0gk;w8++%QyiYI2EtrOuUA#;dPvgf8cz)feZ0ZT#7gGBfN#5;%!`mf8koZ zgWuy_+=$%cXj`xlccLiAbpW~N(e`5nJcJeTI99>}?axbP0z{hbAT5u?GZ>GheHzpzXXxa#T3a!`-ZRm?*@oAih&2bvG#8;4eIc+w! z!Z*+#-^Ku3h=I5Sx!2P^!XW$<+u#~(i(g@T{1$`p2kd|wu_JCq?hUma*cpGuF1R1N z;z10-W5~Uub_%=U8SIYdu?Jqpo_HN2@Lw2-e_<~aRk)sE1&qQf*c+=O_nw*;_QiVG z9~&a~qFQ4dh)>~j_%uF`t#A;w#=#hj+_P$3@dXUWp%{tL*c-W*)t&(QD8^w7 za*wMeU?L8~Bpiv!n1RDE3y0%aOu_Lu0w?20oQ|nD3)658rsG>^#dk0h7orW9U=}XJ zQMdv}<7YSqzrbu(<3n$`!)bKD)!hD>JXK)H$#Hn}I8M8FoZp?1Ig)8@9kmY>Bcn`L-9-OhU>69uE%i9!ydRD zd*aW?dsyuNM&e=Yg(vVCJdM1!)h=Lfyn=o42J&84yM@nUA@;}e)wv#^C-NRxtAWp9 zEqos9;UH{;yf@Yw;|tgfhhlS##sK6!v(^S*!VVaNAsCC{7>AL_dupu@Cg4C!#37i3 zFCp)>wL~0_!!ZTZaRg@KNF0N_7uUvP8cxP^oQ_tUg&8;(d9SX`M;k80EL@DEa5?fG zUR#M{@N>+@uW&4`!yNn($KfV?8Monh+=UZxA8L3IC*e_?jHhr4p24Yj0jJ?roQ{9u z47`neW}t~0yr03!I16hapCM><@O5l}e@6?>!KU~IhTvNmj`Q#toR59+Z5)X2;0yRJ z#^3@>!1pi(7h*d818ukn$Kd-o9v9$E#Ag; zScuX6) z2lm6A_#FO(L-1#e!QGgIdvGM~#SGksS-2l_@BmK4UvMh^iZk&bzK)0RO+1Y6;1OJi z$8aeg$B*#@uEKm=gC}tqfoE_x{*L?cEFQx1cmglrX}pLR@Dg6Z z%lHR6@HSq-LcEFnDuVPdD7dFE?=!2pr*Ga5|e3qwG#pYNOTVP#mi4Bp@_%sW)!lvktz8HY5kk9_K zAZ(58F$lXLp9N~&u^slr_ShSPu|Iae!PpU_k1sP!EQJK zyW><0$5*fi&c>ejCPv^p7>SFp7cRwT@MDa^Rmf+P+85XdzsA1!J@&&~d=~AuJwbM8R&*2N`z@hjDM&m8yvrp|VzJ%p#as5P3jKyjghqW*P zAHhUyh)LKOlkq7WhAnV7`XisAYHe`@cEphwf~gpWe736f!gTD5RvdsCI2bcA7PBx3 zN8<<_gXzd;v04_6#j%)!<8d5L!IyCcj>p-^XSUiKI0@(DWL$t#a1lUfJ^WRT#8Nc1N6fWu^leMuDBepayt5y_lREz5BB_j z#-GJqeB|Rl8CLuL#RH}Qq zDDMH`5i#*e!&1^ql!^%ukGSfK@^-JFnfn4+K}M!E)jF(X4S}MJ1zQX6k~Jo!Czh-( z$i2GK8#s(jb8caM_v&KYm$BmAPb_GM8*y=92BoT(W(cO9nG5qinqt;9vHl0c9^5DC)X5 zfSE2qF{xH-hN$J9&WcM(4azQ_vyDv2AXmq|952^jU98fi(MjnsvWnt`t%-?x*2}$$ zL~D9d>4VvM4C3K4soNiOCN_NP7Rb{$TxLwMTvp!tSTn3Y{goO2JW?~ zm&;y_koS%LDr31eWh~dWjOE&uv0VEymJ4=2%Ri+5ILJ$#qVL;* z0Rd$#SmFR@5Vp@&L#@~$Y8!4fMqshySst{ia6|WTsj}(Tm~3mNTKK^0oPM;b0VI!z zYBeof#r2;k?|9poxQv*zINL~OwiRFGpB<187?WX59h+`VONmS6996Am6X#1sly^J* zbv`9tCl8pE^ki$vi>y3#7GFcLlI|xJfA;7@iWVJ)az{O+oNLSd<@^}IpDjgIb>|}^ zlQ3C$|EF>_jL0MciFlhuxwb}R5-$+R+n=i9B_lEk8xgmcNMuPrOMSeB9rhVdPL;{jmRVh5!F|@p+;oljRfyQRc@*g znZyF3M^$c-5t&3DQA3s6YD6Y+nW&MrRUx}Vpxg$no5|@aY ztK3y1GKoT>7AjYsX3EGUnh~{Bx#mV>61|E1RPI?LVhjbV z@-Dopup5y{93=`=xqKrsiJL^NRql=vnM5NxDoEulMr0D*iQ1@KPa`sk5kzfOF5QSs zVlGiTm78ZoCh;v%dzJgah)m)nQLxILHX@U#!p`WRa@CESQl{;WWCUKi6MCI-okx4wsAP7~tW=3QZQAFKT zuAdQ^L;_KFl^bS6CXquFrg9UE$Ry?vg{$0KMr0DJhsNqj`qTjf46B9o}V z^Gd=)p0fD3+S9AN4CD_dyND?l>zjRpysw+BwUW&ld;9QksxaAXJ)CT|UGqpbJ1!CI z>zZs%zDV$wXR`UizGU-}mhwc&(gT#g#*3^Qd2$W6k~m1haWL83A#5XMI)rVnDIbr^ z@?;%{C{{paN2ttphX=%+ZEY@O)?W~EV?OQBws0CAYUk7WZNyv z?c`TIk*{W{p3S8}hvjDF%T^t}Zk|YM9QhdPMYGHWo`i80D%$!V*mUdJ|ImhI94qS6 zV{~AOzq3=Wc2F+0(_{`F0B^dH6r|2HFCTM4u7{efgZ;0E^Qc#HI60iEIF79s7}y1J^mEj82s=z)b_hGKj>+Ez zg;*Z03WUoNVfvvexm;5{``s(lJm?6&m&{%{{qQ%n7BBfIUoTf8A2+(!6>4^D;5ikB z>lMo5E6kj+p%0I0k*j{;tiSi{kPx;o#5|cfb>f`7!Eko;1Ejk;gl&-(=#BDMEjg^x zKi4!5+N8S0qPI+L(-tpcdc!>ECjy!$`};5(#*P}4r?yviknAtjPT4yIoJG{8sEts) z7izX~F5>Z!d}NE*3l%N2SU%g99A!?I+j~TILVF=YhkWP|Mwj!VtHH8KxiY-P$xNLc zi4Ur}WZJP+?_O%AkP&W$#j>+&^mHsN6=q0cwT3u%cYi1)2MeNNyLQ zz6PGV?VqC4B`cKsOkWvoF4|{$^X1BlcGQ${_X-QCQSJoA&-$3zBHQ#E{V)4j-*isN zMn}r}S&4IdWe>;=mJjsv|Ibw*a!PK9c`8#)I2bNsQg#DG<2HTEHwBmDxDFZbAHbqMa#4?(U%@)GCxNw&mO z_K`kjwi}I7oknZ6$tL9+ty5L%9jLCMEMl0*tDYLK^e!c6zr2*H8d<9x*Yb+0Z<)NL z8fElx>>PXMjMHk2$ofvpBCherNkcV+8db8Qe3~n}p=gLQyh*7}nNcXmhJM_asRQ(u zI=44pt~-x4$fKg~B%soohpe(9~Tkp$m+&moAI z{h{~Ac)x3$^Zw9&bBz7AwU+%Bw}?EPDzu-p?d@tm$33EbkK>YkPx3`Fe|g%^UD#*e zqu(Cd&p8g*&!t_n-?DDBZ*yD=T_^8E&&gF5oz3$KhL|sS+HX%xxnjSScF=y(aWJo7 zEO(6Zaihp9h~vJ|e$|oBlB4!Rat$ZB{j=Y4aT(zvlO0JCD&FzHCN5hI&QJj`WY5 za^Ax{Z8wJ#9b&#{^w-TXrSGqbI@Soz&HA&juw>Hh`TyenMGlD^Yt5+Hb>(}3h}r!^ zc&cvf^1Ato1Cf(%Y2?k58?e_SC!Lc|@R5O?MCT{UI--FcxNX6yjRFrNrurZ%@4rx4vD*J~{J9MgIsEj!q6SZQU-KzXV`R#Gr|%YHU0fHq91!}deFp7U zhl&^LSB+N(Na^+WGujtge^9}Fnxc;&xhM;$O;GQ3?hqSO&@o^tqZ zVPWK?Tsg|l@y&`7gDKA=$C~ANrSI$toYXii@W7CurF66PAipR1J+I%bt>)GGHXEHN zPZjbc5K33)t6jt|qI@GZo%-O=8YdhhoSCjIvYIYZ|Mh%s_st4FXR3pzJdNoZR zR?UWD)dcDrbic+NrCT1jO{ySy8{p9ofVl=h$r@;y9!_J@;8o#yniGud&_r zwC}MUGY;d%j$?ToTRYVV->WA}CibZ#p7+keJnbz;p}H*Db0*g0%JqMC%OpSilp9<@ zem%j6G~TG|xxT!E*Q3EqVArGYYR>4{qR3pMdbO&iDxQ@qRjg3HoQGg+x&LgeY&>)7 z>|UomBSHs6Sdy)o7X5!mXkqEze@MT9eS3!X9$<+dYv~l1!Jn~0tQkq^He0HnHFH>( zqFp5Gkk#`w4)qg4>*d!S_$Mqp$SL9S<6JofJe0q2gsD>cpH#{lA1*Q}Pi-AVh~#4> z70EjTJ(7P2(U;0UVdy#e#|J&K6fN~G%J~#UEsBHvz{X0 zU}e!_YbDX_n~I{z#}&k5@01ty`PN3AY!Bf@>1rNz#sB=3e#t4RNwh%z+$)q{-z@!q zVYvU-AadW8_mKZNh$dfB^yB{Dg2=8e?;*Fp_>Z64e+eQ#rY-Lwd)&F#^|J2&9SB!z z%4qrmw@3H?3WOm@8GjyS|GR$N{~Hjs7d*0D3ysJxF5YHM9ia;)n=@|iwp z8oOomGV%j^`J=W%MNvGe_8M6xxDk08&-7Q#&kV@=&#yMCWKHv z)5~0T%jjjQv0I#F^h`rCQO2wEOb0Ukie-k78CWdCkdhPY-CD@kP32U2w+vt0l#}M& zGJGXcPLp@b@Z~}|A>J)ho2E1M-7V9a%;;j70c6G%%h$Vb!PN= zBIOuFdWM4Xt5HIJWzv;-l}sEv!m0|j%kY9^&WtfO4cY`ag|w5CafrPm}jLY&!|ZN`mDo}Q)XO?m{C-GeqpI;A8us> zDSN*uM`|U^meH3Mn+v2b3c648+-C;T1ox+iT zjOVVoZN=MK^vVYhVb*z{ZO}JTF4HS?ZA8(M`)!45;R6S!+{OnEO}Q}0SY@ekD;GX+ zSjvSD9F%h51Baws_`m@v7d~(}%7qUejB4ovhoV|4JIOUyEXvz8K}^5KtBGGm=r$Fs u_&#>^Iis=Ij4wVQE;+|bf9d_FZP1KOxR^FftPCBA}01Zn(Q#Yl1VuLIm9A z&Y0zLQzzwmQX;a6QD#UVBk2z|kv%#%CnYgA(NjI;>~HE&#PoqkNCv+#EH&M8Ofb;oL*6GV$PV< z-1te|yC!rE@06X~X<~X-ii3ig&I!r!IjI?`iO$scr19w)Dek$PlbxNy!@|?LCnkj_ zr6zaj5*nTq?--x!Qz||=XL5F~BR(xX+nMP|8K03FKW1#Ab8IJLNx_NEOqz9uXA7Qe z1`*)r*YxH;?p$`;?brR@@}W;Um473|De~Dj@M1nxAFId4nnI+Q`D=xcYF%5R>ho5p z`iku)8{v)E9Bp_Vwn1{DE#8DYB|||3Vn=L;p?EWPL57Fyg|}cNcEUT6At47K!$J;1 zwwD}=%qvG=7~Y4SF%iRY3{t05>)sU~!frSoBXBbIz^T|1XX5QR7ioi>hrRJBwBtgg zP4Y!#NXf<67vDgJgM1sKaRt(5`9Ai;e_;%Mj{Wg#WL@NH9EgR;I?46O{v&_HINXXu z@MmOQAH+K`0|y}6LJq<#9EJ`Yf!P?3Y$G`u zb1)U1n2zjsG7H&u(uosrB2L7IaSBeuhjA7@f{)>&I3L-@@@brg&!ObsOE?{0#TmE+ zXW~+vh412Q`~c_RC&<{4U*ThzkB_4ZpTPAvAAiI=+=fr$FUS~@dvF2n$7iq@8B_9i zd=`)6b6AGY<5_$G&m&__{)3CKMhzie!aDde)?!)16oF2_h@Ov`9|7YE>bI0#qbFl4ODQTPEqfU7VGKg2Qk5vC*i zfXv2kFc-hYNANq8xEg0;K0bj3_$02ug;CUQ-~t0jR&wU9>fM%jE(U(Y>tPp6&}VL@plZwBN&7wcnki4c07YI$UZM)@h^-+ z_I)`V|HhGc3Gc^pOhP|Dwhz|C46Kb0VI7=+93$kzSPy3*#|rrvHpKa8#iua+u*c0Qh7v6&$6Xku_8xzrvV=xjkkYlCH!M->Vqwo=o#+k@5RL;eI zn1?a=4ED!G$gx$vj(6c(7>mo0W37A-2jeP?!%uN2euW%^4#S6VB?MY%*2V9i<58)PR40C z1!v>KI1eAer}0sI9;f2VI1OLN>G(Fzz!f+XSK%!D7-!>`I0skbTwIHstK+; zxC7_mE}W0QVjdRbQ+Nay;0fg1CQsutcn%lhC43fZT*G+<>*Dj+5MRK?_#!sPMR+}O zPLyr%Wo(a&u_L~Uo$)p7hHqd`T!OvvO^im)oiY~R!C|-z@5SZ#0ItA9d>2#jJsgWG zF%v()99)GH@FRQ}|Ao`>W1Neh;C%cPpT^JeIs5__;g|R-euYc$YkUX4!FTanT!r7^ z$G955z#>)>u|fP1hB?!}h44{yNz*cOYhJs!YY@gRm`F?Pe>uooW2Nc2hZRnJd0EDPn?D4@G(4(^YH>cjeq0wco7%l zC0v5#_zsF19Iwz1KSZu|5e&urXf3CRoE?2(G1M9c+dTusJryYw=p-8cVjumT1FP*bZCcEy%T( z48a?)3*Lx5(1yK{Ycd&yZ7~LK!hslw!;ot=IRe|`eHes^cq^u2M|==Fp#!;=lTHl5 z$ry^$Fbrp7I6jVDFb})pGsrccd;z=TVvN8yum`?_J@Gx{noxd-z3>z4jbET0zd^1Q zWdZiVwb&OoViayht|8?Pyc2g~Kir2gco6&JVdNT99>sz92Xd_`Pvc$8Vl;AX zEBj+I4#ZR(f@ydUj=}qIEG8h=zA_od;TX)oahQqOn1#9Mz{$upvV0UD!Wo!@bI^(N zFc%l#czhNo;EOmJ7vmIs10Tk>@ey2(kK+3{6+gmh_!&z43TI$G&O{f^!u2>CH{l%I zfpc*;K88j3I37l>+2wJZho^8p{*8H9%fja&tdCD&LwpWx_!0)ik;rPvqW!G5?5@51F6hbwS6uEcnJA4lUVOu-LvEPjL;_%F=Ck8vV?f)YQ& zIrurw!!PhD{1O-9SGWkj#@Fy0d>g;T<@g=0#C-e+3-B{sgI{4GeupkB#I?8{*Wr)& zJ#NGG_%m+6J-88z@CW=2f5aoW8BgFAJc(QJEN;UKxE=q&9ays-pKq`Z{(|*zCt7hA zHo@K468GSZxEI^uKJ0+MVka!ZFg$?W@F4cYV(g8-VH6(1{&*M%;_o;VkKjF6g7@K3 z9F4~?1&`xc`~x$w6d%Ge9FHe)3ZBBLcp7Ko8Jvq}aX$WuPvc+s9G=5PcphKD3%CUT z#-(@>SKuXFh2{7u@|jM4g*EV7tce9!3)dl^_2hc2hec?`L)a8Wea;)`kJn*+Y>feU z12#n)w!pS{JqBW1ycydgp9N({C?qC*(7(+>JwUKMuu1I1G;=pM7N+-h*dx1fEAe3(ImG zg*6*+K0trG4;x}UHby=x%jWn1w#Ec(gNfK4`3x;@#bgY{6zqbj*aOqhj(o%AP2XQ!#!%@g*aQOgcVG25MEM{XC^4VPGU=B`1Cq9a~I0MJy9OSdRoQD(fX`F=5 z;}l$se5RML<0H5fAH@|o6+ggf_z6n<5~t(0I0M(xWm#o_oG-ixne0`eV&OvWXcj&EWXzJ*SF8z&;)VaP}E9h`y7a4xREJbV`y z;(Pc4@?D2qjPK(T`~a8YDts3|#8vnaev1FXFY#mi4nIW~euf+HbKHVo;7`bRCUOsc zh5PYqJcQriG5i+GkndFFSzL`5FdxgY0Bc$~|DZn>VncLc6I_cea2>YB_1G3SU=VJ^ zVEh3)AT491Ii8;VApC-E8##d^qh zeX$akA^3&!IPydQVt1Gpa(@DPs15=_KWOu{pm zjOQ^0FJUUyY|Qx+{c#M|$FbNLAH-{M9Jay?Y=fD2GiG5&bYKW(V^@3#dm`VpN;^6+ z3UhG)j>o|`0f*s49Ep>0G(L=}_$WSzQ!xvtVJ=FXjMMQ^oPjfOCeFoKn1^%l8GH<% z$H(y{d;(v^`S>RCU9Vh*PvS~^3O~XH_!&NpU*ST`$7gXJK8HWx3%Ctm#GSYZ_u)%; z5EtWNd2#)MCS|1N*usKCy9S4ZQtD<=Tdyf0w+SR#N#bFX0w@9Gk~r+BsKGF7O%8_Z7fDpK6?Y&Ac1H9Wmhv84gFbXzZQNO-#=SpX8f!j!Vxb*VMZlvm0~! zRGK;=H7h|?;ak{|l44{7ysJoYWTjT!ncaJiPmlQQVO0mdJ~$*!m{fH?taNCg3`4%1 zcPlClYS5Ir}Jxw*jz2X%u2={J5)s;35 z3u-Z5>vNf6dXKJD?DB^Mqj$Ux!&exls$5vrEmvhYt8$&ISuVVq<+@a}T-R!r>sHNj z-K$wH!uu$HmHuNVuX2dKYzKyhR<~fK9h^bfeUct(KD(%Mtiv3EKKrxUX?5XN-s4hd zvm6PN965U870+|V-l_+X+9T>WvT+tS9#J1JyRXmVIWwj*P5 zmLoGgF@s}N{YGuwvx?ZjZpM5;mF81BOnO$Dqw+~s9XfrN;8W83pc29sy-LxF-B4|) ztCaJsd5F57M(}4#QBPm_sK_G1Z2Ub<=enAaMchlIE_LdO2h7MKW)N{HNp6lAS;Wgk zTn>_Z&5SIfkf^E7eQ!ntpo<7Q+Ljc?NTR+4LOMi$YF zC{UM+G$V@`OVm#1GR(*#782d8b1#^YMXVrduXFF45p5v~(zyaNvWRU&9dzzzGopP& zx9Hq)GqQ+sqFZ&YCQVY2MKmMosBn?vfc)cW^vWU-#?$o)j&B!8t zBI>7eyUd6&L=>ZQH5rB~vWV-5`s>^cW@HgPi3aFgZ!@xpp+tA-+&yMw5swhX>YOwq zi+G1yAFU?wdf?#{^G;7*%g1`OKtjD&eS@(2O2T!K{MEO(9Njd`rW)CN8nj!jR*`De?$g$3w5GHOBLirb zwb-99(MCnz{|7eRapXU=VcGjC`g9*1m>%NpRJ*5B%purbi^Hc~SZ8(TJ+p+wd@hPs+vI5b>!+zaCq%tY zv7e5#I!1<^j^@>7@jyS2e#{hPepZg}eTNd3HN%Xt&PbZbDI_xH+@~( zM!VFz^=YxzEVWj9)T(wDDlAnmJ)-DXW;z+6nv}1?^Bm0d(UEwku1lp$zc)IOS~)K1 zLz(Ip)gMM5>w4LS)Tp+C-U2#TU^GB4kQr;M1szkl--y(D5gJS2z1LQ#I9#$owPlQj z(dLRRV>DkatYUM_eE6U8a%xl?L9^Ky8S7M=exv_YKO3vgA=&ImRX+=HudnI>wZiI! ze*XVC3-q6vZ@13k))ck7O|cm}SX1>@ja5BL)W}d{RgVbOnAQKy9zrkJ7EqJTI;R<< zazP1ytTcwD`|z+pAJy1~oQ{kWP?6eVYxRz{$=K023#n6F>5r-<{;H3RF|)yJl)b@w1xI7oc`gxoIauyG;M~^RRl+r*YisEV*VeS-Wd8Pdl^omd+G<=Lx=Koaa+PGB za-DY+xYn1Riu_VtiI%8ER_q^z#iOjp{9PBOrI)$RXYOiPvmll%U$eXeV(q(tJc9j;ZcfHNvqCe@qs^A(5{=l0pegxm^ zId?gC)Yidyl|5gYPZN*)dza7k6#ZH>i1pk@cXVJiiZGIMfB%sFGmrXNXK!J5qC>35 z&Hg$!vFi0zMaP;!$-F>cc{W90-`Qr+UL!*A7R7B}IT}xrHAA`iGhVZbSq0Fd7RckLSj)*D^ zPzwvt)f%HrEs9<~VASkhQW(SesP_`6Av;73BV#dYFjXwoSd>i-baV0U1=&4|w^dr4 z?}~-!<>{64S}nEEfU7Pv?lKF_u2^XIt1feN#X1HI%#&)vRBWtRHWnRHdcoXcCF+YL zuklhj^lX-Fy-2-LlKrB77RClv{ma{5^)^|pJ4r7*If4rzwMB|5+U(x^t`4Q!y|=z? z#9j)zM}Y1mSIg2vg^}GyxCcaJ%hH4HQP8rqxG+DI&y_|OsPRyk-;zT?VPuEWt*WLn zWBWy_iuLwa zjRVZ4=@G9FaPC2BGde^yqGI`W-60jrw_Rz;IU!XR%?@EKI%vcWy{iPUeBF4xgH&C9 zoY}s}79)x;(-dPoxtr46t0kTtbF>;Q7xfMkpu!6kBTDb_)|tC6m6!LQp07q($!T?! zo8rjzFB_a!i-Q`61zs2uw3Kdk?BscX=TYNojo;Y_W1Y=TREG+65QwC!i}a>s z_jeyJbRBwMj^JqF%6IPfH>yd$S~XjItIC`2Dp%v_8uiW56?=GrZ#8k1tGO_B$|TjA z5`SuOZ)80rE?1>jWflFRHe_2@V(AvwsM1}!)ANULFy`f$>qF-yf7e#$K65v2Q@XE^ zed`B3!nYa8%8BiIkLMG!u+Dy#QK(N#t|`+Rapw9zyJS*dh^iH?B_{D}Q)UH*thM!=Rc|X+eiS)y*yQAIq zi-{Z-V@q@7*o^;Ap`)$u&{1*22ltB{ILwwb*>-zkHh<8vJF-)=oX(73N6wf#DmIp? zLsg#6ny81J)~g>r@K4xyQ8$OHFMHL^;F0_VBud3RuHjkJ{F+fkYV9aOq+X4w>Keg_ z)SpR=sp=0LMo#@{!ia1YQv)k4zpA(Yc>iZ2 zYTMQHQ~#ZaRI^k(y#FH+)zvlq)cX5Ag1!C|5jF#5RFC`n6!QKLL^y9#M*2)wZ@mBW z5QZRSLU>jE?|FFt$02$v_~m*gno)3KlGBkfUQZ}z-Bp{^xb{4ZL8G>sdZ_6}CQ`pQ zGR9mFRLNwJ(QAN4nJ0+U+NyU(W*LzhnV!rVGTCOvSk?irj4@Xk89SkRXOwBkW^reX zG99aAdXkAX=Q7INOD4`IGnveApA0`xRX6K#BQ85QcAxrO?% zi+X2dxD8sUpS^f8P3dFx0~k++TXTi_DU2t>O|3%xD8`fFc2J>y9^=VygQZYEl<{P^ zWl^Y~%y=>dWYmvmJeeXg>Sr{b%s*t*4{AJ_*6jM~CkLKP5E;oq*^>z;qi!4ZWYmw< z)eWSc%n&l_IONG>kWmj7sk7XEN=6;+jg0$V0b50eK+HGiGLHEwvy2Rz)I1BQjEjsq z+jz?CClghXxxhQ$8*2u~MGqP_EH)uMv2$25_cp{;nqKLS#mcwa=z9zF&5YcQUgqbMMbpo6apiSD&sr z&U62sj*Xk~Vgo&Q;Kc@3+;(Tw<{lW{eH_~PGDE|C>x diff --git a/aws-lc-sys/builder/prebuilt-nasm/p256_beeu-x86_64-asm-disasm.txt b/aws-lc-sys/builder/prebuilt-nasm/p256_beeu-x86_64-asm-disasm.txt index 569b7794d67..9763bc9168b 100644 --- a/aws-lc-sys/builder/prebuilt-nasm/p256_beeu-x86_64-asm-disasm.txt +++ b/aws-lc-sys/builder/prebuilt-nasm/p256_beeu-x86_64-asm-disasm.txt @@ -1,4 +1,3 @@ -Microsoft (R) COFF/PE Dumper Version 14.40.33813.0 Copyright (C) Microsoft Corporation. All rights reserved. diff --git a/aws-lc-sys/builder/prebuilt-nasm/p256_beeu-x86_64-asm.obj b/aws-lc-sys/builder/prebuilt-nasm/p256_beeu-x86_64-asm.obj index 3495d02e65ca81ed9b7b0f50679662337925f7b2..fb41063bce3d727f2930245e1526ca6c51229559 100644 GIT binary patch delta 16 Xcmdn3x?7b!rHz>(+v5C2_ANpHFqj3U delta 16 Xcmdn3x?7b!rHz>(CGFTo_ANpHF-`@; diff --git a/aws-lc-sys/builder/prebuilt-nasm/rdrand-x86_64-disasm.txt b/aws-lc-sys/builder/prebuilt-nasm/rdrand-x86_64-disasm.txt index e2cd1f231a8..cbf237c2967 100644 --- a/aws-lc-sys/builder/prebuilt-nasm/rdrand-x86_64-disasm.txt +++ b/aws-lc-sys/builder/prebuilt-nasm/rdrand-x86_64-disasm.txt @@ -1,4 +1,3 @@ -Microsoft (R) COFF/PE Dumper Version 14.40.33813.0 Copyright (C) Microsoft Corporation. All rights reserved. diff --git a/aws-lc-sys/builder/prebuilt-nasm/rdrand-x86_64.obj b/aws-lc-sys/builder/prebuilt-nasm/rdrand-x86_64.obj index 5b705ea022d703bb9264d2da233e5cad82d49e42..cff90f30f4b22eeb4b92453b3b9e7ae84c9412dd 100644 GIT binary patch delta 16 Xcmeyz^N)u;rHz>(+v5C2_Hs4=H82IR delta 16 Xcmeyz^N)u;rHz>(CGFTo_Hs4=HRc7* diff --git a/aws-lc-sys/builder/prebuilt-nasm/rsaz-avx2-disasm.txt b/aws-lc-sys/builder/prebuilt-nasm/rsaz-avx2-disasm.txt index b364d9cc2ec..e7e6f8fdf87 100644 --- a/aws-lc-sys/builder/prebuilt-nasm/rsaz-avx2-disasm.txt +++ b/aws-lc-sys/builder/prebuilt-nasm/rsaz-avx2-disasm.txt @@ -1,4 +1,3 @@ -Microsoft (R) COFF/PE Dumper Version 14.40.33813.0 Copyright (C) Microsoft Corporation. All rights reserved. diff --git a/aws-lc-sys/builder/prebuilt-nasm/rsaz-avx2.obj b/aws-lc-sys/builder/prebuilt-nasm/rsaz-avx2.obj index 6bace4ec84683e02cee785aaa99cf0f4bb068991..f45cef11bdacf32aa252c5c910829bcbc7b3933c 100644 GIT binary patch delta 18 ZcmeCaz}S6(kv*l2jUn6O{6=<`3;;mw21Wn? delta 18 ZcmeCaz}S6(kv*l2jUgrN*hY4i3;;o+24nyL diff --git a/aws-lc-sys/builder/prebuilt-nasm/sha1-x86_64-disasm.txt b/aws-lc-sys/builder/prebuilt-nasm/sha1-x86_64-disasm.txt index d3956e851ce..00e74dd988d 100644 --- a/aws-lc-sys/builder/prebuilt-nasm/sha1-x86_64-disasm.txt +++ b/aws-lc-sys/builder/prebuilt-nasm/sha1-x86_64-disasm.txt @@ -1,4 +1,3 @@ -Microsoft (R) COFF/PE Dumper Version 14.40.33813.0 Copyright (C) Microsoft Corporation. All rights reserved. diff --git a/aws-lc-sys/builder/prebuilt-nasm/sha1-x86_64.obj b/aws-lc-sys/builder/prebuilt-nasm/sha1-x86_64.obj index 95e7f103df5cae0a5e1f7fd5df19fe90d9b16a3d..a0195e63fa68dbc314ef4ff6627a9fa26a41f0c6 100644 GIT binary patch delta 21 ccmbO`k7e#W7WR}jHim4A^Ns9V*%`(70Z@wuQUCw| delta 21 ccmbO`k7e#W7WR}jHine6V~y-v*%`(70a2R